You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Martin Cooper <ma...@tumbleweed.com> on 2000/07/19 00:33:43 UTC

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



RE: Struts documentation

Posted by Martin Cooper <ma...@tumbleweed.com>.
Sorry, I should have been more clear. The path I gave is within the struts 
distribution (the nightly zip download). Yes, it's a pretty long document, 
and it has one large image of the MVC design pattern. The image is 
model2.gif in the same place as the HTML file.

--
Martin Cooper
Tumbleweed Communications

At 06:18 PM 7/18/00 -0700, Kevin Duffey wrote:
>How did you get this link? It isn't working for me, but the Struts project
>page has no reference to it either. If the user guide is the one that is
>pretty large with diagrams and all..then thats the one. Can you try giving
>me the page again..it doesn't appear to be working.
>
>Thanks.



RE: Struts documentation

Posted by Kevin Duffey <kd...@buymedia.com>.
Hi,

Thanks! I feel stupid now. ;) I knew this was here..I just haven't been
using the latest for about 3 weeks and forgot where to find the
documentation.

> Download the last struts source code (or maybe it's in the binary too)  -
> unzip it into your directory structure.    You should be able to
> access the
> Struts User guide  from the (your drive/path)
> ...\jakarta-struts\web\documentation\users_guide.html
>
> You can find the custom tag library reference in the
> ...\jakarta-struts-web-documentation\tags.html
>
> Hope this helps!
>
> Megan Wertz Ray
> megray@crosswinds.net
>
>
>
> -----Original Message-----
> From:	Kevin Duffey [mailto:kduffey@buymedia.com]
> Sent:	Tuesday, July 18, 2000 9:19 PM
> To:	struts-user@jakarta.apache.org
> Subject:	RE: Struts documentation
>
> How did you get this link? It isn't working for me, but the Struts project
> page has no reference to it either. If the user guide is the one that is
> pretty large with diagrams and all..then thats the one. Can you try giving
> me the page again..it doesn't appear to be working.
>
> Thanks.
>
>


RE: Struts documentation

Posted by Megan Ray <me...@prodigy.net>.
Download the last struts source code (or maybe it's in the binary too)  -
unzip it into your directory structure.    You should be able to access the
Struts User guide  from the (your drive/path)
...\jakarta-struts\web\documentation\users_guide.html

You can find the custom tag library reference in the
...\jakarta-struts-web-documentation\tags.html

Hope this helps!

Megan Wertz Ray
megray@crosswinds.net



-----Original Message-----
From:	Kevin Duffey [mailto:kduffey@buymedia.com]
Sent:	Tuesday, July 18, 2000 9:19 PM
To:	struts-user@jakarta.apache.org
Subject:	RE: Struts documentation

How did you get this link? It isn't working for me, but the Struts project
page has no reference to it either. If the user guide is the one that is
pretty large with diagrams and all..then thats the one. Can you try giving
me the page again..it doesn't appear to be working.

Thanks.


RE: Struts documentation

Posted by Kevin Duffey <kd...@buymedia.com>.
How did you get this link? It isn't working for me, but the Struts project
page has no reference to it either. If the user guide is the one that is
pretty large with diagrams and all..then thats the one. Can you try giving
me the page again..it doesn't appear to be working.

Thanks.


Re: Struts documentation

Posted by Martin Cooper <ma...@tumbleweed.com>.
If you mean the User's Guide, it's just an HTML file at:

jakarta-struts/web/documentation/users_guide.html

This document was *very* helpful for me.

--
Martin Cooper
Tumbleweed Communications

At 04:11 PM 7/18/00 -0700, you wrote:
>Hi there,
>
>Craig and team..is there any chance you can start putting the documentation
>in a folder, and not require the app to be installed to display it. Or maybe
>I am missing something, but I couldn't find the latest versions
>documentation that explains Struts, etc. Not the API reference either.
>
>Thanks.



Struts documentation

Posted by Kevin Duffey <kd...@buymedia.com>.
Hi there,

Craig and team..is there any chance you can start putting the documentation
in a folder, and not require the app to be installed to display it. Or maybe
I am missing something, but I couldn't find the latest versions
documentation that explains Struts, etc. Not the API reference either.

Thanks.


Re: Struts with Resin

Posted by David Geary <sa...@tri-lakesonline.net>.
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        |
> > -----------------------------------------------------------------


Re: Struts with Resin

Posted by David Geary <sa...@tri-lakesonline.net>.
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        |
> > -----------------------------------------------------------------


Re: Struts with Resin

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
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        |
> -----------------------------------------------------------------


Re: Struts with Resin

Posted by Martin Cooper <ma...@tumbleweed.com>.
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        |
-----------------------------------------------------------------



Re: Struts with Resin

Posted by bryan davis <bd...@emerging.com>.
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
>
>