can't start tomcat with pix deployed
I am trying to get the example code running according to the instructions in Appendix C
Everything goes well until I try to start my tomcat server
I am using tomcat 6.0.14 downloaded today.
I have started my pix db in under spring-framework-2.0.8, also downloaded today.
mvn package -D
First I was getting NoClassDefFound error on JeeNamespaceHandler
I fixed this by adding the following to pom.xml
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-remoting</artifactId>
<version>${spring-version}</version>
</dependency>
this added the spring-remoting.jar to my wrox-pix-web.war
I am still unable to start my tomcat server without the following error
ERROR ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanDefinitionSt oreException: Unexpected exception parsing XML document from class path resource [persistenceContext.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.beans.factory.
support.BeanDefinitionBuilder.rootBeanDefinition(L java/lang/String;Ljava/lang/St
ring;)Lorg/springframework/beans/factory/support/BeanDefinitionBuilder;
Caused by: java.lang.NoSuchMethodError: org.springframework.beans.factory.support.BeanDefi nitionBuilder.rootBeanDefinition(Ljava/lang/String;Ljava/lang/String;)Lorg/spring
framework/beans/factory/support/BeanDefinitionBuilder;
this one I can't seem to fix. I have tried adding
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>${spring-version}</version>
</dependency>
which results in a different spring-beans.jar but it doesn't help.
Any ideas??? I'd be happy to send my pom.xml if that would help, the only other adjustment I have made is adding the xfire version and xfire plugin-repository section from the other post on this forum.
Thanks,
Anjie
|