axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Mattox (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Commented: (AXIS-1643) Axis installation: Step 7 > Testing samples.stock.GetQuote
Date Mon, 04 Apr 2005 09:51:16 GMT
     [ http://issues.apache.org/jira/browse/AXIS-1643?page=comments#action_62066 ]
     
Michael Mattox commented on AXIS-1643:
--------------------------------------

I was going to create a bug for this as I just experienced the same thing with 1.2RC3.  The
   %AXIS_LIB%\wsdl4j.jar is missing and the stock quote example gives:

D:\software\downloads\axis\axis-1_2RC3>java -cp .;%AXISCLASSPATH% samples.stock.GetQuote
-lhttp
log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.
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:948)
        at org.apache.axis.client.Call.addParameter(Call.java:983)
        at samples.stock.GetQuote.getQuote(GetQuote.java:70)
        at samples.stock.GetQuote.main(GetQuote.java:95)

adding wsdl4j.jar to the classpath fixes it.  I found the solution in the mailing list.  i
think this is important (more than trivial) because this is what people will use to install
axis and not everyone will find the answer themselves.





> Axis installation: Step 7 > Testing samples.stock.GetQuote
> ----------------------------------------------------------
>
>          Key: AXIS-1643
>          URL: http://issues.apache.org/jira/browse/AXIS-1643
>      Project: Axis
>         Type: Improvement
>   Components: Documentation
>     Versions: 1.2RC1
>  Environment: Windows 2000, JRE 1.4.2_04
>     Reporter: Gustav Wall
>     Priority: Trivial

>
> Step 6: Classpath setup reads:
>  set AXISCLASSPATH=%AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery.jar;
>     %AXIS_LIB%\commons-logging.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;
>     %AXIS_LIB%\log4j-1.2.8.jar;%AXIS_LIB%\xml-apis.jar;%AXIS_LIB%\xercesImpl.jar
> it should read:
>  set AXISCLASSPATH=%AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery.jar;
>     %AXIS_LIB%\commons-logging.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;
>     %AXIS_LIB%\log4j-1.2.8.jar;%AXIS_LIB%\xml-apis.jar;%AXIS_LIB%\xercesImpl.jar;
>     %AXIS_LIB%\wsdl4j.jar
>  Step 7: Testing GetQuote reads:
> java -cp .;%AXISCLASSPATH% samples.stock.GetQuote
>      -lhttp://localhost:8080/axis/servlet/AxisServlet
>      -uuser1 -wpass1 XXX
> it should read:
> -cp ".;%AXISCLASSPATH%" samples.stock.GetQuote
>      -lhttp://localhost:8080/axis/servlet/AxisServlet
>      -uuser1 -wpass1 XXX
> so that it can find the org.apache.axis.client and GetQuote.class files

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message