Web service is not working on GlassFish

梦想的初衷 提交于 2019-12-14 02:33:50

问题


I am generating web service client in Eclipse Helios by Axis 1.4 version. 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:

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.

Thanks, Gunjan.


回答1:


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.

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.



来源:https://stackoverflow.com/questions/12913168/web-service-is-not-working-on-glassfish

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!