You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by "Jose (New Informatics)" <jo...@newinformatics.net> on 2010/09/03 12:04:59 UTC

Exception on AXIS only when running executable JAR

HI,

Please, i need help with this problem. I don't find any solution.

I developed a client axis web service in IDE Eclipse (only client side).
Project is compiled and works perfectly but when I build an executable JAR
and running it launch an Exception like this...

org.apache.axis.ConfigurationException: java.lang.NullPointerException
java.lang.NullPointerException
        at sun.misc.MetaIndex.mayContain(Unknown Source)
        at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
        at sun.misc.URLClassPath.getResource(Unknown Source)
        at sun.misc.URLClassPath.getResource(Unknown Source)
        at java.lang.ClassLoader.getBootstrapResource(Unknown Source)
        at java.lang.ClassLoader.getResource(Unknown Source)
        at java.lang.ClassLoader.getResource(Unknown Source)
        at java.lang.ClassLoader.getResource(Unknown Source)
        at java.lang.ClassLoader.getResourceAsStream(Unknown Source)
        at
org.apache.axis.utils.ClassUtils.getResourceAsStream(ClassUtils.java:
227)
        at
org.apache.axis.configuration.FileProvider.configureEngine(FileProvid
er.java:170)
        at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
        at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
        at org.apache.axis.client.AxisClient.<init>(AxisClient.java:52)
        at org.apache.axis.client.Service.getAxisClient(Service.java:104)
        at org.apache.axis.client.Service.<init>(Service.java:144)
        at
cat.gencat.justicia.tta.client.axis.JwsServiceSoapBindingQSServiceLoc
ator.<init>(JwsServiceSoapBindingQSServiceLocator.java:17)
        at
cat.gencat.justicia.tta.client.TablasMaestras.ObtenerTablaMaestra(Tab
lasMaestras.java:55)
        at
cat.gencat.justicia.tta.client.Exemple.DescargarTablas(Exemple.java:1
80)
        at cat.gencat.justicia.tta.client.Exemple.main(Exemple.java:36)
        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:306)
        at com.simontuffs.onejar.Boot.main(Boot.java:159)

I'm sure I included in project all Axis JARs files.
This only happened when running as JAR. When running into Eclipse IDE it
works.

Also I notice you that I haven't axis installed because I no need developing
a Web Service (server side).

How can I resolve it?. 

Thanks in advance.

José.



---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Re: Exception on AXIS only when running executable JAR

Posted by Andreas Veithen <an...@gmail.com>.
As part of the promotion of the Axis project to a top level project,
we have decided to create separate mailing lists for Axis 1 and Axis2.
For all Axis 1 related questions please subscribe and post to
axis1-java-user@axis.apache.org. Thanks!

Andreas


On Fri, Sep 3, 2010 at 12:04, Jose (New Informatics)
<jo...@newinformatics.net> wrote:
> HI,
>
> Please, i need help with this problem. I don't find any solution.
>
> I developed a client axis web service in IDE Eclipse (only client side).
> Project is compiled and works perfectly but when I build an executable JAR
> and running it launch an Exception like this...
>
> org.apache.axis.ConfigurationException: java.lang.NullPointerException
> java.lang.NullPointerException
>        at sun.misc.MetaIndex.mayContain(Unknown Source)
>        at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
>        at sun.misc.URLClassPath.getResource(Unknown Source)
>        at sun.misc.URLClassPath.getResource(Unknown Source)
>        at java.lang.ClassLoader.getBootstrapResource(Unknown Source)
>        at java.lang.ClassLoader.getResource(Unknown Source)
>        at java.lang.ClassLoader.getResource(Unknown Source)
>        at java.lang.ClassLoader.getResource(Unknown Source)
>        at java.lang.ClassLoader.getResourceAsStream(Unknown Source)
>        at
> org.apache.axis.utils.ClassUtils.getResourceAsStream(ClassUtils.java:
> 227)
>        at
> org.apache.axis.configuration.FileProvider.configureEngine(FileProvid
> er.java:170)
>        at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
>        at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
>        at org.apache.axis.client.AxisClient.<init>(AxisClient.java:52)
>        at org.apache.axis.client.Service.getAxisClient(Service.java:104)
>        at org.apache.axis.client.Service.<init>(Service.java:144)
>        at
> cat.gencat.justicia.tta.client.axis.JwsServiceSoapBindingQSServiceLoc
> ator.<init>(JwsServiceSoapBindingQSServiceLocator.java:17)
>        at
> cat.gencat.justicia.tta.client.TablasMaestras.ObtenerTablaMaestra(Tab
> lasMaestras.java:55)
>        at
> cat.gencat.justicia.tta.client.Exemple.DescargarTablas(Exemple.java:1
> 80)
>        at cat.gencat.justicia.tta.client.Exemple.main(Exemple.java:36)
>        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:306)
>        at com.simontuffs.onejar.Boot.main(Boot.java:159)
>
> I'm sure I included in project all Axis JARs files.
> This only happened when running as JAR. When running into Eclipse IDE it
> works.
>
> Also I notice you that I haven't axis installed because I no need developing
> a Web Service (server side).
>
> How can I resolve it?.
>
> Thanks in advance.
>
> José.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-dev-help@axis.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Re: Exception on AXIS only when running executable JAR

Posted by Andreas Veithen <an...@gmail.com>.
As part of the promotion of the Axis project to a top level project,
we have decided to create separate mailing lists for Axis 1 and Axis2.
For all Axis 1 related questions please subscribe and post to
axis1-java-user@axis.apache.org. Thanks!

Andreas


On Fri, Sep 3, 2010 at 12:04, Jose (New Informatics)
<jo...@newinformatics.net> wrote:
> HI,
>
> Please, i need help with this problem. I don't find any solution.
>
> I developed a client axis web service in IDE Eclipse (only client side).
> Project is compiled and works perfectly but when I build an executable JAR
> and running it launch an Exception like this...
>
> org.apache.axis.ConfigurationException: java.lang.NullPointerException
> java.lang.NullPointerException
>        at sun.misc.MetaIndex.mayContain(Unknown Source)
>        at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
>        at sun.misc.URLClassPath.getResource(Unknown Source)
>        at sun.misc.URLClassPath.getResource(Unknown Source)
>        at java.lang.ClassLoader.getBootstrapResource(Unknown Source)
>        at java.lang.ClassLoader.getResource(Unknown Source)
>        at java.lang.ClassLoader.getResource(Unknown Source)
>        at java.lang.ClassLoader.getResource(Unknown Source)
>        at java.lang.ClassLoader.getResourceAsStream(Unknown Source)
>        at
> org.apache.axis.utils.ClassUtils.getResourceAsStream(ClassUtils.java:
> 227)
>        at
> org.apache.axis.configuration.FileProvider.configureEngine(FileProvid
> er.java:170)
>        at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
>        at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
>        at org.apache.axis.client.AxisClient.<init>(AxisClient.java:52)
>        at org.apache.axis.client.Service.getAxisClient(Service.java:104)
>        at org.apache.axis.client.Service.<init>(Service.java:144)
>        at
> cat.gencat.justicia.tta.client.axis.JwsServiceSoapBindingQSServiceLoc
> ator.<init>(JwsServiceSoapBindingQSServiceLocator.java:17)
>        at
> cat.gencat.justicia.tta.client.TablasMaestras.ObtenerTablaMaestra(Tab
> lasMaestras.java:55)
>        at
> cat.gencat.justicia.tta.client.Exemple.DescargarTablas(Exemple.java:1
> 80)
>        at cat.gencat.justicia.tta.client.Exemple.main(Exemple.java:36)
>        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:306)
>        at com.simontuffs.onejar.Boot.main(Boot.java:159)
>
> I'm sure I included in project all Axis JARs files.
> This only happened when running as JAR. When running into Eclipse IDE it
> works.
>
> Also I notice you that I haven't axis installed because I no need developing
> a Web Service (server side).
>
> How can I resolve it?.
>
> Thanks in advance.
>
> José.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-dev-help@axis.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Re: Exception on AXIS only when running executable JAR

Posted by Andreas Veithen <an...@gmail.com>.
As part of the promotion of the Axis project to a top level project,
we have decided to create separate mailing lists for Axis 1 and Axis2.
For all Axis 1 related questions please subscribe and post to
axis1-java-user@axis.apache.org. Thanks!

Andreas


On Fri, Sep 3, 2010 at 12:04, Jose (New Informatics)
<jo...@newinformatics.net> wrote:
> HI,
>
> Please, i need help with this problem. I don't find any solution.
>
> I developed a client axis web service in IDE Eclipse (only client side).
> Project is compiled and works perfectly but when I build an executable JAR
> and running it launch an Exception like this...
>
> org.apache.axis.ConfigurationException: java.lang.NullPointerException
> java.lang.NullPointerException
>        at sun.misc.MetaIndex.mayContain(Unknown Source)
>        at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
>        at sun.misc.URLClassPath.getResource(Unknown Source)
>        at sun.misc.URLClassPath.getResource(Unknown Source)
>        at java.lang.ClassLoader.getBootstrapResource(Unknown Source)
>        at java.lang.ClassLoader.getResource(Unknown Source)
>        at java.lang.ClassLoader.getResource(Unknown Source)
>        at java.lang.ClassLoader.getResource(Unknown Source)
>        at java.lang.ClassLoader.getResourceAsStream(Unknown Source)
>        at
> org.apache.axis.utils.ClassUtils.getResourceAsStream(ClassUtils.java:
> 227)
>        at
> org.apache.axis.configuration.FileProvider.configureEngine(FileProvid
> er.java:170)
>        at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
>        at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
>        at org.apache.axis.client.AxisClient.<init>(AxisClient.java:52)
>        at org.apache.axis.client.Service.getAxisClient(Service.java:104)
>        at org.apache.axis.client.Service.<init>(Service.java:144)
>        at
> cat.gencat.justicia.tta.client.axis.JwsServiceSoapBindingQSServiceLoc
> ator.<init>(JwsServiceSoapBindingQSServiceLocator.java:17)
>        at
> cat.gencat.justicia.tta.client.TablasMaestras.ObtenerTablaMaestra(Tab
> lasMaestras.java:55)
>        at
> cat.gencat.justicia.tta.client.Exemple.DescargarTablas(Exemple.java:1
> 80)
>        at cat.gencat.justicia.tta.client.Exemple.main(Exemple.java:36)
>        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:306)
>        at com.simontuffs.onejar.Boot.main(Boot.java:159)
>
> I'm sure I included in project all Axis JARs files.
> This only happened when running as JAR. When running into Eclipse IDE it
> works.
>
> Also I notice you that I haven't axis installed because I no need developing
> a Web Service (server side).
>
> How can I resolve it?.
>
> Thanks in advance.
>
> José.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-dev-help@axis.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Re: Exception on AXIS only when running executable JAR

Posted by Andreas Veithen <an...@gmail.com>.
As part of the promotion of the Axis project to a top level project,
we have decided to create separate mailing lists for Axis 1 and Axis2.
For all Axis 1 related questions please subscribe and post to
axis1-java-user@axis.apache.org. Thanks!

Andreas


On Fri, Sep 3, 2010 at 12:04, Jose (New Informatics)
<jo...@newinformatics.net> wrote:
> HI,
>
> Please, i need help with this problem. I don't find any solution.
>
> I developed a client axis web service in IDE Eclipse (only client side).
> Project is compiled and works perfectly but when I build an executable JAR
> and running it launch an Exception like this...
>
> org.apache.axis.ConfigurationException: java.lang.NullPointerException
> java.lang.NullPointerException
>        at sun.misc.MetaIndex.mayContain(Unknown Source)
>        at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
>        at sun.misc.URLClassPath.getResource(Unknown Source)
>        at sun.misc.URLClassPath.getResource(Unknown Source)
>        at java.lang.ClassLoader.getBootstrapResource(Unknown Source)
>        at java.lang.ClassLoader.getResource(Unknown Source)
>        at java.lang.ClassLoader.getResource(Unknown Source)
>        at java.lang.ClassLoader.getResource(Unknown Source)
>        at java.lang.ClassLoader.getResourceAsStream(Unknown Source)
>        at
> org.apache.axis.utils.ClassUtils.getResourceAsStream(ClassUtils.java:
> 227)
>        at
> org.apache.axis.configuration.FileProvider.configureEngine(FileProvid
> er.java:170)
>        at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
>        at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
>        at org.apache.axis.client.AxisClient.<init>(AxisClient.java:52)
>        at org.apache.axis.client.Service.getAxisClient(Service.java:104)
>        at org.apache.axis.client.Service.<init>(Service.java:144)
>        at
> cat.gencat.justicia.tta.client.axis.JwsServiceSoapBindingQSServiceLoc
> ator.<init>(JwsServiceSoapBindingQSServiceLocator.java:17)
>        at
> cat.gencat.justicia.tta.client.TablasMaestras.ObtenerTablaMaestra(Tab
> lasMaestras.java:55)
>        at
> cat.gencat.justicia.tta.client.Exemple.DescargarTablas(Exemple.java:1
> 80)
>        at cat.gencat.justicia.tta.client.Exemple.main(Exemple.java:36)
>        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:306)
>        at com.simontuffs.onejar.Boot.main(Boot.java:159)
>
> I'm sure I included in project all Axis JARs files.
> This only happened when running as JAR. When running into Eclipse IDE it
> works.
>
> Also I notice you that I haven't axis installed because I no need developing
> a Web Service (server side).
>
> How can I resolve it?.
>
> Thanks in advance.
>
> José.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-dev-help@axis.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Re: Exception on AXIS only when running executable JAR

Posted by Andreas Veithen <an...@gmail.com>.
As part of the promotion of the Axis project to a top level project,
we have decided to create separate mailing lists for Axis 1 and Axis2.
For all Axis 1 related questions please subscribe and post to
axis1-java-user@axis.apache.org. Thanks!

Andreas


On Fri, Sep 3, 2010 at 12:04, Jose (New Informatics)
<jo...@newinformatics.net> wrote:
> HI,
>
> Please, i need help with this problem. I don't find any solution.
>
> I developed a client axis web service in IDE Eclipse (only client side).
> Project is compiled and works perfectly but when I build an executable JAR
> and running it launch an Exception like this...
>
> org.apache.axis.ConfigurationException: java.lang.NullPointerException
> java.lang.NullPointerException
>        at sun.misc.MetaIndex.mayContain(Unknown Source)
>        at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
>        at sun.misc.URLClassPath.getResource(Unknown Source)
>        at sun.misc.URLClassPath.getResource(Unknown Source)
>        at java.lang.ClassLoader.getBootstrapResource(Unknown Source)
>        at java.lang.ClassLoader.getResource(Unknown Source)
>        at java.lang.ClassLoader.getResource(Unknown Source)
>        at java.lang.ClassLoader.getResource(Unknown Source)
>        at java.lang.ClassLoader.getResourceAsStream(Unknown Source)
>        at
> org.apache.axis.utils.ClassUtils.getResourceAsStream(ClassUtils.java:
> 227)
>        at
> org.apache.axis.configuration.FileProvider.configureEngine(FileProvid
> er.java:170)
>        at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
>        at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
>        at org.apache.axis.client.AxisClient.<init>(AxisClient.java:52)
>        at org.apache.axis.client.Service.getAxisClient(Service.java:104)
>        at org.apache.axis.client.Service.<init>(Service.java:144)
>        at
> cat.gencat.justicia.tta.client.axis.JwsServiceSoapBindingQSServiceLoc
> ator.<init>(JwsServiceSoapBindingQSServiceLocator.java:17)
>        at
> cat.gencat.justicia.tta.client.TablasMaestras.ObtenerTablaMaestra(Tab
> lasMaestras.java:55)
>        at
> cat.gencat.justicia.tta.client.Exemple.DescargarTablas(Exemple.java:1
> 80)
>        at cat.gencat.justicia.tta.client.Exemple.main(Exemple.java:36)
>        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:306)
>        at com.simontuffs.onejar.Boot.main(Boot.java:159)
>
> I'm sure I included in project all Axis JARs files.
> This only happened when running as JAR. When running into Eclipse IDE it
> works.
>
> Also I notice you that I haven't axis installed because I no need developing
> a Web Service (server side).
>
> How can I resolve it?.
>
> Thanks in advance.
>
> José.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-dev-help@axis.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org