JohnSka7 wrote:
We've gone ahead and followed all of the instructions to get
Tomcat to recognize cgi and execute it, but the problem is that our main
application isn't within the Tomcat\webapp\ROOT directory...it's in a
directory called PowerSchoolPremiere\Data\custom\webapp\.
Can anyone give me some advise on how to change the web.xml file to
recognize this directory as the one to execute CGI in? I've tried changing
the servlet path to absolute paths, relative paths, etc and nothing seems to
be working. I can go to my test file, but it just prints out the code, it
doesn't execute the file.
I have also confirmed that perl is working by running my script from the
command line without any problems.
Assuming a default Tomcat 6.0.x install...
1. Stop Tomcat
2. Delete $CATALINA_HOME/webapps/ROOT
3. Delete any other webapps in $CATALINA_HOME/webapps you don't want
4. Create $CATALINA_HOME/webapps/ROOT.xml with the following content:
<Context docBase="/PowerSchoolPremiere/Data/custom/webapp/">
</Context>
The docBase should be absolute and outside of the $CATALINA_HOME/webapps/
directory structure. If you are on Windows, this means the docBase should
start with a drive letter. eg "C:/PowerSchoolPremiere/Data/custom/webapp/"
5. Double check http://tomcat.apache.org/tomcat-6.0-doc/cgi-howto.html
The exact changes required to $CATALINA_HOME/conf/web.xml will depend on
a) where your *.cgi files are relative to your docBase
b) the URL used to request them
Mark
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]