Mohamed Riaz wrote:

> Hi Guenther,
> good guess, but it doesnt work. !!.   any other way???
> Any URL jon ??
> Riaz
>

Just to provide some clarity, here's a concrete example of the way it works.
 As was pointed out earlier, this is all based on the standard Java approach
that the package hierarcy matches the directory hierarchy *within* a repository
entry.  The same rules also apply to how you build the CLASSPATH environment
variable for non-servlet apps.

Let's assume you have this line in your zone properties file:

    repositories=/my/repository

and you want to refer to a servlet MyServlet that is in a package called
"mypackage".  The object code for this servlet should be in a file at pathname:

    /my/repository/mypackage/MyServlet.class

and you would refer to it with a URL like

    http://www.mycompany.com/servlet/mypackage.MyServlet

If you had wanted to store your classes in a JAR file, you would have built it
from the /my/repository directory, so that the "mypackage" directory would show
up inside the JAR file.

If you are doing things this way and it doesn't work, the next most common
cause for the problem is file access permissions.  If you start Apache JServ
automatically (the normal way), it runs under the same operating system
username as Apache does (typically "nobody" on Unix, unless you have changed
this in http.conf).  You need to make sure that this username has read access
to the class file, as well as read+execute access to all directories above the
class file.

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