[Installation, Configuration & DEPLOYMENT] - Deploying Hudson on JBoss5 beta4
by gt4431b
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#4138458
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138458
18 years, 1 month
[JBoss Portal] - JBoss5 and Portal
by gt4431b
Nonspecific questions:
1. (More relevant to the problem at hand) How much pain and suffering would I be in for if I were to try installing the latest Portal onto JBoss 5? I can find no information one way or the other. I realize I could try to beat my head against this for a while to find out for sure, but I'd love a short answer.
2. (More rhetorical) Why doesn't JBoss use codenames for various releases? Go google "Jboss5 portal" and you will see everything in the world about page 5, chapter 5, subchapter 5, MySql 5, 5 o'clock, everything about JBoss portal except information about JBoss5. Ubuntu uses a great naming model -- "Gutsy Gibbon" for example eliminates all googlambiguity.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138450#4138450
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138450
18 years, 1 month
[JBoss Getting Started Documentation] - Re: Old documentation published as JBoss 5
by gt4431b
"PeterJ" wrote : When you configure JBoss Messaging to use MySQL, make sure you get the correct version of JBoss Messaging. When I went through the step to do this with beta4 I mistakenly used an incorrect Messaging version and spent most of a day scratching my head as to why it did not work. The misleading error message did not help. Anyway, JBossAS 5.0.0.beta4 uses Messaging 1.4.1.beta1.
|
| The book JBoss in Action (http://www.manning.com/jamae), which is based on JBossAS 5.0, has a chapter on JBoss Messaging and describes how to set Messaging up to use a database. The example given in the book is specific to PostgreSQL, but the steps work equally well with MySQL (keeping the page count down prevented me from providing the steps for both databases, but the source code that will accompany the book handles both). And chapter 15 provides the rest of the steps necessary to switch from Hypersonic to another database.
Sounds like that's precisely the same problem I'm having. Thanks lots for the assist!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138442#4138442
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138442
18 years, 1 month
[JBoss Tools (users)] - Automatically Deploying .rar from eclipse
by kneumei
I am working on a project where I will need to build several resource adapters to deploy on jboss. I am using eclipse 3.3 with the J2EE and JBoss tools plugins. I have been able to automatically deploy beans on the server by right clicking on the server and adding the bean project to the server, but I have not been able to deploy a connector project (i.e. resource adapter) in the same way, The resource adapter project appears in the "add and remove projects" dialogue box, and after I click "add", the project appears to have been added. However, when I open up the 'deploy' directory in Jboss, the rar file is not there. In order to deploy, I have to build a rar file and manually drag and drop it into the server.
It looks like the J2EE plugins provided by eclipse do not allow this functionality either. Am I missing something, or can one really not automatically deploy resource adapters from eclipse?
Thanks,
Kyle
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138441#4138441
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138441
18 years, 1 month