Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 31479 invoked from network); 17 Mar 2008 15:39:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Mar 2008 15:39:15 -0000 Received: (qmail 12215 invoked by uid 500); 17 Mar 2008 15:39:08 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 12141 invoked by uid 500); 17 Mar 2008 15:39:08 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 11763 invoked by uid 99); 17 Mar 2008 15:39:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Mar 2008 08:39:06 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Mar 2008 15:38:37 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8D47C234C09D for ; Mon, 17 Mar 2008 08:37:24 -0700 (PDT) Message-ID: <520896392.1205768244577.JavaMail.jira@brutus> Date: Mon, 17 Mar 2008 08:37:24 -0700 (PDT) From: "Davanum Srinivas (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Resolved: (AXIS2-3574) java.lang.NoClassDefFoundError while running java2wsdl or wsdl2java In-Reply-To: <1088662480.1204801980993.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ 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