轴展开误差

发布于 2024-10-17 06:17:40 字数 1092 浏览 3 评论 0原文

我只是在学习轴并尝试部署库存示例。但是,当我输入 java org.apache.axis.client.AdminClient 时,出现错误:

线程“main”中出现异常 java.lang.NoClassDefFoundError: javax/xml/rpc/Service 引发异常 通过:java.lang.ClassNotFoundException: javax.xml.rpc.ServiceException 在 java.net.URLClassLoader$1.run(未知 来源) 在java.security.AccessController.doPrivileged(本机 方法) 在 java.net.URLClassLoader.findClass(未知 来源) 在java.lang.ClassLoader.loadClass(未知 来源) 在 sun.misc.Launcher$AppClassLoader.loadClass(未知 来源) 在java.lang.ClassLoader.loadClass(未知 来源)找不到主类: org.apache.axis.client.AdminClient。 程序将退出。

我按照安装说明将类路径设置为:

D:\axis\lib\axis.jar;D:\axis\lib\commons-discovery-0.2.jar;D:\axis\lib\commons-logging-1.0.4.jar;D:\axis \lib\jaxrpc.jar:D:\axis\lib\saaj.jar;D:\axis\lib\log4j-1.2.8.jar;C:\Program 文件\Java\external-libs\xml-apis.jar;C:\Program 文件\Java\external-libs\xercesImpl.jar;D:\axis\lib\wsdl4j-1.5.1.jar;D:\axis\lib\axis-ant.jar

但仍然收到错误。我吓坏了!谁能告诉我我忽略了什么导致了这个?

I am just learning axis and trying to deploy the stock example. However, when I typed in java org.apache.axis.client.AdminClient, I get the error:

Exception in thread "main"
java.lang.NoClassDefFoundError:
javax/xml/rpc/Service Exception Caused
by: java.lang.ClassNotFoundException:
javax.xml.rpc.ServiceException
at java.net.URLClassLoader$1.run(Unknown
Source)
at java.security.AccessController.doPrivileged(Native
Method)
at java.net.URLClassLoader.findClass(Unknown
Source)
at java.lang.ClassLoader.loadClass(Unknown
Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown
Source)
at java.lang.ClassLoader.loadClass(Unknown
Source) Could not find the main class:
org.apache.axis.client.AdminClient.
Program will exit.

I did what the installation said to set classpath as :

D:\axis\lib\axis.jar;D:\axis\lib\commons-discovery-0.2.jar;D:\axis\lib\commons-logging-1.0.4.jar;D:\axis\lib\jaxrpc.jar:D:\axis\lib\saaj.jar;D:\axis\lib\log4j-1.2.8.jar;C:\Program
Files\Java\external-libs\xml-apis.jar;C:\Program
Files\Java\external-libs\xercesImpl.jar;D:\axis\lib\wsdl4j-1.5.1.jar;D:\axis\lib\axis-ant.jar

but still I get the error. I am freaking out! Can anyone tell me what I overlooked to cause this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

许久 2024-10-24 06:17:40

您是否确保您路径上列出的所有这些库都实际上位于您所说的位置?据我所知,它抱怨它找不到位于 jaxrpc jar 中的 ServiceException 类 - 只要它位于你的类路径所说的路径上并且实际上是 jar包含有问题的类那么你不应该得到这个。如果你确实有 jaxrpc jar,你的类路径显示我会用反编译器打开它并确保该类在其中 - 可能是你得到了错误的文件、错误的版本等等。

祝你好运。

Did you make sure that all of these lib's outlined on your path are ACTUALLY where you are saying that they are? As far as I can tell, it's complaining that it can't find the ServiceException class which lives in the jaxrpc jar - so long as that is on your path where your classpath says it is and the jar actually contains the class in question then you should not be getting this. If you do have the jaxrpc jar where your classpath says I'd open it up with a decompiler and make sure the class is there in it - it could be that you got the wrong file, the wrong version, etc, etc.

Good luck.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文