----------------------------- Please read the FAQ! <http://java.apache.org/faq/> ----------------------------- "Joan Friedman -2016 (431)" wrote: > > ----------------------------- > Please read the FAQ! > <http://java.apache.org/faq/> > ----------------------------- > > Hi, > > I've been setting up JServ with Apache on an SGI. The example servlet works now, and >it works > when I set up a similar zone with a different name and location. My problem is this: >when I make > a test subdirectory, say "example/inner", and put the Hello.class test file there, >it doesn't > work. I get a "configuration error" web page. The mod_jserv file error is > [10/08/1999 13:21:43:741] (EMERGENCY) ajp11: can not connect to host 0.0.0.0:8007 > [10/08/1999 13:21:43:742] (EMERGENCY) ajp11: connection fail > [10/08/1999 13:21:43:742] (ERROR) an error returned handling request via protocol >"ajpv11" > > Is there a way to set this up properly, or do I need to define zones so that class >files are > always in the top level of the zone? > > Joan Hi joan When you put a class file in a subdirectory, then Apache JServ (and any other servlet engine) looks at this subdirectory as a new package. So you have to include the following line in your Hello.java file and recompile it: package inner; The newly created class file will only work in the "inner" subdirectory. To call it, you have to give the URL: http://host.name.com/yourzone/inner.Hello Or you have to assigne an alias to this class in the properties file. Tschau Christian -- -------------------------------------------------------------- Please read the FAQ! <http://java.apache.org/faq/> To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Archives and Other: <http://java.apache.org/main/mail.html> Problems?: [EMAIL PROTECTED]