Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WAR in EAR

 
Java LayMann
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ther,
I am new to IBM WebSphere Studio 5.1
I am having problem in creating Web Module in EAR Project.
I have a 'SimpleEARProject', in the same i want to create 'SimpleWARProject' but i am not able to do so. When ever i am trying to create a new Web Module using FILE -> New -> Dynamic Web Project...
Its prompting a dialog Box to enter a project name for Dynamic Web Project.
and when i enter SimpleWARProject and click on next. In the J2EE Setting Page its not displaying the already existing SimpleEARProject in the drop down List of EAR Project.
Am i missing some thing...
Any help is highly appreciated.
LayMan
 
chandubcs
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot create a Web Module in a EAR project, you need to create a Dynamic Web Project using Web Perspective and use that in EAR Project. When you deploy EAR project, all the Web projects associated for that EAR project will be deployed.
 
Mark Ju
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alternatively, you can:
1.) Create a Dynamic Web Project by specifying a new, temporary EAR (eg, TempEAR).
2.) Delete TempEAR after it is created.
3.) Associate your new Dynamic Web Project with the pre-existing EAR.
 
Emilio Butrage´┐Żo
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can assign a Web project (WAR) to a new or any existing EAR when creating it, but a WAR must have an EAR, although not visa versa.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic