W3C home > Mailing lists > Public > www-jigsaw@w3.org > July to August 1999

Re: Using Sun's JSWDK (JSP) with Jigsaw

From: Jen Hsien Huang <u5321007@ncnu.edu.tw>
Date: Tue, 27 Jul 1999 17:01:36 -0400 (EDT)
Message-ID: <001001bed8f1$86e93160$ca1f16a3@JHHUANG>
To: <www-jigsaw@w3.org>, "Yves Lafon" <ylafon@w3.org>
Hi , I have tried it , but it alway got error

[http-server] unable to set servlet class "com.sun.jsp.runtime.JspServlet" :
null


what's the problem?
-Brenden- @_@

>
> I struggle with it a little this morning, and here is a setup that works:
>
> First, SUN's servlet engine uses given PATH to the servlet to read the jsp
> file, it means that you should not use ServletMapperFrame on top of a
> FileResource, but directly create the resource as a servlet.
> So I created a jspindexer with the following settings:
>
> jspindexer
>  |
>  -- directories
>  |   |
>  |   -- *default* (org.w3c.jigsaw.resources.PassDirectory)
>  |       (ServletDirectoryFrame)
>  |
>  -- extensions
>      |
>      -- jsp (org.w3c.jigsaw.servlet.ServletWrapper) (it create its frame
>                   (ServletWrapperFrame)              directly)
>
> the servlet class is com.sun.jsp.runtime.JspServlet
> and "scratchdir=<mypath>/Jigsaw/Jigsaw/compiledPage"
> in the servler parameters.
>
> I set the dir to have jspindexer as the indexer, and it worked :) (Of
> course i you do it afterward, you should remove all the resources behind
> and recreate them, as the directories should have a ServletDirectoryFrame)
> Regards,
>
>
>       /\          - Yves Lafon - World Wide Web Consortium -
>   /\ /  \        Architecture Domain - Jigsaw Activity Leader
>  /  \    \/\
> /    \   /  \   http://www.w3.org/People/Lafon - ylafon@w3.org
>
>
>
>
Received on Wednesday, 28 July 1999 03:58:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:29 GMT