Now that is odd because the org.apache.axis.encoding.XMLType comes in the axis.jar which is in your class path. Can you double check and make sure you have the right permissions to read that file, and that there isn't a typo in the path? Maybe that has something to do with it.
At 12:18 AM 7/3/2002 +0800, you wrote: >ok I added the path to classpath. But now I've got a >new problem! > >[root@localhost classes]# java samples.stock.GetQuote >-lhttp://localhost:8080/axis/servlet/AxisServlet >-uuser1 -wpass1 XXX >java.lang.NoClassDefFoundError: >org/apache/axis/encoding/XMLType >[root@localhost classes]# pwd >/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INF/classes > > >[root@localhost classes]# echo $CLASSPATH >:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INT/lib/axis.jar:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INT/lib/jaxrpc.jar:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB_INF/lib/wsdl4j.jar:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INF/lib/commons-logging.jar:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INF/lib/log4j-core.jar:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/tt-bytecode.jar:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INF/lib/xerces.jar:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INF/classes:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INT/lib/axis.jar:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INT/lib/jaxrpc.jar:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB_INF/lib/wsdl4j.jar:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INF/lib/commons-logging.jar:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INF/lib/log4j-co! r! >! >e.jar:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/tt-bytecode.jar:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INF/lib/xerces.jar:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INF/classes:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INT/lib/axis.jar:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INT/lib/jaxrpc.jar:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB_INF/lib/wsdl4j.jar:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INF/lib/commons-logging.jar:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INF/lib/log4j-core.jar:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/tt-bytecode.jar:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INF/lib/xerces.jar:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INF/classes:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INT/lib/axis.jar:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INT/lib/jaxrpc.jar:/home/sup/progr! a! >! >ms/jakarta-tomcat-4.0.4/webapps/axis/WEB_INF/lib/wsdl4j.jar! >! >:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INF/lib/commons-logging.jar:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INF/lib/log4j-core.jar:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/tt-bytecode.jar:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INF/lib/xerces.jar:/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INF/classes >[root@localhost classes]# > > >- Supriyo > > --- Noel Tijerino <[EMAIL PROTECTED]> wrote: > if >you have . in your class path and you are in > > >/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INF/classes > > or if > > you have > > >/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INF/classes > > in > > your class path, it should work. What does echo > > $CLASSPATH give you? > > > > At 11:58 PM 7/2/2002 +0800, you wrote: > > >I seem to get the same error when I use the path > > you > > >specified. > > > > > >Error msg: > > > > > >[root@localhost classes]# pwd > > > >/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INF/classes > > >[root@localhost classes]# java > > samples.stock.GetQuote > > >-lhttp://localhost:8080/axis/servlet/AxisServlet > > >-uuser1 -wpass1 XXX > > >java.lang.ClassNotFoundException: > > >samples/stock/GetQuote > > > at > > java.lang.Class.forName(Class.java:native) > > > at java.lang.Class.forName(Class.java:52) > > >[root@localhost classes]# > > > > > >-Supriyo > > > > > > --- Carl Trusiak <[EMAIL PROTECTED]> wrote: > > > > > >It's not finding the client. You are in the wrong > > > > directory. > > > > pwd > > > > > > > >/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INF/classes/samp > les/stock > > > > > > > > You need to be at > > > > > > > >/home/sup/programs/jakarta-tomcat-4.0.4/webapps/axis/WEB-INF/classes > > > > > > > > Retry the example from there. > > > > > >__________________________________________________ > > >Do You Yahoo!? > > >Yahoo! Tech - Get in touch with the latest in > > technology. > > >http://sg.tech.yahoo.com > > > > Noel Tijerino > > Lawrence Livermore National Laboratory > > [EMAIL PROTECTED] > > work: 925.422.0473 > > > > Stick that in your compiler and de-bug it! > > > >__________________________________________________ >Do You Yahoo!? >Yahoo! Tech - Get in touch with the latest in technology. >http://sg.tech.yahoo.com Noel Tijerino Lawrence Livermore National Laboratory [EMAIL PROTECTED] work: 925.422.0473 Stick that in your compiler and de-bug it!