-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------


I'm trying to get JSSI working, but I'm having problems
figuring out the interactions between JSSI and zones.

[
 Aside: 
 From all the email I've scanned through the archives this sounds like
 a common problem.  In spite of all the email that says "please read 
 the FAQ", I've found the FAQs to not be sufficiently unhelpful in this 
 area.  As a result I'm going to post a question that will probably seem
 familiar to some.  I'm hoping that some discussion will last long enough
 to suggest a clear solution before the read-the-FAQ ogres come crawling
 out from underneath the bridge.  :-)
]

Current state:
  - Apache 1.3.9 + mod_ssl + JServ 1.0 + GnuJSP 0.9.10 (all working)
  - JDK 116, Solaris 2.6
  - able to execute servlets normally, and can use GnuJSP
  - not able to use JSSI at all

Objective:
  - to configure JServ properly so that JSSI will work
    when *.jhmtl pages include servlets from various zones

I've mucked around with various combinations of jserv.conf
and *.properties settings and I'm not having much luck.
Here is the gist of what I think should work.  I'd appreciate
it greatly if somebody knowledgeable could point out what
I'm missing.

1. Create the directories where the zones will live.
   Put a "lib" directory for Java class files in each zone, ie:

   # $ALL_ZONES is the path from root on the filesystem to whatever 
   # directory will contain the subdirectories for the various zones.
   # Obviously this "variable" was not used in the conf and property
   # files; the actual path is explicity used instead.  I'm just
   # using this to make the steps a bit more readable

   md $ALL_ZONES/zone1
   md $ALL_ZONES/zone1/lib
   md $ALL_ZONES/zone2
   md $ALL_ZONES/zone2/lib

2. In jserv.conf (which is included in httpd.conf)

   ApJServMount /zone1 /zone1
   ApJServMount /zone2 /zone2
   ApJServMount /jssizone /jssizone                          
   ApJServAction .jhtml /jssizone/org.apache.servlet.ssi.SSI

3. In jserv.properties

   zones=zone1,zone2,jssizone
   zone1.properties=$ALL_ZONES/zone1.properties
   zone2.properties=$ALL_ZONES/zone2.properties
   jssizone.properties=$ALL_ZONES/jssizone.properties

4. In zone1.properties
   
   repositories=$ALL_ZONES/zone1/lib

5. In zone2.properties

   repositories=$ALL_ZONES/zone2/lib

6. In jssizone.properties

   repositories=(...path to JSSI jarfile...)/ApacheJSSI.jar 

7. To test JSSI, I have a "TestJSSI" package that contains a
   servlet class "TestJSSIServlet".  I put it in zone1, ie:

   $ALL_ZONES/zone1/lib/TestJSSI/TestJSSIServlet.class

   I can run this servlet directly via:

   http://$SERVER_NAME/zone1/TestJSSI.TestJSSIServlet

8. I then put the following test.jhmtl file in the Apache
   htdocs directory:

  <html>                                                      
  <head><title>JSSI Test</title></head>                                                
     
  <body>                                                      
    <h1>JSSI Installation Test</h1>                             
    <servlet code="/zone1/TestJSSI.TestJSSIServlet">
    </servlet>                                                  
  </body>                                                     
  </html>                                                     

   When I try to view the file, I get the following result:

   <html>
   <head><title>JSSI Test</title></head>
   <body>
   <h1>JSSI Installation Test</h1>
   <!-- ERROR: ------------
   java.lang.ClassNotFoundException: can't find servlet named   
   "/zone1/TestJSSI.TestJSSIServlet"
        at java.lang.Throwable.<init>(Compiled Code)
        at java.lang.Exception.<init>(Compiled Code)
        at java.lang.ClassNotFoundException.<init>(Compiled Code)
        at org.apache.servlet.ssi.ServletInfoRequest.runServlet(Compiled Code)
        at org.apache.servlet.ssi.ServletTagHandler.executeTag(Compiled Code)
        at org.apache.servlet.ssi.PageParser.interpretPage(Compiled Code)
        at org.apache.servlet.ssi.PageParser.process(Compiled Code)
        at org.apache.servlet.ssi.PageParserServlet.doGet(Compiled Code)
        at javax.servlet.http.HttpServlet.service(Compiled Code)
        at javax.servlet.http.HttpServlet.service(Compiled Code)
        at org.apache.jserv.JServConnection.processRequest(Compiled Code)
        at org.apache.jserv.JServConnection.run(Compiled Code)
        at java.lang.Thread.run(Compiled Code)
   -->
   </body>
   </html>

Thanks in advance for any help.


 
====================================================
= Reid M. Pinchback                                =
= I/T Delivery, MIT                                =
=                                                  =
= Email:   [EMAIL PROTECTED]                          =
= URL:     http://mit.edu/reidmp/www/home.html     =
=                                                  =
= Respect your own privacy; boycott Pentium III    =
====================================================



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