You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Geary <sa...@tri-lakesonline.net> on 2000/08/08 17:42:21 UTC

Re: Struts with Resin

Craig and Eduardo: Is there any consensus on this yet?


david

"Craig R. McClanahan" wrote:

> I'm double checking the official rules on this issue with the spec lead for JSP.
> More info later.
>
> Craig
>
> (At O'Reilly Open Source Convention, so only online sporadically this week)
>
> Martin Cooper wrote:
>
> > Interesting. I reported this to the Resin folks, and received the following
> > in response:
> >
> > <-----
> > It's a Structs bug.  BodyContent manipulation belongs in doAfterBody, not
> > doEndTag.   After the PageContent.popBody(), which occurs before doEndTag,
> > the old BodyContent is no longer live and can be recycled.
> > ----->
> >
> > Now, I'm no expert, but this makes a lot of sense to me. What do the Struts
> > experts think?
> >
> > --
> > Martin Cooper
> > Tumbleweed Communications
> >
> > At 05:43 PM 7/18/00 -0700, bryan davis wrote:
> > >Yes, I saw this problem as well. I've confirmed that this is a bug in
> > >resin's jsp to java routines. Resin's taglib support is pretty spotty.
> > >Their mailing lists contain many taglib problems.  If you get a chance send
> > >them a bug report.  I believe the address to send it to is on the resin
> > >homepage.
> > >
> > >---
> > >Bryan Davis
> > >Digital SuperStar
> > >----- Original Message -----
> > >From: "Martin Cooper" <ma...@tumbleweed.com>
> > >To: <st...@jakarta.apache.org>
> > >Sent: Tuesday, July 18, 2000 3:33 PM
> > >Subject: Struts with Resin
> > >
> > >
> > > > Does anyone have Struts running with Resin?
> > > >
> > > > I'm having problems with the Struts example. I can see the initial page
> > > > (index.jsp) just fine, but when I click on the Logon link, I get the
> > > > following exception report:
> > > >
> > > > java.lang.NullPointerException
> > > > at com.caucho.jsp.QBodyContent.getString(QBodyContent.java:278)
> > > > at org.apache.struts.taglib.ResetTag.doEndTag(ResetTag.java:182)
> > > > at _jsp._struts_22dexample._logon__jsp._jspService(_logon__jsp.java:180)
> > > > at com.caucho.jsp.JavaPage.service(JavaPage.java:89)
> > > > at com.caucho.jsp.JavaPage.subservice(JavaPage.java:83)
> > > > at com.caucho.jsp.Page.service(Page.java:298)
> > > > at com.caucho.server.http.Invocation.service(Invocation.java:234)
> > > > at
> > >com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:111)
> > > > at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:181)
> > > > at
> > >com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:137)
> > > > at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
> > > > at java.lang.Thread.run(Thread.java:479)
> > > >
> > > > Unfortunately, I'm sufficiently new at this that I don't know whether this
> > > > is a problem with Struts or Resin (or me!).
> > > >
> > > > My installation looks like this:
> > > >
> > > > jdk 1.2.2
> > > > jaxp 1.0.1
> > > > resin 1.1.3 (I've also tried resin 1.2.b1)
> > > > struts 7/17 nightly
> > > >
> > > > My resin.conf contains the following two lines:
> > > >
> > > >      <web-app id='struts-documentation'/>
> > > >      <web-app id='struts-example'/>
> > > >
> > > > Since Resin doesn't support WARs, I just unzipped the Struts WARs into the
> > > > resin/doc directory.
> > > >
> > > > Any clues, anyone?
> > > >
> > > > Thanks!
> > > > --
> > > > Martin Cooper
> > > > Tumbleweed Communications
> > > >
> > > >
> >
> > -----------------------------------------------------------------
> > |  Martin F N Cooper           | E-mail: cooper@tumbleweed.com  |
> > |  Principal Software Engineer | Voice:  +1 408 567-5073        |
> > |  Tumbleweed Communications   | Fax:    +1 408 567-1501        |
> > -----------------------------------------------------------------