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:[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to