发布 Web 服务时出错
我有一个 WSDL 文件,我从中创建了服务器端代码骨架。现在,修改这些 Java 框架类后,我已从项目文件夹中删除了 WSDL 文件。现在,我正在尝试为这些课程准备一个网络服务。我正在使用 Axis 引擎和 apache tomcat 5.5,它嵌入在 eclipse 中。但是当我开始这个时,我收到以下错误。
IWAB0489E 将 Web 服务部署到 Axis 运行时时出错 axis-admin 失败,出现 {http://schemas.xmlsoap.org/soap/envelope/}Server.userException java.lang.reflect.InitationTargetException
任何人都可以提供帮助。这是什么错误??
I have a WSDL file from which I have created Server Side Code Skeleton. Now after modification of these skeleton Java classes I have deleted the WSDL file from the project folder. Now, I am trying to prepare a web service for these classes. I m using Axis engine and apache tomcat 5.5 for this which is embedded with the eclipse. But when I start this I m getting the following error.
IWAB0489E Error when deploying Web service to Axis runtime
axis-admin failed with {http://schemas.xmlsoap.org/soap/envelope/}Server.userException java.lang.reflect.InvocationTargetException
Can any one help. What is this error??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我以前也遇到过这个问题,解决方案是什么?,使用JAX-WS代替Axis。
I had this problem before, the solution?, use JAX-WS instead Axis.
我认为您正在尝试从从 wsdl 文件生成的客户端框架中调用某些方法。如果您正在调用任何公开的方法,请确保您发送的参数正确。
根据我的经验,用户异常大多是由于发送错误的参数而导致的
:
检查一下
I think you are trying to call some method from the client skeleton which you've generated from the wsdl file. If you are calling any of the methods which are exposed, make sure that the parameters which you are sending are correct.
userExceptions mostly come with sending wrong params
From my experience:
Check this
当 Web 服务项目的 cass 路径(构建路径)中可能缺少某些依赖项类时,会发生 invokingTargetException(我的意思是,如果假设这些类不在类中,则 Web 服务可能会使用一些外部 jar 或外部项目作为引用)路径(构建路径),构建Web服务时显示invokingTargetException异常)。因此请确保所有依赖项类/项目必须位于Web服务项目类路径(构建路径)中。
invocationTargetException occurs when some of the dependency class might be missed in the cass path(build path) of the webservice project(i mean, the webservice might be used some external jars or external projects as a reference,if suppose those are not in the class path(build path), it shows invocationTargetException exception while building webservice).so make sure all the dependency classes/projects must be in the webservice project class path(build path).