users@glassfish.java.net

Can't start Glassfish using Solaris 10 SMF

From: <glassfish_at_javadesktop.org>
Date: Tue, 03 Apr 2007 21:49:32 PDT

Following http://blogs.sun.com/bloggerkedar/entry/app_server_and_solaris_10 I created an SMF file for Glassfish V1b14 running on Solaris 10 w/ JDK 1.5_07 in a Solaris Zone.

When I run the asadmin from the command line, the domain starts right up.

But when I try and start it up using SMF, it goes in to maintenance mode because the server says there's a conflict with port 80.

I can assure you that there's no conflict. My domain is configured to start on port 80, however.

But if I do:

$ asadmin start-domain ...
<GF starts up>
$ asadmin stop-domain ...
$ svcadm clean mydomainservice

The service will try to start but bump in to port 80.

The SMF xml file looks pretty blunt and straightforward. Nothing really clever appears to be going on in there.

Any ideas why this is flailing?

P.S. Kudos for adding the create-service command to integrate with SMF.

Server log details:

[#|2007-04-03T21:33:51.937-0700|INFO|sun-appserver-pe9.0|javax.enterprise.tools.launcher|_ThreadID=10;_ThreadName=main;|
/usr/jdk/instances/jdk1.5.0/jre/../bin/java
-client
-Xmx512m
-XX:NewRatio=2
-Dcom.sun.aas.defaultLogFile=/opt/local/java/domains/mydomain/logs/server.log
-Djava.endorsed.dirs=/opt/local/java/glassfish/lib/endorsed
-Djava.security.policy=/opt/local/java/domains/mydomain/config/server.policy
-Djava.security.auth.login.config=/opt/local/java/domains/mydomain/config/login.conf
-Dsun.rmi.dgc.server.gcInterval=3600000
-Dsun.rmi.dgc.client.gcInterval=3600000
-Djavax.net.ssl.keyStore=/opt/local/java/domains/mydomain/config/keystore.jks
-Djavax.net.ssl.trustStore=/opt/local/java/domains/mydomain/config/cacerts.jks
-Djava.ext.dirs=/usr/jdk/instances/jdk1.5.0/jre/../jre/lib/ext:/opt/local/java/domains/mydomain/lib/ext:/opt/local/java/glassfish/javadb/lib
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
-Dcom.sun.enterprise.taglisteners=jsf-impl.jar
ng.jar,commons-launcher.jar
-Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,dbschema.jar,j2ee-svc.jar
-Dcom.sun.aas.classloader.serverClassPath.ee=%HADB_HOME%/lib/hadbjdbc4.jar,/opt/local/java/glassfish/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,%HADB_HOME%/lib/dbstate.jar,%HADB_HOME%/lib/hadbm.jar,%HADB_HOME%/lib/hadbmgt.jar,%MFWK_HOME%/lib/mfwk_instrum_tk.jar
-Dcom.sun.aas.configName=server-config
-Ddomain.name=mydomain
-Djmx.invoke.getters=true
-Dcom.sun.aas.promptForIdentity=true
-Dcom.sun.aas.classloader.optionalOverrideableChain.ee=
-Dcom.sun.aas.instanceRoot=/opt/local/java/domains/mydomain
-Dcom.sun.aas.domainName=mydomain
-Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,/usr/jdk/instances/jdk1.5.0/jre/../lib/tools.jar,install/applications/jmsra/imqjmsra.jar,commons-launcher.jar,/opt/local/java/glassfish/imq/lib/jaxm-api.jar,/opt/local/java/glassfish/imq/lib/fscontext.jar,/opt/local/java/glassfish/imq/lib/imqbroker.jar,/opt/local/java/glassfish/imq/lib/imqjmx.jar,/opt/local/java/glassfish/imq/lib/imqxm.jar,/opt/local/java/glassfish/lib/ant/lib/ant.jar,appserv-ws.jar,mail.jar,jsf-api.jar,jsf-impl.jar,appserv-jstl.jar,appserv-env.jar,jmxremote_optional.jar,/opt/local/java/glassfish/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,commons-logging.jar,activation.jar,appserv-rt.jar,appserv-admin.jar,appserv-cmp.jar
-Dcom.sun.aas.classloader.sharedChainJars.ee=appserv-se.jar,appserv-ee.jar,%HADB_HOME%/lib/dbstate.jar,%HADB_HOME%/lib/hadbjdbc4.jar,jgroups-all.jar,%MFWK_HOME%/lib/mfwk_instrum_tk.jar
-Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
-Dcom.sun.enterprise.overrideablejavaxpackages=javax.xml.bind,javax.help,javax.portlet
-Dcom.sun.aas.classloader.serverClassPath=/opt/local/java/glassfish/lib/install/applications/jmsra/imqjmsra.jar,/opt/local/java/glassfish/imq/lib/jaxm-api.jar,/opt/local/java/glassfish/imq/lib/fscontext.jar,/opt/local/java/glassfish/imq/lib/imqbroker.jar,/opt/local/java/glassfish/imq/lib/imqjmx.jar,/opt/local/java/glassfish/lib/ant/lib/ant.jar,/opt/local/java/glassfish/lib/SUNWjdmk/5.1/lib/jdmkrt.jar
-Dcom.sun.aas.classloader.appserverChainJars.ee=
-Dcom.sun.aas.configRoot=/opt/local/java/glassfish/config
-Djava.library.path=/usr/jdk/instances/jdk1.5.0/jre/lib/i386/server:/usr/jdk/instances/jdk1.5.0/jre/lib/i386:/usr/jdk/instances/jdk1.5.0/jre/../lib/i386:/opt/local/java/glassfish/lib:/usr/lib/lwp:/usr/jdk/instances/jdk1.5.0/jre/lib/i386/server:/usr/jdk/instances/jdk1.5.0/jre/lib/i386:/usr/jdk/instances/jdk1.5.0/jre/../lib/i386:/opt/local/java/glassfish/lib:/opt/local/java/glassfish/lib:/opt/local/java/glassfish/lib::/usr/lib
-Dcom.sun.aas.instanceName=server
-Dcom.sun.aas.processLauncher=SE
-Dcom.sun.aas.installRoot=/opt/local/java/glassfish
-Dcom.sun.aas.ClassPathPrefix=
-Dcom.sun.aas.ClassPathSuffix=
-Dcom.sun.aas.ServerClassPath=
-cp
:/opt/local/java/glassfish/lib/appserv-launch.jar
com.sun.enterprise.server.PELaunch
start|#]

[#|2007-04-03T21:33:52.638-0700|INFO|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|Starting Sun Java System Application Server Platform Edition 9.0_01 (build b14) ...|#]

[#|2007-04-03T21:33:54.102-0700|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;80;|A conflict occured on port 80 . Server is shutting down.|#]
[Message sent by forum member 'whartung' (whartung)]

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