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.
Joined: Jun 03, 2009
I just tried spring-web-3.2.0.M2.jar from the latest release. Same results.
subject: JBoss and the latest Spring jar files, SAXParseException