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

w/ apache, you've got to do a ./apachectl restart in order to init the
server w/ the servlet once you've placed it in the dir.

in the ~/apache/conf dir (file httpd.conf):
DocumentRoot "must be your pages here"

<Directory "the same as above">

and then of course your ApJServMount will pick up from the above 

hope this helps ...

-----Original Message-----
From: Uri Shohet [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 08, 2000 3:08 PM
To: Java Apache Users
Subject: JSSI:ClassNotFoundException: can't find servlet named "xxx"


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

Hello, everyone!

I'm trying to get JSSI work, so far with no success.

My config is:
Solaris 7, jdk 1.2.2
Apache 1.3.9+ApacheJServ 1.1
ApacheJSSI 1.1.2

When I open a test .jhtml file, containing
<html>
<body>

<SERVLET CODE="/servlets/JSSIServlet">
Your web server has not been configured to support servlet tags.
</SERVLET>

</body>
</html>

I get the following response:
<html>
<body>

<!-- ERROR: ------------
java.lang.ClassNotFoundException: can't find servlet named
"/servlets/JSSIServlet"
        at java.lang.Throwable.fillInStackTrace(Native Method)
        at java.lang.Throwable.<init>(Throwable.java:94)
        at java.lang.Exception.<init>(Exception.java:42)
        at
java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:69)
        at
org.apache.servlet.ssi.ServletInfoRequest.runServlet(ServletTagHandler.java)
        at
org.apache.servlet.ssi.ServletTagHandler.executeTag(ServletTagHandler.java)
        at
org.apache.servlet.ssi.PageParser.interpretPage(PageParser.java)
        at org.apache.servlet.ssi.PageParser.process(PageParser.java)
        at
org.apache.servlet.ssi.PageParserServlet.doGet(PageParserServlet.java)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
        at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
        at
org.apache.jserv.JServConnection.run(JServConnection.java:188)
        at java.lang.Thread.run(Thread.java:485)
-->
</body>
</html>

... from which I understand, that JSSI is started OK and attempting to
work.

When I point the browser to http://server/servlets/JSSIServlet, I get a
proper response,
so the servlet itself CAN be found.
Here's its source:
----------------------------------
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

public class JSSIServlet extends HttpServlet { 
    public void doGet(HttpServletRequest req, HttpServletResponse res)
        throws ServletException, IOException
    {
        PrintWriter out = res.getWriter();
        out.println("Hello JSSI World!");
        out.close();
    }
}
----------------------------------


Here are the config files (fragments)
# jserv.conf
ApJServMount /servlet /root
ApJServMount /servlets /root
ApJServAction .jhtml /servlets/org.apache.servlet.ssi.SSI

# zone.properties
repositories=/d3/tools/jserv/servlets
repositories=/d3/tools/jserv/servlets/ApacheJSSI.jar

# jserv.properties
zones=root
root.properties=/d3/tools/jserv/etc/zone.properties
servlet.org.apache.servlet.ssi.SSI.initArgs=SSISiteRoot=/Yoav/web # the
DocumentRoot


Please tell me what am I doing wrong?

Thanks in advance,

Uri Shohet.


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


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

Reply via email to