Re: Jboss deployment

Nilton Lessa <[email protected]> Mon, 7 Mar 2005 14:35:47 -0300
Newsgroups gmane.comp.web.webobjects.admin
Message-ID <[email protected]>
Wade,

Fist of all, thank you very much for your help.

I followed your instructions and comment the env-entry in line 145:
<env-entry>
     <description>Enable certain debug groups. See the NSLog javadoc for  
details.</description>
     <env-entry-name>wo/NSDebugGroups</env-entry-name>
     <env-entry-value>NSLog.DebugGroupWebObjects</env-entry-value>
     <env-entry-type>java.lang.String</env-entry-type>
   </env-entry>-

I commented also the entry
  <!-- <resource-ref>
     <description>The data source to be used by EOF. If there are  
multiple data sources,
                  then the definition below must be used to configure  
which JDBC URL (Model) should
                  use which data source. If EOF should use a JDBC driver  
directly, this section must be commented out</description>
     <res-ref-name>jdbc/DefaultDataSource</res-ref-name>
     <res-type>javax.sql.DataSource</res-type>
     <res-auth>Container</res-auth>
   </resource-ref>

I guessed it was not necesary i my case.

And it worked on JBoss!

I will make some more tests about these entries to certify what was  
going wrong in the web.xml.template.

Again, thank you very much.

Nilton Lessa
On 07/03/2005, at 11:37, Wade Price wrote:

> 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
>
>