Hi Spiros,

 

I was facing the same error when I first tried to integrate Axis2 into my
webapp, as far as I remember.

In my situation it was a versioning problem with the StAX-Library in my web
application. I had an older version of StAX named jsr173.jar that was
causing the problem. Once I changed the library against the one that comes
with Axis2, the problem was solved.

 

So maybe there is an older version of StAX in your Tomcat's shared
libraries?

 

Hopes this helps.

 

Best Regards,

Sven

 

  _____  

Von: Spiros Vazaloukas [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 22. Februar 2007 14:59
An: [email protected]
Betreff: Problems accesing Axis2 servive...HELP

 

 

Hi there,

 

I am trying to run the 'quickstart' example in Axis2 (StockQuiteService).

Everything is compiled and StockQuoteService.aar is deployed without any
problem, I simply follow the Quick start guide
(http://ws.apache.org/axis2/1_1_1/quickstartguide.html)

I have deployed axis2.war file on Tomcat 5 and the service looks fine via
Axis Web admin.

 

 

When I try to access the service from the applet client it fails,

 

Here is where it fails:

 

public class ADBClient{

    public static void main(java.lang.String args[]){

        try{

            StockQuoteServiceStub stub =  <-------- FAILS HERE
------------------------

                new StockQuoteServiceStub

                ("http://localhost:8080/axis2/services/StockQuoteService";);

 

            getPrice(stub);

            update(stub);

 

        } catch(Exception e){

            e.printStackTrace();

            System.err.println("\n\n\n");

        }

    }

 

And I get the following exception:

 

java.lang.reflect.InvocationTargetException

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

  at java.lang.reflect.Method.invoke(Unknown Source)

  at com.sun.javaws.Launcher.executeApplication(Unknown Source)

  at com.sun.javaws.Launcher.executeMainClass(Unknown Source)

  at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)

  at com.sun.javaws.Launcher.run(Unknown Source)

  at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.ExceptionInInitializerError

  at
org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.ja
va:86)

  at
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuild
er.java:58)

  at
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(Deplo
ymentEngine.java:690)

  at
org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(File
SystemConfigurator.java:109)

  at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationCont
ext(ConfigurationContextFactory.java:61)

  at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationCont
extFromFileSystem(ConfigurationContextFactory.java:180)

  at
org.apache.axis2.client.ServiceClient.initializeTransports(ServiceClient.jav
a:189)

  at
org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.j
ava:118)

  at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:114)

  at
samples.quickstart.clients.StockQuoteServiceStub.<init>(StockQuoteServiceStu
b.java:82)

  at
samples.quickstart.clients.StockQuoteServiceStub.<init>(StockQuoteServiceStu
b.java:106)

  at
com.necis.aisin.stockagingmng.client.OrderMngClientApplet.getRemoteData(Orde
rMngClientApplet.java:507)

  at
com.necis.aisin.stockagingmng.client.OrderMngClientApplet.<init>(OrderMngCli
entApplet.java:63)

  at
com.necis.aisin.stockagingmng.client.OrderMngClientApplet.main(OrderMngClien
tApplet.java:628)

  ... 9 more

Caused by: java.lang.IllegalStateException: No valid ObjectCreator found.

  at org.apache.axiom.om.util.StAXUtils$Pool.<init>(StAXUtils.java:41)

  at org.apache.axiom.om.util.StAXUtils.<clinit>(StAXUtils.java:62)

  ... 23 more

 

 

Any idea what could be wrong?

I have tried both with ADB and XMLBeans. Same problem..

Apparently it looks that it doesn't hit Tomcat at all. 

 

Thanks

Spiros

 

 

 

 

Reply via email to