Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java Open Source > BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 17th, 2008, 04:42 PM
Registered User
 
Join Date: Jan 2008
Location: Aurora, CO, USA.
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



Reply With Quote
  #2 (permalink)  
Old January 21st, 2008, 05:18 PM
Registered User
 
Join Date: Jan 2008
Location: Aurora, CO, USA.
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.



Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 03:53 PM.


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