aspose file tools*
The moose likes Servlets and the fly likes .ear file and .war files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark ".ear file and .war files" Watch ".ear file and .war files" New topic
Author

.ear file and .war files

prachi jahagirdar
Greenhorn

Joined: Feb 02, 2004
Posts: 11
hello,
i was trying to understand the deployment procedure. I have some confusion with .war and .ear files.
Suppose i am using Tomcat and created the directory as 'test'. structure is as follows:
tomcat
/
webapps
/
test
/ \
jsp WEB-INF(it contais web.xml)
When i run any '.jsp' file the corrosponding servlet gets created in 'work' directory. If i want to create a 'app1.war' for my application which directory should i use(work or test)? and suppose some EJB.jar are also to be added to create 'app.ear'(I know .ear is not used in Tomcat.... then consider i want to use it in websphere) file for the same application then what are the contents of that file along with 'app1.war' and 'EJB.jar'. What will be the Deployment Discriptor for this .ear file. Can you please give some example.
The next thing is when you give it to client and try to install it on his server. how does this installation takes place?
Thank you!
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Moving this to the Servlets forum.


Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: .ear file and .war files
 
Similar Threads
Is it useful to deploy by a .war file?
error in running the sample application
Ant NoClassDefFoundError
Error in Loading WAR file
Tomcat6 404 on deployed subfolders? (It worked fine two days ago)