Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-3971

James server startup issue with error as org.apache.openjpa.persistence.PersistenceProductDerivation:java.lang.NoClassDefFoundError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 3.8.0
    • None
    • James Core
    • None

    Description

      We downloaded the binary file - [*https://dlcdn.apache.org/james/server/3.8.0/james-server-jpa-guice.zip*] and follow the documentation for installation in link - https://james.apache.org/server/install/guice-jpa-smtp.html

       

      As part of this the last step to launch the james server we are getting error as - 

      #java -classpath '/<local_path>/james-server-jpa-guice/james-server-jpa-guice.jar:james-server-jpa-guice.lib/*' -javaagent:'/<local_path>/james-server-jpa-guice/james-server-jpa-app.lib/openjpa-3.2.0.jar' -Dlogback.configurationFile='conf/logback.xml'  org.apache.james.JPAJamesServerMain
      Some product derivations are being skipped. For information about product derivation status, run:
      java org.apache.openjpa.lib.conf.ProductDerivations
      org.apache.openjpa.persistence.PersistenceProductDerivation:java.lang.NoClassDefFoundError: javax/persistence/spi/PersistenceUnitInfo
      Error: Could not find or load main class org.apache.james.JPAJamesServerMain 

      Please help to check and let us know how to fix it.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sachinn19 Sachin Nilajkar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m