I have read the manuals and guides but still can't get glassfish to set up on my machine.
I downloaded the latest version of glassfish in zip format.
I unzipped this using the terminal so i have my glassfish3 folder.
When i navigate to this folder in terminal glassfish3/bin i enter the command start-domain.
This keeps returning an error asadmin: command not found
If i look in the bin folder i have the asadmin file but it wont execute when i navigate to it this way.
You posted that reply when i was in the middle of mine.
I dont think i have a bash file
Could you give me a step by step of how to create one, where to put it and what to include etc? Not really sure what i should be doing.
When all is said and done, I believe that the lack of the trailing . on PATH may be what caused the "not found" error. Nothing was set up to cause the current folder to be searched as part of the PATH.
I'd be surprised if this doesn't solve the issue (but stranger things have happened).
Thank you. Well that has worked now. i can now input the commands i want BUT, and there had to be a but didn't there. I am now getting another error.
asadmin> asadmin start-domain
Remote server does not listen for requests on [localhost:4848]. Is the server up?
No such local command, asadmin. To run remote commands, start the application server (e.g. 'asadmin start-domain').
Command asadmin failed.
I will have a search and see what problem this could be.
Does anyone have any ideas about this? Really need it working asap but still have the same problem. I read somewhere that i should check my hostname resolves to an IP address? I can navigate to my etc/hosts file i just dont know what i am looking for, or what to change.
Hello you should able to cd to the bin directory and type
Make sure there is a ./ (dot + slash) in front to indicate it's the current directory.
To stop it
Oh there are in fact 2 bin directories. Say you have it installed in glassfish3 dir. The first one is in glassfish3/bin and the other one in glassfish3/glassfish/bin. Using either of these are fine.
Hope this helps.
K. Tsang OCPJP OCMJEA SOACP PMP
posted 6 years ago
I dont know how but its fixed itself. I had a mess around with the etc/hosts file and before where it used to say my-imac it now says My-iMac in capitals . . .
I dont know if that is related to anything i did or the fact it now works but it works for now, lets hope when i restart it, it stays the same ha.
Thanks for the help and the lessons on PATH ;) i will be back if i have any more trouble