Java – eclipse – an unexpected exception [closed] occurred when trying to create a web service based on a WSDL file

I am creating a web service in the eclipse Java EE IDE (Helios service release 2, Windows 7 32-bit) based on the 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 am 100% sure that the WSDL file is correct - errors occur, no matter how trivial the file is

The way I do this:

>Create a generic project and add a new WSDL file; > File – > New – > other – > Web service – > Web Service > in the Web Service Wizard, I select "top-down java bean service" and select the corresponding WSDL file. > When I click next or finish, the above exception occurs and the source file is not generated

I'm using Tomcat 6.0 server (localhost), but I think it doesn't matter

Any tips on how to solve this problem will be appreciated

Solution

I solved the problem by going

And change the web service runtime from "Apache axis" to "Apache Axis2"

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>