Thanks, that was it. I also had to add wsdl.jar and commons-codec.jar, but 
those were really easy to find because I was getting ClassNotFound errors 
rather than "No valid ObjectCreator found."

It works!

cheers
md

> -----Original Message-----
> From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 30, 2007 4:14 PM
> To: [email protected]
> Subject: Re: Can't run axiom client - error in ServiceClient 
> constructor
> 
> 
> Yes, woodstox jar. that's the stax implementation.
> 
> thanks,
> dims
> 
> On 5/30/07, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I'm trying to call a web service using the axiom apis. When 
> I try to execute this line:
> >
> > ServiceClient sender = new ServiceClient();
> >
> > I get this error:
> > 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)
> >
> > I've listed the whole stack trace below. Could it be that 
> I'm missing a library?
> >
> > Here's the list of libraries I'm using:
> > axiom-api-1.2.4.jar
> > axiom-dom-1.2.4.jar
> > axiom-impl-1.2.4.jar
> > axis2-jibx-1.2.jar
> > axis2-kernel-1.2.jar
> > axis2-soapmonitor-1.2.jar
> > axis2-spring-1.2.jar
> > axis2-tools-1.2.jar
> > commons-httpclient-3.0.1.ja
> > commons-logging-1.1.jar
> > jibx-bind-1.1.4.jar
> > jibx-run-1.1.4.jar
> > log4j-1.2.12.jar
> > neethi-2.0.1.jar
> > servletapi-2.3.jar
> > stax-api-1.0.1.jar
> > stax-utils-20060915.jar
> > xml-apis-1.3.03.jar
> > XmlSchema-1.3.1.jar
> >
> > and here's the stack trace:
> >
> > Exception in thread "main" java.lang.ExceptionInInitializerError
> >         at 
> org.apache.axis2.deployment.DescriptionBuilder.buildOM(Descrip
> tionBuilder.java:86)
> >         at 
> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(A
> xisConfigBuilder.java:58)
> >         at 
> org.apache.axis2.deployment.DeploymentEngine.populateAxisConfi
> guration(DeploymentEngine.java:690)
> >         at 
> org.apache.axis2.deployment.FileSystemConfigurator.getAxisConf
> iguration(FileSystemConfigurator.java:109)
> >         at 
> org.apache.axis2.context.ConfigurationContextFactory.createCon
> figurationContext(ConfigurationContextFactory.java:61)
> >         at 
> org.apache.axis2.context.ConfigurationContextFactory.createCon
> figurationContextFromFileSystem(ConfigurationContextFactory.java:180)
> >         at 
> org.apache.axis2.client.ServiceClient.initializeTransports(Ser
> viceClient.java:189)
> >         at 
> org.apache.axis2.client.ServiceClient.configureServiceClient(S
> erviceClient.java:118)
> >         at 
> org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:114)
> >         at 
> org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:207)
> >         at 
> ca.gc.publiservice.sso.client.SSOImpl.authenticate(SSOImpl.java:57)
> >         at 
> ca.gc.publiservice.sso.client.SSOImpl.main(SSOImpl.java:75)
> > 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)
> >         ... 12 more
> >
> > The code throwing the exception is here:
> >
> >        Pool(ObjectCreator[] creators) {
> >             ObjectCreator oc = null;
> >             for (int i = 0; i < creators.length; i++) {
> >                 try {
> >                     creators[i].newObject();
> >                     oc = creators[i];
> >                     break;
> >                 } catch (Throwable t) {
> >                     // Ignore me
> >                 }
> >             }
> >             if (oc == null) {
> >                 throw new IllegalStateException("No valid 
> ObjectCreator found.");
> >             }
> >             objectCreator = oc;
> >         }
> >
> > Thanks very much,
> >
> > Michael Davis
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -- 
> Davanum Srinivas :: http://davanum.wordpress.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to