axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Garth Keesler <gar...@gdcjk.com>
Subject Re: WSDL2Java Question
Date Wed, 10 Jan 2007 23:38:32 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I actually want to run it against
<a class="moz-txt-link-freetext" href="http://appsrv:8080/axis2/services/wsVendor">http://appsrv:8080/axis2/services/wsVendor</a>
so I can try creating the
skeleton of a ws client but whatever options I use always come up as
unrecognized and it aborts. What you're seeing are various tests that I
have been asked to try, none of which seem to work any better. The test
wouldn't work anyhow since it is against folders that don't exist on my
machine but it shouldn't choke on the unrecognized option.<br>
<br>
Thanx<br>
<br>
ChadDavis wrote:
<blockquote
 cite="mid4fe4c4f50701101525v6b6cb18csac47358962a9bde@mail.gmail.com"
 type="cite">What directory did you execute this command from?&nbsp; It
looks like its
  <br>
from your home directory, which would mean that your uri is pointing
  <br>
somewhere up into the /home/ directory, which seems unlikely.&nbsp; Am I
  <br>
missing something?
  <br>
  <br>
If I'm reading this right, you just need to move to the right
  <br>
directory so that your relative path to the wsdl resolves correctly.
  <br>
  <br>
On 1/10/07, Garth Keesler <a class="moz-txt-link-rfc2396E" href="mailto:garthk@gdcjk.com">&lt;garthk@gdcjk.com&gt;</a>
wrote:
  <br>
  <blockquote type="cite"><br>
&nbsp;I really appreciate your patience...
    <br>
    <br>
&nbsp;Here's what I get:
    <br>
    <br>
&nbsp;garthk@gdkws:~$ wsdl2java.sh -uri
    <br>
../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans
    <br>
-o ../samples -p org.apache.axis2.userguide
    <br>
&nbsp; Using AXIS2_HOME:&nbsp;&nbsp; /usr/dev/axis2-1.1.1
    <br>
&nbsp; Using JAVA_HOME:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /usr/dev/jdk1.5.0_10
    <br>
&nbsp;Unrecognized option: -uri
    <br>
&nbsp;Could not create the Java virtual machine.
    <br>
    <br>
    <br>
&nbsp;Ted Jones wrote:
    <br>
    <br>
The manual is referring to the class and not the .sh script file.
    <br>
    <br>
Try: wsdl2java.sh -uri
    <br>
../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans
    <br>
-o ../samples -p org.apache.axis2.userguide
    <br>
    <br>
    <br>
&nbsp;________________________________
    <br>
From: Garth Keesler [<a class="moz-txt-link-freetext" href="mailto:garthk@gdcjk.com">mailto:garthk@gdcjk.com</a>]
    <br>
&nbsp;Sent: Wednesday, January 10, 2007 4:08 PM
    <br>
&nbsp;To: <a class="moz-txt-link-abbreviated" href="mailto:axis-user@ws.apache.org">axis-user@ws.apache.org</a>
    <br>
&nbsp;Subject: Re: WSDL2Java Question
    <br>
    <br>
&nbsp;If I take those instructions literally, here's what I get:
    <br>
    <br>
&nbsp;garthk@gdkws:~$ WSDL2Java -uri
    <br>
../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans
    <br>
-o ../samples -p org.apache.axis2.userguide
    <br>
&nbsp;bash: WSDL2Java: command not found
    <br>
    <br>
&nbsp;I have searched my Ubuntu edgy box and can not find any file of that
name
    <br>
(or even close). If I look in the AXIS2_HOME/bin dir, all I find is
    <br>
wsdl2java.sh and (for Windows) .bat. Am I missing something (no sarcasm
    <br>
please:-)?
    <br>
    <br>
&nbsp;Thanx
    <br>
    <br>
&nbsp;Ted Jones wrote:
    <br>
    <br>
Judging by your error message you are trying to execute the Axis 1.*
    <br>
WSDL2JAVA and your classpath is pointing to Axis2.
    <br>
    <br>
Here are the instructions for the Axis2 WSDL2JAVA tool:
    <br>
<a class="moz-txt-link-freetext" href="http://ws.apache.org/axis2/1_0/userguide2.html#WSDL2Java_Tool">http://ws.apache.org/axis2/1_0/userguide2.html#WSDL2Java_Tool</a>
    <br>
    <br>
If you prefer to use the Axis 1.* WSDL2JAVA, make sure you point to the
Axis
    <br>
1.* installation.
    <br>
    <br>
    <br>
&nbsp;________________________________
    <br>
&nbsp;From: Garth Keesler [<a class="moz-txt-link-freetext" href="mailto:garthk@gdcjk.com">mailto:garthk@gdcjk.com</a>]
    <br>
&nbsp;Sent: Wednesday, January 10, 2007 3:47 PM
    <br>
&nbsp;To: <a class="moz-txt-link-abbreviated" href="mailto:axis-user@ws.apache.org">axis-user@ws.apache.org</a>
    <br>
&nbsp;Subject: Re: WSDL2Java Question
    <br>
    <br>
&nbsp;Pertinent env vars:
    <br>
    <br>
&nbsp;JAVA_HOME=/usr/dev/jdk1.5.0_10
    <br>
&nbsp;JAR_HOME=/usr/dev/jars
    <br>
&nbsp;LANG=en_US.UTF-8
    <br>
&nbsp;GDMSESSION=default
    <br>
&nbsp;JUNIT_HOME=/usr/dev/junit4.1
    <br>
&nbsp;HISTCONTROL=ignoredups
    <br>
&nbsp;AXIS_LIBRARIES=/usr/dev/axis2-1.1.1/lib
    <br>
&nbsp;XERCES_HOME=/usr/dev/xerces-2_9_0
    <br>
&nbsp;JAVAMAIL_HOME=/usr/dev/javamail-1.4
    <br>
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
    <br>
&nbsp;SOAP_HOME=/usr/dev/soap-2_3_1
    <br>
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
    <br>
    <br>
&nbsp;Do I need more/less/different?
    <br>
    <br>
&nbsp;Thanx
    <br>
    <br>
&nbsp;Gul Onural wrote:
    <br>
    <br>
Most probably...
    <br>
    <br>
What I have defined to get wsdl2Java working :
    <br>
    <br>
AXIS2_HOME environment variable pointing to axis2 installation
directory and
    <br>
%AXIS2_HOME%\bin in my PATH
    <br>
    <br>
&nbsp;________________________________
    <br>
&nbsp;From: Garth Keesler [<a class="moz-txt-link-freetext" href="mailto:garthk@gdcjk.com">mailto:garthk@gdcjk.com</a>]
    <br>
&nbsp;Sent: Wednesday, January 10, 2007 4:33 PM
    <br>
&nbsp;To: <a class="moz-txt-link-abbreviated" href="mailto:axis-user@ws.apache.org">axis-user@ws.apache.org</a>
    <br>
&nbsp;Subject: Re: WSDL2Java Question
    <br>
    <br>
&nbsp;Yes, both AXIS_HOME and JAVA_HOME point to their correct directories.
    <br>
However they are defined in /etc/profile and not in my local profile.
Could
    <br>
that be it?
    <br>
    <br>
&nbsp;Thanx
    <br>
    <br>
&nbsp;Gul Onural wrote:
    <br>
    <br>
Have you defined AXIS_HOME environment variable pointing to your axis2
    <br>
installation ?
    <br>
    <br>
&nbsp;________________________________
    <br>
&nbsp;From: Garth Keesler [<a class="moz-txt-link-freetext" href="mailto:garthk@gdcjk.com">mailto:garthk@gdcjk.com</a>]
    <br>
&nbsp;Sent: Wednesday, January 10, 2007 4:23 PM
    <br>
&nbsp;To: Axis User
    <br>
&nbsp;Subject: WSDL2Java Question
    <br>
    <br>
&nbsp;The examples below are straight from
    <br>
<a class="moz-txt-link-freetext" href="http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference">http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference</a>
    <br>
and neither obviously works (for me). I can't even get --help to work.
    <br>
    <br>
&nbsp;garthk@gdkws:~$ java org.apache.axis.wsdl.WSDL2Java --help
    <br>
&nbsp;Exception in thread "main" java.lang.NoClassDefFoundError:
    <br>
org/apache/axis/wsdl/WSDL2Java
    <br>
    <br>
&nbsp;garthk@gdkws:~$ java org.apache.axis.wsdl.WSDL2Java --help
    <br>
<a class="moz-txt-link-freetext" href="http://appsrv:8080/axis2/services/wsVendor">http://appsrv:8080/axis2/services/wsVendor</a>
    <br>
&nbsp;Exception in thread "main" java.lang.NoClassDefFoundError:
    <br>
org/apache/axis/wsdl/WSDL2Java
    <br>
    <br>
&nbsp;garthk@gdkws:~$ java org.apache.axis.wsdl.WSDL2Java
    <br>
<a class="moz-txt-link-freetext" href="http://appsrv:8080/axis2/services/wsVendor?wsdl">http://appsrv:8080/axis2/services/wsVendor?wsdl</a>
    <br>
&nbsp;Exception in thread "main" java.lang.NoClassDefFoundError:
    <br>
org/apache/axis/wsdl/WSDL2Java
    <br>
    <br>
&nbsp;Here's a snippet from the web site instructions:
    <br>
    <br>
    <br>
Usage: java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI
    <br>
&nbsp;Options: -h, --help
    <br>
&nbsp;print this message and exit
    <br>
    <br>
&nbsp;What am I doing wrong?
    <br>
    <br>
&nbsp;Thanx,
    <br>
&nbsp;Garth
    <br>
    <br>
---------------------------------------------------------------------
    <br>
To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-unsubscribe@ws.apache.org">axis-user-unsubscribe@ws.apache.org</a>
    <br>
For additional commands, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-help@ws.apache.org">axis-user-help@ws.apache.org</a>
    <br>
---------------------------------------------------------------------
    <br>
To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-unsubscribe@ws.apache.org">axis-user-unsubscribe@ws.apache.org</a>
    <br>
For additional commands, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-help@ws.apache.org">axis-user-help@ws.apache.org</a>
    <br>
---------------------------------------------------------------------
    <br>
To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-unsubscribe@ws.apache.org">axis-user-unsubscribe@ws.apache.org</a>
    <br>
For additional commands, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-help@ws.apache.org">axis-user-help@ws.apache.org</a>
    <br>
---------------------------------------------------------------------
    <br>
To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-unsubscribe@ws.apache.org">axis-user-unsubscribe@ws.apache.org</a>
    <br>
For additional commands, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-help@ws.apache.org">axis-user-help@ws.apache.org</a>
    <br>
    <br>
---------------------------------------------------------------------
    <br>
To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-unsubscribe@ws.apache.org">axis-user-unsubscribe@ws.apache.org</a>
    <br>
For additional commands, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-help@ws.apache.org">axis-user-help@ws.apache.org</a>
    <br>
  </blockquote>
  <br>
---------------------------------------------------------------------
  <br>
To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-unsubscribe@ws.apache.org">axis-user-unsubscribe@ws.apache.org</a>
  <br>
For additional commands, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-help@ws.apache.org">axis-user-help@ws.apache.org</a>
  <br>
  <br>
  <br>
.
  <br>
  <br>
</blockquote>
<br>
</body>
</html>

---------------------------------------------------------------------
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