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 "Davanum Srinivas (JIRA)" <ji...@apache.org> on 2008/03/17 16:37:24 UTC

[jira] Resolved: (AXIS2-3574) java.lang.NoClassDefFoundError while running java2wsdl or wsdl2java

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

Davanum Srinivas resolved AXIS2-3574.
-------------------------------------

    Resolution: Fixed

Fixed axis2.bat for now (in svn revision 637942). If it works well for everyone then we can switch over the rest of the bat files.

So *for now*

Instead of running java2wsd.bat, please run "axis2.bat org.apache.ws.java2wsdl.Java2WSDL"
Instead of running wsdl2java.bat, please run "axis2.bat org.apache.axis2.wsdl.WSDL2Java"

thanks,
dims

> java.lang.NoClassDefFoundError while running java2wsdl or wsdl2java
> -------------------------------------------------------------------
>
>                 Key: AXIS2-3574
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3574
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.3
>         Environment: Windows 2000 SP4
>            Reporter: Maxx
>            Priority: Critical
>             Fix For: 1.4
>
>
> Having installed my Axis under the C:\Java\axis2-1.3 folder, as well as configuring its sys variable AXIS2_HOME to the corresponding path, I am however unable to run properly the Java2WSDL / WSDL2Java classes.
> Example for wsdl2java.bat:
> Using AXIS2_HOME:   C:\Java\axis2-1.3
> Using JAVA_HOME:    C:\Java\jdk1.5.0_14
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis2/wsdl/WSDL2Java
> I tried to "debug" the .bat and found that the following command does not end working as expected:
> FOR %%c in ("%AXIS2_HOME%\lib\*.jar") DO set AXIS2_CLASS_PATH=!AXIS2_CLASS_PATH!;%%c
> Effectively, if I add just after it the echo command to display the value of the computed Axis2 path i.e. echo %AXIS2_CLASS_PATH%
> I get:
> ;C:\Java\axis2-1.3\lib\log4j-1.2.14.jar ;C:\Java\axis2-1.3\lib\mail-1.4.jar ;C:\Java\axis2-1.3\lib\mex-impl-1.3.jar
>  ;C:\Java\axis2-1.3\lib\neethi-2.0.2.jar ;C:\Java\axis2-1.3\lib\soapmonitor-1.3.jar ;C:\Java\axis2-1.3\lib\stax-api
> -1.0.1.jar ;C:\Java\axis2-1.3\lib\tribes-6.0.10.jar ;C:\Java\axis2-1.3\lib\woden-1.0-incubating-M7b.jar ;C:\Java\ax
> is2-1.3\lib\wsdl4j-1.6.2.jar ;C:\Java\axis2-1.3\lib\wstx-asl-3.2.1.jar ;C:\Java\axis2-1.3\lib\xalan-2.7.0.jar ;C:\J
> ava\axis2-1.3\lib\xbean-2.2.0.jar ;C:\Java\axis2-1.3\lib\xercesImpl-2.8.1.jar ;C:\Java\axis2-1.3\lib\xml-apis-1.3.0
> 3.jar ;C:\Java\axis2-1.3\lib\XmlSchema-1.3.2.jar
> (633 characters/bytes)
> Indeed only the last 14 .jars are taken into account and added to the so-called classpath:
> C:\Java\axis2-1.3\lib\mail-1.4.jar
> C:\Java\axis2-1.3\lib\mex-impl-1.3.jar
> C:\Java\axis2-1.3\lib\neethi-2.0.2.jar
> C:\Java\axis2-1.3\lib\soapmonitor-1.3.jar
> C:\Java\axis2-1.3\lib\stax-api-1.0.1.jar
> C:\Java\axis2-1.3\lib\tribes-6.0.10.jar
> C:\Java\axis2-1.3\lib\woden-1.0-incubating-M7b.jar
> C:\Java\axis2-1.3\lib\wsdl4j-1.6.2.jar
> C:\Java\axis2-1.3\lib\wstx-asl-3.2.1.jar
> C:\Java\axis2-1.3\lib\xalan-2.7.0.jar
> C:\Java\axis2-1.3\lib\xbean-2.2.0.jar
> C:\Java\axis2-1.3\lib\xercesImpl-2.8.1.jar
> C:\Java\axis2-1.3\lib\xml-apis-1.3.03.jar
> C:\Java\axis2-1.3\lib\XmlSchema-1.3.2.jar
> It seems to me like the previous ones are added to the AXIS2_CLASS_PATH but as the variable seems not to be greater that something like 633 char. the content is rolled up...

-- 
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