- This topic has 19 replies, 5 voices, and was last updated 17 years, 2 months ago by Kevin.
-
AuthorPosts
-
Riyad KallaMemberjava.lang.NoClassDefFoundError: javax/security/auth/message/config/AuthConfigFactory
What version of JDK are you trying to run it with? How did you setup the connector?
joelgurParticipantI used your JRE MyEclipse 5.5 GA\JRE.
I also tried to work with SUN jdk 1.6 and got the same message.About the connector, I got all the options automatically:
-client -Xmx512m -XX:NewRatio=2 -Djava.ext.dirs=”C:/MyEclipse 5.5 GA/jre/lib/ext;C:/Sun/SDK/domains/domain1/lib/ext;C:/Sun/SDK/javadb/lib” -Dcom.sun.aas.configName=server-config -Ddomain.name=domain1 -Djavax.net.ssl.keyStore=C:/Sun/SDK/domains/domain1/config/keystore.jks -Djmx.invoke.getters=true -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory -Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder -Djava.security.auth.login.config=C:/Sun/SDK/domains/domain1/config/login.conf -Djava.security.policy=C:/Sun/SDK/domains/domain1/config/server.policy -Dcom.sun.enterprise.taglisteners=jsf-impl.jar -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.rmi.dgc.client.gcInterval=3600000 -Djava.endorsed.dirs=C:/Sun/SDK/lib/endorsed -Dcom.sun.aas.instanceRoot=C:/Sun/SDK/domains/domain1 -Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager -Dcom.sun.enterprise.overrideablejavaxpackages=javax.xml.bind,javax.help,javax.portlet -Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver -Djavax.net.ssl.trustStore=C:/Sun/SDK/domains/domain1/config/cacerts.jks -Dcom.sun.aas.configRoot=C:/Sun/SDK/config -Djava.library.path=”C:/MyEclipse 5.5 GA/bin;C:/Sun/SDK/bin;C:/Sun/SDK/lib” -Dcom.sun.aas.instanceName=server -Dcom.sun.aas.processLauncher=SE -Dcom.sun.aas.verboseMode=true -Dcom.sun.aas.classloader.optionalOverrideableChain=appserv-ws.jar,commons-logging.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,%GLASSFISH_HOME%/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.domainName=domain1 -Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,%JAVA_HOME%/lib/tools.jar,install/applications/jmsra/imqjmsra.jar,com-sun-commons-launcher.jar,%GLASSFISH_HOME%/imq/lib/jaxm-api.jar,%GLASSFISH_HOME%/imq/lib/fscontext.jar,%GLASSFISH_HOME%/imq/lib/imqbroker.jar,%GLASSFISH_HOME%/imq/lib/imqjmx.jar,%GLASSFISH_HOME%/imq/lib/imqxm.jar,%GLASSFISH_HOME%/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,%GLASSFISH_HOME%/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 -Dcom.sun.aas.classloader.serverClassPath=%GLASSFISH_HOME%/lib/install/applications/jmsra/imqjmsra.jar,%GLASSFISH_HOME%/imq/lib/jaxm-api.jar,%GLASSFISH_HOME%/imq/lib/fscontext.jar,%GLASSFISH_HOME%/imq/lib/imqbroker.jar,%GLASSFISH_HOME%/imq/lib/imqjmx.jar,%GLASSFISH_HOME%/lib/ant/lib/ant.jar,%GLASSFISH_HOME%/lib/SUNWjdmk/5.1/lib/jdmkrt.jar -Dcom.sun.aas.installRoot=C:/Sun/SDK -Dcom.sun.aas.ServerClassPath=-cp;%GLASSFISH_HOME%/lib/appserv-launch.jar -Dcom.sun.enterprise.server.ss.ASQuickStartup=false -DJAVA_HOME=”C:/MyEclipse 5.5 GA” -DGLASSFISH_HOME=C:/Sun/SDK
This is the entire message I got:
[#|2007-05-24T12:30:13.046+0300|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|Starting Sun Java System Application Server 9.1 (build b33e-beta) …|#]
[#|2007-05-24T12:30:13.718+0300|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;Java HotSpot(TM) Client VM;1.6.0;Sun Microsystems Inc.;|CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.6.0] from [Sun Microsystems Inc.]|#]
[#|2007-05-24T12:30:13.843+0300|INFO|sun-appserver9.1|javax.enterprise.system.core.security|_ThreadID=10;_ThreadName=main;|SEC1002: Security Manager is OFF.|#]
[#|2007-05-24T12:30:14.156+0300|INFO|sun-appserver9.1|javax.enterprise.resource.jms|_ThreadID=10;_ThreadName=main;|Using MQ RA for Broker lifecycle control|#]
[#|2007-05-24T12:30:15.921+0300|INFO|sun-appserver9.1|javax.enterprise.system.tools.admin|_ThreadID=10;_ThreadName=main;|ADM0001:MBeanServer initialized successfully|#]
[#|2007-05-24T12:30:16.343+0300|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=a435843a-e3d0-4aca-85f3-414531dba935;|Exception in thread “main” |#]
[#|2007-05-24T12:30:16.390+0300|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=a435843a-e3d0-4aca-85f3-414531dba935;|java.lang.NoClassDefFoundError: javax/security/auth/message/config/AuthConfigFactory
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at com.sun.enterprise.security.SecurityLifecycle.initializeJMAC(SecurityLifecycle.java:123)
at com.sun.enterprise.security.SecurityLifecycle.onInitialization(SecurityLifecycle.java:91)
at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:240)
at com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:93)
at com.sun.enterprise.server.PEMain.run(PEMain.java:316)
at com.sun.enterprise.server.PEMain.main(PEMain.java:260)
|#]
Riyad KallaMemberWhere did that huge command line come from? Are you using a custom launch config, or are you just using the normal Glassfish 2 connector?
KevinMemberThis message has not been recovered.
KevinMemberThis message has not been recovered.
-
AuthorPosts