- This topic has 22 replies, 3 voices, and was last updated 16 years, 9 months ago by Riyad Kalla.
-
AuthorPosts
-
pathogenMemberHi,
I have a web app that previously was built and deployed to Glassfish using Netbeans. I am in the process of getting it working as a MyEclipse project but have hit a wall. It will deploy and run from ME but fails on some LDAP code for user authentication we are required to use by our company. Here is the stack trace:WARNING: [debug] swat.cwa: SEARCH_BASE=ou=ourdirectory,o=acompany.com Jan 8, 2008 3:44:08 PM com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream flush WARNING: [debug] swat.cwa: SEARCH_ATTRID=mail Jan 8, 2008 3:44:08 PM com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream flush WARNING: [debug] swat.cwa: JNDI_PROPERTIES_FOR_SEARCH={java.naming.provider.url=ldap://ourdirectory.acompany.com:389, java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory, java.naming.ldap.version=3, java.naming.ldap.derefAliases=never} Jan 8, 2008 3:44:08 PM com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream flush WARNING: [debug] swat.cwa: Creating JNDI context.. Jan 8, 2008 3:44:36 PM com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream flush WARNING: [debug] swat.cwa: LDAP_FILTER=(mail=pathogen@acompany.com) Jan 8, 2008 3:44:36 PM com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream flush WARNING: [debug] swat.cwa: Searching directory.. Jan 8, 2008 3:44:36 PM com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream flush WARNING: [debug] swat.cwa: DN=uid=C-2E3R897,c=us,ou=ourdirectory,o=acompany.com Jan 8, 2008 3:44:36 PM com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream flush WARNING: [debug] swat.cwa: Closing result set.. Jan 8, 2008 3:44:36 PM com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream flush WARNING: [debug] swat.cwa: Disconnecting from directory.. Jan 8, 2008 3:44:36 PM com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream flush WARNING: [debug] swat.cwa: Preparing context parameters for SSL connection.. Jan 8, 2008 3:44:36 PM com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream flush WARNING: [debug] swat.cwa: Creating JNDI (SSL) context.. Jan 8, 2008 3:44:36 PM com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream flush WARNING: [debug] swat.cwa: JNDI_PROPERTIES_FOR_BIND={java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory, java.naming.security.principal=uid=C-2E3R897,c=us,ou=ourdirectory,o=acompany.com, java.naming.ldap.version=3, java.naming.ldap.derefAliases=never, java.naming.provider.url=ldap://ourdirectory.acompany.com:636, java.naming.security.protocol=ssl, java.naming.ldap.factory.socket=javax.net.ssl.SSLSocketFactory, java.naming.security.authentication=simple} Jan 8, 2008 3:44:36 PM com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream flush WARNING: [debug] swat.cwa: JNDI_ERROR=ourdirectory.acompany.com:636 Jan 8, 2008 3:44:36 PM com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream flush WARNING: javax.naming.CommunicationException: ourdirectory.acompany.com:636 [Root exception is java.net.SocketException: password can't be null]
If I instead build/deploy from ME and start the server from NB, I get this:
debug] swat.cwa: JNDI_ERROR=[LDAP: error code 48 - Inappropriate Authentication] javax.naming.AuthenticationNotSupportedException: [LDAP: error code 48 - Inappropriate Authentication]
I presume that error code 48 equates to “password cannot be null” as per the other stack trace. I have also noticed that the NB war file is significantly larger than that generated by ME. Trying to figure out what the delta is…
So, any ideas offhand why the exact same LDAP code works when build/deployed from NB but not from ME? I’d really like to ditch the bean…
*** Date:
Wednesday, January 9, 2008 10:07:26 AM EST** System properties:
OS=MacOSX
OS version=10.5.1
Java version=1.5.0_13*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 6.0.1 GA
Build id: 6.0.1-GA-200710*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 6.0.1 GA
Build id: 6.0.1-GA-200710Eclipse Graphical Editing Framework
Version: 3.3.1.v20070814
Build id: 20070814-1555Eclipse Platform
Version: 3.3.2.R33x_v20071022-_19UEksF-G8Yc6bUv3Dz
Build id: M20071023-1652Eclipse Java Development Tools
Version: 3.3.1.r331_v20070629-7o7jE72EDlXAbqAcnbmyg1rf8RIL
Build id: M20071023-1652Eclipse Graphical Editing Framework
Version: 3.3.1.v20070814
Build id: 20070814-1555Eclipse Project SDK
Version: 3.3.2.R33x_r20071022-7M7J7C_Mu2gop0b_GAwplOBhyuKO
Build id: M20071023-1652Eclipse RCP
Version: 3.3.2.R33x_r20071022-8y8eE9CEV3FspP8HJrY1M2dS
Build id: M20071023-1652Eclipse Plug-in Development Environment
Version: 3.3.2.R33x_r20071022-7N7M4CYWLBCz-yHkMIuHN
Build id: M20071023-1652Eclipse startup command=-os
macosx
-ws
carbon
-arch
x86
-showsplash
-launcher
/Users/pathogen/Developer/ides/eclipse/installs/eclipse_3_3_1/eclipse/Eclipse.app/Contents/MacOS/eclipse
-name
Eclipse
–launcher.library
/Users/pathogen/Developer/ides/eclipse/installs/eclipse_3_3_1/eclipse/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher.carbon.macosx_1.0.2.R331_v20071019/eclipse_1021.so
-startup
/Users/pathogen/Developer/ides/eclipse/installs/eclipse_3_3_1/eclipse/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
-keyring
/Users/pathogen/.eclipse_keyring
-consoleLog
-showlocation
-product
com.genuitec.myeclipse.product.ide
-vm
/System/Library/Frameworks/JavaVM.framework
Loyal WaterMemberThe app that you are trying to run was created using Netbeans ? You cannot run an app using MyEclipse that has been created in Netbeans. You will have to create a new MyEclipse app and the transfer your code from the Netbeans app to the MyEclipse app (by copy/pasting the code from the NetBeans app to the MyEclipse app). Then you should be able to run it without issues.
pathogenMemberHi, I know I cannot simply run a NB project in ME. I have already converted it to ME. I can build and deploy the project as well as run it. What I cannot do, however, is successfully authenticate in the login panel for the web app which uses LDAP on the back end. Using NB instead I can do all that. If I bypass the LDAP authenticator code, the app works fine even though deployed via ME. My guess is something about how ME launches GF is the culprit.
Riyad KallaMemberhmm…
Pathogen let’s test something to figure out if it’s the launching or deploying.
1. Shut down GF
2. Deploy from ME
3. Fire up Glassfish *externally* using the normal startup script in a Terminal window.
4. Pop open Safari and browse on over to your app… does it work OK?If so, then we need to tweak how GF is launched, if not, then we need to critique how it’s being deployed.
pathogenMemberHi Riyad,
I apologize for not replying earlier… I could swear I checked this forum and saw no activity but clearly you did reply. Going insane I suppose… OK, so this is what I can and cannot do:
1. Build/deploy war from ME. Gets stuck on the login page where we have some LDAP code to verify user credentials
2. I can take that same war, start GF from the command line, load the app up and login fine
3. I can take the same war, start GF from Netbeans, load the app up and login fine
4. I gave the war to a colleague who can do 2,3 as well.I’ll post the startup config from Netbeans in the next post.
pathogenMemberJan 18, 2008 5:18:31 PM com.sun.enterprise.admin.servermgmt.launch.ASLauncher buildCommand
INFO:
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java
-Dcom.sun.aas.instanceRoot=/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/domains/domain1
-Dcom.sun.aas.ClassPathPrefix=
-Dcom.sun.aas.ClassPathSuffix=
-Dcom.sun.aas.ServerClassPath=
-Dcom.sun.aas.classloader.appserverChainJars.ee=
-Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,j2ee-svc.jar
-Dcom.sun.aas.classloader.excludesList=admin-cli.jar,appserv-upgrade.jar,sun-appserv-ant.jar
-Dcom.sun.aas.classloader.optionalOverrideableChain.ee=
-Dcom.sun.aas.classloader.optionalOverrideableChain=webservices-rt.jar,webservices-tools.jar
-Dcom.sun.aas.classloader.serverClassPath.ee=/lib/hadbjdbc4.jar,/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,/lib/dbstate.jar,/lib/hadbm.jar,/lib/hadbmgt.jar,/lib/mfwk_instrum_tk.jar
-Dcom.sun.aas.classloader.serverClassPath=/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/install/applications/jmsra/imqjmsra.jar,/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/imq/lib/jaxm-api.jar,/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/imq/lib/fscontext.jar,/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/imq/lib/imqbroker.jar,/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/imq/lib/imqjmx.jar,/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/ant/lib/ant.jar,/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/SUNWjdmk/5.1/lib/jdmkrt.jar
-Dcom.sun.aas.classloader.sharedChainJars.ee=appserv-se.jar,appserv-ee.jar,jesmf-plugin.jar,/lib/dbstate.jar,/lib/hadbjdbc4.jar,jgroups-all.jar,/lib/mfwk_instrum_tk.jar
-Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/tools.jar,install/applications/jmsra/imqjmsra.jar,com-sun-commons-launcher.jar,com-sun-commons-logging.jar,/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/imq/lib/jaxm-api.jar,/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/imq/lib/fscontext.jar,/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/imq/lib/imqbroker.jar,/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/imq/lib/imqjmx.jar,/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/imq/lib/imqxm.jar,webservices-rt.jar,webservices-tools.jar,mail.jar,appserv-jstl.jar,jmxremote_optional.jar,/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,activation.jar,appserv-rt.jar,appserv-admin.jar,appserv-cmp.jar,/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/updatecenter/lib/updatecenter.jar,/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/jbi/lib/jbi.jar,/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/imq/lib/imqjmx.jar,/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/ant/lib/ant.jar,dbschema.jar
-Dcom.sun.aas.configName=server-config
-Dcom.sun.aas.configRoot=/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/config
-Dcom.sun.aas.defaultLogFile=/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/domains/domain1/logs/server.log
-Dcom.sun.aas.domainName=domain1
-Dcom.sun.aas.installRoot=/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish
-Dcom.sun.aas.instanceName=server
-Dcom.sun.aas.processLauncher=SE
-Dcom.sun.aas.promptForIdentity=true
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dcom.sun.enterprise.overrideablejavaxpackages=javax.help,javax.portlet
-Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
-Dcom.sun.enterprise.taglisteners=jsf-impl.jar
-Dcom.sun.updatecenter.home=/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/updatecenter
-Ddomain.name=domain1
-Djava.endorsed.dirs=/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/endorsed
-Djava.ext.dirs=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/jre/lib/ext:/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/domains/domain1/lib/ext:/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/javadb/lib
-Djava.library.path=/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib:/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib:/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib
-Djava.security.auth.login.config=/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/domains/domain1/config/login.conf
-Djava.security.policy=/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/domains/domain1/config/server.policy
-Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
-Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
-Djavax.net.ssl.keyStore=/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/domains/domain1/config/keystore.jks
-Djavax.net.ssl.trustStore=/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/domains/domain1/config/cacerts.jks
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Djmx.invoke.getters=true
-Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000
-client
-XX:+UnlockDiagnosticVMOptions
-XX:MaxPermSize=192m
-Xmx512m
-XX:NewRatio=2
-XX:+LogVMOutput
-XX:LogFile=/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/domains/domain1/logs/jvm.log
-cp
/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/jhall.jar:/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/appserv-launch.jar
com.sun.enterprise.server.PELaunch
start
Starting Sun Java System Application Server 9.1_01 (build b09d-fcs) …
MBeanServer started: com.sun.enterprise.interceptor.DynamicInterceptor
CORE5098: AS Socket Service Initialization has been completed.
CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.5.0_13] from [Apple Inc.]
SEC1002: Security Manager is OFF.
/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/domains/domain1/config/.__com_sun_appserv_pid
ADM0001:SunoneInterceptor is now enabled
SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
WEB0114: SSO is disabled in virtual server [server]
WEB0114: SSO is disabled in virtual server [__asadmin]
ADM1079: Initialization of AMX MBeans started
ADM1504: Here is the JMXServiceURL for the Standard JMXConnectorServer: [service:jmx:rmi:///jndi/rmi://DevMBP.some.place.com:8686/jmxrmi]. This is where the remote administrative clients should connect using the standard JMX connectors
ADM1506: Status of Standard JMX Connector: Active = [true]
JBIFW0010: JBI framework ready to accept requests.
WEB0302: Starting Sun-Java-System/Application-Server.
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8080
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8181
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 4848
validateJarFile(/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/domains/domain1/applications/j2ee-modules/GlobalMetrics/WEB-INF/lib/javaee.jar) – jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Initializing Sun’s JavaServer Faces implementation (1.2_04-b20-p03) for context ‘/GlobalMetrics’
PWC1412: WebModule[/GlobalMetrics] ServletContext.log():Loading Spring root WebApplicationContext
SMGT0007: Self Management Rules service is enabled
Application server startup complete.Thanks!
Riyad KallaMemberhmmm ok let’s try a long-shot approach to ruling out if it’s the libraries on the class path or not.
Can you navigate to Window > Prefs > MyEclipse > Servers > Glassfish > Glassfish 2.0 > Paths, then on the “Append to Classpath” Section, can you click the “ADd” button, drill down to your Glassfish’s /lib directory and add *every* JAR there, then hit OK and restart it from inside MyEclipse and see if it works?
If that works, then it means the default list of JARs we are picking up at startup for the app server is wrong and we are forgetting something (then I can do a manual audit), but if it still doesn’t work, then it means that the NetBeans/Glassfish connector is configuring in some other way to help Glassfish load that LDAP authentication… or something (I don’t personally understand the GF/LDAP connection or how to set it up, so bear with me)
pathogenMemberHi Riyad, I tried adding every .jar under GF_HOME I could find. At first I tried just the root of the lib dir but then it whined about some classes missing so I added every jar in every sub dir of lib I could find. The result was this:
Jan 21, 2008 5:39:04 PM com.sun.enterprise.server.PEMain main
INFO: Starting Sun Java System Application Server 9.1_01 (build b09d-fcs) …
Jan 21, 2008 5:39:04 PM com.sun.enterprise.server.PEMain$LoadMBeanServer doRun
INFO: MBeanServer started: com.sun.enterprise.interceptor.DynamicInterceptor
Jan 21, 2008 5:39:05 PM com.sun.enterprise.server.ss.ASLazyKernel startASSocketServices
INFO: CORE5098: AS Socket Service Initialization has been completed.
Jan 21, 2008 5:39:05 PM com.sun.enterprise.server.ApplicationServer printStartupInfo
INFO: CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.5.0_13] from [Apple Inc.]
Jan 21, 2008 5:39:05 PM com.sun.enterprise.security.SecurityLifecycle <init>
INFO: SEC1002: Security Manager is OFF.
Jan 21, 2008 5:39:06 PM com.sun.enterprise.admin.meta.MBeanRegistryFactory getAdminMBeanRegistry
WARNING: Admin MBean Registry is not found
java.lang.NoClassDefFoundError: com/sun/messaging/jmq/jmsspi/JMSAdmin
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at com.sun.enterprise.admin.meta.MBeanRegistryEntry.<init>(MBeanRegistryEntry.java:290)
at com.sun.enterprise.admin.meta.MBeanRegistry.loadMBeanRegistry(MBeanRegistry.java:376)
at com.sun.enterprise.admin.meta.MBeanRegistry.loadMBeanRegistry(MBeanRegistry.java:359)
at com.sun.enterprise.admin.meta.MBeanRegistryFactory.getAdminMBeanRegistry(MBeanRegistryFactory.java:226)
at com.sun.enterprise.config.serverbeans.validation.DomainMgr.<init>(DomainMgr.java:103)
at com.sun.enterprise.config.serverbeans.validation.DomainMgr.<init>(DomainMgr.java:96)
at com.sun.enterprise.config.serverbeans.validation.DomainMgr.<init>(DomainMgr.java:92)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at com.sun.enterprise.admin.server.core.AdminContextImpl.registerValidator(AdminContextImpl.java:142)
at com.sun.enterprise.admin.server.core.AdminContextImpl.setServerContext(AdminContextImpl.java:111)
at com.sun.enterprise.admin.server.core.AdminService.createAdminService(AdminService.java:242)
at com.sun.enterprise.admin.server.core.AdminServiceLifeCycle.onInitialization(AdminServiceLifeCycle.java:115)
at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:262)
at com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:101)
at com.sun.enterprise.server.PEMain.run(PEMain.java:401)
at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
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:585)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
Jan 21, 2008 5:39:06 PM com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream flush
INFO: /Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/domains/domain1/config/.__com_sun_appserv_pid
Jan 21, 2008 5:39:06 PM com.sun.enterprise.admin.server.core.AdminService init
INFO: ADM0001:SunoneInterceptor is now enabled
Jan 21, 2008 5:39:06 PM com.sun.enterprise.security.PolicyLoader loadPolicy
INFO: SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
Jan 21, 2008 5:39:07 PM com.sun.enterprise.web.VirtualServer configureSSOValve
INFO: WEB0114: SSO is disabled in virtual server [server]
Jan 21, 2008 5:39:07 PM com.sun.enterprise.web.VirtualServer configureSSOValve
INFO: WEB0114: SSO is disabled in virtual server [__asadmin]
Jan 21, 2008 5:39:07 PM com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream flush
WARNING: java.lang.reflect.InvocationTargetException
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:585)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
Caused by: java.lang.NoClassDefFoundError: com/sun/jms/spi/xa/JMSXAQueueConnectionFactory
at com.sun.enterprise.distributedtx.J2EETransactionManagerImpl.<init>(J2EETransactionManagerImpl.java:196)
at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.<init>(J2EETransactionManagerOpt.java:79)
at com.sun.enterprise.distributedtx.J2EETransactionManagerImpl.createTransactionManager(J2EETransactionManagerImpl.java:304)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:220)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:414)
at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:286)
at com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:101)
at com.sun.enterprise.server.PEMain.run(PEMain.java:401)
at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
… 5 moreIf I only add those jars at the root of lib, then I get this:
Jan 21, 2008 5:53:31 PM com.sun.enterprise.server.PEMain$LoadMBeanServer doRun
INFO: MBeanServer started: com.sun.enterprise.interceptor.DynamicInterceptor
Jan 21, 2008 5:53:31 PM com.sun.enterprise.server.PEMain main
INFO: Starting Sun Java System Application Server 9.1_01 (build b09d-fcs) …
Jan 21, 2008 5:53:32 PM com.sun.enterprise.server.ss.ASLazyKernel startASSocketServices
INFO: CORE5098: AS Socket Service Initialization has been completed.
Jan 21, 2008 5:53:32 PM com.sun.enterprise.server.ApplicationServer printStartupInfo
INFO: CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.5.0_13] from [Apple Inc.]
Jan 21, 2008 5:53:32 PM com.sun.enterprise.security.SecurityLifecycle <init>
INFO: SEC1002: Security Manager is OFF.
Jan 21, 2008 5:53:33 PM com.sun.enterprise.admin.meta.MBeanRegistryFactory getAdminMBeanRegistry
WARNING: Admin MBean Registry is not found
java.lang.NoClassDefFoundError: com/sun/messaging/jmq/jmsspi/JMSAdmin
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at com.sun.enterprise.admin.meta.MBeanRegistryEntry.<init>(MBeanRegistryEntry.java:290)
at com.sun.enterprise.admin.meta.MBeanRegistry.loadMBeanRegistry(MBeanRegistry.java:376)
at com.sun.enterprise.admin.meta.MBeanRegistry.loadMBeanRegistry(MBeanRegistry.java:359)
at com.sun.enterprise.admin.meta.MBeanRegistryFactory.getAdminMBeanRegistry(MBeanRegistryFactory.java:226)
at com.sun.enterprise.config.serverbeans.validation.DomainMgr.<init>(DomainMgr.java:103)
at com.sun.enterprise.config.serverbeans.validation.DomainMgr.<init>(DomainMgr.java:96)
at com.sun.enterprise.config.serverbeans.validation.DomainMgr.<init>(DomainMgr.java:92)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at com.sun.enterprise.admin.server.core.AdminContextImpl.registerValidator(AdminContextImpl.java:142)
at com.sun.enterprise.admin.server.core.AdminContextImpl.setServerContext(AdminContextImpl.java:111)
at com.sun.enterprise.admin.server.core.AdminService.createAdminService(AdminService.java:242)
at com.sun.enterprise.admin.server.core.AdminServiceLifeCycle.onInitialization(AdminServiceLifeCycle.java:115)
at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:262)
at com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:101)
at com.sun.enterprise.server.PEMain.run(PEMain.java:401)
at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
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:585)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
Jan 21, 2008 5:53:33 PM com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream flush
INFO: /Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/domains/domain1/config/.__com_sun_appserv_pid
Jan 21, 2008 5:53:33 PM com.sun.enterprise.admin.server.core.AdminService init
INFO: ADM0001:SunoneInterceptor is now enabled
Jan 21, 2008 5:53:33 PM com.sun.enterprise.security.PolicyLoader loadPolicy
INFO: SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
Jan 21, 2008 5:53:33 PM com.sun.enterprise.web.VirtualServer configureSSOValve
INFO: WEB0114: SSO is disabled in virtual server [server]
Jan 21, 2008 5:53:34 PM com.sun.enterprise.web.VirtualServer configureSSOValve
INFO: WEB0114: SSO is disabled in virtual server [__asadmin]
Jan 21, 2008 5:53:34 PM com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream flush
WARNING: java.lang.reflect.InvocationTargetException
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:585)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
Caused by: java.lang.NoClassDefFoundError: com/sun/jms/spi/xa/JMSXAQueueConnectionFactory
at com.sun.enterprise.distributedtx.J2EETransactionManagerImpl.<init>(J2EETransactionManagerImpl.java:196)
at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.<init>(J2EETransactionManagerOpt.java:79)
at com.sun.enterprise.distributedtx.J2EETransactionManagerImpl.createTransactionManager(J2EETransactionManagerImpl.java:304)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:220)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:414)
at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:286)
at com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:101)
at com.sun.enterprise.server.PEMain.run(PEMain.java:401)
at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
… 5 more
pathogenMemberBtw, here are the jars and dirs I have in my GF lib dir:
activation.jar
addons
admin-cli-ee.jar
admin-cli.jar
ant
appclient
appserv
appserv-admin.jar
appserv-cmp.jar
appserv-deployment-client.jar
appserv-ee.jar
appserv-ext.jar
appserv-jstl.jar
appserv-jwsacc.jar
appserv-launch.jar
appserv-rt.jar
appserv-se.jar
appserv-tags.jar
appserv-upgrade.jar
appserv-ws.jar
appservLauncher
com-sun-commons-launcher.jar
com-sun-commons-logging.jar
db2jcc_javax.jar
db2jcc_license_cisuz.jar
db2jcc_license_cu.jar
db2jcc.jar
dbschema.jar
deployment
dtds
endorsed
install
installer-builder
j2ee-svc.jar
j2ee.jar
javaee.jar
jesmf-plugin.jar
jhall.jar
jmac-api.jar
jmxremote_optional.jar
jsf-impl.jar
jxta.jar
killserv
launcher.properties
launcher.xml
LauncherBootstrap.class
libcliutil.jnilib
libjvminfoutil.jnilib
LICENSE.txt
mail-1.4.1ea-SNAPSHOT.jar
mail.jar
Pack200Task.jar
package-appclient.xml
PLBootstrap.class
processLauncher.properties
processLauncher.xml
registration
schemas
shoal-gms.jar
sun-appserv-ant.jar
SUNWjdmk
toplink-essentials-agent.jar
toplink-essentials.jar
upgrade
verifier
webservices-rt.jar
webservices-tools.jar
pathogenMember*bump*
pathogenMemberHello?
pathogenMemberRkalla, any help you can offer would be great. Got code to write… 🙁
Riyad KallaMemberSorry about the lag, we are off our mandatory 24-hrs shifts, I was home sleeping 🙂
When you go to your project in NetBeans, do you see any JARs in the Server path that aren’t added in MyEclipse or any JARs in your project that aren’t getting deployed?
This is driving me nuts, I went scouring through the JARs in the /lib folder to try and find one that had LDAP classes in it, and I found NADA…
I am wondering if NetBeans is adding an auxiliary JAR to the Runtime path when you launch from it?
pathogenMemberBesides the above I posted showing Netbeans startup, I looked at the server config for NB under “Classes” and saw these jars:
/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/javaee.jar
/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/jsf-api.jar
/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/jsf-impl.jar
/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/activation.jar
/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/appserv-tags.jar
/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/mail.jar
/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/appserv-jstl.jar
/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/appserv-ws-update.jar
/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/jaxwsa-api.jar
/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/jaxwsa-ri.jar
/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/appserv-ws-update.jar
/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/jaxwsa-api.jar
/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/jaxwsa-ri.jar
/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/webservices-tools.jar
/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/webservices-rt.jar
/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/jax-qname.jar
/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/endorsed/jaxp-api.jar
/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/appserv-ws.jar
/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/jaxrpc-api.jar
/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/jaxrpc-impl.jar
/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/jaxr-api.jar
/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/jaxr-impl.jar
/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/saaj-api.jar
/Users/pathogen/Developer/servers/glassfish/v2_ur1/glassfish/lib/saaj-impl.jarGlad you got some sleep, sorry if I seemed impatient 🙂
Riyad KallaMemberI went back and re-read this thread and noticed that we never got to the bottom of why the NB WAR is much larger than the MyEclipse WAR… that has to be part of the reason the deployments are behaving differently. Could you dig into that a bit more?
-
AuthorPosts