I'm trying to create a Web Service in Eclipse Java EE IDE (Helios Service Release 2, Windows 7 32-bit) based on a WSDL file, but when I click "finish" in the creation wizard I always get:
IWAB0014E Unexpected exception occurred.
(details: java.lang.NullPointerException
at org.eclipse.jst.ws.internal.axis.creation.ui.widgets.skeleton.SkeletonConfigWidgetDefaultingCommand.getOutputJavaFolder(SkeletonConfigWidgetDefaultingCommand.java:86)
at org.eclipse.jst.ws.internal.axis.creation.ui.widgets.skeleton.SkeletonConfigWidgetDefaultingCommand.execute(SkeletonConfigWidgetDefaultingCommand.java:47)
at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.runCommand(CommandFragmentEngine.java:419)
at **...**)
I'm 100% sure that WSDL file is correct - the error happens no matter how trivial etc. the file is.
The way I'm doing it:
I'm using Tomcat 6.0 server (localhost), but I suppose that's irrelevant.
Any tips on how to resolve this would be greatly appreciated.
I solved this by going to
Preferences -> Web Services -> Server and Runtime
and changing the Web Service Runtime
from "Apache Axis" to "Apache Axis2".
Create an empty dynamic web project, copy paste the WSDL, and generate the code from there, then copy the generated files into your project, it worked for me this way.
I know this is annoying, but I could solve it like that,especially if you have more than one WSDL file, for me; I could generate the server code for the first WSDL, but not for the rest.
Best regards.
The problem is caused due to existence of hyphens in the WSDL URL. Do you have any '-'(hyphen's) in your WSDL URL, if yes, thats the problem. Please check --> IWAB0014E Unexpected exception occurred
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With