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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to