Thanks.
Well in that case I have a different problem! I have created a servlet
which is used to manager web-logons
to our application server. When I try to start it up (automatically as
defined in zone.properties)
I get ClassNotFoundExceptions written to the Apache error log for some
class, for example
com.mtl.somepackage.SomeClass. When I take out the auto-load of this
logon manager class and create a servlet
in the same zone which uses the com.mtl.somepackage.SomeClass class
directly and execute it I get no such problem.
Any ideas?
Thanks
Mark
-----Original Message-----
From: Steve Nguyen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 13, 1999 8:52 AM
To: [EMAIL PROTECTED]
Subject: Re:Zone repository problems
"repositories" is a bit different then classpath. Only servlet classes
(which can be changed dynamically sometime during their life time)
should be stored in repository path as JServ looks after those classes
regularly (together with zone.property) to refresh the change. Servlet
directory is not (should not)included in classpath and vice versa
Steve N.
E-mail: [EMAIL PROTECTED]
*------------------------------------*
KBMail Professional Software for ISPs
*------------------------------------*
Access to your POP3/IMAP4 for FREE
http://www.kbmail.com
*------------------------------------*
-------- Original message --------
From: Mark Rowell <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Zone repository problems
Date: Thu, 13 May 1999 08:36:55 +0100
----------------------------------
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]
----------------------------------------------------------------
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]
----------------------------------------------------------------
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]