This discussion is archived
0 Replies Latest reply: Sep 3, 2008 2:13 PM by 807574 RSS

Glassfish Lifecycle module debugging

807574 Newbie
Currently Being Moderated
I'm trying to write a message driven bean that listens on an oracle aq queue. To do that I'm trying to follow create a lifecycle module that binds the Oracle JMS AQ to glassfish jndi. This is using Glassfish V2.

I am having trouble debugging a lifecycle module that I deployed per these instructions:

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(
at com.sun.appserv.server.ServerLifecycleModule.onTermination(
at com.sun.appserv.server.LifecycleModuleService.onTermination(
at com.sun.enterprise.server.ApplicationServer.onTermination(
at com.sun.enterprise.server.PEMain.main(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at com.sun.enterprise.server.PELaunch.main(

[#|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="" enabled="true" is-failure-fatal="true" load-order="101" name="AqJmsListener" object-type="user">
<description>JNDI loader for Oracle AQ</description>

So does anybody see anything obvious that I'm doing wrong? or what would be the way to debug a lifecycle module? The error message really doesn't tell me what is wrong.