axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Jones" <Tjo...@metamatrix.com>
Subject RE: WSDL2Java Question
Date Wed, 10 Jan 2007 21:52:38 GMT
Judging by your error message you are trying to execute the Axis 1.*
WSDL2JAVA and your classpath is pointing to Axis2.
 
Here are the instructions for the Axis2 WSDL2JAVA tool:
http://ws.apache.org/axis2/1_0/userguide2.html#WSDL2Java_Tool
 
If you prefer to use the Axis 1.* WSDL2JAVA, make sure you point to the
Axis 1.* installation.
 

________________________________

From: Garth Keesler [mailto:garthk@gdcjk.com] 
Sent: Wednesday, January 10, 2007 3:47 PM
To: axis-user@ws.apache.org
Subject: Re: WSDL2Java Question


Pertinent env vars: 

JAVA_HOME=/usr/dev/jdk1.5.0_10
JAR_HOME=/usr/dev/jars
LANG=en_US.UTF-8
GDMSESSION=default
JUNIT_HOME=/usr/dev/junit4.1
HISTCONTROL=ignoredups
AXIS_LIBRARIES=/usr/dev/axis2-1.1.1/lib
XERCES_HOME=/usr/dev/xerces-2_9_0
JAVAMAIL_HOME=/usr/dev/javamail-1.4
JAVA_ENDORSED_DIRS=/usr/dev/jwsdp-2.0/jaxp/lib:/usr/dev/jwsdp-2.0/jaxp/l
ib/endorsed:/usr/dev/apache-tomcat-5.5.20/bin:/usr/dev/apache-tomcat-5.5
.20/common/lib:/usr/dev/apache-tomcat-5.5.20/webapps/axis2/WEB-INF/lib
SOAP_HOME=/usr/dev/soap-2_3_1
PATH=/usr/dev/jdk1.5.0_10/bin:/usr/dev/apache-ant-1.6.5/bin:/usr/dev/axi
s2-1.1.1/bin:/usr/dev/jwsdp-2.0:/usr/dev/jwsdp-2.0/jaxrpc/bin:/usr/dev/m
aven-2.0.4:/usr/dev/maven-2.0.4/bin:/usr/local/sbin:/usr/local/bin:/usr/
sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games

Do I need more/less/different?

Thanx

Gul Onural wrote: 

	Most probably...
	 
	What I have defined to get wsdl2Java working :
	 
	AXIS2_HOME environment variable pointing to axis2 installation
directory and %AXIS2_HOME%\bin in my PATH

________________________________

	From: Garth Keesler [mailto:garthk@gdcjk.com] 
	Sent: Wednesday, January 10, 2007 4:33 PM
	To: axis-user@ws.apache.org
	Subject: Re: WSDL2Java Question
	
	
	Yes, both AXIS_HOME and JAVA_HOME point to their correct
directories. However they are defined in /etc/profile and not in my
local profile. Could that be it?
	
	Thanx
	
	Gul Onural wrote: 

		Have you defined AXIS_HOME environment variable pointing
to your axis2 installation ?

________________________________

		From: Garth Keesler [mailto:garthk@gdcjk.com] 
		Sent: Wednesday, January 10, 2007 4:23 PM
		To: Axis User
		Subject: WSDL2Java Question
		
		
		The examples below are straight from
http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference and
neither obviously works (for me). I can't even get --help to work.
		
		garthk@gdkws:~$ java org.apache.axis.wsdl.WSDL2Java
--help
		Exception in thread "main"
java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java
		
		garthk@gdkws:~$ java org.apache.axis.wsdl.WSDL2Java
--help http://appsrv:8080/axis2/services/wsVendor
		Exception in thread "main"
java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java
		
		garthk@gdkws:~$ java org.apache.axis.wsdl.WSDL2Java
http://appsrv:8080/axis2/services/wsVendor?wsdl
		Exception in thread "main"
java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java
		
		Here's a snippet from the web site instructions:
		

		Usage: java org.apache.axis.wsdl.WSDL2Java [options]
WSDL-URI
		Options:

		-h, --help
		  print this message and exit
		  
		What am I doing wrong?
		
		Thanx,
		Garth
		
	
--------------------------------------------------------------------- To
unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional
commands, e-mail: axis-user-help@ws.apache.org 


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


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

Mime
View raw message