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]