Skip to main content

Unable to start glassfish on a Debian Box

3 replies [Last post]
niukun
Offline
Joined: 2008-12-27

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@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 was edited by: niukun

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Witold Szczerba

2010/1/3 :
> 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@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.

Port number 849 is smaller than 1024. By default, only root can attach
to such a port.
I suppose Glassfish caught exception and... said the port is used by
another process, but the cause was different.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Deepu Syamaladevi Janardhananachary

Me too faced similar situation.
what i have done is search the at particular port in the domain.xml and change it to some other port number. Then it showed same error with some other port number. I searched and changed that port number also in the domain.xml This happened for four or five different ports. Finally it will get successfully started.

Regards,
Deepu Janardhananachary

-----Original Message-----
From: glassfish@javadesktop.org [mailto:glassfish@javadesktop.org]
Sent: Sun 1/3/2010 8:22 AM
To: users@glassfish.dev.java.net
Subject: Unable to start glassfish on Debian Box

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@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@gmail.com)]

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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

[winmail.dat]
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

niukun
Offline
Joined: 2008-12-27

Really appreciate you for your reply.
I changed the port to 1849. Now the server has started successfully.
But I still wonder why the default one doesn't work.
Do I have to reconfigure my OS?