I have Axis client calling web service hosted on WebSphere 6.0. Even the call is successful, there’s still exception in the log (see below). Seems missing client side configuration file but I really can not figure out what file I need and what setting has to be there. Please someone could offer a advice on this to eliminate this ‘exception’

 

 

-----------------------------------------------------

2006-03-16 09:08:26,321 [main] DEBUG org.apache.axis.MessageContext - MessageContext: setTargetService(MteWebserviceSOAP)

2006-03-16 09:08:26,331 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle - org.apache.axis.i18n.resource::handleGetObject(noService10)

2006-03-16 09:08:26,331 [main] DEBUG org.apache.axis.ConfigurationException - Exception:

org.apache.axis.ConfigurationException: No service named MteWebserviceSOAP is available

org.apache.axis.ConfigurationException: No service named MteWebserviceSOAP is available

      at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:233)

      at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)

      at org.apache.axis.MessageContext.setTargetService(MessageContext.java:755)

      at org.apache.axis.client.Call.invoke(Call.java:2690)

      at org.apache.axis.client.Call.invoke(Call.java:2443)

      at org.apache.axis.client.Call.invoke(Call.java:2366)

      at org.apache.axis.client.Call.invoke(Call.java:1812)

-----------------------------------------------------

 

On a similar issue (configuration file, at least I guess it is), when I tried to run Axis client call inside Oracle database (that Axis client runs fine out side of Oracle environment), I got following exception:

 

java.lang.NoClassDefFoundError
       at

org.apache.axis.client.Service.getAxisClient(Service.java:104)

       at

org.apache.axis.client.Service.<init>(Service.java:113)

       at

com.starwood.PostPointsService_ServiceLocator.<init>(Unknown

Source)

       at MyClientCall.process(MyClientCall.java:29)

 
 
PL/SQL procedure successfully completed.

 

 

I traced source code.
 
Service.getAxisClient method create an object of AxisClient by
 
            new AxisClient(getEngineConfiguration());
 
getEngineConfiguration() is defined as:
 
    protected EngineConfiguration getEngineConfiguration() {
        if (this.config == null) {
            this.config = EngineConfigurationFactoryFinder.newFactory().getClientEngineConfig();
        }
        return config;
    }

 

And then I kept tracing into EngineConfigurationFactoryFinder and others, it is getting more complex and I was kind lost. But it for sure tried to load resources (configuration files?). The reason the client call worked outside Oracle was probably because the default setting in environment might be right so Axis behaves correctly, but when I loaded Java classes into Oracle, I probably missed some configuration files so Axis can not find correct engine configuration when it ran inside Oracle. Is anyone there can shed lights on this to point to me what configuration might be needed!?

 

Thanks to everyone in advance.

 

Gary

 

This electronic message transmission contains information from the Company that may be proprietary, confidential and/or privileged.
The information is intended only for the use of the individual(s) or entity named above.  If you are not the intended recipient, be
aware that any disclosure, copying or distribution or use of the contents of this information is prohibited.  If you have received
this electronic transmission in error, please notify the sender immediately by replying to the address listed in the "From:" field.

Reply via email to