This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I am trying to deploy a spring application on WAS Community edition.
I am getting following error:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsFactory' defined in ServletContext resource [/WEB-INF/servcesContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/pool/ObjectPoolFactory
Caused by: java.lang.ClassNotFoundException: org.apache.commons.pool.ObjectPoolFactory in classloader org.apache.geronimo.configs/activemq-broker/2.1.1/car
I have the jar commons-pool-1.4.jar which contains this class in my application's classpath.
Is it necessary to have the jar in WAS CE's repository. If yes where do I need to make necessary entries of the jar like say config xmls, dependencies?
Any pointers would be helpful. Thanks.
Joined: Jun 05, 2008
I fixed this problem as per the help people provided here