users@glassfish.java.net

Lifecycle module debugging

From: <glassfish_at_javadesktop.org>
Date: Wed, 03 Sep 2008 12:09:45 PDT

I am having trouble debugging a lifecycle module that I deployed per these instructions:
https://oracleaq.dev.java.net/servlets/ProjectForumMessageView?messageID=23962&forumID=3117

I created the lifecycle module and dropped the created lifecyclemodule jar file into glassfish/domains/domain1/lib directory. I set the is-failure-fatal flag to "true" to verify that the lifecycle module starts up correctly.

When I restart the app server I get the following error message:
[#|2008-09-03T11:27:04.578-0700|WARNING|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=2064cd49-cc9d-430e-9267-107bc51916b5;|CORE5061: Exception :
com.sun.appserv.server.ServerLifecycleException: LCM0103: Treating failure loading the lifecycle module [AqJmsListener] as fatal; please check your classpath and the is-failure-fatal property.
        at com.sun.appserv.server.ServerLifecycleModule.postEvent(ServerLifecycleModule.java:209)
        at com.sun.appserv.server.ServerLifecycleModule.onTermination(ServerLifecycleModule.java:277)
        at com.sun.appserv.server.LifecycleModuleService.onTermination(LifecycleModuleService.java:496)
        at com.sun.enterprise.server.ApplicationServer.onTermination(ApplicationServer.java:587)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:434)
        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)
|#]

[#|2008-09-03T11:27:04.594-0700|SEVERE|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=2064cd49-cc9d-430e-9267-107bc51916b5;|Server stopped due to Server startup failure.|#]

Unfortunately it gives no indication as to what the problem is. Is there any way to debug my lifecycle module? I added log statements in the handleEvent method of the implemented LifecycleListener class but I'm not seeing them in the server.log.

BTW, my lifecycle xml stub looks like:

<lifecycle-module class-name="com.oracle.oems.glassfish.AqJmsListener" enabled="true" is-failure-fatal="true" load-order="101" name="AqJmsListener" object-type="user">
      <description>JNDI loader for Oracle AQ</description>
    </lifecycle-module>
[Message sent by forum member 'chile62' (chile62)]

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