Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » How do you add Web project to EAR(How do you add Web project to EAR)
How do you add Web project to EAR [message #729704] Mon, 26 September 2011 19:44 Go to next message
gwo58ns is currently offline gwo58nsFriend
Messages: 3
Registered: September 2011
Junior Member
I'm working in Eclipse Galileo trying to create an EAR file being deployed to WebSphere. I have an existing Dynamic Web Project I want to add to the EAR. How would you do that?
Re: How do you add Web project to EAR [message #729752 is a reply to message #729704] Mon, 26 September 2011 22:18 Go to previous messageGo to next message
gwo58ns is currently offline gwo58nsFriend
Messages: 3
Registered: September 2011
Junior Member
One thing I just noticed is that the Utility Module facet is missing in this Project and the Project doe not appear as a choice in the EAR. Does anyone know how the Utility Module can be added to Facets?
Re: How do you add Web project to EAR [message #729870 is a reply to message #729704] Tue, 27 September 2011 07:28 Go to previous message
Wolfgang Knauf is currently offline Wolfgang KnaufFriend
Messages: 63
Registered: July 2009
Member
Am 26.09.2011 21:44, schrieb gwo58ns:
> I'm working in Eclipse Galileo trying to create an EAR file being
> deployed to WebSphere. I have an existing Dynamic Web Project I want to
> add to the EAR. How would you do that?

Hi,

if the EAR project is also newly created, this should be easy: in step 2
of creating the EAR (titled "Configure enterprise application
settings"), you can choose dependencies to existing modules. If you
check your Dynamic Web Projcet here, it should work.

If both EAR and WAR project already exist, it might become a bit more
complicated. Best create an EAR project with Dynamic Web Project and
copy the relevant snippets of the config files to the config files of
your EAR.
You will need to modify:
-the ".project" file (reference to WAR project)
-".settings/org.eclipse.wst.common.component" (element "dependent-module").
-maybe ".settings/.jsdtscope"
-and finally "org.eclipse.wst.common.project.facet.core.xml"

Hope this works

Wolfgang
Previous Topic:New launch shortcut - org.eclipse.debug.ui.ILaunchShortcut2 class not found
Next Topic:StructuredTextEditor validation
Goto Forum:
  


Current Time: Fri Nov 28 03:20:58 GMT 2014

Powered by FUDForum. Page generated in 0.01809 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software