Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-wtp-dev] m2e-wtp and deploy-name

The deploy-name of the web project is set to match the expected context root if the war was deployed standalone (not in an EAR).
Since RAD expects deploy-name="war-project", apparently, you can try setting the <finalName> to that, or any other alternative solution described in http://wiki.eclipse.org/M2E-WTP_FAQ#How_do_I_change_the_context_root_of_my_project.3F


On Thu, Nov 8, 2012 at 4:26 PM, ilx <iloncar.ml@xxxxxxxxx> wrote:
Hi!
I'm using m2e-wtp with IBM Rational® Application Developer for
WebSphere® Software  8.5.0

I have multimodule maven project organized like this:
parent-project
 --> ear-project
     ....
 --> war-project
     ....


I'm glad that almost everything works, but when I try to adjust
classloader ordering (right click on the EAR project, then select
JavaEE -> Open Websphere Application Server Deployment) i get
following exception:

java.lang.NullPointerException
at
com.ibm.ws.ast.st.enhanced.ear.ui.internal.editor.AppDeploymentSection.fillApplicationTree(Unknown
Source)
at
com.ibm.ws.ast.st.enhanced.ear.ui.internal.editor.AppDeploymentSection.resetPageFields(Unknown
Source)
at
com.ibm.ws.ast.st.enhanced.ear.ui.internal.editor.AppDeploymentSection.initModel(Unknown
Source)
at
com.ibm.ws.ast.st.enhanced.ear.ui.internal.editor.PageApplicationServer.createAppDeploymentSection(Unknown
Source)
at
com.ibm.ws.ast.st.enhanced.ear.ui.internal.editor.PageApplicationServer.createClient(Unknown
Source)
at
com.ibm.etools.emf.workbench.ui.custom.widgets.CommonPageForm.createInnerSections(Unknown
Source)
at
com.ibm.ws.ast.st.enhanced.ear.ui.internal.editor.WasDeploymentEditor.addPages(Unknown
Source)
at org.eclipse.ui.forms.editor.FormEditor.createPages(Unknown Source)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Unknown
Source)
at org.eclipse.ui.internal.EditorReference.createPartHelper(Unknown
Source)
at org.eclipse.ui.internal.EditorReference.createPart(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(Unknown
Source)
at org.eclipse.ui.internal.PartPane.setVisible(Unknown Source)
at
org.eclipse.ui.internal.presentations.PresentablePart.setVisible(Unknown
Source)
at
org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(Unknown
Source)
at
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(Unknown
Source)
at
org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(Unknown
Source)
at
org.eclipse.ui.internal.PartStack.refreshPresentationSelection(Unknown
Source)
at org.eclipse.ui.internal.PartStack.setSelection(Unknown Source)
at org.eclipse.ui.internal.PartStack.showPart(Unknown Source)
at org.eclipse.ui.internal.PartStack.add(Unknown Source)
at org.eclipse.ui.internal.EditorStack.add(Unknown Source)
at org.eclipse.ui.internal.PartStack.add(Unknown Source)
at org.eclipse.ui.internal.EditorStack.add(Unknown Source)
at org.eclipse.ui.internal.EditorSashContainer.addEditor(Unknown
Source)
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(Unknown
Source)
at org.eclipse.ui.internal.EditorAreaHelper.addEditor(Unknown Source)
at org.eclipse.ui.internal.EditorManager.createEditorTab(Unknown
Source)
at
org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(Unknown
Source)
at org.eclipse.ui.internal.EditorManager.openEditor(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(Unknown
Source)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Unknown
Source)
at org.eclipse.ui.internal.WorkbenchPage.access$11(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage$10.run(Unknown Source)
at org.eclipse.swt.custom.BusyIndicator.showWhile(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(Unknown Source)
at org.eclipse.ui.ide.IDE.openEditor(Unknown Source)
at
com.ibm.ws.ast.st.enhanced.ear.ui.actions.OpenWasDeploymentAction.run(Unknown
Source)
at org.eclipse.ui.internal.PluginAction.runWithEvent(Unknown Source)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Unknown
Source)
at org.eclipse.jface.action.ActionContributionItem.access$2(Unknown
Source)
at org.eclipse.jface.action.ActionContributionItem
$5.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source)
at org.eclipse.ui.internal.Workbench.runUI(Unknown Source)
at org.eclipse.ui.internal.Workbench.access$4(Unknown Source)
at org.eclipse.ui.internal.Workbench$7.run(Unknown Source)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Unknown
Source)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unknown
Source)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(Unknown
Source)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Unknown
Source)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Unknown
Source)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Unknown
Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
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(Unknown Source)
at org.eclipse.equinox.launcher.Main.basicRun(Unknown Source)
at org.eclipse.equinox.launcher.Main.run(Unknown Source)
at org.eclipse.equinox.launcher.Main.main(Unknown Source)


I have traced the issue to the org.eclipse.wst.common.component and
deploy-name attribute  of wb-module element.
If I let m2e update maven projects the file will be overwritten and
the deploy-name will contain module version (something like this:
<wb-module deploy-name="war-project-2.2.2">)

Is there a way to control value of deploy-name attribute?
_______________________________________________
m2e-wtp-dev mailing list
m2e-wtp-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/m2e-wtp-dev



--
"Have you tried turning it off and on again" - The IT Crowd

Back to the top