Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by fithwith, 1 year ago
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
via Google Groups by Mahesh Vanamula, 11 months ago
org/osgi/framework/BundleActivator Here is the server log [#|2010-01-26T16:43:17.517-0500|SEVERE|glassfishv3.0|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=24;_ThreadName=Thread-1;|org.osgi.framework.BundleException: Activator start error in bundle HelloWorld [245].
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)