glassfish scripts are not working in harmony when creating and starting domains

Bug #342718 reported by reliable-robin-22
2
Affects Status Importance Assigned to Milestone
glassfish (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: glassfish

hi folks,

when creating a domain in GLASSFISH using command:
asadmin create-domain somedomain

leaving the --homedir blank; the new domain will be create in $HOME/domains/somedomain

however when trying to start the same domain with:
asadmin start-domain somedomain

it gives an error as it tries to find the domain in:

$HOME/glassfishv2/somedomain

it is a minor problem but an annoying one that could be resolved swiftly.

see below for a clarification of the bug.

asadmin was run by user 'glassfish' which has its home defined as '/var/lib/glassfishv2'

glassfish@myServer:/var/lib/glassfishv2$ asadmin create-domain --adminport 4847 sometest
Please enter the admin user name>admin
Please enter the admin password>
Please enter the admin password again>
Please enter the master password [Enter to accept the default]:>
Please enter the master password again [Enter to accept the default]:>
Using port 4847 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.
Domain being created with profile:cluster, as specified by variable AS_ADMIN_PROFILE in configuration file.
Security Store uses: JKS
Domain sometest created.

glassfish@myServer:/var/lib/glassfishv2$ asadmin stop-domain sometest
Domain sometest does not exist in /var/lib/glassfishv2/glassfishv2/sometest. Use a different domain name or the --domaindir option.
CLI157 Could not stop the domain sometest.

glassfish@myServer:/var/lib/glassfishv2$

please let me know if you need further info to fix this problem.

Nicolas

system details:
lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10

glassfishv2:
  Installed: 2.0.1-0ubuntu5
  Candidate: 2.0.1-0ubuntu5
  Version table:
 *** 2.0.1-0ubuntu5 0
        500 http://gb.archive.ubuntu.com intrepid/multiverse Packages
        100 /var/lib/dpkg/status

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.