Mailing List
Home
Forum Home
Cocoon - MVC web framework based on XML/XSL
Maven - Project building tool
Axis - Java SOAP implementation
Lucene - Full-featured text search engine APIs
Log4J - A log library
Fop - Create PDF, PCL, PS, SVG, XML driven by XSL formatting objects.
POI - Java Excel, Word and other Microsoft Office files manipulating library
Oracle database, Microsoft SQL server ...
MySQL - an open source database
Red Hat Linux Installation and Config discussions ...
Subjects
log4j warning: No appenders could be found
java security AccessControlException: access denied (java io FilePermission clie
java lang InstantiationException: org apache tools ant Main
Apache Axis Tutorial
Struts <logic iterate >
log4j properties How to parse outpu to multiple files
configuring log4j with BEA Weblogic 8 1
How to use XSL FOP Java together
JSP precompile
Servlet File Download dialog problem (IE6,Adobe 6 0)
Proposal: Adding jar manifest classpath in jar and war plugins
Unsupported major minor version 48 0 problem while running the an
   telope task
java security AccessControlException: access denied (java io FilePermission
axis wsdl2java Ant Task usage
net sf hibernate MappingException: Error reading resource: test/User hbm xml
Building EAR ANT Script for websphere 5 0
CREATING WAR Files
jsp data into Excel
Classpath problem
Jboss 3 2 3+ vs Tomcat Axis Question
RE: How to include jars and add them into the MANIFEST MF/Class Path
attribute
Printing problem
InstantiationException
Couldn 't find trusted certificate
Please : How can one install ant 1 6 0 under Eclipse 2 1 ?
Excel: Too many different cell formats
Running junit tests fails
XDoclet, Struts and Maven: Where to start? SOLUTION
1 3 final: now giving me java io FileNotFoundException (Too many
open files)
AXIS: tomcat timeout ?
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
java.lang.NoClassDefFoundError: javax/wsdl/OperationType

java.lang.NoClassDefFoundError: javax/wsdl/OperationType

2004-12-14       - By Jason Bodnar

 Back
Reply:     1     2     3  

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 Source code of 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@(protected)]
> Sent: Tuesday, December 14, 2004 2:30 PM
> To: axis-user@(protected)
> Subject: java.lang.NoClassDefFoundError Source code of 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 Source code of samples.stock.GetQuote
> -lhttp://localhost:8080/axis/servlet/AxisServlet -uuser1 -wpass1 XXX
> Exception in thread "main" java.lang.NoClassDefFoundError Source code of java.lang.NoClassDefFoundError:
javax/wsdl/OperationType
>   at
org.apache.axis.description.OperationDesc Source code of org.apache.axis.description.OperationDesc<clinit>(OperationDesc.java:58)   at
org.apache.axis.client.Call Source code of org.apache.axis.client.Call(Call.java:941)   at
org.apache.axis.client.Call Source code of org.apache.axis.client.Call(Call.java:984)   at
samples.stock.GetQuote Source code of samples.stock.GetQuote(GetQuote.java:70)   at
samples.stock.GetQuote Source code of samples.stock.GetQuote(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@(protected)
> 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@(protected)
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"