java.lang.NoClassDefFoundError: ServerLifeCycle (wrong name: config/ServerLifeCycle) Please check to see if you enter the classname and classpath with the expected values... - Hong On 5/22/2011 1:24 PM, forums@java.net wrote: > hi all :) > > i need to creat a lifecycle module this is the code of the class > > package config; import com.sun.appserv.server.ServerLifecycleException; > import com.sun.appserv.server.LifecycleEvent; import > com.sun.appserv.server.LifecycleListener; public class ServerLifeCycle > implements LifecycleListener { @Override public void > handleEvent(LifecycleEvent event) throws ServerLifecycleException { if > (LifecycleEvent.INIT_EVENT == event.getEventType()) { > System.out.println("-----------------LifecycleListener: INIT_EVENT"); > return; > } if (LifecycleEvent.STARTUP_EVENT == event.getEventType()) { > System.out.println("-------------------LifecycleListener: START_EVENT"); > return; } if (LifecycleEvent.READY_EVENT == event.getEventType()) { > System.out.println("------------------LifecycleListener: READY_EVENT"); > return; } if (LifecycleEvent.SHUTDOWN_EVENT == event.getEventType()) { > System.out.println("---------------------LifecycleListener: > SHUTDOWN_EVENT"); > return; } if (LifecycleEvent.TERMINATION_EVENT == event.getEventType()) { > System.out.println("--------------LifecycleListener: TERMINATION_EVENT"); > return; } } > > > i tried to creat the lifecycle module from the visual interface of > glassfish > but ever time glassfish wouldn't start up and give me this exception > > ATTENTION: Exception while starting bundle > com.sun.enterprise.osgi-adapter > [14] org.osgi.framework.BundleException: Activator start error in bundle > com.sun.enterprise.osgi-adapter [14]. at > org.apache.felix.framework.Felix.activateBundle(Felix.java:1751) at > org.apache.felix.framework.Felix.startBundle(Felix.java:1622) at > org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915) at > org.jvnet.hk2.osgimain.Main.start(Main.java:140) at > org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640) > >

Oracle Community | fithwith | 6 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    configure life cycle module

    Oracle Community | 6 years ago | fithwith
    java.lang.NoClassDefFoundError: ServerLifeCycle (wrong name: config/ServerLifeCycle) Please check to see if you enter the classname and classpath with the expected values... - Hong On 5/22/2011 1:24 PM, forums@java.net wrote: > hi all :) > > i need to creat a lifecycle module this is the code of the class > > package config; import com.sun.appserv.server.ServerLifecycleException; > import com.sun.appserv.server.LifecycleEvent; import > com.sun.appserv.server.LifecycleListener; public class ServerLifeCycle > implements LifecycleListener { @Override public void > handleEvent(LifecycleEvent event) throws ServerLifecycleException { if > (LifecycleEvent.INIT_EVENT == event.getEventType()) { > System.out.println("-----------------LifecycleListener: INIT_EVENT"); > return; > } if (LifecycleEvent.STARTUP_EVENT == event.getEventType()) { > System.out.println("-------------------LifecycleListener: START_EVENT"); > return; } if (LifecycleEvent.READY_EVENT == event.getEventType()) { > System.out.println("------------------LifecycleListener: READY_EVENT"); > return; } if (LifecycleEvent.SHUTDOWN_EVENT == event.getEventType()) { > System.out.println("---------------------LifecycleListener: > SHUTDOWN_EVENT"); > return; } if (LifecycleEvent.TERMINATION_EVENT == event.getEventType()) { > System.out.println("--------------LifecycleListener: TERMINATION_EVENT"); > return; } } > > > i tried to creat the lifecycle module from the visual interface of > glassfish > but ever time glassfish wouldn't start up and give me this exception > > ATTENTION: Exception while starting bundle > com.sun.enterprise.osgi-adapter > [14] org.osgi.framework.BundleException: Activator start error in bundle > com.sun.enterprise.osgi-adapter [14]. at > org.apache.felix.framework.Felix.activateBundle(Felix.java:1751) at > org.apache.felix.framework.Felix.startBundle(Felix.java:1622) at > org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915) at > org.jvnet.hk2.osgimain.Main.start(Main.java:140) at > org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640) > >
  2. 0

    Karaf - User - Error while deploying bundle using XML parser

    nabble.com | 1 year ago
    java.lang.NoClassDefFoundError: org/xml/sax/SAXException >      at com.viithiisys.web.extender.Activator.start(Activator.java:23)

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      ServerLifeCycle (wrong name: config/ServerLifeCycle) Please check to see if you enter the classname and classpath with the expected values... - Hong On 5/22/2011 1:24 PM, forums@java.net wrote: > hi all :) > > i need to creat a lifecycle module this is the code of the class > > package config; import com.sun.appserv.server.ServerLifecycleException; > import com.sun.appserv.server.LifecycleEvent; import > com.sun.appserv.server.LifecycleListener; public class ServerLifeCycle > implements LifecycleListener { @Override public void > handleEvent(LifecycleEvent event) throws ServerLifecycleException { if > (LifecycleEvent.INIT_EVENT == event.getEventType()) { > System.out.println("-----------------LifecycleListener: INIT_EVENT"); > return; > } if (LifecycleEvent.STARTUP_EVENT == event.getEventType()) { > System.out.println("-------------------LifecycleListener: START_EVENT"); > return; } if (LifecycleEvent.READY_EVENT == event.getEventType()) { > System.out.println("------------------LifecycleListener: READY_EVENT"); > return; } if (LifecycleEvent.SHUTDOWN_EVENT == event.getEventType()) { > System.out.println("---------------------LifecycleListener: > SHUTDOWN_EVENT"); > return; } if (LifecycleEvent.TERMINATION_EVENT == event.getEventType()) { > System.out.println("--------------LifecycleListener: TERMINATION_EVENT"); > return; } } > > > i tried to creat the lifecycle module from the visual interface of > glassfish > but ever time glassfish wouldn't start up and give me this exception > > ATTENTION: Exception while starting bundle > com.sun.enterprise.osgi-adapter > [14] org.osgi.framework.BundleException: Activator start error in bundle > com.sun.enterprise.osgi-adapter [14]. at > org.apache.felix.framework.Felix.activateBundle(Felix.java:1751) at > org.apache.felix.framework.Felix.startBundle(Felix.java:1622) at > org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915) at > org.jvnet.hk2.osgimain.Main.start(Main.java:140) at > org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640) > >

      at org.apache.felix.framework.Felix.activateBundle()
    2. Apache Felix Framework
      Felix.activateBundle
      1. org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
      1 frame