----------------------------------------------------------------
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!!!
----------------------------------------------------------------
Chris,
Did you put the IsItWorking servlet in:
/usr/local/jserv/servlets/package/
and try to navigate to:
http://host/packages/IsItWorking
If this is working and the "AServlet" not then there's probably something
wrong with your code. Take a look at the log files to. The errors comming
from Apache aren't worth much.
Best thing to do is remove all the logs (Apache and Jserv) and restart the
server. Try to navigate to the servlet and look for error messages in the
log files.
regards,
Kenneth Westelinck
>From: Chris Mangiapane <[EMAIL PROTECTED]>
>Reply-To: "Java Apache Users" <[EMAIL PROTECTED]>
>To: Java Apache Users <[EMAIL PROTECTED]>
>Subject: Re: The example servlets work but mine do not
>Date: Mon, 05 Feb 2001 21:00:15 +0000
>
>----------------------------------------------------------------
>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!!!
>----------------------------------------------------------------
>
>Ken,
>This is exactly what I am tryiing to do.
>However, when I navigate to
>http://myserver/package/package.myservlets.AServlet
>
>I initially got an error message
>the requested URL /package/package.myservlets.AServlet was not found.
>
>I then noticed that my directory structure was this
>
>/usr/local/jserv/servlets/package/myservlets/AServlet
>
>so I changed this to
>/usr/local/jserv/servlets/package/package/myservlets/AServlet
>
>I then got the error message
>
>Internal server error or misconfiguration unable to complete request
>
>Could there be something wrong with my httpd.conf file?
>I have looked at this extensively as well and have not
>seen any obviuos mistakes? Any idea where I should look?
>
>Chris
>
>Kenneth Westelinck 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!!!
> > ----------------------------------------------------------------
> >
> > Chris,
> >
> > created a directory /usr/local/jserv/servlets/package/myservlets: OK
> >
> > In jserv.properties:
> > zones=root,package: OK
> > package.properties=/usr/local/jserv/servlets/package.properties: OK
> >
> > In jserv.conf:
> > ApJServMount /package /package: OK
> >
> > In package.properties
> > repositories=/usr/local/jserv/servlets/package: OK
> >
> > If you put the IsItWorking example in these package directories you
>should
> > be able to surf to:
> > http://host/package/IsItWorking: OK
> >
> > Everything checks out OK. The only thing we seem to be having a
> > misunderstanding about is the term "package".
> > When you create a servlet: "AServlet" that is member of a package called
> > mypackage.myservlets this servlet is reached by
> > mypackage.myservlets.AServlet . You'll have to create this structure in
> > order to make this work:
> > /usr/local/jserv/servlets/package/mypackage/myservlets
> > Copy AServlet to this directory, restart the webserver and surf to:
> > http://host/package/mypackage.myservlets.AServlet
> >
> > #
> > # Example code
> > #
> > package mypackage.myservlets;
> >
> > import java.io.*;
> >
> > import javax.servlet.*;
> > import javax.servlet.http.*;
> > public class AServlet extends HttpServlet {
> > public void doGet (HttpServletRequest request,
> > HttpServletResponse response)
> > throws ServletException, IOException
> > {
> > PrintWriter out;
> > String title = "Example Apache JServ Servlet";
> > response.setContentType("text/html");
> >
> > out = response.getWriter();
> >
> > out.println("<HTML><HEAD><TITLE>");
> > out.println(title);
> > out.println("</TITLE></HEAD><BODY bgcolor=\"#FFFFFF\">");
> > out.println("<H1>" + title + "</H1>");
> > out.println("<H2> Congratulations, ApacheJServ 1.1.2 is
> > working!<br>");
> > out.println("</BODY></HTML>");
> > out.close();
> > }
> > }
> > #
> > #
> > #
> >
> > Should work.
> >
> > regards,
> >
> > Kenneth Westelinck
> >
> >
>_________________________________________________________________________
> > Get Your Private, Free E-mail from MSN Hotmail at
>http://www.hotmail.com.
> >
> > --
> > --------------------------------------------------------------
> > 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]
>
>
>--
>--------------------------------------------------------------
>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]
>
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
--
--------------------------------------------------------------
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]