0 Replies Latest reply: Sep 3, 2008 4:13 PM by 807574 RSS

    Glassfish Lifecycle module debugging

    807574
      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:
      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>

      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.