[ 
https://issues.apache.org/jira/browse/AXIS2-3807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Senaka Fernando resolved AXIS2-3807.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6
         Assignee: Senaka Fernando

> 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: 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
>            Assignee: Senaka Fernando
>            Priority: Critical
>             Fix For: 1.6
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to