简体   繁体   English

IWAB0014E发生意外的异常。 尝试使用apache cxf2.7创建Web服务时

[英]IWAB0014E Unexpected exception occurred. When trying to create web service using apache cxf2.7

I am trying to create web service using apache CXF2.7 but it is throwing below error. 我正在尝试使用apache CXF2.7创建Web服务,但是它抛出以下错误。

            The name "" is not legal for JDOM/XML namespaces: Namespace URIs must be non-null and non-empty Strings.
                  org.jdom.IllegalNameException: The name "" is not legal for JDOM/XML namespaces: Namespace URIs must be non-null and non-empty Strings.
                  at org.jdom.Namespace.getNamespace(Namespace.java:162)
                  at org.eclipse.jst.ws.internal.cxf.core.utils.SpringUtils.createJAXWSEndpoint(SpringUtils.java:414)
                  at org.eclipse.jst.ws.internal.cxf.creation.core.commands.Java2WSCommand.execute(Java2WSCommand.java:103)
                  at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.runCommand(CommandFragmentEngine.java:419)
                  at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.visitTop(CommandFragmentEngine.java:359)
                  at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.moveForwardToNextStop(CommandFragmentEngine.java:212)
                  at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager$6.run(SimpleCommandEngineManager.java:294)
                  at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:437)
                  at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:353)
                  at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:993)
                  at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager.runForwardToNextStop(SimpleCommandEngineManager.java:264)
                  at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.runForwardToNextStop(WizardPageManager.java:91)
                  at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.getNextPage(WizardPageManager.java:154)
                  at org.eclipse.wst.command.internal.env.ui.widgets.SimpleWizardPage.getNextPage(SimpleWizardPage.java:136)
                  at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:869)
                  at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:419)
                  at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:618)
                  at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:249)
                  at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
                  at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4418)
                  at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
                  at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4236)
                  at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3824)
                  at org.eclipse.jface.window.Window.runEventLoop(Window.java:818)
                  at org.eclipse.jface.window.Window.open(Window.java:794)
                  at org.eclipse.ui.internal.actions.NewWizardShortcutAction.run(NewWizardShortcutAction.java:133)
                  at org.eclipse.jface.action.Action.runWithEvent(Action.java:473)
                  at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:565)
                  at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:397)
                  at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
                  at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4418)
                  at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
                  at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4236)
                  at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3824)
                  at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
                  at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
                  at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
                  at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
                  at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:693)
                  at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
                  at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:610)
                  at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
                  at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
                  at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
                  at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
                  at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
                  at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
                  at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                  at java.lang.reflect.Method.invoke(Unknown Source)
                  at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
                  at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
                  at org.eclipse.equinox.launcher.Main.run(Main.java:1519)

I am using eclipse neon, jbossAS7.0.2, CXF 2.7 and JDK 1.6. 我正在使用eclipse neon,jbossAS7.0.2,CXF 2.7和JDK 1.6。 I have already window->preferences->web service-> CXF2.x preferences 我已经有了window-> preferences-> web service-> CXF2.x首选项

As the error states . 由于错误状态。 Dont keep empty or null namespace. 不要保留空名称空间或空名称空间。 Add the namespace attribute value to the @WebService annotation. 将名称空间属性值添加到@WebService批注。

@WebService(targetNamespace="http://www.test.com")
public class CustomWebService{

}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Eclipse 收到“IWAB0014E 发生意外异常”。 当我尝试创建一个 soap 客户端时 - Eclipse gets "IWAB0014E Unexpected exception occurred." when I'm trying create a soap client IWAB0014E创建Web服务时发生意外异常 - IWAB0014E Unexpected exception occurred while creating web service IWAB0014E托盘化给定WSDL的创建Web服务时发生意外的异常:需要代理授权 - IWAB0014E Unexpected exception occurred when traying create webservice for given WSDL:Proxy Authorization Required 使用apache cxf动态创建Web服务客户端(修复未找到未检查的操作的异常),使用身份验证调用操作 - Using apache cxf to dynamicly create web service client (fix no operation found unchecked exception), invoke operation with authentication IWAB0489E将Web服务部署到Axis运行时时出错 - IWAB0489E Error when deploying Web service to Axis runtime 使用Apache CXF的文件传输Web服务 - file transfer web service using Apache CXF 如何创建一个Apache cxf简单的Web服务使用者? - How to create an Apache cxf simple web-service consumer? 尝试创建Web服务客户端时发现类未找到异常 - Class not found exception when trying to create web service client 使用Apache CXF通过Web服务下载文件 - Downloading file via Web Service using Apache CXF HttpURLConnection "发生意外错误。" - HttpURLConnection "An unexpected error occurred."
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM