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

I hope the IBM folks on this ML will see an opportunity to fix their custom EAR editor to cope with non-default deploy-name ;-P


On Thu, Nov 8, 2012 at 4:57 PM, Fred Bricon <fbricon@xxxxxxxxx> wrote:
Actually my explanation was wrong, forgive me :-)

What I described actually applies to EAR projects, that's why your change worked. But deploy-name != context root for standalone web projects.
Anyway thanks for reporting that since we now have 2 bugs to fix :
- The deploy-name for EAR projects only looks at project.build.finalName, when it should first use maven-ear-plugin.configuration.finalName
- The deploy-name of web projects contained in EARs is modified by the Ear project configurator. It was a necessary workaround to cope with ooold WTP versions but is not needed anymore, since the archiveName is properly set now, in *.component.



On Thu, Nov 8, 2012 at 4:42 PM, ilx <iloncar.ml@xxxxxxxxx> wrote:
Thank you Fred!

I already had this in ear's pom.xml:
                <plugins>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-ear-plugin</artifactId>
                                <configuration>
                                        <finalName>${project.artifactId}</finalName>
                                        <displayName>${project.artifactId}</displayName>
                                        <version>${jee.version}</version>
                                        <generateApplicationXml>false</generateApplicationXml>
                                        <modules>

But apparently I also had to add:
        <build>
                <finalName>${project.artifactId}</finalName>

in order to make it work!

Thanks again!

On Nov 8, 4:34 pm, Fred Bricon <fbri...@xxxxxxxxx> wrote:
> 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 inhttp://wiki.eclipse.org/M2E-WTP_FAQ#How_do_I_change_the_context_root_...
>
>
>
>
>
>
>
>
>
> On Thu, Nov 8, 2012 at 4:26 PM, ilx <iloncar...@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.fill ApplicationTree(Unknown
> > Source)
> > at
>
> > com.ibm.ws.ast.st.enhanced.ear.ui.internal.editor.AppDeploymentSection.rese tPageFields(Unknown
> > Source)
> > at
>
> > com.ibm.ws.ast.st.enhanced.ear.ui.internal.editor.AppDeploymentSection.init Model(Unknown
> > Source)
> > at
>
> > com.ibm.ws.ast.st.enhanced.ear.ui.internal.editor.PageApplicationServer.cre ateAppDeploymentSection(Unknown
> > Source)
> > at
>
> > com.ibm.ws.ast.st.enhanced.ear.ui.internal.editor.PageApplicationServer.cre ateClient(Unknown
> > Source)
> > at
>
> > com.ibm.etools.emf.workbench.ui.custom.widgets.CommonPageForm.createInnerSe ctions(Unknown
> > Source)
> > at
>
> > com.ibm.ws.ast.st.enhanced.ear.ui.internal.editor.WasDeploymentEditor.addPa ges(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(Unk nown
> > Source)
> > at
>
> > org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(Unkno wn
> > Source)
> > at
>
> > org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPa rt(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(Unkno wn
> > Source)
> > at org.eclipse.ui.internal.PluginAction.runWithEvent(Unknown Source)
> > at
>
> > org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Unkno wn
> > 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-...@xxxxxxxxxxx
> >http://dev.eclipse.org/mailman/listinfo/m2e-wtp-dev
>
> --
> "Have you tried turning it off and on again" - The IT Crowd
>
> _______________________________________________
> m2e-wtp-dev mailing list
> m2e-wtp-...@eclipse.orghttp://dev.eclipse.org/mailman/listinfo/m2e-wtp-dev
_______________________________________________
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



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

Back to the top