java.lang.NoClassDefFoundError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I've just done a fresh install of Fedora 3.2.1 using the internal Tomcat installation that is provided with Fedora. The installation was completely successful, but when I start up Tomcat, an error in my logs: Jul 20, 2009 3:56:12 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive fedora.war ************************** ** FEDORA STARTUP ERROR ** ************************** Fedora startup failed fedora.server.errors.ServerInitializationException: java.lang.RuntimeException: fedora.server.Server.<init>(Server.java:665) Digging through my fedora.log provided the following: INFO 2009-07-20 15:55:01.842 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] (Server) Post-Initializing fedora.server.resourceIndex.ResourceIndexModule FATAL 2009-07-20 15:55:17.921 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] (Server) Fatal error while starting server java.lang.NoClassDefFoundError: com.hp.hpl.jena.graph.Node at java.lang.J9VMInternals.verifyImpl(Native Method) at java.lang.J9VMInternals.verify(J9VMInternals.java:69) at java.lang.J9VMInternals.initialize(J9VMInternals.java:131) at org.mulgara.resolver.LocalJRDFDatabaseSession.<init>(LocalJRDFDatabaseSession.java:134) at org.mulgara.resolver.Database.newJRDFSession(Database.java:1022) at org.mulgara.server.local.LocalSessionFactory.newJRDFSession(LocalSessionFactory.java:227) at org.trippi.impl.mulgara.MulgaraSessionFactory.newSession(MulgaraSessionFactory.java:180) at org.trippi.impl.base.ConfigurableSessionPool.grow(ConfigurableSessionPool.java:202) at org.trippi.impl.base.ConfigurableSessionPool.<init>(ConfigurableSessionPool.java:61) at org.trippi.impl.mulgara.MulgaraConnector.init(MulgaraConnector.java:158) at org.trippi.TriplestoreConnector.init(TriplestoreConnector.java:24) at fedora.server.resourceIndex.ResourceIndexModule.getConnector(ResourceIndexModule.java:137) at fedora.server.resourceIndex.ResourceIndexModule.postInitModule(ResourceIndexModule.java:99) So, it appears that the jena.jar package was not available to Tomcat. A quick search on the machine returned no such package. Downloading version 2.6.0 from jena.sourceforge.net and placing it in Tomcat's common/lib directory and doing a restart resolved the issue. I am reporting this against Fedora 3.2.1 but it also occurred with 3.2 (and perhaps earlier versions, although I was running a 2.2.x instance prior to this so did not test others). If I can provide any other information, please let me know.
    via by Jason Nugent,
  • I've just done a fresh install of Fedora 3.2.1 using the internal Tomcat installation that is provided with Fedora. The installation was completely successful, but when I start up Tomcat, an error in my logs: Jul 20, 2009 3:56:12 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive fedora.war ************************** ** FEDORA STARTUP ERROR ** ************************** Fedora startup failed fedora.server.errors.ServerInitializationException: java.lang.RuntimeException: fedora.server.Server.<init>(Server.java:665) Digging through my fedora.log provided the following: INFO 2009-07-20 15:55:01.842 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] (Server) Post-Initializing fedora.server.resourceIndex.ResourceIndexModule FATAL 2009-07-20 15:55:17.921 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] (Server) Fatal error while starting server java.lang.NoClassDefFoundError: com.hp.hpl.jena.graph.Node at java.lang.J9VMInternals.verifyImpl(Native Method) at java.lang.J9VMInternals.verify(J9VMInternals.java:69) at java.lang.J9VMInternals.initialize(J9VMInternals.java:131) at org.mulgara.resolver.LocalJRDFDatabaseSession.<init>(LocalJRDFDatabaseSession.java:134) at org.mulgara.resolver.Database.newJRDFSession(Database.java:1022) at org.mulgara.server.local.LocalSessionFactory.newJRDFSession(LocalSessionFactory.java:227) at org.trippi.impl.mulgara.MulgaraSessionFactory.newSession(MulgaraSessionFactory.java:180) at org.trippi.impl.base.ConfigurableSessionPool.grow(ConfigurableSessionPool.java:202) at org.trippi.impl.base.ConfigurableSessionPool.<init>(ConfigurableSessionPool.java:61) at org.trippi.impl.mulgara.MulgaraConnector.init(MulgaraConnector.java:158) at org.trippi.TriplestoreConnector.init(TriplestoreConnector.java:24) at fedora.server.resourceIndex.ResourceIndexModule.getConnector(ResourceIndexModule.java:137) at fedora.server.resourceIndex.ResourceIndexModule.postInitModule(ResourceIndexModule.java:99) So, it appears that the jena.jar package was not available to Tomcat. A quick search on the machine returned no such package. Downloading version 2.6.0 from jena.sourceforge.net and placing it in Tomcat's common/lib directory and doing a restart resolved the issue. I am reporting this against Fedora 3.2.1 but it also occurred with 3.2 (and perhaps earlier versions, although I was running a 2.2.x instance prior to this so did not test others). If I can provide any other information, please let me know.
    via by Jason Nugent,
  • EJB cannot locate the log 4j in the classpath
    via Stack Overflow by Victor
    ,
  • eDirectory 9045 user recon error
    via by Suren.Khatana,
  • Error calling ISG webservice
    via by Shishir,
    • java.lang.NoClassDefFoundError: com.hp.hpl.jena.graph.Node at java.lang.J9VMInternals.verifyImpl(Native Method) at java.lang.J9VMInternals.verify(J9VMInternals.java:69) at java.lang.J9VMInternals.initialize(J9VMInternals.java:131) at org.mulgara.resolver.LocalJRDFDatabaseSession.<init>(LocalJRDFDatabaseSession.java:134) at org.mulgara.resolver.Database.newJRDFSession(Database.java:1022) at org.mulgara.server.local.LocalSessionFactory.newJRDFSession(LocalSessionFactory.java:227) at org.trippi.impl.mulgara.MulgaraSessionFactory.newSession(MulgaraSessionFactory.java:180) at org.trippi.impl.base.ConfigurableSessionPool.grow(ConfigurableSessionPool.java:202) at org.trippi.impl.base.ConfigurableSessionPool.<init>(ConfigurableSessionPool.java:61) at org.trippi.impl.mulgara.MulgaraConnector.init(MulgaraConnector.java:158) at org.trippi.TriplestoreConnector.init(TriplestoreConnector.java:24) at fedora.server.resourceIndex.ResourceIndexModule.getConnector(ResourceIndexModule.java:137) at fedora.server.resourceIndex.ResourceIndexModule.postInitModule(ResourceIndexModule.java:99)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    30 more bugmates