dev@glassfish.java.net

Re: Cannot create domain

From: Jerome Dochez <Jerome.Dochez_at_Sun.COM>
Date: Tue, 27 Jan 2009 15:15:13 -0800

On Jan 27, 2009, at 2:08 PM, Kedar Mhaswade wrote:

> Yes, export AS_DEBUG=true in your shell.
>
> However, the problem is simple. The class asadmin is looking
> for is recently moved to securitycommon.jar, which the script
> knows nothing about.
>
> I will fix this. But before that -- is securitycommon.jar the
> final resting place for this class: com/sun/enterprise/security/
> common/Util.class
this class has always been there. Before they were trying to load
resources from that securitycommon.jar and it was failing more or less
silently.

You can safely add the securitycommon to the asadmin cli classpath.

thanks, jerome

>
>
> Can someone confirm that for me please?
>
> Thanks.
>
>
> Shing Wai Chan wrote:
>> Do we have a way to turn on debug in CLI?
>> Shing Wai Chan
>> Lloyd Chambers wrote:
>>> Full stack trace from where? No server.log file yet exists.
>>>
>>> If I try a 2nd time, I get:
>>>
>>> MB2:code lloyd$ !asadmin
>>> asadmin create-domain --user admin --adminport 5848 domain2
>>> Domain domain2 already exists in /work/v3/glassfish/domains. Use a
>>> different domain name or the --domaindir option.
>>> CLI130 Could not create domain, domain2
>>> Command create-domain failed.
>>> MB2:code lloyd$
>>>
>>> B2:code lloyd$ ls /v3/glassfish/domains/domain2/
>>> applications autodeploy bin config
>>> docroot lib logs
>>>
>>>
>>> On Jan 27, 2009, at 12:43 PM, Jerome Dochez wrote:
>>>
>>>> I think this may be linked to a resource loading fix I had to
>>>> make. Do you have the full trace ?
>>>>
>>>> Jerome
>>>>
>>>> On Jan 27, 2009, at 10:07 AM, Shing Wai Chan <Shing-Wai.Chan_at_Sun.COM
>>>> > wrote:
>>>>
>>>>> Hi,
>>>>> I have just update my workspace, remove domain1 and recreate
>>>>> domain1 and see the following error:
>>>>>
>>>>> asadmin create-domain --user admin --adminport 4848 domain1
>>>>>
>>>>> Enter admin password>adminadmin
>>>>> Enter admin password again>adminadmin
>>>>> Using port 4848 for Admin.
>>>>> Using default port 8080 for HTTP Instance.
>>>>> Using default port 7676 for JMS.
>>>>> Using default port 3700 for IIOP.
>>>>> Using default port 8181 for HTTP_SSL.
>>>>> Using default port 3820 for IIOP_SSL.
>>>>> Using default port 3920 for IIOP_MUTUALAUTH.
>>>>> Using default port 8686 for JMX_ADMIN.
>>>>> java.lang.NoClassDefFoundError: com/sun/enterprise/security/
>>>>> common/Util
>>>>> Command create-domain failed.
>>>>>
>>>>> I have tried both the web and GlassFish distribution.
>>>>> Is it a known issue?
>>>>>
>>>>> Thanks.
>>>>> Shing Wai Chan
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> 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
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>