1 Reply Latest reply: Sep 25, 2014 7:41 AM by user11274260 RSS

    Unable to register a WSDL on OAG

    shanghaiet

      Hi,

       

      I was trying to register a WSDL which has couple of import statements referring to other schemas. One of those schemas has an include statement. While registering the WSDL I received the following error: How can I resolve this error?

       

      java.lang.RuntimeException: Couldn't load schemas

        at com.vordel.wsdl.WSDLDocument.getResourceCache(WSDLDocument.java:431)

        at com.vordel.wsdl.WSDLDocument.getSchemas(WSDLDocument.java:439)

        at com.vordel.wsdl.WSDLDocument.getSchemaForOperation(WSDLDocument.java:456)

        at com.vordel.wsdl.Operation.getOperationNameAndNamespace(Operation.java:301)

        at com.vordel.wsdl.Operation.<init>(Operation.java:57)

        at com.vordel.wsdl.WSDLDocument.getOperations(WSDLDocument.java:624)

        at com.vordel.wsdl.WSDLDocument.getWebServices(WSDLDocument.java:580)

        at com.vordel.client.swt.wsdl.SelectWSDLOperationsPage.displayOperations(SelectWSDLOperationsPage.java:274)

        at com.vordel.client.swt.wsdl.SelectWSDLOperationsPage.loadWSDL(SelectWSDLOperationsPage.java:258)

        at com.vordel.client.swt.wsdl.WSDLWizardDialog.nextPressed(WSDLWizardDialog.java:31)

        at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:369)

        at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:616)

        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)

        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)

        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)

        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)

        at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)

        at org.eclipse.jface.window.Window.open(Window.java:796)

        at com.vordel.client.manager.actions.services.AddWebServiceGUIProcessor.addWebService(AddWebServiceGUIProcessor.java:121)

        at com.vordel.client.manager.actions.services.AddWebServiceAction.runAction(AddWebServiceAction.java:26)

        at com.vordel.client.manager.actions.ManagerEntityAction.run(ManagerEntityAction.java:34)

        at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)

        at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)

        at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)

        at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)

        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)

        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)

        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)

        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)

        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)

        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)

        at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)

        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)

        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)

        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

        at com.vordel.client.gui.policystudio.Application.start(Application.java:42)

        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)

        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)

        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)

        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)

        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)

        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)

        at org.eclipse.equinox.launcher.Main.run(Main.java:1173)

      Caused by: com.vordel.xsd.SchemaLoadException: Couldn't load Schema

        at com.vordel.xsd.LoadSchemaFromWSDL.expandIncludes(LoadSchemaFromWSDL.java:336)

        at com.vordel.xsd.LoadSchemaFromWSDL.loadAndValidate(LoadSchemaFromWSDL.java:138)

        at com.vordel.xsd.SchemaLoader.resolveSchemas(SchemaLoader.java:115)

        at com.vordel.xsd.SchemaLoader.loadSchemas(SchemaLoader.java:80)

        at com.vordel.wsdl.WSDLDocument.getResourceCache(WSDLDocument.java:426)

        ... 49 more

      Caused by: java.lang.RuntimeException: Couldn't import schema - Incompatible attribute found for include: {null}version

        at com.vordel.xsd.LoadSchemaFromWSDL.copyNamespaces(LoadSchemaFromWSDL.java:402)

        at com.vordel.xsd.LoadSchemaFromWSDL.expandIncludes(LoadSchemaFromWSDL.java:312)

        ... 53 more

       

      Regards,

      ET