java.lang.NoClassDefFoundError: com.hp.hpl.jena.graph.Node

Sakai JIRA | Jason Nugent | 7 years ago
  1. 0

    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.

    Sakai JIRA | 7 years ago | Jason Nugent
    java.lang.NoClassDefFoundError: com.hp.hpl.jena.graph.Node
  2. 0

    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.

    Sakai JIRA | 7 years ago | Jason Nugent
    java.lang.NoClassDefFoundError: com.hp.hpl.jena.graph.Node
  3. 0

    EJB cannot locate the log 4j in the classpath

    Stack Overflow | 3 years ago | Victor
    java.lang.NoClassDefFoundError: org.apache.log4j.Priority
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Oracle Identity Management in English: Registrytester.bat gives the following error

    blogspot.com | 7 months ago
    java.lang.NoClassDefFoundError: com.ibm.ws.bootstrap.RASWsLoggerFactory
  6. 0

    java.lang.NoClassDefFoundError: net.sf.cglib.asm.ClassVisitor

    Google Groups | 5 years ago | Julie Burnard
    java.lang.NoClassDefFoundError: net.sf.cglib.asm.ClassVisitor

    38 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.NoClassDefFoundError

      com.hp.hpl.jena.graph.Node

      at java.lang.J9VMInternals.verifyImpl()
    2. Java RT
      J9VMInternals.initialize
      1. java.lang.J9VMInternals.verifyImpl(Native Method)
      2. java.lang.J9VMInternals.verify(J9VMInternals.java:69)
      3. java.lang.J9VMInternals.initialize(J9VMInternals.java:131)
      3 frames
    3. org.mulgara.resolver
      Database.newJRDFSession
      1. org.mulgara.resolver.LocalJRDFDatabaseSession.<init>(LocalJRDFDatabaseSession.java:134)
      2. org.mulgara.resolver.Database.newJRDFSession(Database.java:1022)
      2 frames
    4. org.mulgara.server
      LocalSessionFactory.newJRDFSession
      1. org.mulgara.server.local.LocalSessionFactory.newJRDFSession(LocalSessionFactory.java:227)
      1 frame
    5. org.trippi.impl
      MulgaraConnector.init
      1. org.trippi.impl.mulgara.MulgaraSessionFactory.newSession(MulgaraSessionFactory.java:180)
      2. org.trippi.impl.base.ConfigurableSessionPool.grow(ConfigurableSessionPool.java:202)
      3. org.trippi.impl.base.ConfigurableSessionPool.<init>(ConfigurableSessionPool.java:61)
      4. org.trippi.impl.mulgara.MulgaraConnector.init(MulgaraConnector.java:158)
      4 frames
    6. org.trippi
      TriplestoreConnector.init
      1. org.trippi.TriplestoreConnector.init(TriplestoreConnector.java:24)
      1 frame
    7. fedora.server.resourceIndex
      ResourceIndexModule.postInitModule
      1. fedora.server.resourceIndex.ResourceIndexModule.getConnector(ResourceIndexModule.java:137)
      2. fedora.server.resourceIndex.ResourceIndexModule.postInitModule(ResourceIndexModule.java:99)
      2 frames