Announcement Announcement Module
Collapse
No announcement yet.
Trouble Deploying App Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      add commons-pool.jar to your classpath.
      HTH

      Comment


      • #4
        Web App Trouble

        Thanks for the suggestion. It solved my first problem.

        Comment

        Working...
        X