FAQ
Does a "mvn install" currently build for others? Whenever I try it
(or to build the Mac DMG), I get:

[INFO] ----------------------------------------------------------------------------
[INFO] Building Cayenne JPA Unpublished
[INFO] task-segment: [install]
[INFO] ----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory:
/usr/local/mrg/Projects/eclipse/workspace/Cayenne30/framework/cayenne-jpa-unpublished/target/surefire-reports
org.apache.maven.surefire.booter.SurefireExecutionException:
org/apache/cayenne/jpa/JpaEntityManagerFactory; nested exception is
java.lang.NoClassDefFoundError:
org/apache/cayenne/jpa/JpaEntityManagerFactory
java.lang.NoClassDefFoundError: org/apache/cayenne/jpa/JpaEntityManagerFactory
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
at java.lang.Class.getMethod0(Class.java:2611)
at java.lang.Class.getMethod(Class.java:1579)
at org.apache.maven.surefire.junit.JUnitTestSet.createInstanceFromSuiteMethod(JUnitTestSet.java:173)
at org.apache.maven.surefire.junit.JUnitTestSet.constructTestObject(JUnitTestSet.java:137)
at org.apache.maven.surefire.junit.JUnitTestSet.getTestCount(JUnitTestSet.java:244)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:101)
at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:147)
at org.apache.maven.surefire.Surefire.run(Surefire.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------





Just curious if it is isolated to me or something. Thanks!

/dev/mrg

Search Discussions

  • Andrus Adamchik at Feb 7, 2007 at 2:14 pm
    Hmm, looks like a problem due to a recent refactoring. I suggest to
    start with a clean local repo:

    rm -rf ~/.m2/repository/org/apache/cayenne
    cd cayenne/ && mvn clean install

    Andrus

    On Feb 7, 2007, at 3:57 PM, Michael Gentry wrote:

    Does a "mvn install" currently build for others? Whenever I try it
    (or to build the Mac DMG), I get:

    [INFO]
    ----------------------------------------------------------------------
    ------
    [INFO] Building Cayenne JPA Unpublished
    [INFO] task-segment: [install]
    [INFO]
    ----------------------------------------------------------------------
    ------
    [INFO] [resources:resources]
    [INFO] Using default encoding to copy filtered resources.
    [INFO] [compiler:compile]
    [INFO] Nothing to compile - all classes are up to date
    [INFO] [resources:testResources]
    [INFO] Using default encoding to copy filtered resources.
    [INFO] [compiler:testCompile]
    [INFO] Nothing to compile - all classes are up to date
    [INFO] [surefire:test]
    [INFO] Surefire report directory:
    /usr/local/mrg/Projects/eclipse/workspace/Cayenne30/framework/
    cayenne-jpa-unpublished/target/surefire-reports
    org.apache.maven.surefire.booter.SurefireExecutionException:
    org/apache/cayenne/jpa/JpaEntityManagerFactory; nested exception is
    java.lang.NoClassDefFoundError:
    org/apache/cayenne/jpa/JpaEntityManagerFactory
    java.lang.NoClassDefFoundError: org/apache/cayenne/jpa/
    JpaEntityManagerFactory
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
    at java.lang.Class.getMethod0(Class.java:2611)
    at java.lang.Class.getMethod(Class.java:1579)
    at
    org.apache.maven.surefire.junit.JUnitTestSet.createInstanceFromSuiteMe
    thod(JUnitTestSet.java:173)
    at
    org.apache.maven.surefire.junit.JUnitTestSet.constructTestObject
    (JUnitTestSet.java:137)
    at org.apache.maven.surefire.junit.JUnitTestSet.getTestCount
    (JUnitTestSet.java:244)
    at
    org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestS
    ets(AbstractDirectoryTestSuite.java:101)
    at
    org.apache.maven.surefire.Surefire.createSuiteFromDefinition
    (Surefire.java:147)
    at org.apache.maven.surefire.Surefire.run(Surefire.java:108)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke
    (NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke
    (DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at
    org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess
    (SurefireBooter.java:225)
    at org.apache.maven.surefire.booter.SurefireBooter.main
    (SurefireBooter.java:747)
    [INFO]
    ----------------------------------------------------------------------
    --
    [ERROR] BUILD FAILURE
    [INFO]
    ----------------------------------------------------------------------
    --





    Just curious if it is isolated to me or something. Thanks!

    /dev/mrg
  • Michael Gentry at Feb 7, 2007 at 2:38 pm
    That got me closer. I now get this, though:

    -------------------------------------------------------
    T E S T S
    -------------------------------------------------------
    Running org.apache.cayenne.jpa.itest.ch5._5_5_1_JtaEntityManagerTest
    Apache OpenEJB 3.0-incubating-SNAPSHOT build: 20070206-12:30
    http://incubator.apache.org/openejb
    09:22:10,433 WARN [OpenEJB] Cannot find the configuration file
    [conf/openejb.xml]. Creating one at
    /usr/local/mrg/Projects/eclipse/workspace/Cayenne30/itests/jpa-chapter5/target/openejb-out/conf/openejb.xml
    09:22:11,106 DEBUG [startup] Containers : 5
    09:22:11,106 DEBUG [startup] Type Container ID
    09:22:11,108 DEBUG [startup] BMP ENTITY Default BMP Container
    09:22:11,108 DEBUG [startup] MESSAGE Default MDB Container
    09:22:11,108 DEBUG [startup] CMP ENTITY Default CMP Container
    09:22:11,109 DEBUG [startup] STATEFUL Default Stateful Container
    09:22:11,109 DEBUG [startup] STATELESS Default Stateless Container
    09:22:11,109 DEBUG [startup] Deployments : 0
    09:22:11,109 DEBUG [startup] SecurityService :
    org.apache.openejb.ri.sp.PseudoSecurityService
    09:22:11,109 DEBUG [startup] TransactionManager:
    org.apache.geronimo.transaction.manager.GeronimoTransactionManager
    09:22:11,109 INFO [startup] OpenEJB ready.
    OpenEJB ready.
    Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.392
    sec <<< FAILURE!


    I'm in the middle of destroying a Tapestry app, so I'll take a look at
    this later on.

    Thanks,

    /dev/mrg


    On 2/7/07, Andrus Adamchik wrote:
    Hmm, looks like a problem due to a recent refactoring. I suggest to
    start with a clean local repo:

    rm -rf ~/.m2/repository/org/apache/cayenne
    cd cayenne/ && mvn clean install

    Andrus

    On Feb 7, 2007, at 3:57 PM, Michael Gentry wrote:

    Does a "mvn install" currently build for others? Whenever I try it
    (or to build the Mac DMG), I get:

    [INFO]
    ----------------------------------------------------------------------
    ------
    [INFO] Building Cayenne JPA Unpublished
    [INFO] task-segment: [install]
    [INFO]
    ----------------------------------------------------------------------
    ------
    [INFO] [resources:resources]
    [INFO] Using default encoding to copy filtered resources.
    [INFO] [compiler:compile]
    [INFO] Nothing to compile - all classes are up to date
    [INFO] [resources:testResources]
    [INFO] Using default encoding to copy filtered resources.
    [INFO] [compiler:testCompile]
    [INFO] Nothing to compile - all classes are up to date
    [INFO] [surefire:test]
    [INFO] Surefire report directory:
    /usr/local/mrg/Projects/eclipse/workspace/Cayenne30/framework/
    cayenne-jpa-unpublished/target/surefire-reports
    org.apache.maven.surefire.booter.SurefireExecutionException:
    org/apache/cayenne/jpa/JpaEntityManagerFactory; nested exception is
    java.lang.NoClassDefFoundError:
    org/apache/cayenne/jpa/JpaEntityManagerFactory
    java.lang.NoClassDefFoundError: org/apache/cayenne/jpa/
    JpaEntityManagerFactory
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
    at java.lang.Class.getMethod0(Class.java:2611)
    at java.lang.Class.getMethod(Class.java:1579)
    at
    org.apache.maven.surefire.junit.JUnitTestSet.createInstanceFromSuiteMe
    thod(JUnitTestSet.java:173)
    at
    org.apache.maven.surefire.junit.JUnitTestSet.constructTestObject
    (JUnitTestSet.java:137)
    at org.apache.maven.surefire.junit.JUnitTestSet.getTestCount
    (JUnitTestSet.java:244)
    at
    org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestS
    ets(AbstractDirectoryTestSuite.java:101)
    at
    org.apache.maven.surefire.Surefire.createSuiteFromDefinition
    (Surefire.java:147)
    at org.apache.maven.surefire.Surefire.run(Surefire.java:108)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke
    (NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke
    (DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at
    org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess
    (SurefireBooter.java:225)
    at org.apache.maven.surefire.booter.SurefireBooter.main
    (SurefireBooter.java:747)
    [INFO]
    ----------------------------------------------------------------------
    --
    [ERROR] BUILD FAILURE
    [INFO]
    ----------------------------------------------------------------------
    --





    Just curious if it is isolated to me or something. Thanks!

    /dev/mrg
  • Andrus Adamchik at Feb 7, 2007 at 2:47 pm
    This is due to an issue with Geronimo TransactionManager that was
    recently fixed. I think this code didn't make it to the Maven
    snapshot repo yet, so you'll have to build this module manually (or
    skip the integration tests for now):

    http://objectstyle.org/cayenne/lists/cayenne-devel/2007/02/0040.html
    http://svn.apache.org/repos/asf/geronimo/server/trunk/modules/
    geronimo-transaction/



    Talking about which, I just opened another issue that prevents in-
    container testing of some scenarios, but all the affected tests are
    commented out:

    https://issues.apache.org/jira/browse/GERONIMO-2809

    Andrus

    On Feb 7, 2007, at 4:38 PM, Michael Gentry wrote:

    -------------------------------------------------------
    T E S T S
    -------------------------------------------------------
    Running org.apache.cayenne.jpa.itest.ch5._5_5_1_JtaEntityManagerTest
    Apache OpenEJB 3.0-incubating-SNAPSHOT build: 20070206-12:30
    http://incubator.apache.org/openejb
    09:22:10,433 WARN [OpenEJB] Cannot find the configuration file
    [conf/openejb.xml]. Creating one at
    /usr/local/mrg/Projects/eclipse/workspace/Cayenne30/itests/jpa-
    chapter5/target/openejb-out/conf/openejb.xml
    09:22:11,106 DEBUG [startup] Containers : 5
    09:22:11,106 DEBUG [startup] Type Container ID
    09:22:11,108 DEBUG [startup] BMP ENTITY Default BMP Container
    09:22:11,108 DEBUG [startup] MESSAGE Default MDB Container
    09:22:11,108 DEBUG [startup] CMP ENTITY Default CMP Container
    09:22:11,109 DEBUG [startup] STATEFUL Default Stateful Container
    09:22:11,109 DEBUG [startup] STATELESS Default Stateless
    Container
    09:22:11,109 DEBUG [startup] Deployments : 0
    09:22:11,109 DEBUG [startup] SecurityService :
    org.apache.openejb.ri.sp.PseudoSecurityService
    09:22:11,109 DEBUG [startup] TransactionManager:
    org.apache.geronimo.transaction.manager.GeronimoTransactionManager
    09:22:11,109 INFO [startup] OpenEJB ready.
    OpenEJB ready.
    Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.392
    sec <<< FAILURE!
  • Mike Kienenberger at Feb 7, 2007 at 4:03 pm
    In my MyFaces maven experience, I've found it to be a good idea to
    always use "mvn clean install" instead of "mvn install", and as Andrus
    says, you still sometimes have to purge the repository.
    On 2/7/07, Andrus Adamchik wrote:
    Hmm, looks like a problem due to a recent refactoring. I suggest to
    start with a clean local repo:

    rm -rf ~/.m2/repository/org/apache/cayenne
    cd cayenne/ && mvn clean install

    Andrus

    On Feb 7, 2007, at 3:57 PM, Michael Gentry wrote:

    Does a "mvn install" currently build for others? Whenever I try it
    (or to build the Mac DMG), I get:

    [INFO]
    ----------------------------------------------------------------------
    ------
    [INFO] Building Cayenne JPA Unpublished
    [INFO] task-segment: [install]
    [INFO]
    ----------------------------------------------------------------------
    ------
    [INFO] [resources:resources]
    [INFO] Using default encoding to copy filtered resources.
    [INFO] [compiler:compile]
    [INFO] Nothing to compile - all classes are up to date
    [INFO] [resources:testResources]
    [INFO] Using default encoding to copy filtered resources.
    [INFO] [compiler:testCompile]
    [INFO] Nothing to compile - all classes are up to date
    [INFO] [surefire:test]
    [INFO] Surefire report directory:
    /usr/local/mrg/Projects/eclipse/workspace/Cayenne30/framework/
    cayenne-jpa-unpublished/target/surefire-reports
    org.apache.maven.surefire.booter.SurefireExecutionException:
    org/apache/cayenne/jpa/JpaEntityManagerFactory; nested exception is
    java.lang.NoClassDefFoundError:
    org/apache/cayenne/jpa/JpaEntityManagerFactory
    java.lang.NoClassDefFoundError: org/apache/cayenne/jpa/
    JpaEntityManagerFactory
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
    at java.lang.Class.getMethod0(Class.java:2611)
    at java.lang.Class.getMethod(Class.java:1579)
    at
    org.apache.maven.surefire.junit.JUnitTestSet.createInstanceFromSuiteMe
    thod(JUnitTestSet.java:173)
    at
    org.apache.maven.surefire.junit.JUnitTestSet.constructTestObject
    (JUnitTestSet.java:137)
    at org.apache.maven.surefire.junit.JUnitTestSet.getTestCount
    (JUnitTestSet.java:244)
    at
    org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestS
    ets(AbstractDirectoryTestSuite.java:101)
    at
    org.apache.maven.surefire.Surefire.createSuiteFromDefinition
    (Surefire.java:147)
    at org.apache.maven.surefire.Surefire.run(Surefire.java:108)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke
    (NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke
    (DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at
    org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess
    (SurefireBooter.java:225)
    at org.apache.maven.surefire.booter.SurefireBooter.main
    (SurefireBooter.java:747)
    [INFO]
    ----------------------------------------------------------------------
    --
    [ERROR] BUILD FAILURE
    [INFO]
    ----------------------------------------------------------------------
    --





    Just curious if it is isolated to me or something. Thanks!

    /dev/mrg

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categoriescayenne
postedFeb 7, '07 at 1:58p
activeFeb 7, '07 at 4:03p
posts5
users3
websitecayenne.apache.org

People

Translate

site design / logo © 2022 Grokbase