Spring "alias is required" -
Spring "alias is required" -
i'm new in spring , i'm trying create application using spring blazeds integration (flex + blazeds + spring + java) , when run application got error:
02:51:21,852 info [xmlbeandefinitionreader] loading xml bean definitions servletcontext resource [/web-inf/spring/security-config.xml] 02:51:23,937 error [contextloader] context initialization failed org.springframework.beans.factory.parsing.beandefinitionparsingexception: configuration problem: alias required. offending resource: servletcontext resource [/web-inf/spring/security-config.xml] the security-config.xml:
<?xml version="1.0" encoding="utf-8"?> <beans:beans xmlns:security="http://www.springframework.org/schema/security" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd"> <security:http> <security:anonymous enabled="false" /> <security:form-login default-target-url="/mycontext/index.html" login-page="/mycontext/login.html" /> <security:remember-me key="myappkey" services-ref="remembermeservices" /> </security:http> <beans:bean id="remembermeservices" class="org.springframework.security.web.authentication.rememberme.tokenbasedremembermeservices"> <beans:property name="key" value="myappkey" /> <beans:property name="alwaysremember" value="true" /> </beans:bean> <security:authentication-manager> <security:authentication-provider> <security:user-service> <security:user name="john" password="john" authorities="role_user" /> <security:user name="admin" password="admin" authorities="role_user, role_admin" /> <security:user name="guest" password="guest" authorities="role_guest" /> </security:user-service> </security:authentication-provider> </security:authentication-manager> </beans:beans> i'm using spring-flex 1.5.0, spring-security 2.0.6 , spring 3.0.
any ideas problem?
thanks in advance, andre
as listed in reference manual, spring flex 1.5.0 not work spring security 2. must utilize spring security 3.
other this, jbbarquero correct, assuming problem.
spring spring-security alias
Comments
Post a Comment