Hi,
Can you try using a different admin port?
First create a new domain:
"asadmin create-domain --adminport <new-port> domain2"
and start this domain with:
"asadmin start-domain domain2"
Does this work?
Jane
glassfish_at_javadesktop.org wrote:
> I downloaded Glassfish v3 twice, one standalone and one with Netbeans bundle. I'm running Debian Sid. My java -version gives
> [pre]
> java version "1.6.0_18"
> Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
> Java HotSpot(TM) Server VM (build 16.0-b13, mixed mode)
> [/pre]
> When I tried to start it with
>
> $ ~/sges-v3/bin/asadmin start-domain
>
> it replies to me
>
> There is a process already using the admin port 7878 -- it probably is another instance of a GlassFish server.
> Command start-domain failed.
>
> I know port 7878 is not standard, I configured it from domain.xml.
>
> When I say
>
> $ netstat -tlp --numeric-ports
>
> it replies to me
>
> Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
> tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
> tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN -
> tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN -
> tcp 0 0 0.0.0.0:42042 0.0.0.0:* LISTEN -
> tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN -
> tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN -
> tcp 0 0 0.0.0.0:55107 0.0.0.0:* LISTEN -
> tcp 0 0 0.0.0.0:548 0.0.0.0:* LISTEN -
> tcp 0 0 0.0.0.0:901 0.0.0.0:* LISTEN -
> tcp 0 0 0.0.0.0:45930 0.0.0.0:* LISTEN -
> tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN -
> tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN -
> tcp6 0 0 :::22 :::* LISTEN -
> tcp6 0 0 ::1:631 :::* LISTEN -
> tcp6 0 0 :::445 :::* LISTEN -
> tcp6 0 0 :::139 :::* LISTEN -
> tcp6 0 0 :::80 :::* LISTEN -
>
> so there is nothing listening 7878 (or 4848 or another port I configured.)
>
> Note that, I installed same server successfully to our production server running Debian Lenny yesterday.
>
> I checked Google for possible causes of problems and I read all posts in this forum about Debian and Glassfish and /etc/hosts.
>
> My /etc/hosts file is as following: (my machine's name is kindi.emresahin.net
>
> 127.0.0.1 localhost
> 192.168.1.79 kindi.emresahin.net
> #192.168.1.79 kindi.emresahin.net.emresahin.net kindi.emresahin.net
> # 127.0.0.1 localhost
> # 127.0.1.1 localhost
> # 127.0.0.1 kindi.emresahin.net localhost
> # 127.0.1.1 kindi.emresahin.net localhost
> # The following lines are desirable for IPv6 capable hosts
> # ::1 localhost ip6-localhost ip6-loopback
> # fe00::0 ip6-localnet
> # ff00::0 ip6-mcastprefix
> # ff02::1 ip6-allnodes
> # ff02::2 ip6-allrouters
> # ff02::3 ip6-allhosts
>
> Note that, I tried several other options while trying to run the server.
>
> My /etc/resolv.conf is like this:
>
> domain emresahin.net
> search emresahin.net
> nameserver 195.155.3.3
> nameserver 195.155.3.4
> nameserver 192.168.1.1
>
> and ifconfig gives me following:
>
> eth0 Link encap:Ethernet HWaddr 00:1c:25:ac:13:ca
> inet addr:192.168.1.79 Bcast:192.168.1.255 Mask:255.255.255.0
> inet6 addr: fe80::21c:25ff:feac:13ca/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:140208 errors:0 dropped:0 overruns:0 frame:0
> TX packets:81936 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:171272207 (163.3 MiB) TX bytes:8289010 (7.9 MiB)
> Interrupt:25 Base address:0x8000
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> inet6 addr: ::1/128 Scope:Host
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:370 errors:0 dropped:0 overruns:0 frame:0
> TX packets:370 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:30143 (29.4 KiB) TX bytes:30143 (29.4 KiB)
>
>
> Note that when I turn off eth0 with
>
> ifdown eth0
>
> time for asadmin start-domain to give an error [b]increase.[/b] So I suspect there happens a timeout when the server can't reach the Internet for some lookup. (This may be a DNS lookup or inverse DNS lookup.)
>
> Finally here is server.log latest entry:
>
> Feb 13, 2010 5:15:19 PM com.sun.enterprise.admin.launcher.GFLauncherLogger info
> INFO: JVM invocation command line:
> /usr/lib/jvm/java-6-sun-1.6.0.18/bin/java
> -cp
> /home/iesahin/sges-v3/glassfish/modules/glassfish.jar
> -XX:+UnlockDiagnosticVMOptions
> -XX:MaxPermSize=192m
> -XX:NewRatio=2
> -XX:+LogVMOutput
> -XX:LogFile=/home/iesahin/sges-v3/glassfish/domains/domain1/logs/jvm.log
> -Xmx512m
> -javaagent:/home/iesahin/sges-v3/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/iesahin/sges-v3/glassfish/modules/autostart/
> -Djavax.net.ssl.keyStore=/home/iesahin/sges-v3/glassfish/domains/domain1/config/keystore.jks
> -Dosgi.shell.telnet.port=6666
> -Djava.security.policy=/home/iesahin/sges-v3/glassfish/domains/domain1/config/server.policy
> -Dfelix.fileinstall.poll=5000
> -Dcom.sun.aas.instanceRoot=/home/iesahin/sges-v3/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/iesahin/sges-v3/glassfish/modules/endorsed:/home/iesahin/sges-v3/glassfish/lib/endorsed
> -Dcom.sun.aas.installRoot=/home/iesahin/sges-v3/glassfish
> -Djava.ext.dirs=/usr/lib/jvm/java-6-sun-1.6.0.18/lib/ext:/usr/lib/jvm/java-6-sun-1.6.0.18/jre/lib/ext:/home/iesahin/sges-v3/glassfish/domains/domain1/lib/ext
> -Dfelix.fileinstall.bundles.new.start=true
> -Djavax.net.ssl.trustStore=/home/iesahin/sges-v3/glassfish/domains/domain1/config/cacerts.jks
> -Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
> -Djava.security.auth.login.config=/home/iesahin/sges-v3/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/iesahin/sges-v3/glassfish/lib:/usr/lib/jvm/java-6-sun-1.6.0.18/jre/lib/i386/server:/usr/lib/jvm/java-6-sun-1.6.0.18/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.18/lib/i386:/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/iesahin/sges-v3/glassfish/modules/admin-cli.jar
> -asadmin-classname
> com.sun.enterprise.admin.cli.AsadminMain
> -upgrade
> false
> -domaindir
> /home/iesahin/sges-v3/glassfish/domains/domain1
> -read-stdin
> true
>
> and you can find my domain.xml file in
>
> http://pastebin.com/m26275947
>
> I would be glad to supply more information in case you need it. Thank you very much.
> [Message sent by forum member 'iesahin' (i.emre.sahin_at_gmail.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=386531
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>