Yes, I tried with the axis jars in my classpath and the with the axis jars in the current directory and just typing the java command manually. Here is the first batch file that I tried:
set def c:\JBoss\jboss3.2.3\server\all\deploy\topic-listener.war set JAVAC=%JAVA_HOME%\bin\javac.exe set JAVA=%JAVA_HOME%\bin\java.exe set AXIS_LIBS=.\WEB_INF\lib set XERCES=c:\JBuilderXFoundation\extras\jdom\lib\xerces.jar set AXIS_SRC=c:\axis\axis-1_1\src set LCP=.;%JAVA_HOME%\lib\tools.jar set LCP=%LCP%;%AXIS_LIBS%\axis.jar set LCP=%LCP%;%AXIS_LIBS%\axis-ant.jar set LCP=%LCP%;%AXIS_LIBS%\commons-discovery.jar set LCP=%LCP%;%AXIS_LIBS%\commons-logging.jar set LCP=%LCP%;%AXIS_LIBS%\jaxrpc.jar set LCP=%LCP%;%AXIS_LIBS%\log4j-1.2.4.jar set LCP=%LCP%;%AXIS_LIBS%\saaj.jar set LCP=%LCP%;%AXIS_LIBS%\wsdl4j.jar set LCP=%LCP%;%XERCES% set LCP=%LCP%;%AXIS_SRC% %JAVA% -classpath %LCP% org.apache.axis.wsdl.WSDL2Java -o %AXIS_SRC% -p com.nextbus.commons.listener.service.new listener.wsdl -----Original Message----- From: Bobba, Ramesh [mailto:[EMAIL PROTECTED] Sent: Monday, March 08, 2004 6:44 PM To: '[EMAIL PROTECTED]' Subject: RE: Problem executing WSDL2Java Is axis in your classpath? -----Original Message----- From: Miller, Janet [mailto:[EMAIL PROTECTED] Sent: Monday, March 08, 2004 3:39 PM To: [EMAIL PROTECTED] Subject: Problem executing WSDL2Java I am an Axis beginner using JBoss-net (JBoss 3.2.3 w/ Axis 1.1). I have a wsdl file that I generated from the output of a web page by cutting and pasting the wsdl into a text file and I'm not able to run wsdl2Java on it. Are you allowed to create a wsdl file that way? Anyone know what my problem is? I'm sure it's something simple. C:\axistest>java org.apache.axis.wsdl.WSDL2Java TopicSubscriber.wsdl Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/ WSDL2Java My wsdl file looks like the following: <?xml version="1.0" encoding="UTF-8" ?> <wsdl:definitions targetNamespace="http://localhost:8080/axis-test/services/Listener" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://localhost:8080/axis-test/services/Listener" xmlns:intf="http://localhost:8080/axis-test/services/Listener" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://webservice.commons.nextbus.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <wsdl:types> <schema targetNamespace="http://webservice.commons.nextbus.com" xmlns="http://www.w3.org/2001/XMLSchema"> <import namespace="http://schemas.xmlsoap.org/soap/encoding/" /> <complexType name="WSObject"> <sequence> <element name="URI" nillable="true" type="xsd:string" /> </sequence> </complexType> <complexType name="SubscriberURI"> <complexContent> <extension base="tns1:WSObject"> <sequence /> </extension> </complexContent> </complexType> <complexType name="Message"> <sequence> <element name="body" nillable="true" type="xsd:string" /> <element name="header" nillable="true" type="xsd:string" /> <element name="subscriberURI" nillable="true" type="tns1:SubscriberURI" /> </sequence> </complexType> </schema> </wsdl:types> <wsdl:message name="onMessageRequest"> <wsdl:part name="message" type="tns1:Message" /> </wsdl:message> <wsdl:message name="onMessageResponse" /> <wsdl:portType name="DefaultListener"> <wsdl:operation name="onMessage" parameterOrder="message"> <wsdl:input message="intf:onMessageRequest" name="onMessageRequest" /> <wsdl:output message="intf:onMessageResponse" name="onMessageResponse" /> </wsdl:operation> </wsdl:portType> <wsdl:binding name="ListenerSoapBinding" type="intf:DefaultListener"> <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" /> <wsdl:operation name="onMessage"> <wsdlsoap:operation soapAction="" /> <wsdl:input name="onMessageRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservice.commons.nextbus.com" use="encoded" /> </wsdl:input> <wsdl:output name="onMessageResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/axis-test/services/Listener" use="encoded" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="DefaultListenerService"> <wsdl:port binding="intf:ListenerSoapBinding" name="Listener"> <wsdlsoap:address location="http://localhost:8080/axis-test/services/Listener" /> </wsdl:port> </wsdl:service> </wsdl:definitions>
