I've tried to read the documentation and maybe you younger people get it, but I'm getting glassy eyed and don't get it. The problem is I can't figure out how to take my war file from RAD and deploy it in TOMCAT 6. I thought I just had to put a war (and I included the zip file in case it was needed) in C:\Program Files\Apache Sortware Foundation\webapps\root\FSCalc.war.
I then opened and checked that Tomcat was running by opening a browser and going to http://localhost:8080/ and I do see the Tomcat page.
It would have been better to ask these kinds of questions in the Tomcat forum, actually. Eclipse/RAD can help build a WAR, but once that's done, Tomcat neither knows nor cares where the WAR came from.
When you have a WAR in unzipped form, it's known as an "exploded WAR". Tomcat supports that and will even explode WARS as part of the deployment depending on the Tomcat server options and what release of Tomcat it is.
There are several ways to deploy a WAR (exploded or otherwise) into Tomcat.
1. Drop a copy into the TOMCAT_HOME/webapps directory (NOT webapps/root!)
2. Drop a context XML file into TOMCAT_HOME/webapps
3. Create a context XML file in TOMCAT_HOME/conf/Catalina/localhost
I use method #3, since it allows me the ability to build my exploded WAR in my Eclipse workspace and point the context XML to that directory without having to copy it. Plus, Tomcat will hot-load changes to the Eclipse copy. If you use method #1, the context URL is synthesized to be the same as the WAR name, since you don't have a Context to specify an alternate name. You also won't have the advantages of being able to externally configure the webapp if you don't define a context XML, since that's where you'd put the database connection pool definition, security realm definition (if securing per-webapp) and JNDI object definitions/overrides.
Older versions of Tomcat would store context definitions in the TOMCAT_HOME/server.xml file. Don't do that. It still works, but isn't as flexible.
"privilege" comes from the Latin words for "private" and "law" (legal) and dates to feudal times. To "claim privilege" meant that you were above the laws that applied to the common people.
Thank you my well lotioned goddess! Here, have my favorite tiny ad!
Devious Experiments for a Truly Passive Greenhouse!