Hi

Not really a problem, more of a question about zone repositories - I
understand that they are
supposed to act like a zone specific addition to the wrapper.classpath
defined in jserv.properties.

Well, when I create a test servlet that displays the system classpath, &
when I run the servlet within
my zone, only the jserv.properties classpath entries can be found.

(My zone.properties is definitely being read as I can startup servlets
within the zone when jserv
starts)

I run Apache 1.3.4 on NT4 service pack 4 with JServ 1.0b3 with JDK 1.2.

Thanks

Mark

------------------------------------
Here is the test code:

import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class SimpleServlet extends  HttpServlet {

    String classPath;

    public void init (ServletConfig config) throws ServletException  {
        super.init(config);

        classPath = System.getProperty("java.class.path");
    }
    public void doGet( HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
        res.setContentType("text/html");
        PrintWriter out = res.getWriter();
        out.println("<HTML>");
        out.println("<HEAD><TITLE>Hello World</TITLE></HTML>");
        out.println("<BODY>");
        
        out.println("<PRE>");
        StringTokenizer st = new StringTokenizer( classPath, ";" );
        StringBuffer    buf = new StringBuffer("Classpath:\n");
        while ( st.hasMoreTokens() ) 
            buf.append('\t').append( st.nextToken() ).append( '\n' );

        out.print( buf.toString() );
        out.println("</PRE></BODY></HTML>");
    }
    
} // SimpleServlet

+-------------------------------------------------------+
| Mark Rowell                    Mutant Technology Ltd. |
|                                  www.mutant-tech.com  |
|                                                       |
| ~~   ~~   ~~~~~~  ~~~~                                |
| ~~~ ~~~   ~ ~~ ~   ~~                                 |
| ~~~~~~~     ~~     ~~                                 |
| ~~ ~ ~~     ~~     ~~                                 |
| ~~   ~~     ~~     ~~        t:  +44 (0) 171 257 9981 |
| ~~   ~~     ~~     ~~  ~~    f:  +44 (0) 171 836 2600 |
| ~~   ~~    ~~~~   ~~~~~~~    e: [EMAIL PROTECTED] |
+-------------------------------------------------------+


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