[Help] Jigsaw 2.0beta2 and servlets & cgi-bin connfig

Hi,

 Okay, I vouch that beta2 JigAdmin tool is lot cleaner and does what I expect.
 I mean I managed to configure my Jigsaw web server in matter of an hour or
 so, when with beta1.0 it took a month of Sundays.

 So I have one problem, which I suspect someone will able toquickly point out
 the problem. I configured my WWW/servlets directory, placed a 
 SessionServlet.class and a SnoopServlet.class as delivered with JSDK2.0. When
 I attempt to run the either of these servlets I get the following error on the
 output stream.

java.lang.ClassFormatError: Duplicate name
        at java.lang.ClassLoader.defineClass(ClassLoader.java:228)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:206)
        at org.w3c.jigsaw.servlet.LocalServletLoader.loadClassFile(LocalServletLoader.java)
        at org.w3c.jigsaw.servlet.LocalServletLoader.getNewClass(LocalServletLoader.java)
        at org.w3c.jigsaw.servlet.LocalServletLoader.loadClass(LocalServletLoader.java)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
        at SnoopServlet.doGet(SnoopServlet.java:48)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
        at org.w3c.jigsaw.servlet.ServletWrapper.service(ServletWrapper.java)        at org.w3c.jigsaw.servlet.ServletWrapperFrame.perform(ServletWrapperFrame.java)
        at org.w3c.tools.resources.FramedResource.performFrames(FramedResource.java)
        at org.w3c.tools.resources.FramedResource.perform(FramedResource.java)
        at org.w3c.jigsaw.http.httpd.perform(httpd.java)
        at org.w3c.jigsaw.http.Client.processRequest(Client.java)
        at org.w3c.jigsaw.http.Client.startConnection(Client.java)
        at org.w3c.jigsaw.http.socket.SocketClient.run(SocketClient.java)
        at org.w3c.util.CachedThread.run(ThreadCache.java)


If you are wondering what my CLASSPATH has then it is set to following:

CLASSPATH=.:/usr/java/classes:/usr/local/JClasses/jsdk.jar:/usr/local/JClasses/jigsaw.zip

Apart from this can some one please answer the following questions :

 [Q] In order to make use of a servlet files, do I have to configure each file
     in my WWW/servlets directory with org.w3c.jigsaw.servletServletWrapper
     frame ?

     Is there a way to have an indexer that the servlets directory is
     resourced to.

 [Q] How do I get my cgi-bin configured  ?

     I mean I have configured this with the CgiFrame, added a cgi perl script
     (counter.pl) in this directory but am unable to have that script executed. I get no
     errors and instead the browser pops me into the WWW/cgi-bin directory,
     and it only list the default "empty.txt" file in its menu.

 [Q] Why does the cgi script that I have added to WWW/cgi-bin not show up as a
     list of files under

       space
        |
        .
        .
        ---cgi-bin

    When I open this folder in JigAdmin.

 [Q] Do I have to Wrap the cgi script, much like the Servlet wrapper ?


 [Q] How does one switch off BROWSING some directories such as :

     servlets/
     cgi-bin/

     The attributes have a "Browsable" radio button but it doesn't appear
     to do what I thought.

 I recall I had similar if not the same problem with Jigsaw2.0 beta1, with
 no answers readily coming to rescue. I hope someone can help in this.

 Many thanks for any response on the above topic, I'd appreciate a response
 to my email address, as I do not get a chance to sample this list channel.
 
   Tarang

Tarang Kumar Patel.     WWW home:http://ic-www.arc.nasa.gov/ic/
NASA Ames Research Center, MS 269-2, Moffett Field, CA 94035-1000
Email: mombasa@ptolemy.arc.nasa.gov, Tel:(650) 604-4721 fax: (650) 604 3594
Stated views are my own IDEA, as I'm another I.D.E.A man "I Didn't Explain All"

Received on Thursday, 16 July 1998 04:13:40 UTC