[
https://issues.apache.org/jira/browse/AXIS2-2863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jakub Korab updated AXIS2-2863:
-------------------------------
Attachment: eclipse_project.zip
I have stripped the project down to its base parts. The behaviour is as
described in the issue when this is built through ant and run.
I had to split the project up due to the size. This is the main part, I'll
attach another zip that needs to be extracted into the lib directory before the
project is launched in Eclipse.
> No valid ObjectCreator found
> ----------------------------
>
> Key: AXIS2-2863
> URL: https://issues.apache.org/jira/browse/AXIS2-2863
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.2
> Environment: Windows, JDK 1.4.2_10, JDK 1.5.0_07, Eclipse 3.2
> Reporter: Jakub Korab
> Assignee: Davanum Srinivas
> Priority: Blocker
> Attachments: eclipse_project.zip
>
>
> I am having a problem running an Axis2 client application from the
> command line. The app works correctly when run through Eclipse, but
> not directly when packaged as a jar and run directly. Here is the
> stack:
> java.lang.ExceptionInInitializerError
> at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:555)
> at
> org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:93)
> at
> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:76)
> at
> org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:640)
> at
> org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:105)
> at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:60)
> at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:174)
> at
> org.apache.axis2.client.ServiceClient.initializeTransports(ServiceClient.java:211)
> at
> org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:138)
> at org.apache.axis2.client.ServiceClient.<init(ServiceClient.java:133)
> at <my package>.ConveyancerServiceStub.<init(ConveyancerServiceStub.java:61)
> at <my package>.ConveyancerServiceStub.<init(ConveyancerServiceStub.java:88)
> at <my package>.ConveyancerServiceImpl.<init(ConveyancerServiceImpl.java:42)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
> at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:82)
> at
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:78)
> at
> org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:156)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:548)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:352)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:240)
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:132)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:237)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:153)
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:225)
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:114)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:801)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:592)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:392)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:240)
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:132)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:237)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:157)
> at CGTransformer.main(CGTransformer.java:81)
> Caused by: java.lang.IllegalStateException: No valid ObjectCreator found.
> at org.apache.axiom.om.util.StAXUtils$Pool.<init(StAXUtils.java:44)
> at org.apache.axiom.om.util.StAXUtils.<clinit(StAXUtils.java:68)
> ... 36 more
> The classpath in my Eclipse Java source project is defined in the order
> below. I run my main class through Eclipse and everything works.
> XmlSchema-1.3.1.jar
> annogen-0.1.0.jar
> axiom-api-1.2.4.jar
> axiom-impl-1.2.4.jar
> axis2-adb-1.2.jar
> axis2-java2wsdl-1.2.jar
> axis2-kernel-1.2.jar
> backport-util-concurrent-2.2.jar
> commons-codec-1.3.jar
> commons-httpclient-3.0.1.jar
> commons-logging-1.1.jar
> neethi-2.0.1.jar
> stax-api-1.0.1.jar
> wsdl4j-1.6.2.jar
> wstx-asl-3.2.1.jar
> activation.jar
> mail.jar
> commons-cli-1.0.jar
> commons-dbcp.jar
> commons-lang.jar
> commons-pool.jar
> ifxjdbc.jar
> ifxjdbc-g.jar
> ifxjdbcx.jar
> ifxjdbcx-g.jar
> ifxlang.jar
> ifxlsupp.jar
> ifxsqlj-g.jar
> ifxsqlj.jar
> ifxtools-g.jar
> ifxtools.jar
> jdom.jar
> log4j.jar
> mysql-connector-java-3.1.10-bin.jar
> spring-beans.jar
> spring-core.jar
> spring-dao.jar
> spring-jdbc.jar
> xalan-2.7.0.jar
> xercesImpl-2.8.1.jar
> xml-apis-1.3.03.jar
> (The ifx* jars are all Informix)
> I compile the application into an executable jar, with the main class
> defined in MANIFEST.MF. When I run the application from the command line
> using "java -classpath" with all of the jars defined in the same order,
> I get the "No valid ObjectCreator found" exception being thrown.
> I set up a Java project in Eclipse with only the compiled jars. When I
> set up a classpath with the jars in an identical manner to my source
> project, and run the executable jar, I get the very same error.
> The only previous discussion thread that mentions this error message had to
> do with
> the Stax implementation not being picked up. I replaced wstx-asl.jar
> with a couple of other implementations, repeating the steps above, but
> with no luck.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]