?
Solved

tomcat classpath restricting me in running other programs

Posted on 2003-03-18
4
Medium Priority
?
191 Views
Last Modified: 2010-08-05
hi,
I am a new user of tomcat. I am running Tomcat 4.0.5 with apache in linux O.S. My tomcat path points to /usr/tomcat405/webapps/ROOT. I mean this is the place where the index.html exists whose contents are shown when I give my Ip address on the browser.
My problem is I have to run a program called search.html existing in a directory elsewhere. If i give the full path towards that in browser it is looking in /usr/tomcat405/webapps/examples/jsp/myname followed by the pathname for search.html. myname is the directory where are all my jsp files are existing.
search.html is for calling a cgi program htsearch.Both search.html and htsearch exist in /usr/tomcat405/webapps/ROOT/htdig/cgi-bin and they have to reside there only for working.
So my basic doubt is how to give a url with full path which is not getting confused with tomcat settings? Help will b deeply appreciated.
thanks
prem
0
Comment
Question by:prem2574
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
cpuburst earned 340 total points
ID: 8169348
First of all don't use the ROOT context path.
Create a seperate contextpath. You can either use the admin tool or edit the server.xml or even place a folder in the tomcat webapps folder containing a WEB-INF folder inturn containing one web.xml file.

eg:  if ur webapplication folder is   myweb then the hierarchy will be

webapps
  |
|||

myweb
 |
 |---search.jsp
 |
 |---WEB-INF
       |
       |---web.xml

   
0
 
LVL 1

Expert Comment

by:cpuburst
ID: 8169349
First of all don't use the ROOT context path.
Create a seperate contextpath. You can either use the admin tool or edit the server.xml or even place a folder in the tomcat webapps folder containing a WEB-INF folder inturn containing one web.xml file.

eg:  if ur webapplication folder is   myweb then the hierarchy will be

webapps
  |
|||

myweb
 |
 |---search.jsp
 |
 |---WEB-INF
       |
       |---web.xml

   
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Convert websphere application server default chained Certificates from 1024 to 2048 keysize or higher size and also you can change signatureAlgorithm . Please make sure Websphere Application Server fixpack 7.0.0.23 or Above. The following steps a…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question