N.N.Chan - 2013-05-27

Hello,

I'm using OneJar to pack my Java project. I put dependencies of my project in the lib folder and create the jar file following the OneJar instructions.

However, when executing the jar file, I got the following errors. It seems that the JVM cannot read an XML file which is included in a dependency. (I tested other applications with other dependenccies that do not include an XML file and it worked well)

Is there anyone has the same problem with me? Could you please tell me how to fix it?

Thank you,
Chan.

May 27, 2013 11:01:07 AM org.apache.axiom.locator.ImplementationFactory parseDescriptor
SEVERE: Unable to read jar:file:/CalculTTCContainer.jar!/lib/axiom-impl-1.2.13.j
ar!/META-INF/axiom.xml
java.io.FileNotFoundException: \CalculTTCContainer.jar (The system cannot find t
he file specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at sun.net.www.protocol.jar.URLJarFile.<init>(Unknown Source)
at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
at sun.net.www.protocol.jar.JarURLConnection.getInputStream(Unknown Sour
ce)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrent
Entity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineD
ocVersion(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown So
urce)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unk
nown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at org.apache.axiom.locator.ImplementationFactory.parseDescriptor(Implem
entationFactory.java:79)
at org.apache.axiom.locator.DefaultOMMetaFactoryLocator.<init>(DefaultOM
MetaFactoryLocator.java:66)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou

rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.apache.axiom.om.OMAbstractFactory.<clinit>(OMAbstractFactory.java
:95)
at org.apache.axis2.description.AxisDescription.<init>(AxisDescription.j
ava:72)
at org.apache.axis2.engine.AxisConfiguration.<init>(AxisConfiguration.ja
va:172)
at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguratio
n(DeploymentEngine.java:855)
at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfigurati
on(FileSystemConfigurator.java:116)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
ionContext(ConfigurationContextFactory.java:64)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
ionContextFromFileSystem(ConfigurationContextFactory.java:210)
at org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceC
lient.java:151)
at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:144)
at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:251)
at test.ttc.service.TtcServiceInterfaceImpl.invoke(TtcServiceInterfaceIm
pl.java:53)
at test.ttc.service.TtcServiceInterfaceImpl.getPrixTtc(TtcServiceInterfa
ceImpl.java:33)
at test.ttc.service.CalculTTC.calculttc(CalculTTC.java:11)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at eu.tsp.mc.proxy.GenericProxy.invoke(GenericProxy.java:56)
at eu.tsp.mc.Container.main(Container.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.simontuffs.onejar.Boot.run(Boot.java:342)
at com.simontuffs.onejar.Boot.main(Boot.java:168)

May 27, 2013 11:01:07 AM org.apache.axiom.locator.ImplementationFactory parseDescriptor
SEVERE: Unable to read jar:file:/CalculTTCContainer.jar!/lib/axiom.jar!/META-INF
/axiom.xml
java.io.FileNotFoundException: \CalculTTCContainer.jar (The system cannot find the file specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at sun.net.www.protocol.jar.URLJarFile.<init>(Unknown Source)
at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
at sun.net.www.protocol.jar.JarURLConnection.getInputStream(Unknown Sour
ce)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrent
Entity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineD
ocVersion(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown So
urce)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unk
nown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at org.apache.axiom.locator.ImplementationFactory.parseDescriptor(Implem
entationFactory.java:79)
at org.apache.axiom.locator.DefaultOMMetaFactoryLocator.<init>(DefaultOM
MetaFactoryLocator.java:66)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou

rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.apache.axiom.om.OMAbstractFactory.<clinit>(OMAbstractFactory.java
:95)
at org.apache.axis2.description.AxisDescription.<init>(AxisDescription.j
ava:72)
at org.apache.axis2.engine.AxisConfiguration.<init>(AxisConfiguration.ja
va:172)
at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguratio
n(DeploymentEngine.java:855)
at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfigurati
on(FileSystemConfigurator.java:116)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
ionContext(ConfigurationContextFactory.java:64)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
ionContextFromFileSystem(ConfigurationContextFactory.java:210)
at org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceC
lient.java:151)
at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:144)
at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:251)
at test.ttc.service.TtcServiceInterfaceImpl.invoke(TtcServiceInterfaceIm
pl.java:53)
at test.ttc.service.TtcServiceInterfaceImpl.getPrixTtc(TtcServiceInterfa
ceImpl.java:33)
at test.ttc.service.CalculTTC.calculttc(CalculTTC.java:11)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at eu.tsp.mc.proxy.GenericProxy.invoke(GenericProxy.java:56)
at eu.tsp.mc.Container.main(Container.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.simontuffs.onejar.Boot.run(Boot.java:342)
at com.simontuffs.onejar.Boot.main(Boot.java:168)

org.apache.axiom.om.OMException: No meta factory found for feature 'default'; th
is usually means that axiom-impl.jar is not in the classpath
at org.apache.axiom.om.OMAbstractFactory.getMetaFactory(OMAbstractFactor
y.java:170)
at org.apache.axiom.om.OMAbstractFactory.getMetaFactory(OMAbstractFactor
y.java:135)
at org.apache.axiom.om.OMAbstractFactory.getOMFactory(OMAbstractFactory.
java:184)
at org.apache.axis2.description.AxisDescription.<init>(AxisDescription.j
ava:72)
at org.apache.axis2.engine.AxisConfiguration.<init>(AxisConfiguration.ja
va:172)
at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguratio
n(DeploymentEngine.java:855)
at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfigurati
on(FileSystemConfigurator.java:116)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
ionContext(ConfigurationContextFactory.java:64)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
ionContextFromFileSystem(ConfigurationContextFactory.java:210)
at org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceC
lient.java:151)
at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:144)
at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:251)
at test.ttc.service.TtcServiceInterfaceImpl.invoke(TtcServiceInterfaceIm
pl.java:53)
at test.ttc.service.TtcServiceInterfaceImpl.getPrixTtc(TtcServiceInterfa
ceImpl.java:33)
at test.ttc.service.CalculTTC.calculttc(CalculTTC.java:11)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at eu.tsp.mc.proxy.GenericProxy.invoke(GenericProxy.java:56)
at eu.tsp.mc.Container.main(Container.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.simontuffs.onejar.Boot.run(Boot.java:342)
at com.simontuffs.onejar.Boot.main(Boot.java:168)
execution error.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at eu.tsp.mc.proxy.GenericProxy.invoke(GenericProxy.java:56)
at eu.tsp.mc.Container.main(Container.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.simontuffs.onejar.Boot.run(Boot.java:342)
at com.simontuffs.onejar.Boot.main(Boot.java:168)
Caused by: java.lang.NullPointerException
at test.ttc.service.TtcServiceInterfaceImpl.getPrixTtc(TtcServiceInterfa
ceImpl.java:40)
at test.ttc.service.CalculTTC.calculttc(CalculTTC.java:11)
... 12 more
java.lang.NullPointerException
at eu.tsp.mc.parser.SoapParser.parseResponse(SoapParser.java:181)
at eu.tsp.mc.Container.main(Container.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.simontuffs.onejar.Boot.run(Boot.java:342)
at com.simontuffs.onejar.Boot.main(Boot.java:168)

 
Last edit: N.N.Chan 2013-05-27