facebook

Debugging using Glassfish 2.x

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #281432 Reply

    lmckinney
    Member

    Hello,

    I am having an issue with debugging with Glassfish. The app server runs good in run mode but when I try to get it into debug mode I get the following error on on the console:

    Feb 4, 2008 12:47:01 PM com.sun.enterprise.server.PEMain main
    INFO: Starting Sun Java System Application Server 9.1_01 (build b09d-fcs) …
    Feb 4, 2008 12:47:01 PM com.sun.enterprise.server.PEMain$LoadMBeanServer doRun
    INFO: MBeanServer started: com.sun.enterprise.interceptor.DynamicInterceptor
    Feb 4, 2008 12:47:03 PM com.sun.enterprise.server.ss.ASLazyKernel startASSocketServices
    INFO: CORE5098: AS Socket Service Initialization has been completed.
    Feb 4, 2008 12:47:03 PM com.sun.enterprise.server.ApplicationServer printStartupInfo
    INFO: CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.6.0_04] from [Sun Microsystems Inc.]
    Feb 4, 2008 12:47:03 PM com.sun.enterprise.security.SecurityLifecycle <init>
    INFO: SEC1002: Security Manager is OFF.
    Feb 4, 2008 12:47:05 PM com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream flush
    INFO: C:\glassfish\domains\domain1/config/.__com_sun_appserv_pid
    Feb 4, 2008 12:47:05 PM com.sun.enterprise.admin.server.core.AdminService init
    INFO: ADM0001:SunoneInterceptor is now enabled
    Feb 4, 2008 12:47:05 PM com.sun.enterprise.security.PolicyLoader loadPolicy
    INFO: SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
    Feb 4, 2008 12:47:07 PM com.sun.enterprise.web.VirtualServer configureSSOValve
    INFO: WEB0114: SSO is disabled in virtual server [server]
    Feb 4, 2008 12:47:07 PM com.sun.enterprise.web.VirtualServer configureSSOValve
    INFO: WEB0114: SSO is disabled in virtual server [__asadmin]
    Feb 4, 2008 12:47:08 PM com.sun.enterprise.admin.server.core.AdminService initializeAMXMBeans
    INFO: ADM1079: Initialization of AMX MBeans started
    Feb 4, 2008 12:47:09 PM com.sun.enterprise.admin.jmx.remote.server.rmi.JmxConnectorServerDriver logJconsoleStartup
    INFO: ADM1504: Here is the JMXServiceURL for the Standard JMXConnectorServer: [service:jmx:rmi:///jndi/rmi://c4425.admin.ad.ucalgary.ca:8686/jmxrmi]. This is where the remote administrative clients should connect using the standard JMX connectors
    Feb 4, 2008 12:47:09 PM com.sun.enterprise.admin.jmx.remote.server.rmi.JmxConnectorServerDriver logJconsoleStartup
    INFO: ADM1506: Status of Standard JMX Connector: Active = [true]
    Feb 4, 2008 12:47:11 PM com.sun.jbi.framework.JBIFramework startup
    INFO: JBIFW0010: JBI framework ready to accept requests.
    Feb 4, 2008 12:47:13 PM com.sun.ejb.base.sfsb.util.EJBServerConfigLookup needToAddSFSBVersionInterceptors
    INFO: EJBSCLookup:: sc.getEjbContainerAvailabilityEnabledFromConfig() ==> false
    Feb 4, 2008 12:47:15 PM com.sun.jts.CosTransactions.DefaultTransactionService identify_ORB
    INFO: JTS5014: Recoverable JTS instance, serverId = [3700]
    Feb 4, 2008 12:47:15 PM com.sun.enterprise.server.ondemand.SystemAppLoader loadSystemApps
    INFO: About to load the system app: MEjbApp
    Feb 4, 2008 12:47:15 PM com.sun.enterprise.iiop.POARemoteReferenceFactory createReferenceFactory
    INFO: POARemoteRefFactory checking if SFSBVersionPolicy need to be added
    Feb 4, 2008 12:47:15 PM com.sun.ejb.base.sfsb.util.EJBServerConfigLookup needToAddSFSBVersionInterceptors
    INFO: EJBSCLookup:: sc.getEjbContainerAvailabilityEnabledFromConfig() ==> false
    Feb 4, 2008 12:47:15 PM com.sun.enterprise.iiop.POARemoteReferenceFactory createReferenceFactory
    INFO: POARemoteRefFactory addSFSBVersionPolicy? false
    Feb 4, 2008 12:47:15 PM com.sun.enterprise.iiop.POARemoteReferenceFactory createReferenceFactory
    INFO: POARemoteRefFactory checking if SFSBVersionPolicy need to be added
    Feb 4, 2008 12:47:15 PM com.sun.ejb.base.sfsb.util.EJBServerConfigLookup needToAddSFSBVersionInterceptors
    INFO: EJBSCLookup:: sc.getEjbContainerAvailabilityEnabledFromConfig() ==> false
    Feb 4, 2008 12:47:15 PM com.sun.enterprise.iiop.POARemoteReferenceFactory createReferenceFactory
    INFO: POARemoteRefFactory addSFSBVersionPolicy? false
    Feb 4, 2008 12:47:16 PM com.sun.enterprise.server.AbstractLoader loadEjbs
    INFO: LDR5010: All ejb(s) of [MEjbApp] loaded successfully!
    Feb 4, 2008 12:47:16 PM com.sun.enterprise.server.ondemand.SystemAppLoader loadSystemApps
    INFO: About to load the system app: __ejb_container_timer_app
    Feb 4, 2008 12:47:16 PM com.sun.ejb.containers.ContainerFactoryImpl createContainer
    SEVERE: EJB5090: Exception in creating EJB container [java.lang.ClassNotFoundException: com.sun.ejb.containers.TimerBean_2100919770_ConcreteImpl]
    Feb 4, 2008 12:47:16 PM com.sun.ejb.containers.ContainerFactoryImpl createContainer
    SEVERE: appId=__ejb_container_timer_app moduleName=ejb_jar ejbName=TimerBean
    Feb 4, 2008 12:47:16 PM com.sun.enterprise.server.AbstractLoader loadEjbs
    SEVERE: LDR5004: UnExpected error occured while creating ejb container
    java.lang.ClassNotFoundException: com.sun.ejb.containers.TimerBean_2100919770_ConcreteImpl
    at com.sun.enterprise.loader.EJBClassLoader.findClassData(EJBClassLoader.java:737)
    at com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:627)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:423)
    at com.sun.ejb.containers.EntityContainer.<init>(EntityContainer.java:246)
    at com.sun.ejb.containers.TimerBeanContainer.<init>(TimerBeanContainer.java:72)
    at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:550)
    at com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:536)
    at com.sun.enterprise.server.ApplicationLoader.doLoad(ApplicationLoader.java:188)
    at com.sun.enterprise.server.TomcatApplicationLoader.doLoad(TomcatApplicationLoader.java:126)
    at com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:244)
    at com.sun.enterprise.server.AbstractManager.loadOneSystemApp(AbstractManager.java:393)
    at com.sun.enterprise.server.ondemand.SystemAppLoader.loadSystemApps(SystemAppLoader.java:124)
    at com.sun.enterprise.server.ondemand.EjbServiceGroup.loadSystemApps(EjbServiceGroup.java:183)
    at com.sun.enterprise.server.ondemand.EjbServiceGroup.start(EjbServiceGroup.java:141)
    at com.sun.enterprise.server.ondemand.ServiceGroup$1.run(ServiceGroup.java:193)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.enterprise.server.ondemand.ServiceGroup.startChildren(ServiceGroup.java:190)
    at com.sun.enterprise.server.ondemand.MainServiceGroup.start(MainServiceGroup.java:58)
    at com.sun.enterprise.server.ondemand.ServerEntryListenerImpl.notifyEntry(ServerEntryListenerImpl.java:85)
    at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.sendEvent(ServerEntryHelper.java:75)
    at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.generateAppLoaderEntryContext(ServerEntryHelper.java:60)
    at com.sun.enterprise.server.AbstractLoader.generateEntryContext(AbstractLoader.java:876)
    at com.sun.enterprise.server.AbstractLoader.notifyAppEvent(AbstractLoader.java:882)
    at com.sun.enterprise.server.ApplicationLoader.doLoad(ApplicationLoader.java:176)
    at com.sun.enterprise.server.TomcatApplicationLoader.doLoad(TomcatApplicationLoader.java:126)
    at com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:244)
    at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:225)
    at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:217)
    at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:442)
    at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:120)
    at com.sun.enterprise.server.PEMain.run(PEMain.java:411)
    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:597)
    at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
    Feb 4, 2008 12:47:16 PM com.sun.enterprise.server.AbstractManager loadOneSystemApp
    WARNING: CORE5021: Application NOT loaded: [__ejb_container_timer_app]

    and it stalls the server. I am using JDK6 to run the server.

    Has anybody else had this issue?

    Your help would be much appreciated.

    #281456 Reply

    Loyal Water
    Member

    Does your connector look like this:-
    https://www.genuitec.com/forums/topic/glassfish-2-what-does-a-configured-connector-look-like/

    Can you go to MyEclipse > Installation Summary > Installation Details and paste the information here for me.

    Can you test the server with Java 5 as well ? Do you still face the same issue ?

    #281462 Reply

    lmckinney
    Member

    My connector looks good and I am using Java 5 in my app. Here is my installation summary:

    *** Date:
    Tuesday, February 5, 2008 9:24:20 AM MST

    ** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_11

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 6.0.1 GA
    Build id: 6.0.1-GA-200710

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 6.0.1 GA
    Build id: 6.0.1-GA-200710

    Eclipse Graphical Editing Framework

    Version: 3.3.1.v20070814
    Build id: 20070814-1555

    Eclipse Platform

    Version: 3.3.2.R33x_v20071022-_19UEksF-G8Yc6bUv3Dz
    Build id: M20071023-1652

    Eclipse Java Development Tools

    Version: 3.3.1.r331_v20070629-7o7jE72EDlXAbqAcnbmyg1rf8RIL
    Build id: M20070921-1145

    Eclipse Project SDK

    Version: 3.3.2.R33x_r20071022-7M7J7C_Mu2gop0b_GAwplOBhyuKO
    Build id: M20071023-1652

    Eclipse RCP

    Version: 3.3.2.R33x_r20071022-8y8eE9CEV3FspP8HJrY1M2dS
    Build id: M20070921-1145

    Eclipse Plug-in Development Environment

    Version: 3.3.2.R33x_r20071022-7N7M4CYWLBCz-yHkMIuHN
    Build id: M20070921-1145

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Program Files\MyEclipse 6.0\eclipse\eclipse.exe
    -name
    Eclipse
    –launcher.library
    C:\Program Files\MyEclipse 6.0\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.2.R331_v20071019\eclipse_1021.dll
    -startup
    C:\Program Files\MyEclipse 6.0\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
    -exitdata
    d10_90
    -vm
    C:\Program Files\MyEclipse 6.0\jre\bin\javaw.exe

    I am also now having an issue with navigation using icefaces and facelets with java 5. Which forum should I be using for this issue?

    Thanks for the response

    #281568 Reply

    Riyad Kalla
    Member

    lmckinney,
    I just installed Sun App 9.1u1 day before yesterday to do some EJB3 testing and everything went really smoothly, also, the TimerBean is actually an example bean provided by the application server… if it’s failing to load, I think your installation might have a hickup and need to be redone.

    My suggestion would be to shut down MyEclipse and Sun App Server. Run the Sun App Server uninstaller, after it’s done go *physically* erase the install dir, it sometimes leaves files hanging around, and then re-run the installer and reinstall it.

    Then set it back up, using the link Nipun provided, as a guide and fire it back up. Hopefully it should work fine.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Debugging using Glassfish 2.x

You must be logged in to post in the forum log in