muhmacit / onejar-maven-plugin

Automatically exported from code.google.com/p/onejar-maven-plugin
0 stars 0 forks source link

Axis2 jar doesnot load #31

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a maven project and add axis2 dependency 1.5.2
2. I added a webservice client jar to this component
3.

What is the expected output? What do you see instead?
I expected no errors on start up, but got the stacktrace below:
2011-06-21 17:30:07,218 [main] WARN  
org.apache.axiom.util.stax.dialect.StAXDialectDetector  - Unable to load 
manifest for StAX implementation at 
jar:file:/hardware_monitor_agent-393.0.2-SNAPSHOT.one-jar.jar!/lib/wstx-asl-3.2.
4.jar!/
2011-06-21 17:30:07,404 [main] ERROR org.apache.axis2.deployment.ModuleDeployer 
 - The axis2-1.5.2.jar module, which is not valid, caused The 
/hardware_monitor_agent-393.0.2-SNAPSHOT.one-jar.jar!/lib/axis2-1.5.2.jar file 
cannot be found.
org.apache.axis2.AxisFault: The 
/hardware_monitor_agent-393.0.2-SNAPSHOT.one-jar.jar!/lib/axis2-1.5.2.jar file 
cannot be found.
    at org.apache.axis2.deployment.repository.util.DeploymentFileData.setClassLoader(DeploymentFileData.java:111)
    at org.apache.axis2.deployment.ModuleDeployer.deploy(ModuleDeployer.java:65)
    at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
    at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:659)
    at org.apache.axis2.deployment.RepositoryListener.loadClassPathModules(RepositoryListener.java:209)
    at org.apache.axis2.deployment.RepositoryListener.init2(RepositoryListener.java:70)
    at org.apache.axis2.deployment.RepositoryListener.<init>(RepositoryListener.java:63)
    at org.apache.axis2.deployment.DeploymentEngine.loadFromClassPath(DeploymentEngine.java:164)
    at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:135)
    at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
    at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:206)
    at org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:150)
    at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:143)
    at za.co.marketech.schemas.HARDWARE_MONITORStub.<init>(HARDWARE_MONITORStub.java:163)
    at za.co.marketech.schemas.HARDWARE_MONITORStub.<init>(HARDWARE_MONITORStub.java:149)
    at za.co.marketech.schemas.HARDWARE_MONITORStub.<init>(HARDWARE_MONITORStub.java:197)
    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:513)
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
    at za.co.marketech.util.hardware_monitor.HardwareMonitorJar.initialize(HardwareMonitorJar.java:30)
    at za.co.marketech.util.hardware_monitor.HardwareMonitorJar.main(HardwareMonitorJar.java:18)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.simontuffs.onejar.Boot.run(Boot.java:340)
    at com.simontuffs.onejar.Boot.main(Boot.java:166)

What version of onejar-maven-plugin are you using? 1.4.4

What is the output of "mvn -version" on your machine? 
Apache Maven 3.0.2 (r1056850; 2011-01-09 02:58:10+0200)
Java version: 1.6.0_24, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.6.7", arch: "x86_64", family: "mac"

and my other machine have the same error:
java version "1.6.0_17"
OpenJDK Runtime Environment (IcedTea6 1.7.3) (suse-7.3-x86_64)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)

Please provide any additional information below.

Original issue reported on code.google.com by leonti...@gmail.com on 21 Jun 2011 at 3:50