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
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards 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)
  3. 0

    [PAXLOGGING-114] Not able to provide a custom log4j Pattern layout class - OPS4J Issues

    jira.com | 1 year ago
    java.lang.NoClassDefFoundError: org/apache/log4j/PaxLoggingConfigurator at org.ops4j.pax.logging.service.internal.PaxLoggingServiceImpl.configureDefaults(PaxLoggingServiceImpl.java:251) at org.ops4j.pax.logging.service.internal.PaxLoggingServiceImpl.<init>(PaxLoggingServiceImpl.java:61) at org.ops4j.pax.logging.service.internal.Activator.start(Activator.java:108) at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:629)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    users-felix-apache - unresolved constraint "org.osgi.service.event" problem - msg#00045 - Recent Discussion OSDir.com

    osdir.com | 2 years ago
    java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.compass.core.config.CompassConfiguration.<clinit>(CompassConfiguration.java:94) at dwmj.index.internal.IndexServiceActivator.getCompass(IndexServiceActivator.java:23) at dwmj.index.internal.IndexServiceActivator.start(IndexServiceActivator.java:13) at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:639)
  6. 0

    Karaf - User - Karaf JMS Feature breaks OpenJPA Feature

    nabble.com | 1 year ago
    java.lang.NoClassDefFoundError: javax/transaction/SystemException at org.apache.openjpa.persistence.osgi.PersistenceActivator.start(PersistenceActivator.java:61) at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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