• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

How to deploye

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So far i am using weblogic to deploye my jsp files but when i try to deploye using tomcat, i dont know wat to do.. My problem is with this page http://localhost:8080/manager/html.. can anyone tell me what is Context Path (optional), XML Configuration file URL and WAR or Directory URL. can i use the xml file that i use in weblogic to deploye...
[ January 24, 2008: Message edited by: Shana Sanjith ]
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If no context path is specified, the application will adopt the name of the war file or folder that it's in.

For example, if you deploy an app named MyApp_version_1_1_4.war, the app's name would be: MyApp_version_1_1_4 and the URL to reach it would be:
http://www.yourdomain.com/MyApp_version_1_1_4.

Rather than making you rename the directory or war file and then deploy the app, Tomcat lets you choose a different name when you deploy.
This way you can name it MyApp but still retain the original name in your war file.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are several ways to deploy an app in Tomcat and it's a good idea to review the documentation on their site. It's pretty good these days.

The simplest is simply to drop your war file (or directory structure) into the tomcat/webapps directory. Tomcat will take care of the rest.
If you need more fine grained control, you can create what's called 'context fragment' file that contain things like an alternate context path, context-init-params etc into a directory outside your app.

Again, take a few minutes to read through their documentation.
You'll be glad you did.
 
Shana Sanjith
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
still i dont understand war files...
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Shana Sanjith:
still i dont understand war files...



There isn't much to understand.
A war file (web archive) is nothing more than a jar file containing the entire web application directory structure.

If you have a running version of Tomcat on your machine, you can download any of the war files on my site ( http://simple.souther.us )to your Tomcat/webapps directory. As soon as Tomcat sees the war file there, it will unpack it and deploy the application.

I've also donated most of them to Javaranch so you can also download them from our CodeBarn page of Servlet Sample Code.

This is by far the easiest way to deploy an application with Tomcat.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic