Re: Dispatching JSP from a servlet ( was RE: executing JSP file in PassDirectory)

Ok, bug fixed, there will be a new devel release available soon.

Regards, Benoit.

TK Sung wrote:

> The latest devel release fixed the problem with PassDirectory, thanks. But now I have a new problem. When dispatching JSP from servlet,  I get following exception stack trace.  I don't have the devel source, so I couldn't look it up to figure it out. (2.1.1 source seems to be out of sync with latest devel release).  Could someone with access to the devel source for 20000419 look it up and tell me what the problem might be?  Alternatively, I can check out devel sources if someone tells me how to get it via cvs.  I tried CVSROOT of :pserver:anonymous@dev.w3.org:, but I did not have the password.
>
> thanks in adv
> tk
>
> 08:55:26:713; com.extralan.servlet.Forwarder; ; ; java.lang.StringIndexOutOfBoundsException - String index out of range: -2;Could not forward to /ExtraLAN/AccessServer/login.jsp; 0; trace
> java.lang.StringIndexOutOfBoundsException: String index out of range: -2
>         at java.lang.String.substring(String.java, Compiled Code)
>         at org.w3c.jigsaw.servlet.ServletMapperFrame.getRequestURI(ServletMapperFrame.java:65)
>         at org.w3c.jigsaw.servlet.ServletMapperFrame.perform(ServletMapperFrame.java:86)
>         at org.w3c.tools.resources.FramedResource.performFrames(FramedResource.java, Compiled Code)
>         at org.w3c.tools.resources.FramedResource.perform(FramedResource.java, Compiled Code)
>         at org.w3c.jigsaw.http.httpd.perform(httpd.java, Compiled Code)
>         at org.w3c.jigsaw.servlet.JigsawRequestDispatcher.forward(JigsawRequestDispatcher.java, Compiled Code)
>         at com.extralan.servlet.Forwarder.forward(Forwarder.java:40)
>         at com.extralan.service.command.LoginForm.execute(LoginForm.java:55)
>         at com.extralan.service.ExtralanService.handleCommand(ExtralanService.java:794)
>         at com.extralan.service.ExtralanService.handleRequest(ExtralanService.java, Compiled Code)
>         at com.extralan.service.ExtralanService.doGet(ExtralanService.java:505)
>         at com.extralan.service.access.AccessServer.doGet(AccessServer.java:295)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
>         at org.w3c.jigsaw.servlet.ServletWrapper.service(ServletWrapper.java:278)
>         at org.w3c.jigsaw.servlet.ServletWrapperFrame.perform(ServletWrapperFrame.java:115)
>         at org.w3c.tools.resources.FramedResource.performFrames(FramedResource.java, Compiled Code)
>         at org.w3c.tools.resources.FramedResource.perform(FramedResource.java, Compiled Code)
>         at org.w3c.jigsaw.http.httpd.perform(httpd.java, Compiled Code)
>         at org.w3c.jigsaw.http.Client.processRequest(Client.java, Compiled Code)
>         at org.w3c.jigsaw.http.Client.startConnection(Client.java, Compiled Code)
>         at org.w3c.jigsaw.http.socket.SocketClient.run(SocketClient.java:119)
>         at org.w3c.util.CachedThread.run(ThreadCache.java, Compiled Code)
>
> -----Original Message-----
> From:   Yves Lafon [SMTP:ylafon@w3.org]
> Sent:   Wednesday, April 19, 2000 7:18 PM
> To:     TK Sung
> Cc:     'www-jigsaw@w3.org'
> Subject:        Re: executing JSP file in PassDirectory
>
> On Wed, 19 Apr 2000, TK Sung wrote:
>
> > Hi,
> >
> > A jigsaw newbie here.  I'm having a problem making gnujsp10 wotk with
> > a PassDirectory resource.  Opening an HTML file works fine in
> > PassDirectory, but opening jsp file results in "... file not found".
> > I'm guessing that JspServlet is trying to open a file in the directory
> > specified in URL, rather than target directory of PassDirectory.
>
> There were some bugs when a PassDirectory was in the middle of the way,
> you may upgrade the jar of Jigsaw using the latest devel release ones.
> http://jigsaw.w3.org/Devel/classes-2.0/20000419/
> if you were using Jigsaw 2.0.x (and you should then get servlet.jar from
> tomcat, as it is servlet2.2 compliant now)
> of http://jigsaw.w3.org/Devel/classes-2.1/20000419/ if you were running
> Jigsaw 2.1 (2.1.1 comes with servlet2.2 jar)

--
- Benoît Mahé -------------------------------------------------------
                      World Wide Web Consortium   (W3C)
                    Architecture domain - Jigsaw Engineer

                http://www.w3.org/People/Mahe  - bmahe@w3.org
---------------------------------------------------------------------

Received on Friday, 21 April 2000 04:08:10 UTC