Re: Jboss deployment

Wade Price <[email protected]> Mon, 7 Mar 2005 09:37:53 -0500
Newsgroups gmane.comp.web.webobjects.admin
Message-ID <[email protected]>
Nilton,

I've been trying the same thing. When I had trouble with JBoss, I tried  
deploying to Tomcat directly. I had better luck, and it helped me find  
some problems. However, I wouldn't classify my efforts as successful.

Here's what I've found so far.

1) There is a bug in the file web.xml.template in the project.  
Specifically, on line 145, there is an extra <env-entry> tag that  
causes the document to be invalid. Remove or comment out this line.

2) With that bug fixed, I can run the application under Tomcat. the URL  
to access the app would be like so:

http://localhost:9006/HelloWorld/WebObjects/HelloWorld

However, using the Tomcat manager, if I stop and start the app, I get  
an error loading the app. The error, embedded in  
/Library/Tomcat/logs/catalina.out looks like this:

Caused by: java.lang.IllegalStateException:  
<com.webobjects.foundation.NSBundle> warning: There is already a unique  
instance for Bundle named 'JavaFoundation'.  Use  
NSBundle.bundleForName(JavaFoundation) to access it:  
<com.webobjects.foundation.NSBundle name:'JavaFoundation'  
bundlePath:'/Library/Tomcat/webapps/HelloWorld/WEB-INF/lib/ 
JavaFoundation.jar' packages:'("com.webobjects.foundation",  
"com.webobjects.foundation.xml")' 209 classes >

The only way I can get the app running at this point is to stop/start  
Tomcat.

3) I still can't get my app to run under JBoss. However, the reason  
appears to be related to the same problem I experienced under Tomcat.  
Is this case, the error looks like this:

09:22:03,272 ERROR [MainDeployer] could not start deployment:  
file:/Library/JBoss/3.2/deploy/HelloWorld.war
org.jboss.deployment.DeploymentException: Error during deploy; - nested  
throwable: (javax.naming.NameAlreadyBoundException)



Wade


On Mar 4, 2005, at 3:26 PM, Nilton Lessa wrote:

> Hi list,
>
> I am trying to deploy an app (a test one, with only the Main  
> component) on Jboss. I followed the Porject assistant to build the app  
> and built it app using xcodebuild in terminal
>
> The WAR was generated and put into /Library/Jboss/3.2/deploy.
>
> But I can't access the app..I am newbie on Jboss issues and could   
> anybody tell me if is it necessary any manual setting in any file? is  
> it necessary the woa app be placed in Library/webObjects/Applications?  
> I really searched for documentation about these issues  and could't  
> find ...
>
> Hope I am not boring the list with something obvious...
>
> Bests and thank you for any help.
>
> Nilton
>
> _______________________________________________
> WebObjects-admin mailing list
> [email protected]
> http://www.omnigroup.com/mailman/listinfo/webobjects-admin