Results 1 to 4 of 4

Thread: Trouble Deploying App

  1. #1
    Join Date
    Dec 2004
    Location
    Maryland
    Posts
    4

    Default Trouble Deploying App

    I am attempting to deploy the MyPetStore App from a recent JDJ mag story and get the following error below:

    06:08:07,864 ERROR ContextLoader:106 - Context initialization failed
    org.springframework.beans.factory.BeanDefinitionSt oreException: Error registering bean with name 'dataSource' defined in resource [/WEB-INF/applicationContext.xml] of ServletContext: Class that bean class [org.apache.commons.dbcp.BasicDataSource] depends on not found; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool
    java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool

    Can anyone help??? :cry:

  2. #2
    Join Date
    Aug 2004
    Location
    Leuven, Belgium
    Posts
    37

    Default

    You need commons-pool.jar on your classpath. If you downloaded spring-with-dependencies, you'll find it in spring-framework-1.x.x/lib/jakarta-commons/

    The jpetstore sample that comes with the spring distribution has an ant build file that takes care of this (copying required jars to WEB-INF/lib)

    Maarten

  3. #3
    Join Date
    Aug 2004
    Location
    Montréal, Canada
    Posts
    845

    Default

    add commons-pool.jar to your classpath.
    HTH
    Omar Irbouh

    Spring Modules Team
    http://irbouh.blogspot.com/

  4. #4
    Join Date
    Dec 2004
    Location
    Maryland
    Posts
    4

    Default Web App Trouble

    Thanks for the suggestion. It solved my first problem.

Similar Threads

  1. Problem in deploying Contacts in BEA WLS 8.1
    By Savrak in forum Security
    Replies: 9
    Last Post: Dec 7th, 2005, 12:09 PM
  2. Replies: 3
    Last Post: Aug 9th, 2005, 04:01 AM
  3. Trouble deploying PhoneBook portlet example
    By belaran in forum Web Flow
    Replies: 1
    Last Post: Aug 2nd, 2005, 10:52 AM
  4. Replies: 2
    Last Post: Jul 1st, 2005, 12:11 PM
  5. Replies: 3
    Last Post: Oct 27th, 2004, 11:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •