Appfuse 3.0.0 Webservice only missing commons-dbcp

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Appfuse 3.0.0 Webservice only missing commons-dbcp

k1.tehrani
Hi,
I think this dependency is missing in pom.xml:
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
<version>1.4</version>
</dependency>

because of this error:
 2015-01-17 16:01:39.253:INFO:/:main: Initializing Spring root WebApplicationContext
[sample-ws] WARN [main] XmlWebApplicationContext.refresh(487) | Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.apache.commons.dbcp.BasicDataSource] for bean with name 'dataSource' defined in class path resource [applicationContext-resources.xml]; nested exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource

Am I right?
Regards K1

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Appfuse 3.0.0 Webservice only missing commons-dbcp

mraible
Administrator
Does adding this fix your issue? If so, can you please provide the steps to reproduce your problem? Instructions from when you first create the project would be great.


On Jan 17, 2015, at 05:36, Kayvan Tehrani <[hidden email]> wrote:

Hi,
I think this dependency is missing in pom.xml:
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
<version>1.4</version>
</dependency>

because of this error:
 2015-01-17 16:01:39.253:INFO:/:main: Initializing Spring root WebApplicationContext
[sample-ws] WARN [main] XmlWebApplicationContext.refresh(487) | Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.apache.commons.dbcp.BasicDataSource] for bean with name 'dataSource' defined in class path resource [applicationContext-resources.xml]; nested exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource

Am I right?
Regards K1

Loading...