I think I didn't ask the right question. In the zone properties file I have
an alias we'll call foo which is declared as
servlet.foo.code=com.blah.servlets.MyServlet. If I call the foo alias, am I
required to have the directory structure of
/usr/local/apache/servlets/com/blah/servlets/MyServlet.class ? The
repository is declared as /usr/local/apache/servlets. If I call foo right
now, does it traverse the directories as specified by the alias ?
Thanks,
Ching-Hwa Yu
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Damian
Fauth
Sent: Wednesday, April 14, 1999 3:51 PM
To: Java Apache Users
Subject: Re: Directories problem ...
Ching-Hwa Yu wrote:
>
> I was wondering how the servlet directories should be created on the
system.
> If I have a class file named com.blah.servlets.MyServlet but where should
> the servlets be located on the system ? I have it currently at
> /usr/local/apache/servlets/com/blah/servlets/MyServlet.class where
servlets
> is declared as a zone and mounted however that is not working. I get a
> NoClassDefFoundError. Is the incorrect way to implement this ? If so,
> could someone please advise on a better scheme ?
You can put your classes anywhere on the filesystem as long as they
appear in a repository as specified in your zone file. So using your
example above your repositories directive should appear as:
repositories=/usr/local/apache/servlets/com/blah/servlets
If however you are packaging your classes into a .jar archive, say
MyServlets.jar, it should appear as
repositories=/usr/local/apache/servlets/com/blah/servlets/MyServlets.jar
Damian
--
Damian Fauth 201 Sussex Street
Software Engineer Sydney, NSW 2000
John Fairfax Holdings Ltd Australia
[EMAIL PROTECTED] Ph. (+612) 9282 3528
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]