users@glassfish.java.net

Newb lifecycle listener question

From: <glassfish_at_javadesktop.org>
Date: Fri, 16 May 2008 11:03:14 PDT

I am trying to develop a lifecycle listener using Sun Java System Application Server 9.1_01.

This is my class header:
==========================================
package lifecycle;
import com.sun.appserv.server.LifecycleEvent;
import com.sun.appserv.server.LifecycleEventContext;
import com.sun.appserv.server.LifecycleListener;
import com.sun.appserv.server.ServerLifecycleException;
import java.util.Properties;
/**
 *
 * @author joshua
 */
public class Loader implements LifecycleListener {
=========================================

I built a jar file with NetBeans and copied it to the ${com.sun.aas.instanceRoot}/applications/lifecycle-modules directory.
My jar is named "LifeCycleModule.jar"
I then deployed the listener using the web admin utility and my domain.xml file has this in it:
==================================
<lifecycle-module class-name="lifecycle.Loader" classpath="${com.sun.aas.instanceRoot}/applications/lifecycle-modules"
        enabled="true"
        is-failure-fatal="false"
        load-order="200"
        name="Loader"
        object-type="user">
                <description>Simple lifecycle module</description>
        </lifecycle-module>
==================================
Every time I start up the log says this:
[#|2008-05-16T13:39:30.129-0400|WARNING|sun-appserver9.1|javax.enterprise|_ThreadID=12;_ThreadName=pool-1-thread-1;_RequestID=ad3ed4cc-75dc-4ed2-8949-593c89d370e7;|LCM0101: Exception loading lifecycle module [Loader]; [java.lang.ClassNotFoundException: lifecycle.Loader]|#]

I've tried several different things to try and "find" the class. I'm hoping it's just something stupid that someone can point out.

Thanks in advance,
Joshua
[Message sent by forum member 'joshua_77' (joshua_77)]

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