Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've used the directions here to successfully install Glassfish 3.0.1 on an virtualized (VirtualBox and VMWare) Ubuntu 10.10 Server instance without any real difficulty not resolved by more closely following the directions. However when I try applying them to Glassfish 3.1, I seem to keep getting stuck at section 6. "Security configuration before first startup". In particular, there are some differences I noted:

1) There are two keys in the default keystore. The 's1as' key is still there, but another named 'glassfish-instance' is also there. When I saw this, I deleted and recreated them both along with a 'myAlias' key which I was going to use where needed.

2) When turning the security on it seems like part of the server thinks it's on, but others don't. For instances:

$ /home/glassfish/bin/asadmin set
Command set executed successfully.

$ /home/glassfish/bin/asadmin get
Command get executed successfully.

$ /home/glassfish/bin/asadmin --secure list-jvm-options
It appears that server [localhost:4848] does not accept secure connections. Retry with --secure=false. Remote host closed connection during handshake
Command list-jvm-options failed.

$ /home/glassfish/bin/asadmin --secure=false list-jvm-options
-XX: UnlockDiagnosticVMOptions
Command list-jvm-options executed successfully.

Also the admin console responds only to http (not https) requests. Thoughts?

share|improve this question
up vote 1 down vote accepted

i guess you were following my tutorial at - right?

in the meanwhile I have added another tutorial for installation of GlassFish 3.1 at

maybe this is what you are looking for. i still have some more ideas/improvements that i plan to add to the new tutorial within the next 2 weeks...


share|improve this answer
Yeah, I'm the same guy who left the comment on your instructions for 3.0.1 and I saw that you updated the instructions. I haven't had a chance to try it out yet but will do so shortly... may even try it with Ubuntu Server 11.04. Will let you know how it goes later this week. -&& – andand May 2 '11 at 17:58
Worked like a charm. Thanks for researching this. – andand May 3 '11 at 15:32
Works with 11.04, too. – andand May 3 '11 at 18:40
thanks - that's great to hear! please let me know if you have some improvements which i could add to the tutorial. also feel free to leave a post on my page... – nabi May 3 '11 at 20:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.