Wrox Programmer Forums
|
BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2
This is the forum to discuss the Wrox book Beginning Spring Framework 2 by Thomas Van de Velde, Bruce Snyder, Christian Dupuis, Sing Li, Anne Horton, Naveen Balani; ISBN: 9780470101612
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 17th, 2008, 04:42 PM
Registered User
 
Join Date: Jan 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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



 
Old January 21st, 2008, 05:18 PM
Registered User
 
Join Date: Jan 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

FYI - Good news!!!

I was able to get Wrox Pix working by adding the following to my pom.xml:

<dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-core</artifactId>
      <version>${spring-version}</version>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-context</artifactId>
      <version>${spring-version}</version>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-beans</artifactId>
      <version>${spring-version}</version>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-remoting</artifactId>
      <version>${spring-version}</version>
    </dependency>

And by changing spring-version to 2.0.8
<spring-version>2.0.8</spring-version>

some of the jars seem to be out-of-date if you use the pom.xml out of the box.








Similar Threads
Thread Thread Starter Forum Replies Last Post
Eclipse and PIX sin BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2 3 January 22nd, 2008 07:50 PM
start a context automatically, while tomcat starts sureshrgsl Apache Tomcat 4 May 17th, 2007 06:46 AM
start a context automatically, while tomcat starts sureshrgsl BOOK: Professional Apache Tomcat 0 April 16th, 2007 02:14 AM
Can't start my app in tomcat xpan Apache Tomcat 3 January 7th, 2007 05:26 AM
tomcat can't start Edward King Apache Tomcat 0 October 19th, 2005 09:38 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.