Dear list,
I have downloaded a fresh geronimo+tomcat 2.0.2 archive and started
geronimo without errors.
After building "servicemix-web-3.2.1.war" via "mvn package" in the
"examples/servicemix-web" dir I threw the newly generated WAR file to
geronimo's "deploy"-folder. This results in a classloader error:
~~
14:50:05,487 INFO [XBeanXmlBeanDefinitionReader] Loading XML bean
definitions from ServletContext resource
[/WEB-INF/applicationContext.xml]
14:50:07,101 ERROR [ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException:
Unexpected exception parsing XML document from ServletContext resource
[/WEB-INF/applicationContext.xml]; nested exception is
java.lang.NoClassDefFoundError:
org/apache/commons/pool/ObjectPoolFactory
Caused by:
java.lang.NoClassDefFoundError:
org/apache/commons/pool/ObjectPoolFactory
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
at java.lang.Class.getDeclaredMethods(Class.java:1763)
at java.beans.Introspector$1.run(Introspector.java:1265)
at java.security.AccessController.doPrivileged(Native Method)
at
java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1263)
at
java.beans.Introspector.getTargetMethodInfo(Introspector.java:1129)
at java.beans.Introspector.getBeanInfo(Introspector.java:387)
at java.beans.Introspector.getBeanInfo(Introspector.java:159)
at
org.apache.xbean.spring.context.v2c.XBeanQNameHelper.getBeanInfo(XBeanQN
ameHelper.java:78)
at
org.apache.xbean.spring.context.v2c.XBeanQNameHelper.coerceNamespaceAwar
ePropertyValues(XBeanQNameHelper.java:54)
at
org.apache.xbean.spring.context.v2c.XBeanBeanDefinitionParserDelegate.pa
rseBeanDefinitionElement(XBeanBeanDefinitionParserDelegate.java:63)
at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parse
BeanDefinitionElement(BeanDefinitionParserDelegate.java:341)
at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parse
BeanDefinitionElement(BeanDefinitionParserDelegate.java:310)
at
org.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.pro
cessBeanDefinition(XBeanBeanDefinitionDocumentReader.java:174)
...
~~
The WAR file definitely contains commons-pool-1.2.jar in its
"WEB-INF/lib"-folder. The jarfile itself contains the class file
mentioned above.
Tried to throw the commons-pool-1.2.jar file to geronimo's "lib"-folder
- same error. Also I created a "commons-pool/commons-pool/1.2"-folder
under "repository" and threw the jarfile in there, but still get the
same error.
In my understanding this should work pretty much "out of the box". What
might be going on here?
Versions:
- Sun JDK 1.5.0_10
- ServiceMix 3.2.1
- Maven 2.0.8
- Geronimo + Tomcat 2.0.2
- Linux Debian/etch
Another matter: I built the ServiceMix plugin for Geronimo (encountering
maven-related and further errors on the way) and deployed it
successfully. But .. what do I do next? The documentation wasn't really
helpful, neither for ServiceMix nor for Geronimo. Tried to deploy a
service assembly with geronimo's "deploy"-tool but no deployer is found
able to handle the archive. Any hints on what to do or to read next?
Thanks in advance.
Kind regards,
Frank