Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache-Jserv - ServerRoot directive does not apply to Servlets

Status
Not open for further replies.

privatdozent

Programmer
Jul 9, 2001
2
IN
I successfully configured Apache-Jserv on Linux machine after successfully installing and running it on WinNT. In WinNT the servlets executing are aware of the ServerRoot. I have placed certain properties files for my website within a subdirectory of ServerRoot directory. I can create FileInputStreams on the properties files by giving a path relative to my ServerRoot.
Say <WEBSERVER_PATH>/Props/MailProperties.txt
<CODE>ServerRoot=<WEBSERVER_PATH> </CODE> (in httpd.conf)

I can create a File object in a servlet as:
<CODE>File fProp = new File(&quot;Props/MailProperties.txt&quot;); </CODE> and subsequently read out the file.

The same thing does not work on Apache-Jserv installation on Linux. However, if I give an absolute path in my servlets relative to root then the servlets can read the properties file correctly. File paths relative to ServerRoot do not work on Apache-Linux.

have I missed out any config issues.

Thanking in anticipation,
Vishal Shah
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top