简体   繁体   English

Web服务在GlassFish上不起作用

[英]Web service is not working on GlassFish

I am generating web service client in Eclipse Helios by Axis 1.4 version. 我正在Axis 1.4版本的Eclipse Helios中生成Web服务客户端。 The client stubs are working fine as per the expectation by using local main programs, but when I deploy the stub and application on GlassFish server, I am getting the following exception: 通过使用本地主程序,客户端存根可以按预期运行,但是当我在GlassFish服务器上部署存根和应用程序时,出现以下异常:

Edited : Now it gives exception like this .. 编辑:现在它给出了这样的异常..

java.lang.IllegalStateException: WEB9031: WebappClassLoader unable to load resource [META-INF/services/org.apache.axis.EngineConfigurationFactory], because it has not yet been started, or was already stopped
    at org.glassfish.web.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:2074)
    at org.glassfish.web.loader.WebappClassLoader.findResource(WebappClassLoader.java:1034)
    at org.glassfish.web.loader.WebappClassLoader.getResource(WebappClassLoader.java:1169)

Can anyone tell me why it is happening? 谁能告诉我为什么会这样?

Its happening only when I deploy the application on GlassFish server. 仅当我在GlassFish服务器上部署应用程序时才会发生这种情况。

Thanks, Gunjan. 谢谢,Gunjan。

This refers to the similar problem you have. 是指您遇到的类似问题。 So as I mention in my comment, remove all Axis related stuff from global glassfish classpath, add them into your application and it should all be fine. 因此,正如我在评论中提到的那样,从全局glassfish类路径中删除所有与Axis相关的内容,并将它们添加到您的应用程序中,一切都很好。

It is not a very good practice to keep framework specific libraries in the server global libraries. 将框架特定的库保留在服务器全局库中不是很好的做法。 In the global classpath should go libs like JDBC, logging frameworks, but not WS stack specific libraries. 在全局类路径中,应该有JDBC之类的库,日志记录框架,而不是WS堆栈特定的库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM