Deploying Gadget to MWS Problem

Hi All

I’m returning to webMethods after a few years on another project.
I’m trying to develop a new inbox landing page using the business console but the first, and very basic, problem I encountered is the following exception on trying to deploy the HelloWorld example from the documentation.
I am working with webMethods 10.3 & the business console default tabs all work ok, but I can’t see what the problem with the deployment is.
I deployed using Designer to a remote MWS & have tried both a Portlet project & a Gadget project with the same result.

Please help, any ideas welcome!

2021-01-05 16:39:48 GMT (DeployComponent:INFO) [qtp513464080-227][WS:17773] - wm_pghelpers DeployComponent-fileName: LandingPage.war
2021-01-05 16:39:48 GMT (DeployComponent:INFO) [qtp513464080-227][WS:17773] - wm_pghelpers DeployComponent-tempFile: /projects/app/webmethods/MWS/server/default/temp/temp_2007603569/LandingPage.war
2021-01-05 16:39:48 GMT (InstallComponent:INFO) [qtp513464080-227][WS:17773] - Obtained cluster installer lock for component LandingPage.war
2021-01-05 16:39:48 GMT (WebApplicationInstallService:INFO) [qtp513464080-227][WS:17773] - Installing bundle from: file:/projects/app/webmethods/MWS/server/default/deploy/LandingPage/
2021-01-05 16:39:50 GMT (PortletApplicationListener:INFO) [qtp513464080-227][WS:17773] - Web Application initialized: /LandingPage
2021-01-05 16:39:50 GMT (PortletApplicationListener:INFO) [qtp513464080-227][WS:17773] - Portlet descriptor is not found, NOT a portlet application
2021-01-05 16:39:50 GMT (ContextHandler:INFO) [qtp513464080-227][WS:17773] - Started o.e.j.w.WebAppContext@39483ded{/LandingPage,file:/projects/app/webmethods/profiles/MWS_default/configuration/org.eclipse.osgi/8852/0/bundleFile/,AVAILABLE}{file:/projects/app/webmethods/profiles/MWS_default/configuration/org.eclipse.osgi/8852/0/bundleFile/}
2021-01-05 16:39:50 GMT (PortletAppilcationInstallMechanics:INFO) [qtp513464080-227][WS:17773] - LandingPage: Gadget application!
2021-01-05 16:39:50 GMT (BCGadgetProvider:INFO) [qtp513464080-227][WS:17773] - Gadget definition container baseFolderID :/meta/default/folder/0000199918
2021-01-05 16:39:50 GMT (BCGadgetProvider:INFO) [qtp513464080-227][WS:17773] - Gadget definition container xtypeID : 199917
2021-01-05 16:39:50 GMT (PortletAppilcationInstallMechanics:WARN) [qtp513464080-227][WS:17773] - Trying to recover by uninstalling failed component: LandingPage.war
2021-01-05 16:39:50 GMT (BCGadgetProvider:INFO) [qtp513464080-227][WS:17773] - Gadget definition container baseFolderID :/meta/default/folder/0000199918
2021-01-05 16:39:50 GMT (BCGadgetProvider:INFO) [qtp513464080-227][WS:17773] - Gadget definition container xtypeID : 199917
2021-01-05 16:39:50 GMT (PortletApplicationListener:INFO) [qtp513464080-227][WS:17773] - Web Application destroyed: /LandingPage
2021-01-05 16:39:50 GMT (PortletContainer:INFO) [qtp513464080-227][WS:17773] - unregisterPortletApplication: LandingPage
2021-01-05 16:39:50 GMT (ContextHandler:INFO) [qtp513464080-227][WS:17773] - Stopped o.e.j.w.WebAppContext@39483ded{/LandingPage,file:/projects/app/webmethods/profiles/MWS_default/configuration/org.eclipse.osgi/8852/0/bundleFile/,UNAVAILABLE}{file:/projects/app/webmethods/profiles/MWS_default/configuration/org.eclipse.osgi/8852/0/bundleFile/}
2021-01-05 16:39:50 GMT (WebAppRuntimeConfigManager:INFO) [qtp513464080-227][WS:17773] - Deleting: [deletedID, name] [/meta/default/wm_xt_webapp_runtime_config_data/0000242284, landingpage]
2021-01-05 16:39:50 GMT (Axis1CommandServlet:ERROR) [qtp513464080-227][WS:17773] - [POP.001.0002] A "javax.xml.bind.UnmarshalException" occurred with the Message "null"
javax.xml.bind.UnmarshalException
 - with linked exception:
[org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.]

Hi Ewan,

looks like one of the XML files in the project has additional content before the “<?xml ... ?>” tag.
Or one of these files does not match its encoding with the encoding specified in th xml-tag.

Regards,
Holger

Hi Holgar

Thanks for your quick response.

On checking the xml files I can see that the gadgetDefinition.xml is empty & complaining about it!
On adding information in the editor it doesn’t allow me to save & the xml never updates.

Am I missing something in Designer do you think - I was just following the documentation

Designer logs show this error

!ENTRY org.eclipse.ui 4 0 2021-01-06 15:49:17.074
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
	at com.webmethods.caf.bc.gadgets.editors.pages.GadgetDefinitionPage.initialize(GadgetDefinitionPage.java:727)
	at com.webmethods.caf.bc.gadgets.editors.pages.GadgetDefinitionPage.setActive(GadgetDefinitionPage.java:720)
	at org.eclipse.ui.forms.editor.FormEditor.pageChange(FormEditor.java:495)
	at org.eclipse.ui.part.MultiPageEditorPart.lambda$1(MultiPageEditorPart.java:285)
	at org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:81)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:249)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4428)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1103)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1088)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:802)
	at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3175)
	at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1858)
	at org.eclipse.swt.custom.CTabFolder.lambda$0(CTabFolder.java:328)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4428)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4238)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3817)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1150)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1039)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:680)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)
	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(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1472)

Hi Ewan,

sorry, in this case I will no longer be able to assist you as we are currently on 9.12 and we only have used CAF-Portlets so far.

Lets see if there are other community members around who know better.

Regards,
Holger

For the moment I can manually add the xml definition & publish to the server!

Thanks Holger

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.