java.lang.NoClassDefFoundError: org/osgi/framework/BundleActivator

Oracle Community | Thirunavukkarasu Muthuswamy | 4 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

    java.lang.NoClassDefFoundError: org/osgi/framework/BundleActivator

    Oracle Community | 4 years ago | Thirunavukkarasu Muthuswamy
    java.lang.NoClassDefFoundError: org/osgi/framework/BundleActivator
  2. 0

    The following occurs during startup of Weblogic 12.1.1 {code} root@cloud-10-0-18-31:~/Liferay/master-bundles/weblogic-12.1.1/domains/liferay> ./startWebLogic.sh . . JAVA Memory arguments: -Xmx1024m -XX:PermSize=512m . WLS Start Mode=Development . CLASSPATH=/root/Liferay/master-bundles/weblogic-12.1.1/patch_wls1211/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/root/Liferay/master-bundles/weblogic-12.1.1/patch_ocp371/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/java/jdk1.7.0_79/lib/tools.jar:/root/Liferay/master-bundles/weblogic-12.1.1/wlserver/server/lib/weblogic_sp.jar:/root/Liferay/master-bundles/weblogic-12.1.1/wlserver/server/lib/weblogic.jar:/root/Liferay/master-bundles/weblogic-12.1.1/modules/features/weblogic.server.modules_12.1.1.0.jar:/root/Liferay/master-bundles/weblogic-12.1.1/wlserver/server/lib/webservices.jar:/root/Liferay/master-bundles/weblogic-12.1.1/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/root/Liferay/master-bundles/weblogic-12.1.1/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/root/Liferay/master-bundles/weblogic-12.1.1/wlserver/common/derby/lib/derbyclient.jar:/root/Liferay/master-bundles/weblogic-12.1.1/wlserver/server/lib/xqrl.jar . PATH=/root/Liferay/master-bundles/weblogic-12.1.1/wlserver/server/bin:/root/Liferay/master-bundles/weblogic-12.1.1/modules/org.apache.ant_1.7.1/bin:/opt/java/jdk1.7.0_79/jre/bin:/opt/java/jdk1.7.0_79/bin:/opt/java/ant/bin:/opt/java/jdk/bin:/opt/java/maven/bin:/sbin:/usr/sbin:/usr/lib64/qt-3.3/bin:/opt/java/ant/bin:/opt/java/jdk/bin:/opt/java/maven/bin:/sbin:/usr/sbin:/opt/java/ant/bin:/opt/java/jdk/bin:/opt/java/maven/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin . *************************************************** * To start WebLogic Server, use a username and * * password assigned to an admin-level user. For * * server administration, use the WebLogic Server * * console at http://hostname:port/console * *************************************************** starting weblogic with Java version: java version "1.7.0_79" Java(TM) SE Runtime Environment (build 1.7.0_79-b15) Java HotSpot(TM) Client VM (build 24.79-b02, mixed mode) Starting WLS with line: /opt/java/jdk1.7.0_79/bin/java -client -Xmx1024m -XX:PermSize=512m -Dweblogic.Name=AdminServer -Djava.security.policy=/root/Liferay/master-bundles/weblogic-12.1.1/wlserver/server/lib/weblogic.policy -da:org.apache.lucene... -da:org.aspectj... -Xverify:none -Djava.endorsed.dirs=/opt/java/jdk1.7.0_79/jre/lib/endorsed:/root/Liferay/master-bundles/weblogic-12.1.1/wlserver/endorsed -da -Dfile.encoding=utf8 -Dplatform.home=/root/Liferay/master-bundles/weblogic-12.1.1/wlserver -Dwls.home=/root/Liferay/master-bundles/weblogic-12.1.1/wlserver/server -Dweblogic.home=/root/Liferay/master-bundles/weblogic-12.1.1/wlserver/server -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/root/Liferay/master-bundles/weblogic-12.1.1/patch_wls1211/profiles/default/sysext_manifest_classpath:/root/Liferay/master-bundles/weblogic-12.1.1/patch_ocp371/profiles/default/sysext_manifest_classpath weblogic.Server <Sep 30, 2015 2:57:12 PM MDT> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true> <Sep 30, 2015 2:57:12 PM MDT> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true> <Sep 30, 2015 2:57:12 PM MDT> <Notice> <WebLogicServer> <BEA-000395> <The following extensions directory contents added to the end of the classpath: /root/Liferay/master-bundles/weblogic-12.1.1/domains/liferay/lib/com.liferay.osgi.service.tracker.map.jar:/root/Liferay/master-bundles/weblogic-12.1.1/domains/liferay/lib/com.liferay.registry.api.jar:/root/Liferay/master-bundles/weblogic-12.1.1/domains/liferay/lib/hsql.jar:/root/Liferay/master-bundles/weblogic-12.1.1/domains/liferay/lib/jtds.jar:/root/Liferay/master-bundles/weblogic-12.1.1/domains/liferay/lib/mysql.jar:/root/Liferay/master-bundles/weblogic-12.1.1/domains/liferay/lib/portal-service.jar:/root/Liferay/master-bundles/weblogic-12.1.1/domains/liferay/lib/portlet.jar:/root/Liferay/master-bundles/weblogic-12.1.1/domains/liferay/lib/postgresql.jar.> <Sep 30, 2015 2:57:12 PM MDT> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: java.lang.NoClassDefFoundError: org/osgi/framework/BundleActivator java.lang.NoClassDefFoundError: org/osgi/framework/BundleActivator at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:274) at weblogic.t3.srvr.servicegroups.ServicePluginGroup.processPossibleServicePlugin(ServicePluginGroup.java:157) at weblogic.t3.srvr.servicegroups.ServicePluginGroup.<init>(ServicePluginGroup.java:90) at weblogic.t3.srvr.servicegroups.ServerServiceDependencies.<init>(ServerServiceDependencies.java:60) at weblogic.t3.srvr.servicegroups.ServerServiceDependencies.<clinit>(ServerServiceDependencies.java:50) at weblogic.t3.srvr.ServerServices.<clinit>(ServerServices.java:94) at weblogic.t3.srvr.ServerServicesManager.getServicesBeforeStandbyState(ServerServicesManager.java:370) at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:149) at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:883) at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:570) at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:469) at weblogic.Server.main(Server.java:74) Caused By: java.lang.ClassNotFoundException: org.osgi.framework.BundleActivator at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:274) at weblogic.t3.srvr.servicegroups.ServicePluginGroup.processPossibleServicePlugin(ServicePluginGroup.java:157) at weblogic.t3.srvr.servicegroups.ServicePluginGroup.<init>(ServicePluginGroup.java:90) at weblogic.t3.srvr.servicegroups.ServerServiceDependencies.<init>(ServerServiceDependencies.java:60) at weblogic.t3.srvr.servicegroups.ServerServiceDependencies.<clinit>(ServerServiceDependencies.java:50) at weblogic.t3.srvr.ServerServices.<clinit>(ServerServices.java:94) at weblogic.t3.srvr.ServerServicesManager.getServicesBeforeStandbyState(ServerServicesManager.java:370) at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:149) at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:883) at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:570) at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:469) at weblogic.Server.main(Server.java:74) > <Sep 30, 2015 2:57:12 PM MDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED.> <Sep 30, 2015 2:57:12 PM MDT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down.> <Sep 30, 2015 2:57:12 PM MDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN.> {code}

    Liferay Issues | 2 years ago | Albert Lee
    java.lang.ClassNotFoundException: org.osgi.framework.BundleActivator

  1. johnxfly 3 times, last 3 weeks ago
  2. jf-ast 1 times, last 2 months ago
  3. jokester 2 times, last 4 months ago
  4. andyglick 1 times, last 4 months ago
  5. rlovtangen 2 times, last 5 months ago
9 more registered users
86 unregistered visitors
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.ClassNotFoundException

    org.osgi.framework.BundleActivator

    at java.net.URLClassLoader$1.run()
  2. Java RT
    Class.forName
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    2. java.security.AccessController.doPrivileged(Native Method)
    3. java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    6. java.lang.ClassLoader.defineClass1(Native Method)
    7. java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    8. java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    9. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    10. java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    11. java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    12. java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    13. java.security.AccessController.doPrivileged(Native Method)
    14. java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    15. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    16. java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    17. java.lang.Class.forName0(Native Method)
    18. java.lang.Class.forName(Class.java:247)
    18 frames
  3. weblogic.t3.srvr
    T3Srvr.run
    1. weblogic.t3.srvr.servicegroups.ServicePluginGroup.processPossibleServicePlugin(ServicePluginGroup.java:157)
    2. weblogic.t3.srvr.servicegroups.ServicePluginGroup.<init>(ServicePluginGroup.java:90)
    3. weblogic.t3.srvr.servicegroups.ServerServiceDependencies.<init>(ServerServiceDependencies.java:60)
    4. weblogic.t3.srvr.servicegroups.ServerServiceDependencies.<clinit>(ServerServiceDependencies.java:50)
    5. weblogic.t3.srvr.ServerServices.<clinit>(ServerServices.java:94)
    6. weblogic.t3.srvr.ServerServicesManager.getServicesBeforeStandbyState(ServerServicesManager.java:370)
    7. weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:149)
    8. weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:883)
    9. weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:570)
    10. weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:469)
    10 frames
  4. weblogic
    Server.main
    1. weblogic.Server.main(Server.java:74)
    1 frame