----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
When running a servlet engine such as Apache, or any JVM wrapper, the
root directory for the JVM (referencable by '.') will be the Apache
executable directory, unless otherwise specified in the config (possibly
the wrapper.path variable in jserv.properties). Therefore, you have 2
options: either include the path to your servlet directory in classpath,
or, in your servlet, use the full path to the file.
- MG
Chris Mooney wrote:
>
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files. Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> > Hello all:
>
> I am having a slight problem. I am running Apache jServ1.1 with Apache
> 1.3.9 with jsdk 2.0 and sun's jdk version 1.1.6. on Intel Solaris7 machine.
> Bellow is a url to my conf files. (* Didn't think you would want me
> cluttering up your mail-box's with my crap... *)
> Now the problem is this: Apache JServ seems to be working fine, until
> you try to read a file off the local file system. Now im a little new at
> java so I pretty. much coppied an example out of a book. (* The code also
> has a url below .*) And I am just about positive that I am reading the file
> in a proper manor. But for some reason I can not open the file. It seems to
> be throwing a file not found exception. I know that the file is in the same
> directory as the class file. And all of the permissions are set to web-user
> on all of the files. I even chmod it to 777 for testing purposes. But still
> no avail. After 2 solid night's of pulling my hair and gritting my teeth i
> turn back to the good old java.apache.org faq, Which i will agree helped me
> in the general configuration of JServ. (* Thanx apache gods, keep up the
> good work. *) but was unable to thumb threw anything with a similar problem.
> I think that some how i mis configured something? What I have no clue. The
> sample servlets that came with jserv work just fine. The one i wrote works
> two. With the exception it wont read the file.
> So now i have stuck my head in the sand much like the mighty austrage.
> Hoping Ill find my answer somplace down there. (* down there being the
> java-apache-users@list *) So if anyone see's what I am obviously doing wrong
> please point it out. Thank you so very much. Any feed back is welcome.
>
> ___blindcry______________________
> - A world which lacks hope, lacks value -
>
> blastfurnace.thegeek.net/~blindcry/index.html
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]