privatdozent
Programmer
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("Props/MailProperties.txt" </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
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("Props/MailProperties.txt" </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