2016-03-02 53 views
0

我想從WSDL使用Eclipse的Web服務生成一個java bean骨架。我爲類型選擇'自上而下的Java bean Web服務',並在Web服務運行時使用'Apache CXF 2.x'。Web服務'創建Java Bean骨架 - 在Eclipse中的錯誤

IWAB0014E發生意外的異常。 org.eclipse.emf.common.util.DiagnosticException:解析Java文件時檢測到問題 org.eclipse.emf.common.util.WrappedException:> org.eclipse.emf.common.util.DiagnosticException:A在> org.eclipse.emf.codegen.merge.java.facade.ast.ASTFacadeHelper.createCompilation>單元(ASTFacadeHelper.java:280) >處解析Java文件 時檢測到問題> at org.eclipse.emf.codegen .merge.java.facade.ast.ASTFacadeHelper.createCompilation> Unit(ASTFacadeHelper.java:1) at> org.eclipse.emf.codegen.merge.java.JMerger.createCompilationUnitForInputStream(> JMerger.java:322) at> org.eclipse.emf.codegen.merge.java.JMerger.createCompilationUnitForInputStream(> JMerger.java:311) at> org.eclipse.jst.ws.internal.cxf.core.utils.MergeUtils.merge(MergeUtils.java: 57) at> org.eclipse.jst.ws.internal.cxf.core.utils.FileUtils.copyFile(FileUtils.java:12> 0) at> org.eclipse.jst.ws.internal.cxf.core.utils。 FileUtils.copyFolder(FileUtils.java:> 71) at> org.eclipse.jst.ws.internal.cxf.core.utils.FileUtils.copyFolder(FileUtils.java:> 81) at> org.eclipse.jst。 ws.internal.cxf.core.utils.FileUtils.copyFolder(FileUtils.java:> 69) at> org.eclipse.jst.ws.internal.cxf.core.utils.FileUtils.copyFolder(FileUtils.java:> 81 ) at> org.eclipse.jst.ws.internal.cxf.core.utils.FileUtils.copyFolder(FileUtils.java:> 69) at> org.eclipse.jst.ws.internal.cxf.core.utils。 FileUtils.copyFolder(FileUtils.java:> 81) at> org.eclipse.jst.ws.internal.cxf.core.utils.FileUtils.copyFolder(FileUtils.java:> 69) at> org.e clipse.jst.ws.internal.cxf.core.utils.FileUtils.copyFolder(FileUtils.java:> 81) at> org.eclipse.jst.ws.internal.cxf.core.utils.FileUtils.copyFolder(FileUtils。 java:> 69) at> org.eclipse.jst.ws.internal.cxf.core.utils.FileUtils.copyW2JFilesFromTmp(FileUt> ils.java:180) at> org.eclipse.jst.ws.internal.cxf .creation.core.commands.WSDL2JavaCommand.execute>(WSDL2JavaCommand.java:82) at> org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.runCom> mand(CommandFragmentEngine.java:419) at> org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.visitT> op(CommandFragmentEngine.java:359) at> org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine .moveFo> rwardToNextStop(CommandFragmentEngine.java:212) at> org.eclipse.wst.c ommand.internal.env.ui.widgets.SimpleCommandEngineManager $ 6.ru> n(SimpleCommandEngineManager.java:294) at> org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:4> 64) at org。 eclipse.jface.operation.ModalContext.run(ModalContext.java:372) at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1028) at> org.eclipse.wst.command.internal.env .ui.widgets.SimpleCommandEngineManager.runF> orwardToNextStop(SimpleCommandEngineManager.java:264) at> org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.runForwardToN> extStop(WizardPageManager.java:91) at > org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.getNextPage(W> izardPageManager.java:154) at> org.eclipse.wst.command.internal.env.ui.widgets.SimpleWizardPage。通用電器(org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:));或者, 428) at org.eclipse.jface.dialogs.Dialog $ 2.widgetSelected(Dialog.java:628) at> org.eclipse.swt.widgets。TypedListener.handleEvent(TypedListener.java:248) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759) at org.eclipse.jface.window。 Window.runEventLoop(Window.java:826) at org.eclipse.jface.window.Window.open(Window.java:802) at> org.eclipse.wst.command.internal.env.ui.widgets.popup .DynamicPopupWizard.run(Dy> namicPopupWizard.java:130) at> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251) at> org.eclipse.jface.action.ActionContributionItem.handleWidgetSelecti (ActionCon> tributionItem.java:584) at> org.eclipse.jface.action.ActionContributionItem.access $ 2(ActionContributionItem> .java:501) at> org.eclipse.jface.action.ActionContributionItem $ 5.handleEvent(ActionContributio > nItem.java:411) 在org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) 在org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057) 在有機.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759) at> org.eclipse.e4.ui.internal。 workbench.swt.PartRenderingEngine $ 9.run(PartRenderin> gEngine.java:1113) at> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at> org.eclipse .e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingE> ngine.java:997) at> org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.jav> a:140)在org.eclipse.ui.internal.Workbench $ 5.run(Workbench.java:611) at> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java :332) at> org.eclipse .ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at> org.eclipse.ui.internal.ide.application.IDEApplication。啓動(IDEApplication.jav> a:124) at> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196>) at> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(ECL> IPS eclipseLauncher.java:110) at> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLa> uncher.java:79) at> org.eclipse.core.runtime.adaptor.EclipseStarter.run( EclipseStarter.java:354) at> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at> sun.reflect.NativeMethodAccessorImpl .invoke(NativeMethodAccessorImpl.java:62) 在> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja> VA:43)在java.lang.reflect.Method.invoke(Method.java:497) 在有機eclipse.equinox.launcher.Main.invokeFramework(Main.java:636) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)0 org.eclipse.equinox.launcher.Main.run(Main.java:1450) at org.eclipse.equinox.launcher.main.main(Main.java:1426) 由org.eclipse.emf引起。 common.util.DiagnosticException:

2016年3月2日12點51分52秒:是>在解析Java文件 ...... 69多個

此外,Eclipse控制檯讀取檢測到問題PM org.apache.cxf.wsdl11.WSDLServiceBuilder?> checkForWrapped 信息:操作EPIClientInquiry不能?>解開,輸入信息必須與同一>的localName引用全局元素聲明作爲操作

我知道有與WSDL沒問題 - 我的一個同事是能夠成功地產生在他的環境中使用Java bean的骨架。我們使用相同的JDK,相同的Tomcat服務器和相同的Apache CXF。 我最好的猜測是它與Eclipse工作區有關。

我在這個問題上花了好幾天,所以任何幫助或建議都非常感謝。

謝謝!

回答

0

清理項目並重新重建。

相關問題