I'm trying to use the new style configuration, but only get exceptions when deploying on tomcat 5.5.
My applicationContext.xml:
When deploying this on a tomcat 5.5.17 running on JDK1.5.0_08 I get:Code:<beans xmlns="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/spring-beans.xsd"> </beans>
I guess it has something to do with the classloader not finding the .xds inside the spring-beans.jar, but have no clue as to how to fix this.Code:0 INFO [pringframework.web.context.ContextLoader] Root WebApplicationContext: initialization started 188 INFO [eans.factory.xml.XmlBeanDefinitionReader] Loading XML bean definitions from class path resource [applicationContext.xml] 219 ERROR [pringframework.web.context.ContextLoader] Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: Line 17 in XML document from class path resource [applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE root "null". org.xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE root "null". at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:267) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:201) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:258)
Please help!!
Magne


Reply With Quote