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 "Maxx (JIRA)" <ji...@apache.org> on 2008/03/06 12:28:58 UTC

[jira] Commented: (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:comment-tabpanel&focusedCommentId=12575656#action_12575656 ] 

Maxx commented on AXIS2-3574:
-----------------------------

Related issue:
http://support.microsoft.com/kb/830473

On computers running Microsoft Windows XP or later, the maximum length of the string that you can use at the command prompt is 8191 characters. On computers running Microsoft Windows 2000 or Windows NT 4.0, the maximum length of the string that you can use at the command prompt is 2047 characters.

This limitation applies to the command line, individual environment variables (such as the PATH variable) that are inherited by other processes, and all environment variable expansions. If you use Command Prompt to run batch files, this limitation also applies to batch file processing.

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