Could any axis people comment on this?

I've just tried and it does seem to be true that you need the
javax.servlet.ServletContext class from j2ee.jar when using the wsif axis
provider. I guess we never noticed as all our testcases run with all the
jars for everything.

The problem looks like the
org.apache.axis.configuration.EngineConfigurationFactoryServlet.newFactory
method, on the statement

        return (param instanceof ServletContext)
               ? new EngineConfigurationFactoryServlet
((ServletContext)param)
               : null;

will try to load the ServetContext class even when param is null.

       ...ant

Anthony Elder
[EMAIL PROTECTED]
Web Services Development
IBM UK Laboratories,  Hursley Park
(+44) 01962 818320, x248320, MP208.


fer smith <[EMAIL PROTECTED]> on 28/09/2002 16:27:56

Please respond to [EMAIL PROTECTED]

To:    [EMAIL PROTECTED]
cc:
Subject:    axis requires j2ee.jar?



I'm trying to use wsif and apache axis, but get the exception below unless
I
have j2ee.jar in my classpath.

Is there really a requirement for j2ee.jar when only using the apache axis
provider or is there some config/setup thing I've not done right?

Thanks for any help.

java clients.DynamicInvoker http://localhost/Test.wsdl test p1
Reading WSDL document from 'http://localhost/Test.wsdl'
Preparing WSIF dynamic invocation
Executing operation test
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/servlet/ServletContext

at
org.apache.axis.configuration.EngineConfigurationFactoryServlet.newFactory(EngineConfigurationFactoryServlet.java:114)


at
org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:159)


at
org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:195)
        at org.apache.axis.client.Service.<init>(Service.java:110)
        at org.apache.axis.client.Call.<init>(Call.java:269)

at
org.apache.wsif.providers.soap.apacheaxis.WSIFPort_ApacheAxis.getCall(WSIFPort_ApacheAxis.java:441)


at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeRequestResponseOperation(WSIFOperation_ApacheAxis.java:586)


at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.executeRequestResponseOperation(WSIFOperation_ApacheAxis.java:574)
        at clients.DynamicInvoker.invokeMethod(Unknown Source)
        at clients.DynamicInvoker.main(Unknown Source)




--
Werden Sie mit uns zum "OnlineStar 2002"! Jetzt GMX wählen -
und tolle Preise absahnen! http://www.onlinestar.de




Reply via email to