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:43:52 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=US-ASCII" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Several of you appear to be running Windows while I'm on Linux. I have
a virtual XP system running on this box. Would it be worth a try doing
this on that box?<br>
<br>
Just a thought...<br>
<br>
Ted Jones wrote:
<blockquote
 cite="mid5F3EBBC316C84F49A35B29023D4599320191C254@SLNTEXG.quadrian.com"
 type="cite">
  <pre wrap="">Seems like you would get a better error if the wsdl was not resolvable
(at least you do on Windows). Worth a shot though.

-----Original Message-----
From: ChadDavis [<a class="moz-txt-link-freetext" href="mailto:chadmichaeldavis@gmail.com">mailto:chadmichaeldavis@gmail.com</a>]

Sent: Wednesday, January 10, 2007 5:25 PM
To: <a class="moz-txt-link-abbreviated" href="mailto:axis-user@ws.apache.org">axis-user@ws.apache.org</a>
Subject: Re: WSDL2Java Question

What directory did you execute this command from?  It looks like its
from your home directory, which would mean that your uri is pointing
somewhere up into the /home/ directory, which seems unlikely.  Am I
missing something?

If I'm reading this right, you just need to move to the right directory
so that your relative path to the wsdl resolves correctly.

On 1/10/07, Garth Keesler <a class="moz-txt-link-rfc2396E" href="mailto:garthk@gdcjk.com">&lt;garthk@gdcjk.com&gt;</a>
wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap=""> I really appreciate your patience...

 Here's what I get:

 garthk@gdkws:~$ 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 [<a class="moz-txt-link-freetext" href="mailto:garthk@gdcjk.com">mailto:garthk@gdcjk.com</a>]
 Sent: Wednesday, January 10, 2007 4:08 PM
 To: <a class="moz-txt-link-abbreviated" href="mailto:axis-user@ws.apache.org">axis-user@ws.apache.org</a>
 Subject: Re: WSDL2Java Question

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

 garthk@gdkws:~$ 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:
<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>

If you prefer to use the Axis 1.* WSDL2JAVA, make sure you point to 
the Axis
1.* installation.


 ________________________________
 From: Garth Keesler [<a class="moz-txt-link-freetext" href="mailto:garthk@gdcjk.com">mailto:garthk@gdcjk.com</a>]
 Sent: Wednesday, January 10, 2007 3:47 PM
 To: <a class="moz-txt-link-abbreviated" href="mailto:axis-user@ws.apache.org">axis-user@ws.apache.org</a>
 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/a
xis2-1.1.1/bin:/usr/dev/jwsdp-2.0:/usr/dev/jwsdp-2.0/jaxrpc/bin:/usr/d
ev/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 [<a class="moz-txt-link-freetext" href="mailto:garthk@gdcjk.com">mailto:garthk@gdcjk.com</a>]
 Sent: Wednesday, January 10, 2007 4:33 PM
 To: <a class="moz-txt-link-abbreviated" href="mailto:axis-user@ws.apache.org">axis-user@ws.apache.org</a>
 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
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <pre wrap="">installation ?

 ________________________________
 From: Garth Keesler [<a class="moz-txt-link-freetext" href="mailto:garthk@gdcjk.com">mailto:garthk@gdcjk.com</a>]
 Sent: Wednesday, January 10, 2007 4:23 PM
 To: Axis User
 Subject: WSDL2Java Question

 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.

 garthk@gdkws:~$ java org.apache.axis.wsdl.WSDL2Java --help  Exception
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <pre wrap="">in thread "main" java.lang.NoClassDefFoundError:
org/apache/axis/wsdl/WSDL2Java

 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>
 Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/axis/wsdl/WSDL2Java

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

---------------------------------------------------------------------
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>
    </pre>
  </blockquote>
  <pre wrap=""><!---->
---------------------------------------------------------------------
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>


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



.

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