Denis Bucher wrote:

> Hello !
>
> I'm disapointed as I seem to have a very simple problem but quite difficult
> to solve... At first, some info:
>
> THE PROBLEM IS : Can't find class org.apache.jserv.JServ
>
> [snip]

> [B. FILE SIZE]
> > Also, make sure you're Jar file isn't zero length
> ok :
>  > # ls -l /usr/local/Apache-JServ/Apache-JServ.jar
>  > -rw-r----- 1 root root 150410 May 2 18:35
>  > /usr/local/Apache-JServ/Apache-JServ.jar
>

Denis:  Apache JServ runs under the same username that you have Apache configured under
(usually "nobody"), not as root.  Therefore, it won't be able to read this JAR file
(which contains the class in question).  You need to assign world read permissions to
this and any other JAR file you refer to, plus at least "read" and "execute"
permissions on directories above this JAR file (in your case, "/usr", "/usr/local", and
"/usr/local/Apache-JServ").

In my setup, I put the following stuff in my wrapper.classpath:
* The Apache-JServ.jar file.
* The JSDK servlet classes JAR file (jsdk.jar).

The following stuff is in the repositories line for my zone:
* The directory containing my un-jar'd servlets
  while I am developing
* JAR files for servlets that I've already packaged
  up or acquired (like gnujsp.jar).
* JAR files for other libraries (like JDBC drivers)
  that my servlets refer to.

Note that the system CLASSPATH is not used at all.

Lots more information is available in the FAQ-O-MATIC.

Craig McClanahan




----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to