This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java and have Dr. Raoul-Gabriel Urma & Richard Warburton on-line!
See this thread for details.
Win a flower (🌹) or copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java (📚) this week in the Agile and Other Processes forum!
  • 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
  • Paul Clapham
  • Bear Bibeault
  • Liutauras Vilda
  • Devaka Cooray
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

JBoss and the latest Spring jar files, SAXParseException

 
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to put together a web service example with Spring beans. I am getting the following error

19:46:20,478 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-
host].[/iiii]] (MSC service thread 1-2) Exception sending context initialized ev
ent to listener instance of class org.springframework.web.context.ContextLoaderL
istener: org.springframework.beans.factory.BeanDefinitionStoreException: Line 5
in XML document from class path resource [applicationContext.xml] is invalid; ne
sted exception is org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 76
; Document root element "beans", must match DOCTYPE root "null"..

I have read that this can be caused by old spring jar files. It seems to be loading the wrong version of org.springframework.web.context.ContextLoaderListener.

I have spring-web-2.0-m2.jar in JBOSS_CLASSPATH, the system classpath, and I pass it into Jboss with -classpath.

I can't tell what jar file JBoss is actually using. There are no *spring* files in the JBoss directory structure.

I also put spring-web-2.0-m2.jar into my war file WEB-INF/lib directory.

Does anybody know if there is a newer jar than spring-web-2.0-m2.jar that contains org.springframework.web.context.ContextLoaderListener? I used findjar.com buy it shows like twenty jar files that contain the class. There is now way to tell which of the listed jar files is the most recent.

Thank you very much for any information.


 
gilbert engle
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just tried spring-web-3.2.0.M2.jar from the latest release. Same results.
 
The only thing that kept the leeches off of me was this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!