Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.7.1
    • Fix Version/s: 1.7.1
    • Component/s: Maven Integration
    • Labels:
      None

      Description

      When I tried to use the current Cactus plugin from CVS, I got the following error (after running maven -X):

      java.lang.NoClassDefFoundError: org/codehaus/cargo/module/webapp/WarArchive
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
      at java.lang.Class.getDeclaredConstructors(Class.java:1177)
      at org.apache.tools.ant.AntClassLoader.initializeClass(AntClassLoader.ja
      va:484)
      at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:231)

      at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:208)

      I tried to fix it adding Cargo's jar:

      <dependency>
      <groupId>cargo</groupId>
      <artifactId>cargo</artifactId>
      <version>0.5</version>
      </dependency>

      But the exception persisted; I guess it's missing some Cargo dependency, but I don't know which one (and I haven't had the time to look at the WarArchive.java to figure it out).

      – Felipe

        Activity

        Hide
        Felipe Leme added a comment -

        The situation is pretty weird: I tested it at home in a Linux machine and everything worked fine. But on machine at work (Windows running Cygwin), I got the forementioned error.

        It's happenning even at the plugin's test cases:

        t_fl01@CPQD050714 /e/cvs/cactus/public/pristine/integration/maven
        $ maven plugin:test
        __ __

        \/ __ Apache_ ___
          \/ / ` \ V / -) ' \ ~ intelligent projects ~
        _   _,_ _/___ _ _ v. 1.0.2

        Starting the reactor...
        Our processing order:
        testBundlePropertiesTest
        testCactusSysProperties
        testCactusTestSkip
        TestCactusWarEarProperties
        testCustomWarName
        testIncludeResources
        testMultipleSrcDir
        testSimpleWar
        testSimpleWar
        testSkipPropertyEar
        testSkipProperty
        +----------------------------------------

        Test testBundlePropertiesTest
        Memory: 3M/5M
        +----------------------------------------

        BUILD FAILED
        File...... C:\Documents and Settings\t_fl01\.maven\cache\maven-plugin-plugin-1.5.2\plugin.jelly
        Element... maven:maven
        Line...... 267
        Column.... 34
        Unable to obtain goal [testPlugin] – e:\cvs\cactus\public\pristine\integration\maven\src\plugin-test\maven.xml:25:31: <maven:reactor> Reactor subproject failure occurred
        Total time: 3 seconds
        Finished at: Tue May 31 12:38:59 GMT 2005

        Running maven -X:

        — Nested Exception —
        java.lang.NoClassDefFoundError: org/codehaus/cargo/module/webapp/WarArchive
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
        at java.lang.Class.getDeclaredConstructors(Class.java:1177)
        at org.apache.tools.ant.AntClassLoader.initializeClass(AntClassLoader.ja
        va:484)
        at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:231)

        Is someone else facing the same issues?

        – Felipe

        Show
        Felipe Leme added a comment - The situation is pretty weird: I tested it at home in a Linux machine and everything worked fine. But on machine at work (Windows running Cygwin), I got the forementioned error. It's happenning even at the plugin's test cases: t_fl01@CPQD050714 /e/cvs/cactus/public/pristine/integration/maven $ maven plugin:test __ __ \/ __ Apache _ ___   \/ / ` \ V / - ) ' \ ~ intelligent projects ~ _   _ ,_ _/___ _ _ v. 1.0.2 Starting the reactor... Our processing order: testBundlePropertiesTest testCactusSysProperties testCactusTestSkip TestCactusWarEarProperties testCustomWarName testIncludeResources testMultipleSrcDir testSimpleWar testSimpleWar testSkipPropertyEar testSkipProperty +---------------------------------------- Test testBundlePropertiesTest Memory: 3M/5M +---------------------------------------- BUILD FAILED File...... C:\Documents and Settings\t_fl01\.maven\cache\maven-plugin-plugin-1.5.2\plugin.jelly Element... maven:maven Line...... 267 Column.... 34 Unable to obtain goal [testPlugin] – e:\cvs\cactus\public\pristine\integration\maven\src\plugin-test\maven.xml:25:31: <maven:reactor> Reactor subproject failure occurred Total time: 3 seconds Finished at: Tue May 31 12:38:59 GMT 2005 Running maven -X: — Nested Exception — java.lang.NoClassDefFoundError: org/codehaus/cargo/module/webapp/WarArchive at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618) at java.lang.Class.getDeclaredConstructors(Class.java:1177) at org.apache.tools.ant.AntClassLoader.initializeClass(AntClassLoader.ja va:484) at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:231) Is someone else facing the same issues? – Felipe
        Hide
        Felipe Leme added a comment -

        Ok, I got the solution: adding a <ant:pathelement location="$

        {plugin.getDependencyPath('cargo:cargo')}

        "/> tag to Cactus's classpath.

        So, my question now is: can I go ahead and add this Cargo dependency? Should the plugin depend on Cargo? Vincent/Magnus, any comment?

        – Felipe

        Show
        Felipe Leme added a comment - Ok, I got the solution: adding a <ant:pathelement location="$ {plugin.getDependencyPath('cargo:cargo')} "/> tag to Cactus's classpath. So, my question now is: can I go ahead and add this Cargo dependency? Should the plugin depend on Cargo? Vincent/Magnus, any comment? – Felipe
        Hide
        Felipe Leme added a comment -

        I guess adding the dependency doesn't hurt, so I did it

        Show
        Felipe Leme added a comment - I guess adding the dependency doesn't hurt, so I did it

          People

          • Assignee:
            Felipe Leme
            Reporter:
            Felipe Leme
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development