You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Hui Deng <hd...@yahoo.com> on 2002/05/03 10:08:17 UTC
classpath problem after upgrading to beta 2
I struggled on this for long hours, I quit and look
for help here.
After upgrading to beta2 (beta1 runs perfectly), when
I run any service like this one (or any ones working
on beta 1):
java samples.stock.GetQuote
-lhttp://localhost:8080/axis/servlet/AxisServlet
-uuser1 -wpass1 XXX
I got error: Exception in thread "main"
java.lang.NoClassDefFoundError: javax/xml/rpc/encodin
g/XMLType
It seems quite simple, but I spent 2+ hrs on it..
clean up classpath, make sure the setenv.bat get all
required jars...
The weird thing, I can get Tomcat, AxisServlet up
running, http://localhost:8080/axis/MyService.jws
http://localhost:8080/axis/servlet/AxisServlet all
work. Also the AdminClient for deploying service
works.
My %CLASSPATH%
D:\Apache Tomcat 4.0\webapps\axis\WEB-INF\classes>echo
%CLASSPATH%
d:\Apache Tomcat
4.0\webapps\axis\WEB-INF\lib\jaxrpc.jar;d:\Apache
Tomcat 4.0\we
bapps\axis\WEB-INF\lib\axis.jar;d:\Apache Tomcat
4.0\webapps\axis\WEB-INF\lib\co
mmons-logging.jar;d:\Apache Tomcat
4.0\webapps\axis\WEB-INF\lib\wsdl4j.jar;d:\Ap
ache Tomcat
4.0\webapps\axis\WEB-INF\lib\jaxrpc.jar;d:\Apache
Tomcat 4.0\webapps
\axis\WEB-INF\lib\xalan.jar;d:\Apache Tomcat
4.0\webapps\axis\WEB-INF\lib\xerces
.jar;d:\Apache Tomcat
4.0\webapps\axis\WEB-INF\lib\tt-bytecode.jar;d:\Apache
Tom
cat
4.0\webapps\axis\WEB-INF\lib\log4j-core.jar;d:\Apache
Tomcat 4.0\webapps\axi
s\WEB-INF\lib\wsdl4j.jar;d:\Mobility\lib\BouncyCastle.jar;d:\Mobility\lib\jnet.j
ar;d:\Mobility\lib\jcert.jar;d:\Mobility\lib\jsse.jar;d:\Mobility\lib\Mobility.j
ar;d:\Mobility\lib\parser.jar;d:\Apache Tomcat
4.0\webapps\axis\WEB-INF\classes\
Any thoughts?
Thanks in advanced.
-Hui
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
Re: classpath problem after upgrading to beta 2
Posted by Hui Deng <hd...@yahoo.com>.
D:\Apache Tomcat 4.0\webapps\axis\WEB-INF\classes>java
samples.userguide.example
3.Client "test me!"
Exception in thread "main"
java.lang.NoClassDefFoundError: javax/xml/rpc/encodin
g/XMLType
Finally figure out what happen: on the client side,
now beta2 use
import javax.xml.rpc.ParameterMode;
import javax.xml.rpc.namespace.QName;
to set method and parameter.
I still tried to use those old classes to invoke
service! I probably should read the release notes
carefully.
-Hui
--- Lyndon Durham <ne...@verizon.net> wrote:
> Try putting the jar files that axis uses in your
> java sdk's jre/lib/ext
> folder. If your on a windows based system it will be
> something like
> c:\jdk1.3\jre\lib\ext. Copy or move the
> libraries(jar files) that Axis
> needs(they are listed in theInstallation Guide for
> Axis) there. To run
> the examples you will need to append the root
> directory of where you
> installed Axis beta drop to your classpath or use
> the java
> -classpath(-cp) switch to run the sample programs.
> Hope this helps some.
>
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
Re: classpath problem after upgrading to beta 2
Posted by Lyndon Durham <ne...@verizon.net>.
Try putting the jar files that axis uses in your java sdk's jre/lib/ext
folder. If your on a windows based system it will be something like
c:\jdk1.3\jre\lib\ext. Copy or move the libraries(jar files) that Axis
needs(they are listed in theInstallation Guide for Axis) there. To run
the examples you will need to append the root directory of where you
installed Axis beta drop to your classpath or use the java
-classpath(-cp) switch to run the sample programs. Hope this helps some.
Re: classpath problem after upgrading to beta 2
Posted by kristian meier <Kr...@jentro.com>.
yesterday I solved a similar problem, see
http://xml.apache.org/axis/faq.html#faq5
I used beta2, I never had beta1
best wishes Kristian
Hui Deng wrote:
>
> I struggled on this for long hours, I quit and look
> for help here.
> After upgrading to beta2 (beta1 runs perfectly), when
> I run any service like this one (or any ones working
> on beta 1):
> java samples.stock.GetQuote
> -lhttp://localhost:8080/axis/servlet/AxisServlet
> -uuser1 -wpass1 XXX
>
> I got error: Exception in thread "main"
> java.lang.NoClassDefFoundError: javax/xml/rpc/encodin
> g/XMLType
> It seems quite simple, but I spent 2+ hrs on it..
> clean up classpath, make sure the setenv.bat get all
> required jars...
>
> The weird thing, I can get Tomcat, AxisServlet up
> running, http://localhost:8080/axis/MyService.jws
> http://localhost:8080/axis/servlet/AxisServlet all
> work. Also the AdminClient for deploying service
> works.
>
> My %CLASSPATH%
> D:\Apache Tomcat 4.0\webapps\axis\WEB-INF\classes>echo
> %CLASSPATH%
> d:\Apache Tomcat
> 4.0\webapps\axis\WEB-INF\lib\jaxrpc.jar;d:\Apache
> Tomcat 4.0\we
> bapps\axis\WEB-INF\lib\axis.jar;d:\Apache Tomcat
> 4.0\webapps\axis\WEB-INF\lib\co
> mmons-logging.jar;d:\Apache Tomcat
> 4.0\webapps\axis\WEB-INF\lib\wsdl4j.jar;d:\Ap
> ache Tomcat
> 4.0\webapps\axis\WEB-INF\lib\jaxrpc.jar;d:\Apache
> Tomcat 4.0\webapps
> \axis\WEB-INF\lib\xalan.jar;d:\Apache Tomcat
> 4.0\webapps\axis\WEB-INF\lib\xerces
> .jar;d:\Apache Tomcat
> 4.0\webapps\axis\WEB-INF\lib\tt-bytecode.jar;d:\Apache
> Tom
> cat
> 4.0\webapps\axis\WEB-INF\lib\log4j-core.jar;d:\Apache
> Tomcat 4.0\webapps\axi
> s\WEB-INF\lib\wsdl4j.jar;d:\Mobility\lib\BouncyCastle.jar;d:\Mobility\lib\jnet.j
> ar;d:\Mobility\lib\jcert.jar;d:\Mobility\lib\jsse.jar;d:\Mobility\lib\Mobility.j
> ar;d:\Mobility\lib\parser.jar;d:\Apache Tomcat
> 4.0\webapps\axis\WEB-INF\classes\
>
> Any thoughts?
>
> Thanks in advanced.
>
> -Hui
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - your guide to health and wellness
> http://health.yahoo.com
--
-------------------------------------------------------------
Jentro AG
Kristian Meier, Software Development
-------------------------------------------------------------
Peter-Henlein-Strasse 28, 85540 Haar/Munich, Germany
Tel. +49 89 462 385 0 mailto:Kristian.Meier@jentro.com
Fax +49 89 462 385 29 http://www.jentro.com
-------------------------------------------------------------