Gunjan Shah
Gunjan Shah

Reputation: 5168

Web service is not working on GlassFish

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.

Upvotes: 1

Views: 2568

Answers (1)

Paulius Matulionis
Paulius Matulionis

Reputation: 23413

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.

Upvotes: 1

Related Questions