JBoss Community

Re: Custom Deployer - migrate from JBoss4.2

created by Mikhail Kolesnikov in JBoss Microcontainer - View the full discussion

I have setted up my Structure Deployer to recognize (return true) some deployments I'm not really need. But JBoss5 returned me a message like that:

14:47:23,704 ERROR [AbstractKernelController] Error installing to PostClassLoader: name=vfsfile:/usr/local/jboss-5.1.0.GA/server/default/deploy/test.onyma/ state=ClassLoader mode=Manual requiredState=PostClassLoader

org.jboss.deployers.spi.DeploymentException: Cannot process metadata

    at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)

...

Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: test.TestJob from BaseClassLoader@692a88{ ... }}

    at org.jboss.deployers.plugins.annotations.WeakClassLoaderHolder.loadClass(WeakClassLoaderHolder.java:76)

Seems that annotations from this "not need" subdeployments are still recognized by EJBDeployer or some other deployers. How can I tell other deployers not to check "not need" package at all?

Reply to this message by going to Community

Start a new discussion in JBoss Microcontainer at Community