Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Spring
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Liutauras Vilda
Ron McLeod
Jeanne Boyarsky
Paul Clapham
Sheriffs:
Junilu Lacar
Tim Cooke
Saloon Keepers:
Carey Brown
Stephan van Hulst
Tim Holloway
Peter Rooke
Himai Minh
Bartenders:
Piet Souris
Mikalai Zaikin
Forum:
Spring
SpringSecurity-config.xml doesn´t find http tag
Dura Hurtado
Ranch Hand
Posts: 120
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 17347
11
I like...
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
-
iOS Apps
How to Ask Questions the Smart Way FAQ
Not so fast naughty spawn! I want you to know about
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
xml error.
Errors outputing data from database mysql
spring security authorisation
Spring security database issue.
shopping cart data lost after login
More...