You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Mario L (JIRA)" <ji...@apache.org> on 2008/05/19 11:23:56 UTC

[jira] Created: (AXIS2-3807) codegen changes Ant Home thus no Ant Builder task works anymore - missing AntMain

codegen changes Ant Home thus no Ant Builder task works anymore - missing AntMain
---------------------------------------------------------------------------------

                 Key: AXIS2-3807
                 URL: https://issues.apache.org/jira/browse/AXIS2-3807
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: codegen
    Affects Versions: 1.3
         Environment: Windows XP, Eclipse 3.3.2, Java 1.5.14, Ant 1.7
            Reporter: Mario L
            Priority: Critical


As soon as I copied the plugin in Eclipse plugins directory, the Ant Home changed (see Window->Preferences->Ant->Runtime, ANt Home Entries). I didn't do it myself so I presume the plugin did that.
Now all my project's Ant Builder tasks fail with an ominous:

java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/AntMain
	at java.lang.ClassLoader.defineClass1(Native Method)

That's quite understandable, the Ant home ( the codegen plugin's /lib directory) does not contain ant-launch.jar which exports the missing class above. Of course I could copy the ant-launch.jar in the plugin's lib directory, but replacing step by step the already existing Ant plugin is just silly. The codegen should leverage the existing plugin, not provide supplementary ant jars (chaos ensured)

If I try to workaround this in a cleaner way and add the jar to Ant classpath as external, Eclipse will complain and not let me do it: "Specified Ant home does not contain a "lib" directory". It looks like even the replaced Ant home installed with the codegen plugin is wrong.

The solution is: leave the Ant path the way it is (so I had to switch back to the Ant plugin home), and simply add the Axis2CodegenWizard.jar and whatever other jar's you need in the Global entries (as external jar) of the above mentioned Ant classpath.

The same solution might help also the reported bug AXIS2-3792

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-3807) codegen changes Ant Home thus no Ant Builder task works anymore - missing AntMain

Posted by "Jeff Barrett (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12608865#action_12608865 ] 

Jeff Barrett commented on AXIS2-3807:
-------------------------------------

Note that the patch for AXIS2-3792 has been commited to trunk.  Based on Tom's comment above, perhaps that will resolve this issue.

> codegen changes Ant Home thus no Ant Builder task works anymore - missing AntMain
> ---------------------------------------------------------------------------------
>
>                 Key: AXIS2-3807
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3807
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.3
>         Environment: Windows XP, Eclipse 3.3.2, Java 1.5.14, Ant 1.7
>            Reporter: Mario L
>            Priority: Critical
>
> As soon as I copied the plugin in Eclipse plugins directory, the Ant Home changed (see Window->Preferences->Ant->Runtime, ANt Home Entries). I didn't do it myself so I presume the plugin did that.
> Now all my project's Ant Builder tasks fail with an ominous:
> java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/AntMain
> 	at java.lang.ClassLoader.defineClass1(Native Method)
> That's quite understandable, the Ant home ( the codegen plugin's /lib directory) does not contain ant-launch.jar which exports the missing class above. Of course I could copy the ant-launch.jar in the plugin's lib directory, but replacing step by step the already existing Ant plugin is just silly. The codegen should leverage the existing plugin, not provide supplementary ant jars (chaos ensured)
> If I try to workaround this in a cleaner way and add the jar to Ant classpath as external, Eclipse will complain and not let me do it: "Specified Ant home does not contain a "lib" directory". It looks like even the replaced Ant home installed with the codegen plugin is wrong.
> The solution is: leave the Ant path the way it is (so I had to switch back to the Ant plugin home), and simply add the Axis2CodegenWizard.jar and whatever other jar's you need in the Global entries (as external jar) of the above mentioned Ant classpath.
> The same solution might help also the reported bug AXIS2-3792

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-3807) codegen changes Ant Home thus no Ant Builder task works anymore - missing AntMain

Posted by "Tom Seelbach (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12599194#action_12599194 ] 

Tom Seelbach commented on AXIS2-3807:
-------------------------------------

 I didn't see the issue that you reported in my env (Eclipse 3.3.1, java 6  Axis2 1.4, with some  jars removed).   In any case,  the patch for Trunk in AXIS2-3792  removes the ant.jar from the plugin (and the export from the plugin.xml).    Still works in my env...

> codegen changes Ant Home thus no Ant Builder task works anymore - missing AntMain
> ---------------------------------------------------------------------------------
>
>                 Key: AXIS2-3807
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3807
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.3
>         Environment: Windows XP, Eclipse 3.3.2, Java 1.5.14, Ant 1.7
>            Reporter: Mario L
>            Priority: Critical
>
> As soon as I copied the plugin in Eclipse plugins directory, the Ant Home changed (see Window->Preferences->Ant->Runtime, ANt Home Entries). I didn't do it myself so I presume the plugin did that.
> Now all my project's Ant Builder tasks fail with an ominous:
> java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/AntMain
> 	at java.lang.ClassLoader.defineClass1(Native Method)
> That's quite understandable, the Ant home ( the codegen plugin's /lib directory) does not contain ant-launch.jar which exports the missing class above. Of course I could copy the ant-launch.jar in the plugin's lib directory, but replacing step by step the already existing Ant plugin is just silly. The codegen should leverage the existing plugin, not provide supplementary ant jars (chaos ensured)
> If I try to workaround this in a cleaner way and add the jar to Ant classpath as external, Eclipse will complain and not let me do it: "Specified Ant home does not contain a "lib" directory". It looks like even the replaced Ant home installed with the codegen plugin is wrong.
> The solution is: leave the Ant path the way it is (so I had to switch back to the Ant plugin home), and simply add the Axis2CodegenWizard.jar and whatever other jar's you need in the Global entries (as external jar) of the above mentioned Ant classpath.
> The same solution might help also the reported bug AXIS2-3792

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org