axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Bodnar" <ja...@shakabuku.org>
Subject RE: java.lang.NoClassDefFoundError: javax/wsdl/OperationType
Date Tue, 14 Dec 2004 22:58:30 GMT
Thank you. It's in the jarkarta libs directory. I got things to work by doing:

/usr/java/j2sdk1.4.2_06/bin/java -cp
.:$AXISCLASSPATH:/usr/java/jakarta-tomcat-5.5.5/webapps/axis/WEB-INF/lib/wsdl4j.jar
samples.stock.GetQuote -lhttp://localhost:8080/axis/servlet/AxisServlet
-uuser1 -wpass1 XXX

But, I first tried adding it to CLASSPATH but of course that didn't work since
-cp overrides CLASSPATH. So, where is the best place to add that permanently?
Should I add it to $AXISCLASSPATH in my shell startup scripts (.bash_profile,
.bashrc, etc?) or is there a "more official" place to put it?

Thanks,

Jason

On Tue, 14 Dec 2004 14:45:33 -0800, Eric Rajkovic wrote
> Jason,
> 
> You should find the javax.wsdl package inside wsdl4j.jar
> 
> Check for the line starting with 'Found IBM's WSDL4Java ...' under
axis/happyaxis.jsp
> 
> Hth,
> eric
> 
> -----Original Message-----
> From: Jason Bodnar [mailto:jason@shakabuku.org] 
> Sent: Tuesday, December 14, 2004 2:30 PM
> To: axis-user@ws.apache.org
> Subject: java.lang.NoClassDefFoundError: javax/wsdl/OperationType
> 
> Hi,
> 
> I'm trying to go through the installation documentation found here:
> 
> http://ws.apache.org/axis/java/install.html
> 
> I successfully completed every step and tried to test the Stock 
> Quote sample. The sample deployed fine (except for some log4j 
> warnings) but when I try to call the stock web service I get:
> 
> $ /usr/java/j2sdk1.4.2_06/bin/java -cp .:$AXISCLASSPATH 
> samples.stock.GetQuote 
> -lhttp://localhost:8080/axis/servlet/AxisServlet -uuser1 -wpass1 XXX 
> Exception in thread "main" java.lang.NoClassDefFoundError:
javax/wsdl/OperationType
> 	at
org.apache.axis.description.OperationDesc.<clinit>(OperationDesc.java:58) 	at
org.apache.axis.client.Call.addParameter(Call.java:941) 	at
org.apache.axis.client.Call.addParameter(Call.java:984) 	at
samples.stock.GetQuote.getQuote(GetQuote.java:70) 	at
samples.stock.GetQuote.main(GetQuote.java:95)
> 
> So, obviously, I'm missing something in my classpath, but I have no 
> idea where the javax.wsdl.* package is.
> 
> My AXISCLASSPATH is set per the documentation to:
> 
> /usr/java/axis-1_2RC2//lib/axis.jar:/usr/java/axis-
> 1_2RC2//lib/commons-discovery.jar: /usr/java/axis-
> 1_2RC2//lib/commons-logging.jar:/usr/java/axis-
> 1_2RC2//lib/jaxrpc.jar: /usr/java/axis-
> 1_2RC2//lib/saaj.jar:/usr/java/axis-1_2RC2//lib/log4j-1.2.8.jar: 
>
/usr/java/axis-1_2RC2//lib/xml-apis.jar:/usr/java/axis-1_2RC2//lib/xercesImpl.jar
> 
> Thank you,
> 
> Jason
> 
> --
> Jason Bodnar
> jason@shakabuku.org
> http://www.shakabuku.org
> 
> "You want free speech? Let's see you acknowledge a man whose words 
> make your blood boil who is standing center stage advocating at the 
> top of his lungs that which you would spend a lifetime opposing at 
> the top of yours." -- President Andrew Shephard, "The American President"


--
Jason Bodnar
jason@shakabuku.org
http://www.shakabuku.org

"You want free speech? Let's see you acknowledge a man whose words make
your blood boil who is standing center stage advocating at the top of
his lungs that which you would spend a lifetime opposing at the top of
yours." -- President Andrew Shephard, "The American President"


Mime
View raw message