Hi All,
I have a class loading problem that is only happening when running SM in
standalone mode. When SM is hosted inside JBoss, there is no problem.
The situation is like this:
I have component with its Bootstrap implementation class extending a class
in an installed shared library. The component is referencing the shared
library in its deployment descriptor. I install the shared library first
then install the component, NoClassDefFoundError exception is thrown upon
installation.
Here is the trace:
INFO - AutoDeploymentService$2.run(504) | Directory: install: Archive
changed: processing csi-0.1.jar ...
ERROR - InstallationService.initializeInstaller(528) | Deployment of
Component failed
java.lang.NoClassDefFoundError:
com/gaiati/jbi/component/support/AbstractBootstrapAdapter
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(
SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at
org.apache.servicemix.jbi.loaders.InstallationClassLoader.findClass(
InstallationClassLoader.java:88)
at
org.apache.servicemix.jbi.loaders.ParentFirstClassLoader.loadClass(
ParentFirstClassLoader.java:74)
at
org.apache.servicemix.jbi.loaders.InstallationClassLoader.loadClass(
InstallationClassLoader.java:99)
at
org.apache.servicemix.jbi.framework.InstallerMBeanImpl.createBootstrap(
InstallerMBeanImpl.java:84)
at org.apache.servicemix.jbi.framework.InstallerMBeanImpl.<init>(
InstallerMBeanImpl.java:74)
at
org.apache.servicemix.jbi.framework.InstallationService.initializeInstaller(
InstallationService.java:520)
at
org.apache.servicemix.jbi.framework.InstallationService.doInstallComponent(
InstallationService.java:475)
at
org.apache.servicemix.jbi.framework.InstallationService.doInstallArchive(
InstallationService.java:427)
at org.apache.servicemix.jbi.framework.InstallationService.install(
InstallationService.java:349)
at org.apache.servicemix.jbi.framework.InstallationService.install(
InstallationService.java:342)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(
AutoDeploymentService.java:220)
at org.apache.servicemix.jbi.framework.AutoDeploymentService$2.run(
AutoDeploymentService.java:507)
at org.apache.geronimo.connector.work.WorkerContext.run(
WorkerContext.java:291)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:595)
Any thoughts?