I tried but Sun's download servers are "offline for system upgrades". So it'll have to wait for awhile.

BTW, I install Axis2-1.1.1 from the binary distro and install it into /usr/dev/axis2-1.1.1 which is where AXIS2_HOME points.

I deploy Axis2 using the war file distro and simply drop it into Tomcat;s webapps folder.
Should this make any diff?

Ted Jones wrote:
Hmmm... not sure about that one. Can you try setting JAVA_HOME to a 1.4 JDK and see if that makes a difference?


From: Garth Keesler [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2007 4:30 PM
To: axis-user@ws.apache.org
Subject: Re: WSDL2Java Question

I really appreciate your patience...

Here's what I get:

[EMAIL PROTECTED]:~$ wsdl2java.sh -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide
 Using AXIS2_HOME:   /usr/dev/axis2-1.1.1
 Using JAVA_HOME:       /usr/dev/jdk1.5.0_10
Unrecognized option: -uri
Could not create the Java virtual machine.

Ted Jones wrote:
The manual is referring to the class and not the .sh script file.
 
Try: wsdl2java.sh -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide


From: Garth Keesler [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2007 4:08 PM
To: axis-user@ws.apache.org
Subject: Re: WSDL2Java Question

If I take those instructions literally, here's what I get:

[EMAIL PROTECTED]:~$ WSDL2Java -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide
bash: WSDL2Java: command not found

I have searched my Ubuntu edgy box and can not find any file of that name (or even close). If I look in the AXIS2_HOME/bin dir, all I find is wsdl2java.sh and (for Windows) .bat. Am I missing something (no sarcasm please:-)?

Thanx

Ted Jones wrote:
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:[EMAIL PROTECTED]]
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/lib/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/axis2-1.1.1/bin:/usr/dev/jwsdp-2.0:/usr/dev/jwsdp-2.0/jaxrpc/bin:/usr/dev/maven-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:[EMAIL PROTECTED]]
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:[EMAIL PROTECTED]]
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.

[EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java

[EMAIL PROTECTED]:~$ 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

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

--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to