----------------------------------------------------------------
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!!!
----------------------------------------------------------------

Hi,

I think I understand it now.
Suppose you have these in your serlets directory:
package1/
package2/
and you want to create zone files for these.

In jserv.properties something like this:
zones=root, package1, package2

root.properties=d:\path\jserv\servlets\zone.properties
package1.properties=d:\path\jserv\servlets\package1\package1.properties
package2.properties=d:\path\jserv\servlets\package1\package2.properties

In jserv.conf something like this:
ApJServMount /servlets /root
ApJServMount /servlets/package1 /package1
ApJServMount /servlets/package2 /package2

In package1.properties something like this:
repositories=d:\path\jserv\servlets\package1
...

In package2.properties something like this:
repositories=d:\path\jserv\servlets\package2
...

If you put the IsItWorking example in these package directories you should 
be able to surf to:
http://host/servlets/package1/IsItWorking

If you create a servlet: "AServlet" member of a package:
a.package

and place it in the package1 directory thus creating this path:
d:/path/jserv/servlets/package1/a/package/AServlet

this servlet is reached by:
http://host/servlets/package1/a.package.AServlet instead of:
http://host/servlets/package1/a/package/AServlet


Hope this helps,


Kenneth

>From: Chris Mangiapane <[EMAIL PROTECTED]>
>Reply-To: "Java Apache Users" <[EMAIL PROTECTED]>
>To: Java Apache Users <[EMAIL PROTECTED]>
>Subject: Re: The example servlets work but mine do not
>Date: Fri, 02 Feb 2001 14:40:59 +0000
>
>----------------------------------------------------------------
>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!!!
>----------------------------------------------------------------
>
>Kenneth,
>Thanks for the reply.
>I should clarify.
>My configuration was
>repositories=/usr/local/jserv/servlets
>repositories=/usr/local/jserv/servlets/mypackage/myservlets
>
>It was my understanding that these directives would be chained
>and the requested file would be searched for in an order of preference
>from first to second, etc.
>I would like to set up my own zone so that I can expand the
>repositories as needed so I may use seperate URLs in my development
>environment
>as a way to organize projects and packages.
>My theory was to simply create a new zone which I could then
>add repositories and in conjunction and ApJServMount directives
>in the jserv.conf file.
>
>Like this
>
>jserv.conf file :
>ApJServMount /newURL /myzone
>
>myzone.properties file :
>repositories=/usr/local/jserv/servlets/newpackage/newservlets
>
>The servlets would be contained in a package called
>newpackage.newservlets
>
>and I would place them in a directory like this
>/usr/local/jserv/servlets/newpackage/newservlets/aNewServlet.class
>
>Is my understanding of this flawed?
>If so, where or what am I missing?
>
>Chris Mangiapane
>[EMAIL PROTECTED]
>
>Kenneth Westelinck 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!!!
> > ----------------------------------------------------------------
> >
> > I think this:
> >
> > " Next I added repositories=
> > /usr/local/jserv/servlets/mypackage/myservlets
> > to myzone.properties file "
> >
> > has to be:
> > /usr/local/jserv/servlets/
> >
> > What you are trying to do is execute mypackage.myservlets.AServlet in
> > mypackage/myservlets directory, and that is not possible.
> >
> > In your case the best thing to do is keep the old zone.properties and 
>remove
> > yours. Restart the server, and everything should work.
> >
> > hope this helps,
> >
> > Kenneth Westelinck
> >
> > >From: Chris Mangiapane <[EMAIL PROTECTED]>
> > >Reply-To: "Java Apache Users" <[EMAIL PROTECTED]>
> > >To: [EMAIL PROTECTED]
> > >Subject: The example servlets work but mine do not
> > >Date: Thu, 01 Feb 2001 14:44:53 +0000
> > >
> > >----------------------------------------------------------------
> > >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!!!
> > >----------------------------------------------------------------
> > >
> > >
> > >
> > >-------- Original Message --------
> > >Subject: [Fwd: The example servlets work but mine do not]
> > >Date: Thu, 01 Feb 2001 14:15:41 +0000
> > >From: Chris Mangiapane <[EMAIL PROTECTED]>
> > >Reply-To: [EMAIL PROTECTED]
> > >To: [EMAIL PROTECTED]
> > >
> > >
> > >I have installed Apache 1.3.11, ApacheJServ 1.1,JSDK 2.0,JDK 1.1.8 on a
> > >Solaris
> > >sparc5 with Solaris 7 OS.
> > >I can navigate to the example servlets OK at
> > >http://myservername/servlets/Hello
> > >
> > >I next set up my own zone.
> > >
> > >I can navigate to http://myservename/myzone/Hello
> > >
> > >
> > >I copied zone.properties to myzone.properties.
> > >
> > >This is my problem.
> > >I can not seem to get my own servlets to execute.
> > >
> > >The servlets are all part of a package mypackage.myservlets
> > >
> > >I created a directory
> > >/usr/local/jserv/servlets/mypackage/myservlets
> > >and placed all my class files in this driectory.
> > >
> > >I then added a wrapper.classpath to the jserv.properties file
> > >wrapper.classpath=/usr/local/jserv/servlets/mypackage/myservlets
> > >
> > >I then added myzone to the list of zones in jserv.properties.
> > >
> > >Next I added the configuration file statement in
> > >jserv.properties
> > >like this myzone.properties=/usr/local/jserv/myzone.properties
> > >
> > >Next I added repositories=
> > >/usr/local/jserv/servlets/mypackage/myservlets
> > >to myzone.properties file
> > >
> > >I stop and restart the server.
> > >
> > >I attempt to navigate to
> > >
> > >http://myservername/myzonename/mypackage.myservlets.ServletClassFile
> > >and I receive the following error message: The requested URL
> > >was not found on this server.
> > >
> > >I have read through many pages of documentation and searched
> > >through FAQ list and mailing lists
> > >but have not found any resolution to my problem. I am almost
> > >certain that I have not configured
> > >something correctly but I have no idea what I am missing or
> > >what is wrong.
> > >
> > >I know Apache is running.
> > >I know that JServ is working.
> > >I am pretty sure my zone is set up correctly.
> > >Where else should I look?
> > >
> > >
> > >Here is the error_log message : Premature end of script headers :
> > >/servlets/mypackage.myservlets.ServletClassFile
> > >
> > >Here is the mod_jserv.log message :
> > >
> > >ajp12 : ping no reply please make sure the wrapper.classpath is 
>pointing
> > >to
> > >the correct version of the ApacheJServ.jar file
> > >
> > >In jserv.properties I have
> > >wrapper.classpath=/usr/local/src/jserv/src/java/ApacheJServ.jar
> > >
> > >cannot scan servlet headers
> > >
> > >
> > >--
> > >--------------------------------------------------------------
> > >Please read the FAQ! <http://java.apache.org/faq/>
> > >To subscribe:        [EMAIL PROTECTED]
> > >To unsubscribe:      [EMAIL PROTECTED]
> > >Search Archives:
> > 
> ><http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
> > >Problems?:           [EMAIL PROTECTED]
> > >
> >
> > 
>_________________________________________________________________________
> > Get Your Private, Free E-mail from MSN Hotmail at 
>http://www.hotmail.com.
> >
> > --
> > --------------------------------------------------------------
> > Please read the FAQ! <http://java.apache.org/faq/>
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> > Search Archives:
> > <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
> > Problems?:           [EMAIL PROTECTED]
>
>
>--
>--------------------------------------------------------------
>Please read the FAQ! <http://java.apache.org/faq/>
>To subscribe:        [EMAIL PROTECTED]
>To unsubscribe:      [EMAIL PROTECTED]
>Search Archives:
><http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
>Problems?:           [EMAIL PROTECTED]
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to