You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Barry Volpe <st...@childrencare.com> on 2003/08/08 23:32:35 UTC
[OT] Resin does not work with Struts 1.1 Final
Resin does not work with Struts 1.1 Final
Question by Barry on Fri, 08 Aug 2003 14:05:26 -0700 (PDT) [ edit | delete ]
When upgrading to Struts RC2 or 1.1 Final the following error occurs: (further description of problem below)
500 Servlet Exception javax.servlet.jsp.JspException: Can't get definitions factory from context. at org.apache.struts.taglib.tiles.InsertTag.processDefinitionName(InsertTag.java:583) at org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:487) at org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:451) at _index__jsp._jspService(/childrencare/index.jsp:9) at com.caucho.jsp.JavaPage.service(JavaPage.java:75) at com.caucho.jsp.Page.subservice(Page.java:506) at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182) at com.caucho.server.http.Invocation.service(Invocation.java:315) at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:344) at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:274) at com.caucho.server.TcpConnection.run(TcpConnection.java:139) at java.lang.Thread.run(Thread.java:536)
-------------------------------------------------------------------------------- Resin 2.1.9 (built Tue Apr 15 14:28:40 PDT 2003)
Although the message indicates a tiles problem the real problem appears to be in initializing a datasource. If I remove the datasource from the struts-config the error goes away (of course cannot connect to a datasource but the jsp comes up). In versions RC1 or earlier the problem does not exist. The main difference from RC2,1.1 Final and earlier versions starting from RC1 is (from release notes):
In RC2, the Commons-DBCP and Commons-Pool dependencies have been removed. These are replaced with a dependency on the Struts-Legacy package, containing the GenericDataSource and GenericConnection classes from Struts 1.0.2. These are distributed for J2SE 1.3 but may be recompiled for J2SE 1.4. Other DataSource implementations may be plugged in (recommended).
RC2 is dependent upon Commons FileUpload RC1. The final release of Struts 1.1 cannot happen until this dependency is updated to a final release of FileUpload. All other dependencies are in their final release.
Other changes since RC1 have been routine fixes and refactorings.
I have tried using DBCP and General methods of connecting using the mysql driver and both will not work.
The RC2 and Struts Final 1.1 work fine in Tomcat 4.1 but do not work in Resin.
I am using J2SE 1.4 on Tomcat and Resin
Any suggestions?
Thanks, Barry
RE: [OT] Resin does not work with Struts 1.1 Final
Posted by Andy Kriger <ak...@greaterthanone.com>.
Resin definitely does work with RC2 and 1.1 so there's probably a
configuration issue either in Resin or in Struts that is causing your error.
-----Original Message-----
From: Barry Volpe [mailto:struts@childrencare.com]
Sent: Friday, August 08, 2003 17:33
To: Struts Users Mailing List
Subject: [OT] Resin does not work with Struts 1.1 Final
Resin does not work with Struts 1.1 Final
Question by Barry on Fri, 08 Aug 2003 14:05:26 -0700 (PDT) [ edit |
delete ]
When upgrading to Struts RC2 or 1.1 Final the following error occurs:
(further description of problem below)
500 Servlet Exception javax.servlet.jsp.JspException: Can't get definitions
factory from context. at
org.apache.struts.taglib.tiles.InsertTag.processDefinitionName(InsertTag.jav
a:583) at
org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:487
) at org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:451)
at _index__jsp._jspService(/childrencare/index.jsp:9) at
com.caucho.jsp.JavaPage.service(JavaPage.java:75) at
com.caucho.jsp.Page.subservice(Page.java:506) at
com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182) at
com.caucho.server.http.Invocation.service(Invocation.java:315) at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:344)
at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:274
) at com.caucho.server.TcpConnection.run(TcpConnection.java:139) at
java.lang.Thread.run(Thread.java:536)
----------------------------------------------------------------------------
---- Resin 2.1.9 (built Tue Apr 15 14:28:40 PDT 2003)
Although the message indicates a tiles problem the real problem appears to
be in initializing a datasource. If I remove the datasource from the
struts-config the error goes away (of course cannot connect to a datasource
but the jsp comes up). In versions RC1 or earlier the problem does not
exist. The main difference from RC2,1.1 Final and earlier versions starting
from RC1 is (from release notes):
In RC2, the Commons-DBCP and Commons-Pool dependencies have been removed.
These are replaced with a dependency on the Struts-Legacy package,
containing the GenericDataSource and GenericConnection classes from Struts
1.0.2. These are distributed for J2SE 1.3 but may be recompiled for J2SE
1.4. Other DataSource implementations may be plugged in (recommended).
RC2 is dependent upon Commons FileUpload RC1. The final release of Struts
1.1 cannot happen until this dependency is updated to a final release of
FileUpload. All other dependencies are in their final release.
Other changes since RC1 have been routine fixes and refactorings.
I have tried using DBCP and General methods of connecting using the mysql
driver and both will not work.
The RC2 and Struts Final 1.1 work fine in Tomcat 4.1 but do not work in
Resin.
I am using J2SE 1.4 on Tomcat and Resin
Any suggestions?
Thanks, Barry
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Trouble populating form
Posted by Paul Thomas <pa...@tmsl.demon.co.uk>.
On 11/08/2003 14:59 ross@bowtech.com wrote:
> Not able to get attributes from ActionForm into html form
>
>
> //in action form
>
> MemberDetailsEditForm returnForm = new MemberDetailsEditForm();
> MemberVO vo = (MemberVO) results.iterator().next();
>
> returnForm.setFirstName(vo.getFirstName());
> returnForm.setLastName(vo.getLastName());
>
> request.setAttribute("results", returnForm);
~~~~~~~~~ is this the same as the name
attribute in
your struts config for the post
action???
because if it isn't (or if the name is right but you didn't specify
request scope in struts config) then Struts will ignore it and create an
empty form bean then use that.
HTH
--
Paul Thomas
+------------------------------+---------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for the Smaller
Business |
| Computer Consultants |
http://www.thomas-micro-systems-ltd.co.uk |
+------------------------------+---------------------------------------------+
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Trouble populating form
Posted by ro...@bowtech.com.
Not able to get attributes from ActionForm into html form
//in action form
MemberDetailsEditForm returnForm = new MemberDetailsEditForm();
MemberVO vo = (MemberVO) results.iterator().next();
returnForm.setFirstName(vo.getFirstName());
returnForm.setLastName(vo.getLastName());
request.setAttribute("results", returnForm);
<%-- in jsp --%>
<%= request.getAttribute("results") %>
<%-- shows results is there as a MemberDetailsEditForm - subclass of
ActionForm ---%>
<bean:define id="member" property="results"
type="com.bowtech.web.forms.MemberDetailsEditForm" />
<html:form name="member" method="post" action="member_edit.do"
type="com.bowtech.web.forms.MemberDetailsEditForm" >
<bean:write id="member" property="firstName"/>
<%-- **********************
does not write firstName
********************* --%>
How do I get it to write firstName
Also how would I do this in a html:text tag ??
Something like <html:text property="firstName" value="<%=
member.getFirstName %>">
</html:form>
Thanks
Ross
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: [OT] Resin does not work with Struts 1.1 Final
Posted by Hue Holleran <st...@openAction.net>.
Barry,
As I replied to your previous post - you really do need to include the
output of the resin log on startup.
> -----Original Message-----
> From: Barry Volpe [mailto:struts@childrencare.com]
> Sent: 08 August 2003 22:33
> To: Struts Users Mailing List
> Subject: [OT] Resin does not work with Struts 1.1 Final
>
>
> Resin does not work with Struts 1.1 Final
> Question by Barry on Fri, 08 Aug 2003 14:05:26 -0700 (PDT)
> [ edit | delete ]
>
> When upgrading to Struts RC2 or 1.1 Final the following error
> occurs: (further description of problem below)
>
> 500 Servlet Exception javax.servlet.jsp.JspException: Can't get
> definitions factory from context. at
> org.apache.struts.taglib.tiles.InsertTag.processDefinitionName(Ins
> ertTag.java:583) at
> org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTa
> g.java:487) at
> org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java
> :451) at _index__jsp._jspService(/childrencare/index.jsp:9) at
> com.caucho.jsp.JavaPage.service(JavaPage.java:75) at
> com.caucho.jsp.Page.subservice(Page.java:506) at
> com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.ja
> va:182) at
> com.caucho.server.http.Invocation.service(Invocation.java:315) at
> com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.j
> ava:344) at
> com.caucho.server.http.RunnerRequest.handleConnection(RunnerReques
> t.java:274) at
> com.caucho.server.TcpConnection.run(TcpConnection.java:139) at
> java.lang.Thread.run(Thread.java:536)
>
> ------------------------------------------------------------------
> -------------- Resin 2.1.9 (built Tue Apr 15 14:28:40 PDT 2003)
>
> Although the message indicates a tiles problem the real problem
> appears to be in initializing a datasource. If I remove the
> datasource from the struts-config the error goes away (of course
> cannot connect to a datasource but the jsp comes up). In versions
> RC1 or earlier the problem does not exist. The main difference
> from RC2,1.1 Final and earlier versions starting from RC1 is
> (from release notes):
>
> In RC2, the Commons-DBCP and Commons-Pool dependencies have been
> removed. These are replaced with a dependency on the
> Struts-Legacy package, containing the GenericDataSource and
> GenericConnection classes from Struts 1.0.2. These are
> distributed for J2SE 1.3 but may be recompiled for J2SE 1.4.
> Other DataSource implementations may be plugged in (recommended).
>
> RC2 is dependent upon Commons FileUpload RC1. The final release
> of Struts 1.1 cannot happen until this dependency is updated to a
> final release of FileUpload. All other dependencies are in their
> final release.
>
> Other changes since RC1 have been routine fixes and refactorings.
>
> I have tried using DBCP and General methods of connecting using
> the mysql driver and both will not work.
>
> The RC2 and Struts Final 1.1 work fine in Tomcat 4.1 but do not
> work in Resin.
>
> I am using J2SE 1.4 on Tomcat and Resin
>
> Any suggestions?
>
> Thanks, Barry
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.507 / Virus Database: 304 - Release Date: 04/08/2003
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.507 / Virus Database: 304 - Release Date: 04/08/2003
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org