wood burning stoves 2.0*
The moose likes Web Services and the fly likes JBoss and the latest Spring jar files, SAXParseException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "JBoss and the latest Spring jar files, SAXParseException" Watch "JBoss and the latest Spring jar files, SAXParseException" New topic
Author

JBoss and the latest Spring jar files, SAXParseException

gilbert engle
Greenhorn

Joined: Jun 03, 2009
Posts: 24
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
Greenhorn

Joined: Jun 03, 2009
Posts: 24
I just tried spring-web-3.2.0.M2.jar from the latest release. Same results.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JBoss and the latest Spring jar files, SAXParseException
 
Similar Threads
No mapping found for HTTP request with URI [/springmvc/login.do] in DispatcherServlet
applicationContext.xml - Can not find definition for element 'beans'
Eclipse: What, exactly, does the "Add External Class Folder" button really do?
Trouble with running Maven Tomcat plugin through Eclipse
Hibernate with Spring