axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-1714) AXIS2 V1.1: java2wsdl.bat does not work.
Date Thu, 11 Jan 2007 15:16:27 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-1714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463913
] 

Carsten Ziegeler commented on AXIS2-1714:
-----------------------------------------

I have the same problems with all Axis2 versions (including 1.1.1) - at least on my windows
machine the problem is that the classpath is too long which causes either the error "command
line too long" or strange looking class not found exceptions as the shell is in some cases
"resetting" the classpath environment variable.

My temporary solution is to extract all jar files into a classes directory and use this classes
directory as the classpath....it would be good if the tools would use correct manifest entries
for all jars, so they could be run with "java -jar ..." or the scripts need to be changed
somehow.

> AXIS2 V1.1:  java2wsdl.bat does not work.
> -----------------------------------------
>
>                 Key: AXIS2-1714
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1714
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.1
>         Environment: Win XP, IBM JDK 1.5
>            Reporter: Michael Moser
>
> The wsdl2java.bat does not work for me. I spiced it up with a few more 
> "echo ..." statements and all names, the paths and the command line 
> looks fine to me, but all it ever produced so far was:
> "An error occured while generating codejava.lang.ClassNotFoundException: 
> org.dailymoon.classifieds.ClassifiedService"  (I'm going through the 
> "classified ads" example in the tutorial at 
> http://www-128.ibm.com/developerworks/edu/ws-dw-ws-understand-web-services2.html).
> How to regenerate:
> 1.) I extracted the axis2 bin distribution to "C:\Java_Extensions\axis2-1.1"'
> 2.) My example is located under "C:\JavaDevt\tutorials\webservices\ClassifiedAds\src",
> 3.) The actual .java file to be translated is 
> C:\JavaDevt\tutorials\webservices\ClassifiedAds\src\org\dailymoon\classifieds\ClassifiedService.java
> 4.) I created a two-line .bat file:
> set AXIS2_HOME=C:\Java_Extensions\axis2-1.1
> %AXIS2_HOME%\bin\java2wsdl.bat -cn org.dailymoon.classifieds.ClassifiedService -o .
> When I excute this I get:
> C:\JavaDevt\tutorials\webservices\ClassifiedAds\src>generateWSDL.bat
> C:\JavaDevt\tutorials\webservices\ClassifiedAds\src>set AXIS2_HOME=C:\Java_Extensions\axis2-1.1
> C:\JavaDevt\tutorials\webservices\ClassifiedAds\src>C:\Java_Extensions\axis2-1.1\bin\java2wsdl.bat
-cn org.dailymoon.classifieds.ClassifiedService -o .
> Using AXIS2_HOME:   C:\Java_Extensions\axis2-1.1
> Using JAVA_HOME:    C:\IBMJSDK1.5.0
> Using AXIS2_CLASS_PATH: "C:\Java_Extensions\axis2-1.1;C:\Java_Extensions\axis2-1.1\lib\activation-1.1.jar;C:\Java_Extensions\axis2-1
> .1\lib\annogen-0.1.0.jar;C:\Java_Extensions\axis2-1.1\lib\axiom-api-1.2.jar;C:\Java_Extensions\axis2-1.1\lib\axiom-dom-1.2.jar;C:\Ja
> va_Extensions\axis2-1.1\lib\axiom-impl-1.2.jar;C:\Java_Extensions\axis2-1.1\lib\axis2-adb-1.1.jar;C:\Java_Extensions\axis2-1.1\lib\a
> xis2-adb-codegen-1.1.jar;C:\Java_Extensions\axis2-1.1\lib\axis2-codegen-1.1.jar;C:\Java_Extensions\axis2-1.1\lib\axis2-java2wsdl-1.1
> .jar;C:\Java_Extensions\axis2-1.1\lib\axis2-jibx-1.1.jar;C:\Java_Extensions\axis2-1.1\lib\axis2-kernel-1.1.jar;C:\Java_Extensions\ax
> is2-1.1\lib\axis2-saaj-1.1.jar;C:\Java_Extensions\axis2-1.1\lib\axis2-soapmonitor-1.1.jar;C:\Java_Extensions\axis2-1.1\lib\axis2-spr
> ing-1.1.jar;C:\Java_Extensions\axis2-1.1\lib\axis2-tools-1.1.jar;C:\Java_Extensions\axis2-1.1\lib\axis2-xmlbeans-1.1.jar;C:\Java_Ext
> ensions\axis2-1.1\lib\backport-util-concurrent-2.2.jar;C:\Java_Extensions\axis2-1.1\lib\commons-codec-1.3.jar;C:\Java_Extensions\axi
> s2-1.1\lib\commons-fileupload-1.1.1.jar;C:\Java_Extensions\axis2-1.1\lib\commons-httpclient-3.0.1.jar;C:\Java_Extensions\axis2-1.1\l
> ib\commons-io-1.2.jar;C:\Java_Extensions\axis2-1.1\lib\commons-logging-1.1.jar;C:\Java_Extensions\axis2-1.1\lib\geronimo-spec-jms-1.
> 1-rc4.jar;C:\Java_Extensions\axis2-1.1\lib\jakarta-httpcore-4.0-alpha2.jar;C:\Java_Extensions\axis2-1.1\lib\jaxen-1.1-beta-10.jar;C:
> \Java_Extensions\axis2-1.1\lib\jibx-bind-1.1.2.jar;C:\Java_Extensions\axis2-1.1\lib\jibx-run-1.1.2.jar;C:\Java_Extensions\axis2-1.1\
> lib\mail-1.4.jar;C:\Java_Extensions\axis2-1.1\lib\neethi-2.0.jar;C:\Java_Extensions\axis2-1.1\lib\servletapi-2.3.jar;C:\Java_Extensi
> ons\axis2-1.1\lib\stax-api-1.0.1.jar;C:\Java_Extensions\axis2-1.1\lib\woden-1.0.0M6.jar;C:\Java_Extensions\axis2-1.1\lib\wsdl4j-1.6.
> 1.jar;C:\Java_Extensions\axis2-1.1\lib\wstx-asl-3.0.1.jar;C:\Java_Extensions\axis2-1.1\lib\xalan-2.7.0.jar;C:\Java_Extensions\axis2-
> 1.1\lib\xbean-2.2.0.jar;C:\Java_Extensions\axis2-1.1\lib\xercesImpl-2.8.1.jar;C:\Java_Extensions\axis2-1.1\lib\xml-apis-1.3.03.jar;C
> :\Java_Extensions\axis2-1.1\lib\XmlSchema-1.2.jar"
> An error occured while generating codejava.lang.ClassNotFoundException: org.dailymoon.classifieds.ClassifiedService
> C:\JavaDevt\tutorials\webservices\ClassifiedAds\src>
> Michael

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message