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) > >

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web7

  • via Unknown by fithwith,
  • via Unknown by Unknown author,
  • Stack trace

    • 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(Felix.java:1700)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.