• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

xml error.  RSS feed

 
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI I am having some mis config in the xml configuraiton, but I couldn't couldn't found out where it got wrong.
Here is its error exception during its deployment:



security-config.xml file is shown as below:



Any help is much appreciated.
Thanks
Sam
 
Ranch Hand
Posts: 123
Firefox Browser Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found this thread.

The thread mentioned above involves deploying in Jboss. Jboss 5.x apparently validates all xmls in /WEB-INF folder. The solution involves moving the xmls that get the errors, into a sub-folder in /WEB-INF. For example, move the xmls that is getting the error into /WEB-INF/myXmls. Of course, adjust the configurations, etc. that need to point to the new xml locations.



-k

[SpringSource Certified Spring Professional - Practice Tests]
 
sam White
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the I changed the xml file to the following:



and now when I deployed the project, I got the following error:



Looking forward more suggestion to resolve this error.
Thanks
Sam
 
Kathleen Angeles
Ranch Hand
Posts: 123
Firefox Browser Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another possible solution that you can try that is also mentioned in the thread mentioned above, is to arrange the order of the schemaLocation data. That is, in the xml you posted above, change



into





-k

[SpringSource Certified Spring Professional - Practice Tests]
 
sam White
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With this new approach, I got the following error exception:



Here is my xml file:



Thanks
Sam
 
sam White
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the error should be shown as below:

 
sam White
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry I messed up the xml config file.
the config file should be the one shown as below:

 
Kathleen Angeles
Ranch Hand
Posts: 123
Firefox Browser Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try reordering, and removing :beans from xlmns:beans, and adding the xlmns:security where appropriate, as below, from:



into

.


-k

[SpringSource Certified Spring Professional - Practice Tests]
 
sam White
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Great! it fixed the error.
Excellent help!.
VERY APPRECIATED.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!