Resolved this myself.  My ant build script was only adding the .class files
to the jar.  I changed it to add all files and it worked.

On Thu, Sep 22, 2011 at 11:21 AM, Louis Amstutz <loui...@gmail.com> wrote:

> I have my project working fine in Eclipse.  However, it's not working when
> I package it into a jar and run that.  I am including all the required
> libraries of axis2 and rampart in the jar, because the app will be deployed
> via java web start and I can't expect users to install all the libraries on
> their client machines.  To do this, I am extracting all the files out of the
> Axis2 jar libraries and putting them into my client jar.  This may be the
> problem, but I'm not sure how else I can have my client and all the required
> libraries in one jar so it can run from java web start.  I tried extracting
> everything out of my client jar and running it like that with the java
> console command but I had the same problem.
>
> The problem happens at the following line:
>
> ConfigurationContext ctx=null;
> try{ ctx= ConfigurationContextFactory.
> createConfigurationContextFromURIs(null, null);}
> catch (Throwable e) {e.printStackTrace();}
>
> I never really understood this line.  I know it wants an Axis2 repo and
> axis2.xml but in Eclipse it works fine if I leave these null.
> Here is the exception that is thrown:
>
> org.apache.axis2.AxisFault: java.net.MalformedURLException
>         at
> org.apache.axis2.deployment.URLBasedAxisConfigurator.getAxisConfiguration(URLBasedAxisConfigurator.java:78)
>         at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
>         at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromURIs(ConfigurationContextFactory.java:216)
>         at cashcard.pcclient.PCClient.initConnection(Unknown Source)
>         at
> cashcard.pcclient.workerthreads.LoginWorker.doInBackground(Unknown Source)
>         at
> cashcard.pcclient.workerthreads.LoginWorker.doInBackground(Unknown Source)
>         at javax.swing.SwingWorker$1.call(Unknown Source)
>         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
>         at java.util.concurrent.FutureTask.run(Unknown Source)
>         at javax.swing.SwingWorker.run(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
> Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source)
>         at java.lang.Thread.run(Unknown Source)
>

Reply via email to