A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Frameworks
»
Spring
Author
SpringSecurity-config.xml doesn´t find http tag
Dura Hurtado
Ranch Hand
Joined: Feb 16, 2011
Posts: 120
posted
Oct 03, 2011 11:10:23
0
Hi I have been googling and I haven´t found the solution. Anyone could advice me about the next mistake:
Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 23 in XML document from ServletContext resource [/WEB-INF/applicationContext-security.xml] is invalid; nested exception is org.xml.sax.SAXParseException: The prefix "html" for element "html:html" is not bound.. Please see server.log for more details.
and my .xml is as follows:
<?xml version="1.0" encoding="UTF-8"?> <!-- Document : applicationContext-security.xml Created on : 2 de octubre de 2011, 21:02 Author : Isaac Description: Purpose of the document follows. --> <html:html xmlns="http://www.springframework.org/schema/security" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd"> <html use-expressions="true"> <authentication-manager> <authentication-provider> <user-service> <user name="dummy" password="b" authorities="ROLE_DUMMY"/> <user name="admin" password="b" authorities="ROLE_ADMIN"/> </user-service> </authentication-provider> </authentication-manager> <intercept-url pattern="/page/login/**" filters="none" /> <form-login login-page="/page/login/loginPage.jsf"/> <form-login login-page="/page/login/loginPage.jsf" default-target-url="/index.jsp" authentication-failure-url="/page/login/loginPage.jsf"/> <intercept-url pattern="/**" access="hasRole ( 'ROLE_ADMIN' )" /> <intercept-url pattern="/page/admin/**" access="hasRole ( 'ROLE_ADMIN' )" /> <intercept-url pattern="/**" access="hasRole ( 'ROLE_ADMIN' ) or hasRole ( 'ROLE_DUMMY' )" /> <intercept-url pattern="/static/**" filters="none" /> </html> </html:html>
I would appretiate any answer. Thanks in advance.
Mark Spritzler
ranger
Sheriff
Joined: Feb 05, 2001
Posts: 17234
1
I like...
posted
Oct 05, 2011 13:54:42
0
Here's what i have in my header
<?xml version="1.0" encoding="UTF-8"?> <beans:beans xmlns="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.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.4.xsd"> <http>
Mark
Perfect World Programming, LLC
-
Two Laptop Bag
-
Tube Organizer
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
http://aspose.com/file-tools
subject: SpringSecurity-config.xml doesn´t find http tag
Similar Threads
spring security 3.1 login not working.
Facelets + Spring Security
Error: The matching wildcard is strict, but no declaration can be found for element 'remember-me'
Login Form with Spring Security + JSF2.0 + Facelets + RichFaces
Problem in Spring security redirection
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter