You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Angus Macdonald <an...@st-andrews.ac.uk> on 2006/12/03 12:48:35 UTC

[Axis 1.4] Can't create new instance of client proxy in Servlet

 Hello,

I'm trying to create a new instance of an Axis client class (Locator) using
the Class.newInstance() method. It works when running in a Java Application,
but not when I try to use the code in a servlet.

I'm running the servlet in Tomcat 5.5.

Does anyone have any idea why this is happening, and any way to fix it?

Regards,

Angus.

The stack trace is as follows:

WARNING: Method execution failed:
java.lang.ExceptionInInitializerError
at org.apache.axis.utils.Messages.<clinit>(Messages.java:36)
at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory
(EngineConfigurationFactoryFinder.java:184)
at org.apache.axis.configuration.EngineConfigurationFactoryFinder.access$200(
EngineConfigurationFactoryFinder.java:46)
at org.apache.axis.configuration.EngineConfigurationFactoryFinder$1.run(
EngineConfigurationFactoryFinder.java:128)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory
(EngineConfigurationFactoryFinder.java:113)
at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory
(EngineConfigurationFactoryFinder.java :160)
at org.apache.axis.client.Service.getEngineConfiguration(Service.java:813)
at org.apache.axis.client.Service.getAxisClient(Service.java:104)
at org.apache.axis.client.Service.<init>(Service.java:113)
at server.proxies.webservicex.net.stockquote.StockQuoteLocator.<init>(
StockQuoteLocator.java:12)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance (Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)