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:17:05 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 tried but Sun's download servers are "offline for system upgrades".
So it'll have to wait for awhile.<br>
<br>
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.<br>
<br>
I deploy Axis2 using the war file distro and simply drop it into
Tomcat;s webapps folder.<br>
Should this make any diff?<br>
<br>
Ted Jones wrote:
<blockquote
 cite="mid5F3EBBC316C84F49A35B29023D4599320191C24F@SLNTEXG.quadrian.com"
 type="cite">
  <title></title>
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta content="MSHTML 6.00.5730.11" name="GENERATOR">
  <div dir="ltr" align="left"><span class="865330523-10012007"><font
 color="#0000ff" face="Arial" size="2">Hmmm... not sure about that one.
Can you try&nbsp;setting JAVA_HOME&nbsp;to a 1.4 JDK and see if that makes a
difference?</font></span></div>
  <br>
  <div class="OutlookMessageHeader" dir="ltr" align="left" lang="en-us">
  <hr tabindex="-1"><font face="Tahoma" size="2"><b>From:</b> Garth
Keesler [<a class="moz-txt-link-freetext" href="mailto:garthk@gdcjk.com">mailto:garthk@gdcjk.com</a>]
<br>
  <b>Sent:</b> Wednesday, January 10, 2007 4:30 PM<br>
  <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:axis-user@ws.apache.org">axis-user@ws.apache.org</a><br>
  <b>Subject:</b> Re: WSDL2Java Question<br>
  </font><br>
  </div>
I really appreciate your patience...<br>
  <br>
Here's what I get:<br>
  <br>
garthk@gdkws:~$ wsdl2java.sh -uri
../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -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>
Unrecognized option: -uri<br>
Could not create the Java virtual machine.<br>
  <br>
Ted Jones wrote:
  <blockquote
 cite="mid5F3EBBC316C84F49A35B29023D4599320191C247@SLNTEXG.quadrian.com"
 type="cite">
    <meta content="MSHTML 6.00.5730.11" name="GENERATOR">
    <div dir="ltr" align="left"><span class="116222222-10012007"><font
 color="#0000ff" face="Arial" size="2">The manual is referring to the
class and not the .sh script file.</font></span></div>
    <div dir="ltr" align="left"><span class="116222222-10012007"></span>&nbsp;</div>
    <div dir="ltr" align="left"><span class="116222222-10012007"><font
 color="#0000ff" face="Arial" size="2">Try: <font
 face="Times New Roman"><font color="#000000" size="3"><strong>wsdl2java.sh
-uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o
../samples -p org.apache.axis2.userguide</strong></font></font><br>
    </font></span></div>
    <br>
    <div class="OutlookMessageHeader" dir="ltr" align="left"
 lang="en-us">
    <hr tabindex="-1"> <font face="Tahoma" size="2"><b>From:</b> Garth
Keesler [<a class="moz-txt-link-freetext" href="mailto:garthk@gdcjk.com">mailto:garthk@gdcjk.com</a>]
    <br>
    <b>Sent:</b> Wednesday, January 10, 2007 4:08 PM<br>
    <b>To:</b> <a class="moz-txt-link-abbreviated"
 href="mailto:axis-user@ws.apache.org">axis-user@ws.apache.org</a><br>
    <b>Subject:</b> Re: WSDL2Java Question<br>
    </font><br>
    </div>
If I take those instructions literally, here's what I get:<br>
    <br>
garthk@gdkws:~$ WSDL2Java -uri ../samples/wsdl/Axis2SampleDocLit.wsdl
-ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide<br>
bash: WSDL2Java: command not found<br>
    <br>
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:-)?<br>
    <br>
Thanx<br>
    <br>
Ted Jones wrote:
    <blockquote
 cite="mid5F3EBBC316C84F49A35B29023D4599320191C242@SLNTEXG.quadrian.com"
 type="cite">
      <meta content="MSHTML 6.00.5730.11" name="GENERATOR">
      <div dir="ltr" align="left"><span class="175414821-10012007"><font
 color="#0000ff" face="Arial" size="2">Judging by your error message
you are trying to execute the Axis 1.* WSDL2JAVA and your classpath is
pointing to Axis2.</font></span></div>
      <div dir="ltr" align="left"><span class="175414821-10012007"></span>&nbsp;</div>
      <div dir="ltr" align="left"><span class="175414821-10012007"><font
 color="#0000ff" face="Arial" size="2">Here are the instructions for
the Axis2 WSDL2JAVA tool: <a
 href="http://ws.apache.org/axis2/1_0/userguide2.html#WSDL2Java_Tool">http://ws.apache.org/axis2/1_0/userguide2.html#WSDL2Java_Tool</a></font></span></div>
      <div dir="ltr" align="left"><span class="175414821-10012007"></span>&nbsp;</div>
      <div dir="ltr" align="left"><span class="175414821-10012007"><font
 color="#0000ff" face="Arial" size="2">If you prefer to use the Axis
1.* WSDL2JAVA, make sure you point to the Axis 1.* installation.</font></span></div>
      <div dir="ltr" align="left"><span class="175414821-10012007"></span>&nbsp;</div>
      <br>
      <div class="OutlookMessageHeader" dir="ltr" align="left"
 lang="en-us">
      <hr tabindex="-1"> <font face="Tahoma" size="2"><b>From:</b>
Garth Keesler [<a class="moz-txt-link-freetext"
 href="mailto:garthk@gdcjk.com">mailto:garthk@gdcjk.com</a>] <br>
      <b>Sent:</b> Wednesday, January 10, 2007 3:47 PM<br>
      <b>To:</b> <a class="moz-txt-link-abbreviated"
 href="mailto:axis-user@ws.apache.org">axis-user@ws.apache.org</a><br>
      <b>Subject:</b> Re: WSDL2Java Question<br>
      </font><br>
      </div>
Pertinent env vars: <br>
      <br>
JAVA_HOME=/usr/dev/jdk1.5.0_10<br>
JAR_HOME=/usr/dev/jars<br>
LANG=en_US.UTF-8<br>
GDMSESSION=default<br>
JUNIT_HOME=/usr/dev/junit4.1<br>
HISTCONTROL=ignoredups<br>
AXIS_LIBRARIES=/usr/dev/axis2-1.1.1/lib<br>
XERCES_HOME=/usr/dev/xerces-2_9_0<br>
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>
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>
Do I need more/less/different?<br>
      <br>
Thanx<br>
      <br>
Gul Onural wrote:
      <blockquote
 cite="mid87AC5F88F03E6249AEA68D40BD3E00BE0D533C22@zcarhxm2.corp.nortel.com"
 type="cite">
        <meta content="MSHTML 6.00.2900.3020" name="GENERATOR">
        <div dir="ltr" align="left"><span class="134443121-10012007"><font
 color="#0000ff" size="2">Most probably...</font></span></div>
        <div dir="ltr" align="left"><span class="134443121-10012007"></span>&nbsp;</div>
        <div dir="ltr" align="left"><span class="134443121-10012007"><font
 color="#0000ff" size="2">What I have defined to get wsdl2Java working :</font></span></div>
        <div dir="ltr" align="left"><span class="134443121-10012007"></span>&nbsp;</div>
        <div dir="ltr" align="left"><span class="134443121-10012007"><font
 color="#0000ff" size="2">AXIS2_HOME environment variable pointing to
axis2 installation directory and&nbsp;</font></span><span
 class="134443121-10012007"><font color="#0000ff" size="2">%AXIS2_HOME%\bin
in my PATH</font></span></div>
        <br>
        <div class="OutlookMessageHeader" dir="ltr" align="left"
 lang="en-us">
        <hr tabindex="-1"> <font face="Tahoma" size="2"><b>From:</b>
Garth Keesler [<a class="moz-txt-link-freetext"
 href="mailto:garthk@gdcjk.com">mailto:garthk@gdcjk.com</a>] <br>
        <b>Sent:</b> Wednesday, January 10, 2007 4:33 PM<br>
        <b>To:</b> <a class="moz-txt-link-abbreviated"
 href="mailto:axis-user@ws.apache.org">axis-user@ws.apache.org</a><br>
        <b>Subject:</b> Re: WSDL2Java Question<br>
        </font><br>
        </div>
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?<br>
        <br>
Thanx<br>
        <br>
Gul Onural wrote:
        <blockquote
 cite="mid87AC5F88F03E6249AEA68D40BD3E00BE0D533BD4@zcarhxm2.corp.nortel.com"
 type="cite">
          <meta content="MSHTML 6.00.2900.3020" name="GENERATOR">
          <div dir="ltr" align="left"><span class="611422221-10012007"><font
 color="#0000ff" size="2">Have you defined AXIS_HOME environment
variable pointing to your axis2 installation ?</font></span></div>
          <br>
          <div class="OutlookMessageHeader" dir="ltr" align="left"
 lang="en-us">
          <hr tabindex="-1"> <font face="Tahoma" size="2"><b>From:</b>
Garth Keesler [<a class="moz-txt-link-freetext"
 href="mailto:garthk@gdcjk.com">mailto:garthk@gdcjk.com</a>] <br>
          <b>Sent:</b> Wednesday, January 10, 2007 4:23 PM<br>
          <b>To:</b> Axis User<br>
          <b>Subject:</b> WSDL2Java Question<br>
          </font><br>
          </div>
The examples below are straight from <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>
and neither obviously works (for me). I can't even get --help to work.<br>
          <br>
garthk@gdkws:~$ java org.apache.axis.wsdl.WSDL2Java --help<br>
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/axis/wsdl/WSDL2Java<br>
          <br>
garthk@gdkws:~$ java org.apache.axis.wsdl.WSDL2Java --help <a
 class="moz-txt-link-freetext"
 href="http://appsrv:8080/axis2/services/wsVendor">http://appsrv:8080/axis2/services/wsVendor</a><br>
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/axis/wsdl/WSDL2Java<br>
          <br>
garthk@gdkws:~$ java org.apache.axis.wsdl.WSDL2Java <a
 class="moz-txt-link-freetext"
 href="http://appsrv:8080/axis2/services/wsVendor?wsdl">http://appsrv:8080/axis2/services/wsVendor?wsdl</a><br>
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/axis/wsdl/WSDL2Java<br>
          <br>
Here's a snippet from the web site instructions:<br>
          <p>Usage: java org.apache.axis.wsdl.WSDL2Java [options]
WSDL-URI<br>
Options:</p>
          <pre class="code">-h, --help
  print this message and exit
  </pre>
What am I doing wrong?<br>
          <br>
Thanx,<br>
Garth<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>
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>
        </blockquote>
        <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>
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>
      </blockquote>
      <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>
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>
    </blockquote>
    <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>
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>
  </blockquote>
  <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>
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>
</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