You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Jakub Korab (JIRA)" <ji...@apache.org> on 2007/06/26 17:10:26 UTC
[jira] Created: (AXIS2-2863) No valid ObjectCreator found
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
Priority: Blocker
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-2863) No valid ObjectCreator found
Posted by "Jakub Korab (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12508500 ]
Jakub Korab commented on AXIS2-2863:
------------------------------------
The exact same problem is occurring on my production Linux box. Perhaps it has something to do with the way the Jar is assembled using Ant. Davanum, which Ant version are you using to compile this?
> 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, lib.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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-2863) No valid ObjectCreator found
Posted by "Jakub Korab (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jakub Korab updated AXIS2-2863:
-------------------------------
Attachment: lib.zip
Second attachment. Extract into the lib directory.
> 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, lib.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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-2863) No valid ObjectCreator found
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12508224 ]
Davanum Srinivas commented on AXIS2-2863:
-----------------------------------------
Yakub, I'll need some way to recreate the problem, could you please zip up your sample (strip it down if needed) and upload it to JIRA?
thanks,
dims
> 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
>
> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Issue Comment Edited: (AXIS2-2863) No valid ObjectCreator
found
Posted by "Jakub Korab (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12508500 ]
Jakub Korab edited comment on AXIS2-2863 at 6/27/07 3:48 AM:
-------------------------------------------------------------
The exact same problem is occurring on my production Linux box. Perhaps it has something to do with the way the Jar is assembled using Ant. Davanum, which Ant version are you using to compile this?
Could you also please attach your transformer.jar from the build directory to this issue?
was:
The exact same problem is occurring on my production Linux box. Perhaps it has something to do with the way the Jar is assembled using Ant. Davanum, which Ant version are you using to compile this?
> 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, lib.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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-2863) No valid ObjectCreator found
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12508397 ]
Davanum Srinivas commented on AXIS2-2863:
-----------------------------------------
1.4.2_13-b06 and 1.5.0_11-b03 works fine for me.
C:\axis2-SNAPSHOT\bug\build>java CGTransformer
23:44:50,192 INFO [org.springframework.core.CollectionFactory] - <JDK 1.4+ collections available>
23:44:50,238 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from class path resource [applicationContext.xml]>
23:44:50,484 INFO [org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver] - <Ignoring handler [org.springframework.scripting.config.LangNamespaceHandler]: class not found>
23:44:50,488 INFO [org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver] - <Ignoring handler [org.springframework.ejb.config.JeeNamespaceHandler]: class not found>
23:44:50,491 INFO [org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver] - <Ignoring handler [org.springframework.aop.config.AopNamespaceHandler]: class not found>
It works: ConveyancerServiceImpl@13ad085
> 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, lib.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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Resolved: (AXIS2-2863) No valid ObjectCreator found
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davanum Srinivas resolved AXIS2-2863.
-------------------------------------
Resolution: Won't Fix
You will need a Class-Path entry in your Manifest.mf see http://java.sun.com/developer/Books/javaprogramming/JAR/basics/manifest.html for example
thanks,
dims
> 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, lib.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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-2863) No valid ObjectCreator found
Posted by "Moley Harey (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12568990#action_12568990 ]
Moley Harey commented on AXIS2-2863:
------------------------------------
Hi Jakub,
I have seen your comments on this Axis2 issue and I owuld like to know if
you have found any solution to the problem.
I have developed an Axis 2 interface for a POJO-based J2EE application
implemented using Spring.
When I deploy the application I get the following error message in Tomcat
log file:
=======
Caused by: java.lang.IllegalStateException: No valid ObjectCreator found.
at org.apache.axiom.om.util
.StAXUtils$Pool.<init>(StAXUtils.java:64)
at org.apache.axiom.om.util.StAXUtils.<clinit>(StAXUtils.java:88)
=======
Could this be related to the way the application is deployed or maybe is a
problem of the version of the Axiom/Stax jar files I am using?
Thanks in advance
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Para atras, solo para tomar impulso!
http://chromewaves.blogspot.com/
> 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, lib.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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-2863) No valid ObjectCreator found
Posted by "Jakub Korab (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12508504 ]
Jakub Korab commented on AXIS2-2863:
------------------------------------
I just noticed your command line. My build directory contains only .jar files. After running ant in the project root, I run:
build>java -jar transformer.jar
The issue appears as described. I unjar transformer.jar and:
build>set CLASSPATH=.\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;.\test/easymock.jar;.\test/junit.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;.\
When I then run:
build>java CGTransformer
The output is the same as yours. For some reason the Stax implementation isn't getting picked up when the main class is in a jar. Running:
build>java -jar transformer.jar
with the classpath set as before, again causes the issue.
> 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, lib.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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-2863) No valid ObjectCreator found
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davanum Srinivas updated AXIS2-2863:
------------------------------------
Assignee: Davanum Srinivas
> 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
>
> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-2863) No valid ObjectCreator found
Posted by "Jakub Korab (JIRA)" <ji...@apache.org>.
[ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org