dev@glassfish.java.net

Re: Starting Glassfish v3 using the full java command

From: Kedar Mhaswade <Kedar.Mhaswade_at_Sun.COM>
Date: Thu, 01 Oct 2009 16:22:13 -0700

I think this is changed in current nightly builds. I am not
sure which build you are using. Still ...

By "full java command", you mean the java command that asadmin
start-domain (launcher) ultimately invokes, right?

If that's what you mean, you have one of the two choices:
1- put your master password in a file as
AS_ADMIN_MASTERPASSWORD=<password> and pass that file as:
-passwordfile file-path

(note: single '-' before passwordfile).

2- do java .... -stdin and then it will prompt you for master
password.

Let me know if any of this works for you.

With a 2-day old v3 workspace, I essentially mimicked what you
did, i.e. I ran the attached file and it started my domain.

Regards,
Kedar

PS - I am hoping that what I think above is related to your problem ...

Rahul Biswas wrote:
> I need to track down a regression and to do that I have to start
> GlassFish using the full java command. This used to work fine until v2
> versions, but with v3 I am running into a
> "java.security.UnrecoverableKeyException: Password verification failed"
> error. The error log is attached for a more detailed stack trace.
>
> My password for admin is the same as for v2 and so is the method for
> extracting the java command to startup the server ("/usr/ucb/ps"). I
> have tried a bunch of different things including "asadmin login" to set
> the password, removing the "$HOME/.asadmin*" artifacts, but the same
> error persists. The server starts up fine using the asadmin CLI. Any
> ideas what could be the issue?
>
> Thanks
> Rahul
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net



/home/kedar/Software/jdk6/bin/java -cp /home/kedar/v3/src/trunk/target/glassfishv3/glassfish/modules/glassfish.jar -XX:+UnlockDiagnosticVMOptions -XX:MaxPermSize=192m -XX:NewRatio=2 -XX:+LogVMOutput -XX:LogFile=/home/kedar/v3/src/trunk/target/glassfishv3/glassfish/domains/domain1/logs/jvm.log -Xmx512m -client -javaagent:/home/kedar/v3/src/trunk/target/glassfishv3/glassfish/lib/monitor/btrace-agent.jar=unsafe=true -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver -Djavax.net.ssl.trustStore=/home/kedar/v3/src/trunk/target/glassfishv3/glassfish/domains/domain1/config/cacerts.jks -Djavax.net.ssl.keyStore=/home/kedar/v3/src/trunk/target/glassfishv3/glassfish/domains/domain1/config/keystore.jks -Djava.security.policy=/home/kedar/v3/src/trunk/target/glassfishv3/glassfish/domains/domain1/config/server.policy -Dcom.sun.aas.instanceRoot=/home/kedar/v3/src/trunk/target/glassfishv3/glassfish/domains/domain1 -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory -DANTLR_USE_DIRECT_CLASS_LOADING=true -Djava.security.auth.login.config=/home/kedar/v3/src/trunk/target/glassfishv3/glassfish/domains/domain1/config/login.conf -Djava.endorsed.dirs=/home/kedar/v3/src/trunk/target/glassfishv3/glassfish/lib/endorsed -Dcom.sun.aas.installRoot=/home/kedar/v3/src/trunk/target/glassfishv3/glassfish -Djava.ext.dirs=/home/kedar/Software/jdk6/lib/ext:/home/kedar/Software/jdk6/jre/lib/ext:/home/kedar/v3/src/trunk/target/glassfishv3/glassfish/domains/domain1/lib/ext:/home/kedar/v3/src/trunk/target/glassfishv3/javadb/lib -Djava.library.path=/home/kedar/v3/src/trunk/target/glassfishv3/glassfish/lib:/home/kedar/Software/jdk1.6.0_13/jre/lib/amd64/server:/home/kedar/Software/jdk1.6.0_13/jre/lib/amd64:/home/kedar/Software/jdk1.6.0_13/lib/amd64:/usr/java/packages/lib/amd64:/lib:/usr/lib com.sun.enterprise.glassfish.bootstrap.ASMain