[jboss-jira] [JBoss JIRA] Commented: (JBAS-7572) Presence of jboss-classloading.xml in a jar in WEB-INF/lib breaks classloading for web app
David Lloyd (JIRA)
jira-events at lists.jboss.org
Tue Dec 22 23:49:31 EST 2009
[ https://jira.jboss.org/jira/browse/JBAS-7572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12501453#action_12501453 ]
David Lloyd commented on JBAS-7572:
-----------------------------------
I recommend deleting the jboss-classloading.xml from the JAR. I will definitely be removing this from all future releases of marshalling (and everything else).
> Presence of jboss-classloading.xml in a jar in WEB-INF/lib breaks classloading for web app
> ------------------------------------------------------------------------------------------
>
> Key: JBAS-7572
> URL: https://jira.jboss.org/jira/browse/JBAS-7572
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: ClassLoading
> Affects Versions: JBossAS-5.1.0.GA
> Reporter: Michael Neale
> Assignee: Scott M Stark
> Priority: Critical
>
> It was the marshalling jar (specifically) from infinispan that first triggered this for me. Was fine in AS 4.x etc... seems to be 5.1 (and EAP5)
> Shows up when deploying as something like:
> org.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/Users/michaelneale/Downloads/jboss-5.1.0.GA/server/default/deploy/infinispan.war/
> at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
> at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:177)
> <snip>
> Caused by: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:700)
> at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:63)
> <snip>
> org.jboss.wsf.container.jboss50.deployer.JAXWSDeployerHookPreJSE.getRelevantServlets(JAXWSDeployerHookPreJSE.java:121)
> at org.jboss.wsf.container.jboss50.deployer.JAXWSDeployerHookPreJSE.isWebServiceDeployment(JAXWSDeployerHookPreJSE.java:97)
> at org.jboss.wsf.container.jboss50.deployer.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:65)
> at org.jboss.wsf.container.jboss50.deployer.AbstractWebServiceDeployer.internalDeploy(AbstractWebServiceDeployer.java:60)
> ..
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list