dev@glassfish.java.net

Re: Deploy a web app, rename domain.xml to domain.bak, can't restart

From: Kedar Mhaswade <Kedar.Mhaswade_at_Sun.COM>
Date: Fri, 08 Feb 2008 10:10:17 -0800

Jerome Dochez wrote:
>
> On Feb 8, 2008, at 9:56 AM, Kedar Mhaswade wrote:
>
>>
>>
>> Jerome Dochez wrote:
>>> are you changing any Config objects ? up to now, the domain tree was
>>> unchanged when deploying, has this changed ?
>>
>> This is a good time to decide what we should do here. My feeling is
>> that since config access has been improved in V3, we should have
>> an app/module entry created in domain.xml during deployment
>> and removed during undeployment.
>>
>> This also facilitates the target based deployment/undeployment.
>>
>> What do you think?
> yes but not today, we need to have admin/deployment/containers in sync
> to do that successfully....
OK, for TP2 then, we will have no config access during deployment/undeployment.

The problem might be then with enabling/disabling of applications using
application's dotted name.enable=true/false.

>
>>
>>
>>> On Feb 8, 2008, at 9:08 AM, Tim Quinn wrote:
>>>> Hi.
>>>>
>>>> If I start the server successfully using java -jar <the-main-jar>
>>>> and then I deploy a web app, and the domain.xml file is renamed to
>>>> domain.bak. It is never renamed back to .xml nor is a new
>>>> domain.xml created - at least not anywhere I have found and I've
>>>> looked. The same thing happens if I restart the server with a web
>>>> app deployed already (having renamed the domain.bak back to
>>>> domain.xml or else the server will not start).
>>>> Interestingly, using java -jar to start the server I do not see the
>>>> class not found exceptions for
>>>> com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
>>>> that I see when I run using mvn gf:run.
>>>>
>>>> Further, if I run with mvn gf:run then I see the exceptions I wrote
>>>> about last night but I *do *get a new domain.xml in the domain's
>>>> config directory!
>>>>
>>>> Odd. Any ideas?
>>>>
>>>> - Tim
>>
>> ---------------------------------------------------------------------
>> 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
>