dev@glassfish.java.net

[Fwd: Re: Appserver process left hanging after shutdown]

From: Deepa Singh <Deepa.Singh_at_Sun.COM>
Date: Wed, 28 Sep 2005 23:52:23 -0700

  FYI, if anyone else is also experiencing same problem,
Re-install java in location without space, and change following
appserver files,
Re: asadmin stop-domain
Posted: Sep 25, 2005 12:33 PM
  [Click to reply to this topic]
<http://forums.java.net/jive/post%21reply.jspa?messageID=25398> Reply
<http://forums.java.net/jive/post%21reply.jspa?messageID=25398>


OK. NOW I fixed it. Change the setting in the
installDir\config\asenv.bat. Where it says:

set AS_JAVA=C:\Program Files\Java\jdk1.5.0_04\jre/..

change it to the shortened DOS format of:

set AS_JAVA=C:\Progra~1\Java\jdk1.5.0_04\jre/..

Now it closes perfectly.




attached mail follows:



Deepa Singh wrote:

> Hi Appserver gurus,
> I am not able to completely shutdown appserver 9.0PE on my windows XP
> box, with latest nightly PE build.Additionally, I have MKS ToolKit
> installed and there are spaces in my JAVA_HOME variable.


Read http://forums.java.net/jive/thread.jspa?threadID=1501&tstart=0
P1 bug # and workaround posted.

Ludo

>
> echo %JAVA_HOME%
> C:\Program Files\Java\jdk1.5.0_05
> "asadmin stop-domain domain1 " throws following error,
> Failed to stop domain domain1.
> CLI157 Could not stop the domain domain1.
>
> ps -ef lists following process running.
>
> 2152 804 0 18:40:18 CONIN$ 0:53 "C:\Program
> Files\Java\jdk1.5.0_05bin\java" -client -Xmx512m -XX:NewRatio=2
> -Dcom.sun.aas.defaultLogFile=C:/Sun/ApServer/domains/domain1/logs/server.log
> -Djava.endorsed.dirs=C:/Sun/AppServer/lb/endorsed
> -Djava.security.policy=C:/Sun/AppServer/domains/domain1/config/serve.policy
> -Djava.security.auth.login.config=C:/Sun/AppServer/domains/domain1/conf
> g/login.conf -Dsun.rmi.dgc.server.gcInterval=3600000
> -Dsun.rmi.dgc.client.gcIntrval=3600000
> -Djavax.net.ssl.keyStore=C:/Sun/AppServer/domains/domain1/confi
>
> Additionally, I have MKS ToolKit installed and there are spaces in my
> JAVA_HOME variable.
> C:\ws\appserver-sqe\lib\drivers\oracle>echo %JAVA_HOME%
> C:\Program Files\Java\jdk1.5.0_05
>
> #]
>
> [#|2005-09-28T10:56:28.936-0700|WARNING|sun-appserver-pe9.0|javax.enterprise.tools.launcher|_ThreadID=10;_ThreadName=main;|LAUNCHER005:Spaces
> in your PATH have been detected. The PATH must be consistently
> formated (e.g. C:\Program Files\Java\jdk1.5.0\bin; ) or the Appserver
> may not be able to start and/or stop. Mixed quoted spaces in your
> PATH can cause problems, so the launcher will remove all double quotes
> before invoking the process. The most reliable solution would be to
> remove all spaces from your path before starting the Appservers
> components. |#]
>