users@glassfish.java.net

trouble starting glassfish on Solaris

From: Lucas Jordan <lucasjordan_at_gmail.com>
Date: Wed, 7 Feb 2007 15:07:04 -0500

I had glassfish running happily on my solaris 10 box (sparc), I tried to
get glassfish to use port 80 and 443, I broke my install, rebooted and
reinstalled SJSAS 9.1, but I can't get it to run. I have tried 1.5 and
1.6jdks, any way the error on the logs is this:

[#|2007-02-07T14:05:07.141-0500|SEVERE|sun-appserve
r-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|UnknownException
during startup. Disable quick startup by setting system property
com.sun.enterprise.server.ss.ASQuickStartup to false
com.sun.appserv.server.ServerLifecycleException:
java.rmi.server.ExportException: Port already in use: 0; nested exception
is:
        java.net.BindException: Cannot assign requested address
        at
com.sun.enterprise.admin.server.core.channel.AdminChannel.createRMIChannel(
AdminChannel.java:97)
        at
com.sun.enterprise.admin.server.core.AdminChannelLifecycle.onInitialization(
AdminChannelLifecycle.java :61)
        at com.sun.enterprise.server.ss.ASLazyKernel.initializeAdminService(
ASLazyKernel.java:179)
        at com.sun.enterprise.server.ss.ASLazyKernel.startASSocketServices(
ASLazyKernel.java:80)
        at
com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(
OnDemandServer.java:84)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:316)
        at com.sun.enterprise.server.PEMain.main(PEMain.java :260)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke (
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.server.PELaunch.main(PELaunch.java:272)
Caused by: java.rmi.server.ExportException: Port already in use: 0; nested
exception is:
        java.net.BindException: Cannot assign requested address
        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:310)
        at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:218)
        at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java
:393)
        at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:129)
        at sun.rmi.server.UnicastServerRef.exportObject(
UnicastServerRef.java :190)
        at java.rmi.server.UnicastRemoteObject.exportObject(
UnicastRemoteObject.java:293)
        at java.rmi.server.UnicastRemoteObject.exportObject(
UnicastRemoteObject.java:256)
        at java.rmi.server.UnicastRemoteObject .<init>(
UnicastRemoteObject.java:155)
        at com.sun.enterprise.admin.server.core.channel.AdminChannelServer
.<init>(AdminChannelServer.java:89)
        at
com.sun.enterprise.admin.server.core.channel.AdminChannel.createServerObject(
AdminChannel.java:234)
        at
com.sun.enterprise.admin.server.core.channel.AdminChannel.createRMIChannel(
AdminChannel.java:92)
        ... 11 more
Caused by: java.net.BindException: Cannot assign requested address
        at sun.nio.ch.Net.bind(Native Method)
        at sun.nio.ch.ServerSocketChannelImpl.bind(
ServerSocketChannelImpl.java:119)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
        at com.sun.enterprise.server.ss.provider.ASServerSocket.bind(
ASServerSocket.java:278)
        at com.sun.enterprise.server.ss.provider.ASServerSocketImpl.listen(
ASServerSocketImpl.java:153)
        at java.net.ServerSocket.bind (ServerSocket.java:320)
        at java.net.ServerSocket.<init>(ServerSocket.java:185)
        at
com.sun.enterprise.admin.server.core.channel.LocalRMIServerSocketFactory.createServerSocket
(LocalRMIServerSocketFactory.java :79)
        at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(
TCPEndpoint.java:649)
        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:299)
        ... 21 more
|#]

[#|2007-02-07T14:05:
07.237-0500|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;|java.lang.RuntimeException:
Admin Server Channel is not initialized
        at
com.sun.enterprise.admin.server.core.channel.AdminChannel.assertAdminServerChannelNotNull(
AdminChannel.java:355)
        at
com.sun.enterprise.admin.server.core.channel.AdminChannel.setRMIChannelAborting
(AdminChannel.java:185)
        at
com.sun.enterprise.admin.server.core.AdminChannelLifecycle.onAbort (
AdminChannelLifecycle.java:103)
        at com.sun.enterprise.server.ss.ASLazyKernel.abortAdminService(
ASLazyKernel.java:192)
        at com.sun.enterprise.server.ss.ASLazyKernel.exitServer(
ASLazyKernel.java:103)
        at com.sun.enterprise.server.ss.ASLazyKernel.startASSocketServices(
ASLazyKernel.java:94)
        at
com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(
OnDemandServer.java:84)
        at com.sun.enterprise.server.PEMain.run (PEMain.java:316)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:260)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java :39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.server.PELaunch.main (PELaunch.java:272)
|#]


i tried setting "com.sun.enterprise.server.ss.ASQuickStartup" to false, but
that simply caused the command 'asadmin start-domain domain1' to time out.

I am starting to think that some service or process is preventing the app
server from listening on some port, but port 0 seems fishy. Here is a list
of running processes, maybe one of them is causing trouble:

   PID TTY TIME CMD
     0 ? 0:10 sched
     1 ? 0:00 init
     2 ? 0:00 pageout
     3 ? 0:26 fsflush
   440 ? 0:01 snmpd
     7 ? 0:03 svc.star
     9 ? 0:18 svc.conf
   212 ? 0:00 cron
   271 ? 0:01 xntpd
   123 ? 0:04 kcfd
   229 ? 0:01 fmd
   102 ? 0:00 sysevent
   272 ? 0:00 xntpd
   235 ? 0:00 sac
   241 console 0:00 ttymon
   331 ? 0:00 smcboot
   329 ? 0:00 smcboot
   122 ? 0:01 nscd
   119 ? 0:00 picld
   231 ? 0:01 inetd
   238 ? 0:00 utmpd
   259 ? 0:00 syslogd
   242 ? 0:00 ttymon
   386 ? 0:00 snmpdx
   332 ? 0:00 smcboot
   270 ? 0:00 sshd
   522 ? 0:00 dmispd
   414 ? 0:00 vold
   383 ? 0:00 dtlogin
   836 ? 0:01 sshd
   842 pts/2 0:00 bash
   838 pts/2 0:00 sh
   602 ? 0:01 sshd
   608 pts/1 0:00 bash
   604 pts/1 0:00 sh
   833 ? 0:00 sshd
   599 ? 0:00 sshd
  1219 pts/2 0:00 ps


also, here is the result of the command 'svcs -a | grep online':

online 11:34:55 svc:/system/svc/restarter:default
online 11:35:00 svc:/network/loopback:default
online 11:38:49 svc:/network/physical:default
online 11:38:49 svc:/milestone/network:default
online 11:38:49 svc:/system/identity:node
online 11:38:49 svc:/system/metainit:default
online 11:38:50 svc:/system/filesystem/root:default
online 11:38:50 svc:/system/boot-archive:default
online 11:38:51 svc:/system/filesystem/usr:default
online 11:38:51 svc:/system/keymap:default
online 11:38:51 svc:/system/device/local:default
online 11:38:52 svc:/system/filesystem/minimal:default
online 11:38:52 svc:/system/identity:domain
online 11:38:52 svc:/system/sysevent:default
online 11:38:52 svc:/system/rmtmpfiles:default
online 11:38:53 svc:/system/device/fc-fabric:default
online 11:38:53 svc:/system/picl:default
online 11:38:53 svc:/application/print/cleanup:default
online 11:38:53 svc:/system/cryptosvc:default
online 11:38:54 svc:/system/coreadm:default
online 11:38:54 svc:/system/name-service-cache:default
online 11:38:54 svc:/milestone/devices:default
online 11:38:54 svc:/system/power:default
online 11:38:55 svc:/system/manifest-import:default
online 11:38:56 svc:/network/initial:default
online 11:38:56 svc:/milestone/single-user:default
online 11:38:56 svc:/network/service:default
online 11:38:56 svc:/network/dns/client:default
online 11:38:56 svc:/milestone/name-services:default
online 11:38:57 svc:/system/filesystem/local:default
online 11:38:58 svc:/system/sysidtool:net
online 11:38:58 svc:/system/cron:default
online 11:38:58 svc:/system/dumpadm:default
online 11:38:59 svc:/system/sysidtool:system
online 11:38:59 svc:/milestone/sysconfig:default
online 11:39:00 svc:/system/sac:default
online 11:39:00 svc:/network/inetd:default
online 11:39:00 svc:/system/fmd:default
online 11:39:00 svc:/system/utmp:default
online 11:39:00 svc:/system/console-login:default
online 11:39:00 svc:/system/system-log:default
online 11:39:01 svc:/network/ssh:default
online 11:39:02 svc:/network/ntp:default
online 11:39:03 svc:/application/font/fc-cache:default
online 11:39:05 svc:/system/mdmonitor:default
online 11:39:06 svc:/milestone/multi-user:default
online 11:39:09 svc:/milestone/multi-user-server:default
online 11:39:09 svc:/system/zones:default
online 13:52:09 svc:/network/pfil:default

if anyone can tell me how to get an app server back up and running, i would
appreciate it.
-Lucas