Hello all,
I'm trying to deploy the latest build of Hudson (1.200) onto my copy of JBoss5 beta4.
Jdk=1.6.0_03 on Ubuntu (Gutsy Gibbon) 7.10.
After dropping the hudson.war into deploy, I'm getting an error, at which root is the
idea that the hudson.war "File cannot contain children". Mystified, I checked
the source and it seemed that I could not simply drop an unexploded war here. So fine, I
exploded the war and restarted. I'm now getting the same error, only on one of the
jarfiles in WEB-INF/lib.
What gives? Why does it seem that I cannot put any unexploded artifacts into deploy?
I've googled, but come up fairly empty on ways to fix this problem.
Here's the full, latest trace. I'll put other context-like information below the
trace:
2008-03-22 22:43:21,034 DEBUG
[org.jboss.web.tomcat.service.deployers.WarClassLoaderDeployer] Error during deploy:
vfsfile:/opt/jboss-5.0.0.Beta4/server/default/deploy/hudson.war/
org.jboss.deployers.spi.DeploymentException: Error creating classloader for
vfsfile:/opt/jboss-5.0.0.Beta4/server/default/deploy/hudson.war/
at
org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at
org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext.createClassLoader(AbstractDeploymentContext.java:519)
at
org.jboss.deployers.structure.spi.helpers.AbstractDeploymentUnit.createClassLoader(AbstractDeploymentUnit.java:162)
at
org.jboss.deployers.spi.deployer.helpers.AbstractClassLoaderDeployer.deploy(AbstractClassLoaderDeployer.java:53)
at
org.jboss.web.tomcat.service.deployers.WarClassLoaderDeployer.deploy(WarClassLoaderDeployer.java:104)
at
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
at
org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:246)
at
org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:131)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:408)
at org.jboss.Main.boot(Main.java:208)
at org.jboss.Main$1.run(Main.java:534)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.Error: Error visiting
FileHandler(a)17387946[path=hudson.war/WEB-INF/lib/hudson-core-1.200.jar
context=file:/opt/jboss-5.0.0.Beta4/server/default/deploy/
real=file:/opt/jboss-5.0.0.Beta4/server/default/deploy/hudson.war/WEB-INF/lib/hudson-core-1.200.jar]
at
org.jboss.deployers.vfs.plugins.classloader.VFSClassLoaderPolicy.determineAllPackages(VFSClassLoaderPolicy.java:442)
at
org.jboss.deployers.vfs.plugins.classloader.VFSClassLoaderPolicy.setExportAll(VFSClassLoaderPolicy.java:189)
at
org.jboss.web.tomcat.service.deployers.WarClassLoaderDeployer.createClassLoaderPolicy(WarClassLoaderDeployer.java:144)
at
org.jboss.deployers.plugins.classloading.AbstractClassLoaderSystemDeployer.createClassLoader(AbstractClassLoaderSystemDeployer.java:124)
at
org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext.createClassLoader(AbstractDeploymentContext.java:510)
... 21 more
Caused by: java.lang.IllegalStateException: File cannot contain children:
FileHandler(a)17387946[path=hudson.war/WEB-INF/lib/hudson-core-1.200.jar
context=file:/opt/jboss-5.0.0.Beta4/server/default/deploy/
real=file:/opt/jboss-5.0.0.Beta4/server/default/deploy/hudson.war/WEB-INF/lib/hudson-core-1.200.jar]
at org.jboss.virtual.VirtualFile.visit(VirtualFile.java:361)
at
org.jboss.deployers.vfs.plugins.classloader.VFSClassLoaderPolicy.determineAllPackages(VFSClassLoaderPolicy.java:438)
... 25 more
-----------------
There's another seemingly related message in the log, before this one:
2008-03-22 22:43:14,258 DEBUG [org.jboss.virtual.plugins.context.file.FileSystemContext]
Error opening jar file:
file:/opt/jboss-5.0.0.Beta4/server/default/deploy/hudson.war/WEB-INF/lib/hudson-core-1.200.jar
reason=error in opening zip file
This is mysterious, because I can unjar that file just fine. The file ownership is for
all files in the exploded war is set to my jboss daemon's user, and all read
permissions are active.
Additional info about my setup:
I've made some tiny tweaks to affect startup, such as adding
"-Dsun.lang.ClassLoader.allowArraySyntax=true" for JDK6 compatability, and
"-Djava.awt.headless=true" as specified by the hudson docs.
Hudson is supposed to run without need of a database, but if it helps analysis at all, I
have a MySql datasource as well as the out-of-the-box HyperSonic.
I'm running the default server, which I've attempted to change by adding Ales'
spring-jboss bridge, and also adding rmi-iiop. I sincerely doubt this is causing the
problem, but hey, it's an extra data point.
Folks, I only post in these here forums when I'm totally stumped. I'm lost. Can
anybody give me a clue?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138458#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...