【问题标题】:Web Services' Create Java Bean Skeleton - Error in EclipseWeb 服务的创建 Java Bean 骨架 - Eclipse 中的错误
【发布时间】:2016-03-02 18:08:39
【问题描述】:

我正在尝试使用来自 WSDL 的 Eclipse 的 Web 服务生成一个 java bean 骨架。我选择“Top Down Java bean Web Service”作为类型,并使用“Apache CXF 2.x”作为 Web 服务运行时。

IWAB0014E 发生意外异常。 org.eclipse.emf.common.util.DiagnosticException:在解析 Java 文件时检测到问题 org.eclipse.emf.common.util.WrappedException: >org.eclipse.emf.common.util.DiagnosticException: 在解析 Java 文件时检测到问题 在 >org.eclipse.emf.codegen.merge.java.facade.ast.ASTFacadeHelper.createCompilation>Unit(ASTFacadeHelper.java:280) 在 >org.eclipse.emf.codegen.merge.java.facade.ast.ASTFacadeHelper.createCompilation>Unit(ASTFacadeHelper.java:1) 在 >org.eclipse.emf.codegen.merge.java.JMerger.createCompilationUnitForInputStream(>JMerger.java:322) 在 >org.eclipse.emf.codegen.merge.java.JMerger.createCompilationUnitForInputStream(>JMerger.java:311) 在 >org.eclipse.jst.ws.internal.cxf.core.utils.MergeUtils.merge(MergeUtils.java:57) 在 >org.eclipse.jst.ws.internal.cxf.core.utils.FileUtils.copyFile(FileUtils.java:12>0) 在 >org.eclipse.jst.ws.internal.cxf.core.utils.FileUtils.copyFolder(FileUtils.java:>71) 在 >org.eclipse.jst.ws.internal.cxf.core.utils.FileUtils.copyFolder(FileUtils.java:>81) 在 >org.eclipse.jst.ws.internal.cxf.core.utils.FileUtils.copyFolder(FileUtils.java:>69) 在 >org.eclipse.jst.ws.internal.cxf.core.utils.FileUtils.copyFolder(FileUtils.java:>81) 在 >org.eclipse.jst.ws.internal.cxf.core.utils.FileUtils.copyFolder(FileUtils.java:>69) 在 >org.eclipse.jst.ws.internal.cxf.core.utils.FileUtils.copyFolder(FileUtils.java:>81) 在 >org.eclipse.jst.ws.internal.cxf.core.utils.FileUtils.copyFolder(FileUtils.java:>69) 在 >org.eclipse.jst.ws.internal.cxf.core.utils.FileUtils.copyFolder(FileUtils.java:>81) 在 >org.eclipse.jst.ws.internal.cxf.core.utils.FileUtils.copyFolder(FileUtils.java:>69) 在 >org.eclipse.jst.ws.internal.cxf.core.utils.FileUtils.copyW2JFilesFromTmp(FileUt>ils.java:180) 在 >org.eclipse.jst.ws.internal.cxf.creation.core.commands.WSDL2JavaCommand.execute>(WSDL2JavaCommand.java:82) 在 >org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.runCom>mand(CommandFragmentEngine.java:419) 在 >org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.visitT>op(CommandFragmentEngine.java:359) 在 >org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.moveFo>rwardToNextStop(CommandFragmentEngine.java:212) 在 >org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager$6.ru>n(SimpleCommandEngineManager.java:294) 在 >org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:4>64) 在 org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372) 在 org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1028) 在 >org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager.runF>orwardToNextStop(SimpleCommandEngineManager.java:264) 在 >org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.runForwardToN>extStop(WizardPageManager.java:91) 在 >org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.getNextPage(W>izardPageManager.java:154) 在 >org.eclipse.wst.command.internal.env.ui.widgets.SimpleWizardPage.getNextPage(Si>mpleWizardPage.java:136) 在 >org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:908) 在 >org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:428) 在 org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:628) 在 >org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248) 在 org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) 在 org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057) 在 org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170) 在 org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759) 在 org.eclipse.jface.window.Window.runEventLoop(Window.java:826) 在 org.eclipse.jface.window.Window.open(Window.java:802) 在 >org.eclipse.wst.command.internal.env.ui.widgets.popup.DynamicPopupWizard.run(Dy>namicPopupWizard.java:130) 在 >org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251) 在 >org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionCon>tributionItem.java:584) 在 >org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem>.java:501) 在 >org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContribution>nItem.java:411) 在 org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) 在 org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057) 在 org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170) 在 org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759) 在 >org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderin>gEngine.java:1113) 在 >org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) 在 >org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingE>ngine.java:997) 在 >org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.jav>a:140) 在 org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611) 在 >org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) 在 >org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567) 在 org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) 在 >org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.jav>a:124) 在 >org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196>) 在 >org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ecl>ipseAppLauncher.java:110) 在 >org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLa>uncher.java:79) 在 >org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354) 在 >org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181) 在 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 在 >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 在 >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja>va:43) 在 java.lang.reflect.Method.invoke(Method.java:497) 在 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636) 在 org.eclipse.equinox.launcher.Main.basicRun(Main.java:591) 在 org.eclipse.equinox.launcher.Main.run(Main.java:1450) 在 org.eclipse.equinox.launcher.Main.main(Main.java:1426) 原因:org.eclipse.emf.common.util.DiagnosticException:在解析 Java 文件时检测到问题 ... 69 更多

此外,Eclipse 控制台显示:

2016 年 3 月 2 日下午 12:51:52 org.apache.cxf.wsdl11.WSDLServiceBuilder ?>checkForWrapped 信息:操作 {http://example.net/}EPIClientInquiry 不能?>解包,输入消息必须引用具有相同 >localname 作为操作的全局元素声明

我知道 WSDL 没有问题 - 我的一位同事能够在他的环境中成功生成 java bean 骨架。我们使用相同的 JDK、相同的 Tomcat 服务器和相同的 Apache CXF。 我最好的猜测是它与 Eclipse 工作区有关。

我在这个问题上花了几天时间,所以非常感谢任何帮助或建议。

谢谢!

【问题讨论】:

    标签: java eclipse web-services


    【解决方案1】:

    清理项目并重新构建。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-12-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多