Hello,
When I attempt to generate JBossWS Artifacts, a NullPointerException
occurs upon a call to handleWSDLToJavaGeneration(...).
I've looked on line for clues to this behavior, and found several references to this
problem. The only 'suggested fix' is to make sure that wstools-config.xml is in
the path.
Although it does look like the problem is a "file not found" type-of-error, I do
not understand why JBossWS would have any trouble finding a temporary file it created
(wstools-config49256.xml). So perhaps the problem is elsewhere?
Any ideas? It looks like this problem has been encountered before, and the solution is
probably something really simple!
Below is the log that is displayed in the console window:
Running JBossWS wstools for [HelloWorld]
directory: E:\java\jboss-4.0.5.GA\bin
command: cmd.exe /C wstools.bat -config
C:\DOCUME~1\MRS\LOCALS~1\Temp\wstools-config49256.xml -dest
E:\java\Eclipse4Jbossws\workspace\mm3\src
=============================================="
.
WSTools Environment
.
JBOSS_HOME: E:\java\jboss-4.0.5.GA\bin\\..
.
JAVA: E:\java\jdk6\bin\java
.
JAVA_OPTS:
.
==============================================="
.
Exception in thread "main" java.lang.NullPointerException
at java.io.File.(File.java:222)
at
org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:282)
at org.jboss.ws.tools.WSTools.process(WSTools.java:137)
at org.jboss.ws.tools.WSTools.generate(WSTools.java:69)
at org.jboss.ws.tools.WSTools.generate(WSTools.java:119)
at org.jboss.ws.tools.WSTools.main(WSTools.java:58)
This is wstools-config49256.xml (formatted for legibility):
===============================================
<?xml version="1.0" encoding="UTF-8"?>
<jbos:configuration
xmlns:jbos="http://www.jboss.org/jbossws-tools">
<jbos:wsdl-java
file="C:\DOCUME~1\MRS\LOCALS~1\Temp\tempdir49257.tmp\HelloWorld.wsdl"
unwrap="true">
<jbos:mapping file="jaxrpc-mapping.xml"/>
</jbos:wsdl-java>
</jbos:configuration>
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043697#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...