Skip to main content

error starting appserv

1 reply [Last post]
oblio
Offline
Joined: 2005-10-31

I just finished a ./asupgrade

Since performing it, I obtain the error: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/enterprise/server/PELaunch

Prior to the upgrade, there was no error at all and start up was fine. I've tried comparing my classpaths and all relevant info with that of a clean installation. It appears that all important jar files are loaded identically to a working, untouched, clean installation . I simply cannot figure out why this class is not being seen. any help would be appreciated

i am including my --verbose output

/export/home/sunone/glassfish/bin # ./asadmin start-domain --verbose domain1
Starting Domain domain1, please wait.
[#|2005-10-31T15:43:27.546-0500|INFO|sun-appserver-pe9.0|javax.enterprise.tools.launcher|_ThreadID=10;_ThreadName=main;|
/export/home/java5/bin/java
-client
-Xmx512m
-XX:NewRatio=2
-Xms128m
-Xmx256m
-Dcom.sun.aas.defaultLogFile=/export/home/sunone/glassfish/domains/domain1/logs/server.log
-Dcom.sun.aas.verboseMode=true
-Djava.endorsed.dirs=/export/home/sunone/glassfish/lib/endorsed
-Djava.security.policy=/export/home/sunone/glassfish/domains/domain1/config/server.policy
-Djava.security.auth.login.config=/export/home/sunone/glassfish/domains/domain1/config/login.conf
-Dsun.rmi.dgc.server.gcInterval=3600000
-Dsun.rmi.dgc.client.gcInterval=3600000
-Djavax.net.ssl.keyStore=/export/home/sunone/glassfish/domains/domain1/config/keystore.jks
-Djavax.net.ssl.trustStore=/export/home/sunone/glassfish/domains/domain1/config/cacerts.jks
-Djava.ext.dirs=/export/home/java5/jre/lib/ext:/export/home/sunone/glassfish/domains/domain1/lib/ext
-Djdbc.drivers=com.pointbase.jdbc.jdbcUniversalDriver
-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
-Djava.awt.headless=true
-Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter
-Dorg.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl
-Dcom.sun.aas.classloader.optionalOverrideableChain=appserv-ws.jar,commons-logging.jar,commons-launcher.jar,struts.jar
-Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,dbschema.jar,j2ee-svc.jar
-Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
-Dcom.sun.aas.classloader.serverClassPath.ee=%HADB_HOME%/lib/hadbjdbc4.jar,/export/home/sunone/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
-Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter
-Ddomain.name=domain1
-Djmx.invoke.getters=true
-Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
-Dcom.sun.aas.promptForIdentity=true
-Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser
-Dcom.sun.aas.classloader.optionalOverrideableChain.ee=
-Dcom.sun.aas.instanceRoot=/export/home/sunone/glassfish/domains/domain1
-Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
-Dcom.sun.aas.domainName=domain1
-Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,/export/home/java5/lib/tools.jar,install/applications/jmsra/imqjmsra.jar,commons-launcher.jar,/export/home/sunone/glassfish/imq/lib/jaxm-api.jar,/export/home/sunone/glassfish/imq/lib/fscontext.jar,/export/home/sunone/glassfish/imq/lib/imqbroker.jar,/export/home/sunone/glassfish/imq/lib/imqjmx.jar,/export/home/sunone/glassfish/imq/lib/imqxm.jar,/export/home/sunone/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,/export/home/sunone/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
-Dcom.sun.aas.classloader.serverClassPath=/export/home/sunone/glassfish/lib/install/applications/jmsra/imqjmsra.jar,/export/home/sunone/glassfish/imq/lib/jaxm-api.jar,/export/home/sunone/glassfish/imq/lib/fscontext.jar,/export/home/sunone/glassfish/imq/lib/imqbroker.jar,/export/home/sunone/glassfish/imq/lib/imqjmx.jar,/export/home/sunone/glassfish/lib/ant/lib/ant.jar,/export/home/sunone/glassfish/lib/SUNWjdmk/5.1/lib/jdmkrt.jar
-Dcom.sun.aas.classloader.appserverChainJars.ee=
-Dcom.sun.aas.configRoot=/export/home/sunone/glassfish/config
-Djava.library.path=/export/home/java5/jre/lib/sparc/client:/export/home/java5/jre/lib/sparc:/export/home/java5/jre/../lib/sparc:/export/home/sunone/glassfish/lib:/usr/lib/lwp:/export/home/java5/jre/lib/sparc/client:/export/home/java5/jre/lib/sparc:/export/home/java5/jre/../lib/sparc:/export/home/sunone/glassfish/lib:/export/home/sunone/glassfish/lib:/export/home/sunone/glassfish/lib::/usr/lib
-Dcom.sun.aas.instanceName=server
-Dcom.sun.aas.processLauncher=SE
-Dcom.sun.aas.ClassPathPrefix=/export/home/sunone/domains/domain1/server1/applications/appConfig/dbstring/dbstring.zip:/export/home/sunone/pointbase/client_tools/lib/pbclient42RE.jar:/export/home/sunone/domains/domain1/server1/lib/pja.jar:/export/home/sunone/domains/domain1/server1/applications/appCommonLib/preeti.jar:/export/home/sunone/domains/domain1/server1/applications/appCommonLib:/export/home/sunone/domains/domain1/server1/applications/appCommonLib/classes12.jar:/export/home/sunone/domains/domain1/server1/applications/j2ee-modules/insurfact_1/WEB-INF/lib/rreport.zip:/export/home/sunone/domains/domain1/server1/applications/j2ee-modules/insurfact_1/WEB-INF/lib/rreport:/export/home/sunone/domains/domain1/server1/applications/j2ee-modules/edjones_1/WEB-INF/lib
-Dcom.sun.aas.ClassPathSuffix=/export/home/sunone/glassfish/pointbase/lib/pbclient.jar:/export/home/sunone/glassfish/pointbase/lib/pbembedded.jar
-Dcom.sun.aas.ServerClassPath=/export/home/sunone/glassfish/lib/install/applications/jmsra/imqjmsra.jar:/export/home/sunone/glassfish/imq/lib/jaxm-api.jar:/export/home/sunone/glassfish/imq/lib/fscontext.jar:/export/home/sunone/glassfish/lib/ant/lib/ant.jar
-cp

com.sun.enterprise.server.PELaunch
start
verbose|#]

Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/enterprise/server/PELaunch
done
/export/home/sunone/glassfish/bin #

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
hans_hrasna
Offline
Joined: 2005-03-10

Hi, the class in question (PELaunch) is located in lib/appserv-rt.jar. The classpath for the asadmin script is based on $AS_INSTALL ($AS_INSTALL/lib/appserv-rt.jar). AS_INSTALL is set in the script /config/asenv.conf, which is run every time asadmin is run. So I would check the value of $AS_INSTALL in asenv.conf which in your installation will be at /export/home/sunone/glassfish/config/asenv.conf. The value of $AS_INSTALL should be /export/home/sunone/glassfish.