users@glassfish.java.net

Unable to start glassfish on Debian Box

From: <glassfish_at_javadesktop.org>
Date: Sat, 02 Jan 2010 18:52:02 PST

Dear all,
I'm trying to start the glassfishv3 server on my Debian system.
But each time I start the server directly from the console, I get the following error:
niu_at_shuang:~/tool/java/glassfishv3/glassfish/bin$ ./asadmin start-domain
There is a process already using the admin port 849 -- it probably is another instance of a GlassFish server.
Command start-domain failed.
But "netstat -t -n -l | grep 849" gives no results.
Here's my server.log's output:
2010-1-3 2:48:25 com.sun.enterprise.admin.launcher.GFLauncherLogger info
Message: JVM invocation command line:
/usr/local/jdk1.6.0_13/bin/java
-cp
/home/niu/tool/java/glassfishv3/glassfish/modules/glassfish.jar
-XX:+UnlockDiagnosticVMOptions
-XX:MaxPermSize=192m
-XX:NewRatio=2
-XX:+LogVMOutput
-XX:LogFile=/home/niu/tool/java/glassfishv3/glassfish/domains/domain1/logs/jvm.log
-Xmx512m
-javaagent:/home/niu/tool/java/glassfishv3/glassfish/lib/monitor/btrace-agent.jar=unsafe=true,noServer=true
-client
-Dosgi.shell.telnet.maxconn=1
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Dfelix.fileinstall.dir=/home/niu/tool/java/glassfishv3/glassfish/modules/autostart/
-Djavax.net.ssl.keyStore=/home/niu/tool/java/glassfishv3/glassfish/domains/domain1/config/keystore.jks
-Dosgi.shell.telnet.port=6666
-Djava.security.policy=/home/niu/tool/java/glassfishv3/glassfish/domains/domain1/config/server.policy
-Dfelix.fileinstall.poll=5000
-Dcom.sun.aas.instanceRoot=/home/niu/tool/java/glassfishv3/glassfish/domains/domain1
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dosgi.shell.telnet.ip=127.0.0.1
-Djava.endorsed.dirs=/home/niu/tool/java/glassfishv3/glassfish/modules/endorsed:/home/niu/tool/java/glassfishv3/glassfish/lib/endorsed
-Dcom.sun.aas.installRoot=/home/niu/tool/java/glassfishv3/glassfish
-Djava.ext.dirs=/usr/local/jdk1.6.0_13/lib/ext:/usr/local/jdk1.6.0_13/jre/lib/ext:/home/niu/tool/java/glassfishv3/glassfish/domains/domain1/lib/ext
-Dfelix.fileinstall.bundles.new.start=true
-Djavax.net.ssl.trustStore=/home/niu/tool/java/glassfishv3/glassfish/domains/domain1/config/cacerts.jks
-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
-Djava.security.auth.login.config=/home/niu/tool/java/glassfishv3/glassfish/domains/domain1/config/login.conf
-DANTLR_USE_DIRECT_CLASS_LOADING=true
-Dfelix.fileinstall.debug=1
-Dorg.glassfish.web.rfc2109_cookie_names_enforced=false
-Djava.library.path=/home/niu/tool/java/glassfishv3/glassfish/lib:/usr/local/jdk1.6.0_13/jre/lib/i386/client:/usr/local/jdk1.6.0_13/jre/lib/i386:/usr/local/jdk1.6.0_13/lib/i386:/usr/local/jdk1.6.0_13/jre/lib/i386/server:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib:/home/niu/sqllib/lib32:/usr/local/lib:/home/niu/src/c++/ACE_wrappers/lib:/usr/java/packages/lib/i386:/lib:/usr/lib
com.sun.enterprise.glassfish.bootstrap.ASMain
-domainname
domain1
-asadmin-args
start-domain
-instancename
server
-verbose
false
-debug
false
-asadmin-classpath
/home/niu/tool/java/glassfishv3/glassfish/modules/admin-cli.jar
-asadmin-classname
com.sun.enterprise.admin.cli.AsadminMain
-upgrade
false
-domaindir
/home/niu/tool/java/glassfishv3/glassfish/domains/domain1
-read-stdin
true
Thanks for any comments or suggestions.
[Message sent by forum member 'niukun' (haoniukun_at_gmail.com)]

http://forums.java.net/jive/thread.jspa?messageID=378398