dev@glassfish.java.net

Re: Different root context for the same app

From: Arun Gupta <Arun.Gupta_at_Sun.COM>
Date: Thu, 10 Apr 2008 17:55:42 -0700

>>> Are you deploying this to a JRuby container running on V3 or are you
>>> packaging it as a WAR and then deploying to V3? And if the latter, are
>> Native Ruby deployment
> Are you telling that a native RoR app can have a WEB-INF/sun-web.xml
> that would be used by GF V3 RoR container?
Yes

> I am not sure it will ever work...
It's working if the app is redeployed but not if server is restarted.

-Arun

>
> Ludo
>>
>>> you using asadmin to deploy the app, or are you using the V3 Plugin?
>> asadmin
>>
>> -Arun
>>>
>>> -Peter
>>>
>>> Arun Gupta wrote:
>>>> I've created a Rails app and added WEB-INF/sun-web.xml directory
>>>> with the contents as:
>>>>
>>>> -- cut here --
>>>> <sun-web-app error-url="">
>>>> <context-root>/ruby_comet</context-root>
>>>> <class-loader delegate="true"/>
>>>> -- cut here --
>>>>
>>>> If the app is deployed then the following message is shown:
>>>>
>>>> INFO: Loading application ttt_ruby at /ttt_ruby
>>>>
>>>> However if I restart the server (w/o re-deploying the app) then the
>>>> following message is shown:
>>>>
>>>> INFO: Loading application ttt_ruby at /ruby_comet
>>>>
>>>> The same app is getting loaded in different root context. And indeed
>>>> this is verified by accessing the URL as well.
>>>>
>>>> Am I missing something or this is a bug ?
>>>>
>>>> -Arun
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>

-- 
Application Platform, Sun Microsystems, Inc.
Blog: http://blogs.sun.com/arungupta