Hi Pierpaolo

Well clearly it is a classpath problem. What I do is add a doget function
to my servlet that reports the servlet configuration so I can see if it is
getting the classpath I think I have set. Also I get it to report my
initArgs This saved me a lot of time many times.

Here is all you need to get the servlet to report the classpath:

public void doGet (HttpServletRequest req, HttpServletResponse
res)
throws ServletException, IOException
{
PrintWriter out = res.getWriter();

if (req.getParameter("fn").equals("showconfig")){
res.setContentType("text/html");
out.println(""); out.println(""); out.println("

Classpath: " +System.getProperty ("java.class.pat h"+""); out.println(""); out.println("");
out.flush();
}


Hope that helps!

Chris


On Wed, 05 Jul 2000 16:26:59 CEST, Pierpaolo Vittorini wrote:

>----------------------------------------------------------------
>BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
>WHEN YOU POST, include all relevant version numbers, log files,
>and configuration files. Don't make us guess your problem!!!
>----------------------------------------------------------------
>
>
>I'm a novice user of ApacheJServ and I think that this should be a
>common problem, but unfortunately I haven't find it on the FAQ.
>
>I'm running Apache/1.3.12-JServ1.1.2 installed on a RH 6.0 from the
>relative rpms.
>
>The problem is that I've tried to use ECS to generate the HTML page
>from a servlet. This caused an internal server error, and from the
>log I suppose that could not access other classes than the default ones.
>
>I've changed in the jserv.conf adding the location of the ecs-1.3.3.jar
>with the wrapper.classpath=..../ecs... but unfortunately nothing changed.
>
>An extract of the log follows
>
>[05/07/2000 12:53:31:315 CEST]
>java.lang.NoClassDefFoundError:org/apache/ecs/Document
> at
>org.apache.jserv.JServConnection.processRequest(JServConnection.java:323)
> at org.apache.jserv.JServConnection.run(JServConnection.java:188)
> at java.lang.Thread.run(Thread.java:475)
>
>Thank you very much for your time.
>
>Best regards,
> Pierpaolo Vittorini
>
>--
> Dr. Eng. Pierpaolo Vittorini
> PhD Student at the University of L'Aquila - ITALY
> Department of Electrical Engineering
>
>
>
>
>--
>--------------------------------------------------------------
>Please read the FAQ! <http://java.apache.org/faq/>
>To subscribe: [EMAIL PROTECTED]
>To unsubscribe: [EMAIL PROTECTED]
>Search Archives:
><http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
>Problems?: [EMAIL PROTECTED]
>

Reply via email to