If a jar:file: is used to create VirtualFile it's cached under '/' this
matches all following requests and thus fails
----------------------------------------------------------------------------------------------------------------------
Key: JBVFS-101
URL:
https://jira.jboss.org/jira/browse/JBVFS-101
Project: JBoss VFS
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 2.1.0.GA
Reporter: Carlo de Wolf
Assignee: Ales Justin
Priority: Critical
09:39:02,811 INFO [ServerImpl] Starting JBoss (Microcontainer)...
09:39:02,812 INFO [ServerImpl] Release ID: JBossAS Bootstrap 1.0.0-SNAPSHOT
09:39:02,812 INFO [ServerImpl] Bootstrap URL: null
09:39:02,812 INFO [ServerImpl] Home Dir:
/home/carlo/work/jboss-head/build/output/jboss-6.0.0.Alpha1
09:39:02,813 INFO [ServerImpl] Home URL:
file:/home/carlo/work/jboss-head/build/output/jboss-6.0.0.Alpha1/
09:39:02,813 INFO [ServerImpl] Library URL:
file:/home/carlo/work/jboss-head/build/output/jboss-6.0.0.Alpha1/lib/
09:39:02,813 INFO [ServerImpl] Patch URL: null
09:39:02,813 INFO [ServerImpl] Common Base URL:
file:/home/carlo/work/jboss-head/build/output/jboss-6.0.0.Alpha1/common/
09:39:02,814 INFO [ServerImpl] Common Library URL:
file:/home/carlo/work/jboss-head/build/output/jboss-6.0.0.Alpha1/common/lib/
09:39:02,814 INFO [ServerImpl] Server Name: default
09:39:02,814 INFO [ServerImpl] Server Base Dir:
/home/carlo/work/jboss-head/build/output/jboss-6.0.0.Alpha1/server
09:39:02,814 INFO [ServerImpl] Server Base URL:
file:/home/carlo/work/jboss-head/build/output/jboss-6.0.0.Alpha1/server/
09:39:02,815 INFO [ServerImpl] Server Config URL:
jar:file:/home/carlo/work/reloaded/vdf-bootstrap/target/jboss-reloaded-vdf-bootstrap-0.1.0-SNAPSHOT.jar!/server/default/conf/
09:39:02,815 INFO [ServerImpl] Server Home Dir:
/home/carlo/work/jboss-head/build/output/jboss-6.0.0.Alpha1/server/default
09:39:02,815 INFO [ServerImpl] Server Home URL:
file:/home/carlo/work/jboss-head/build/output/jboss-6.0.0.Alpha1/server/default/
09:39:02,815 INFO [ServerImpl] Server Data Dir:
/home/carlo/work/jboss-head/build/output/jboss-6.0.0.Alpha1/server/default/data
09:39:02,815 INFO [ServerImpl] Server Library URL:
file:/home/carlo/work/jboss-head/build/output/jboss-6.0.0.Alpha1/server/default/lib/
09:39:02,815 INFO [ServerImpl] Server Log Dir:
/home/carlo/work/jboss-head/build/output/jboss-6.0.0.Alpha1/server/default/log
09:39:02,815 INFO [ServerImpl] Server Native Dir:
/home/carlo/work/jboss-head/build/output/jboss-6.0.0.Alpha1/server/default/tmp/native
09:39:02,815 INFO [ServerImpl] Server Temp Dir:
/home/carlo/work/jboss-head/build/output/jboss-6.0.0.Alpha1/server/default/tmp
09:39:02,816 INFO [ServerImpl] Server Temp Deploy Dir:
/home/carlo/work/jboss-head/build/output/jboss-6.0.0.Alpha1/server/default/tmp/deploy
09:39:04,220 INFO [ServerImpl] Starting Microcontainer,
bootstrapURL=jar:file:/home/carlo/work/reloaded/vdf-bootstrap/target/jboss-reloaded-vdf-bootstrap-0.1.0-SNAPSHOT.jar!/server/default/conf/bootstrap.xml
...
09:39:18,925 ERROR [AbstractKernelController] Error installing to Instantiated:
name=profile-classloader:0.0.0 state=Described
java.lang.RuntimeException: Error creating VFS file for
file:/home/carlo/work/jboss-head/build/output/jboss-6.0.0.Alpha1/server/default//conf
at
org.jboss.classloading.spi.vfs.dependency.VFSClassLoaderPolicyModule.determineVFSRoots(VFSClassLoaderPolicyModule.java:178)
at
org.jboss.classloading.spi.vfs.dependency.VFSClassLoaderPolicyModule.determinePolicy(VFSClassLoaderPolicyModule.java:210)
at
org.jboss.classloading.spi.vfs.dependency.VFSClassLoaderPolicyModule.determinePolicy(VFSClassLoaderPolicyModule.java:52)
at
org.jboss.classloading.spi.dependency.policy.ClassLoaderPolicyModule.getPolicy(ClassLoaderPolicyModule.java:195)
at
org.jboss.classloading.spi.vfs.dependency.VFSClassLoaderPolicyModule.getPolicy(VFSClassLoaderPolicyModule.java:204)
at
org.jboss.classloading.spi.vfs.dependency.VFSClassLoaderPolicyModule.getPolicy(VFSClassLoaderPolicyModule.java:52)
at
org.jboss.classloading.spi.dependency.policy.ClassLoaderPolicyModule.registerClassLoaderPolicy(ClassLoaderPolicyModule.java:131)
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:59)
at
org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
at
org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
at
org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
at
org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
at
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
at
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
at
org.jboss.kernel.plugins.dependency.InstantiateAction.installActionInternal(InstantiateAction.java:66)
at
org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
at
org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
at
org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at
org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at
org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
at
org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:319)
at
org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:297)
at
org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)
at
org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicKernelDeployer.java:76)
at
org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:91)
at
org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:161)
at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:138)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
at org.jboss.reloaded.server.ReloadedServerImpl.start(ReloadedServerImpl.java:166)
at org.jboss.reloaded.server.ReloadedServerImpl.create(ReloadedServerImpl.java:65)
at org.jboss.reloaded.main.Main.boot(Main.java:53)
at org.jboss.reloaded.main.Main$1.call(Main.java:102)
at org.jboss.reloaded.main.Main$1.call(Main.java:99)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.IOException: Child not found
home/carlo/work/jboss-head/build/output/jboss-6.0.0.Alpha1/server/default//conf/ for
JarEntryHandler@3346361[path=
context=jar:file:/home/carlo/work/reloaded/vdf-bootstrap/target/jboss-reloaded-vdf-bootstrap-0.1.0-SNAPSHOT.jar!/server/default/conf/
real=jar:jar:file:/home/carlo/work/reloaded/vdf-bootstrap/target/jboss-reloaded-vdf-bootstrap-0.1.0-SNAPSHOT.jar!/server/default/conf/!/server/default/conf/],
available children: [JarEntryHandler@9171948[path=server/default/conf/bootstrap
context=jar:file:/home/carlo/work/reloaded/vdf-bootstrap/target/jboss-reloaded-vdf-bootstrap-0.1.0-SNAPSHOT.jar!/server/default/conf/
real=jar:jar:file:/home/carlo/work/reloaded/vdf-bootstrap/target/jboss-reloaded-vdf-bootstrap-0.1.0-SNAPSHOT.jar!/server/default/conf/!/server/default/conf/bootstrap/],
JarEntryHandler(a)3880791[path=server/default/conf/bootstrap.xml
context=jar:file:/home/carlo/work/reloaded/vdf-bootstrap/target/jboss-reloaded-vdf-bootstrap-0.1.0-SNAPSHOT.jar!/server/default/conf/
real=jar:jar:file:/home/carlo/work/reloaded/vdf-bootstrap/target/jboss-reloaded-vdf-bootstrap-0.1.0-SNAPSHOT.jar!/server/default/conf/!/server/default/conf/bootstrap.xml]]
at
org.jboss.virtual.plugins.registry.DefaultVFSRegistry.findHandler(DefaultVFSRegistry.java:109)
at
org.jboss.virtual.plugins.registry.DefaultVFSRegistry.getFile(DefaultVFSRegistry.java:88)
at org.jboss.virtual.VFS.getRoot(VFS.java:212)
at
org.jboss.classloading.spi.vfs.dependency.VFSClassLoaderPolicyModule.getVirtualFile(VFSClassLoaderPolicyModule.java:196)
at
org.jboss.classloading.spi.vfs.dependency.VFSClassLoaderPolicyModule.determineVFSRoots(VFSClassLoaderPolicyModule.java:170)
... 46 more
public void testJarPath() throws Exception
{
URL url = getResource("/vfs/test/jar1.jar");
VirtualFile manifest = VFS.getRoot(url).getChild("META-INF/MANIFEST.MF");
String expected = VFSUtils.stripProtocol(manifest.toURI());
URL jarUrl = new URL("jar:" + url.toExternalForm() +
"!/META-INF/MANIFEST.MF");
String actual = VFSUtils.stripProtocol(jarUrl.toURI());
assertEquals("path from jar:file: url is not usable", expected, actual);
}
--
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