NullPointerException with JBossWS1.0.4GA and JBoss 4.0.5Meghana Joglekar Feb 27, 2007 3:48 PM
I have installed JBossAS 4.0.5GA and JBossWS's latest release I found on the site 1.0.4.GA. I followed the installation instructions given in install.txt under JBossWS.
In order to install JBossWS the following steps are necessary:
1.) Copy lib/jbossws-client.jar to $JBOSS_HOME/client/
2.) Unzip lib/jbossws.sar to $JBOSS_HOME/server/default/deploy/
3.) Replacing jboss-xml-binding.jar
You need to manually replace the jboss-xml-binding.jar in the $JBOSS_HOME/client and $JBOSS_HOME/lib directories.
The compatible release can be found here:
On running wstools for my wsdl files I get following exception -
Exception in thread "main" java.lang.NullPointerException
at java.io.File.(File.java:194)
at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(Too
lsHelper.java:282)
at org.jboss.ws.tools.WSTools.process(WSTools.java:138)
at org.jboss.ws.tools.WSTools.generate(WSTools.java:120)
at org.jboss.ws.tools.WSTools.main(WSTools.java:61)
My wstools.xml looks like this -
<?xml version="1.0"?> <configuration xmlns=""> <global> <package-namespace <package-namespace </global> <wsdl-java <mapping file="jaxrpc-mapping.xml" /> </wsdl-java> </configuration>
The reason for having full path there is to make sure that the problem wasn't related to relative path which was 'wsdl/hello-service.wsdl'
My hello.wsdl looks like this -
<?xml version="1.0" encoding="UTF-8"?> <definitions targetNamespace="" xmlns="" xmlns: <import namespace="" location="resources/xml/ALFEventManagerSOAP.wsdl" /> <!-->
and my ALFEventManagerSOAP.wsdl is located under that relative path 'resources/xml'.
Please let me know what is wrong here. Is my configuration file right?
From the error and the source code it fails on this line
if (wsdlURL == null) { File wsdlFile = new File(w2jc.wsdlLocation); if (wsdlFile.exists()) { wsdlURL = wsdlFile.toURL(); } }
Line where it says new File so I guess something is wrong with my configuration and it cannot file wsdl files correctly?
Thank you,
Meghana
1. Re: NullPointerException with JBossWS1.0.4GA and JBoss 4.0.5Thomas Diesler Mar 1, 2007 10:16 AM (in response to Meghana Joglekar)
The latest is 1.2.0, please use that.
2. Re: NullPointerException with JBossWS1.0.4GA and JBoss 4.0.5Meghana Joglekar Mar 1, 2007 12:48 PM (in response to Meghana Joglekar)
Well yesterday I downloaded the trunk [I assume that will be the latest code even if 1.2 is out, please let me know if it is different]. I have updated my post on JBPM with the exception that I am seeing now.
So now the exception is in processOperationOutputs though I don't have any output there.
Thanks,
Meghana
3. Re: NullPointerException with JBossWS1.0.4GA and JBoss 4.0.5monowai Mar 7, 2007 5:18 PM (in response to Meghana Joglekar)
Ensure you download 1.20 and install it as per the instructions (you use ANT to do the install).
Ensure that the JBOSS_HOME/client jars are not conflicting with anything else in your path (i.e. move them up the search path).
Try using wsprovide and wsconsume to create your atifacts, not wstools. I followed this (kind of) from the quickstart guide.
Trunk will likely be the latest dev release. if you want 1.2.0ga source, then the revision you want is 2482(I think)