[JBoss JIRA] Created: (JBAS-4322) Wrong context path in Embedded JBoss JAR deployment
by Christian Bauer (JIRA)
Wrong context path in Embedded JBoss JAR deployment
---------------------------------------------------
Key: JBAS-4322
URL: http://jira.jboss.com/jira/browse/JBAS-4322
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Deployment services
Reporter: Christian Bauer
Assigned To: Dimitris Andreadis
Embedded JBoss build from SVN trunk yesterday:
07:47:14,079 DEBUG [MainDeployerImpl] Add deployment context: vfsjar:file:/Users/turin/work/seamng/app/lib/seamng-config.jar!/deployers/deployers/aspect-deployer-beans.xml
07:47:14,082 ERROR [MainDeployerImpl] Unable to determine structure of deployment: vfsjar:file:/Users/turin/work/seamng/app/lib/seamng-config.jar!/deployers/deployers/aspect-deployer-beans.xml
org.jboss.deployers.spi.DeploymentException: Failed to process context: vfsjar:file:/Users/turin/work/seamng/app/lib/seamng-config.jar!/deployers/deployers/aspect-deployer-beans.xml
at org.jboss.deployers.plugins.structure.DefaultStructureBuilder.populateContext(DefaultStructureBuilder.java:94)
at org.jboss.deployers.plugins.deployment.MainDeployerImpl.determineStructure(MainDeployerImpl.java:684)
at org.jboss.deployers.plugins.deployment.MainDeployerImpl.addDeploymentContext(MainDeployerImpl.java:352)
at org.jboss.embedded.DeploymentGroup.add(DeploymentGroup.java:164)
at org.jboss.embedded.DeploymentGroup.addVirtualFiles(DeploymentGroup.java:205)
at org.jboss.embedded.DeploymentGroup.addDirectoryByResource(DeploymentGroup.java:471)
at org.jboss.embedded.DeploymentScanner.start(DeploymentScanner.java:99)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:55)
at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:108)
at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:103)
at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:145)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:197)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:136)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:233)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:724)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:445)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:555)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:489)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:289)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:192)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:302)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:272)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:119)
at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:96)
at org.jboss.embedded.Bootstrap.deployBaseBootstrapUrl(Bootstrap.java:150)
at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:162)
at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:201)
at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:214)
at my.app.HelloWorld.main(HelloWorld.java:37)
Caused by: java.io.FileNotFoundException: JarEntryHandler@10196585[path= context=jar:file:/Users/turin/work/seamng/app/lib/seamng-config.jar!/deployers/ real=jar:jar:file:/Users/turin/work/seamng/app/lib/seamng-config.jar!/deployers/!/deployers/] has no child: deployers
at org.jboss.virtual.plugins.context.jar.JarEntryHandler.createChildHandler(JarEntryHandler.java:197)
at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:280)
at org.jboss.virtual.plugins.context.jar.JarEntryHandler.findChild(JarEntryHandler.java:171)
at org.jboss.virtual.plugins.context.AbstractVFSContext.findChild(AbstractVFSContext.java:118)
at org.jboss.virtual.VFS.findChild(VFS.java:205)
at org.jboss.deployers.plugins.structure.DefaultStructureBuilder.populateContext(DefaultStructureBuilder.java:74)
... 34 more
This is the JAR on my classpath:
0 Thu Apr 12 07:38:50 CEST 2007 conf/
9374 Wed Apr 11 16:49:12 CEST 2007 conf/bootstrap-beans.xml
4437 Thu Apr 12 07:40:24 CEST 2007 conf/jboss-service.xml
11295 Wed Apr 11 16:49:12 CEST 2007 conf/jbossjta-properties.xml
0 Thu Apr 12 08:19:44 CEST 2007 deploy/
22444 Wed Apr 11 16:49:12 CEST 2007 deploy/ejb3-interceptors-aop.xml
2402 Wed Apr 11 16:49:12 CEST 2007 deploy/jboss-local-jdbc.rar
2517 Wed Apr 11 16:49:12 CEST 2007 deploy/jboss-xa-jdbc.rar
0 Wed Apr 11 16:49:12 CEST 2007 deployers/
504 Wed Apr 11 16:49:12 CEST 2007 deployers/aspect-deployer-beans.xml
5190 Wed Apr 11 16:49:12 CEST 2007 deployers/ejb3-deployers-beans.xml
1900 Wed Apr 11 16:49:12 CEST 2007 deployers/jca-deployers-beans.xml
194 Wed Apr 11 16:49:12 CEST 2007 jndi.properties
If I have the same structure exploded on my classpath, it works. The JAR scanner adds a duplicate subdirectory name to the context path.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years