Craig, I had the chance today to follow your instruction for installation of
the Commons project Collections, Pool and DBCP.  I downloaded the March 24
nightly of each and moved the appropriate jars into the
$CATALINA_HOME/common/lib directory.

I changed the Resource-params as indicated to:
<parameter>
    <name>factory</name>
    <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>

I am using the the Resource for a virtual host context.  I have double
checked to be sure that the code runs using the default Tomcat (4.0.3)
datasource factory.

Starting up Tomcat and no exceptions are reported in either the catalina or
the virtual_host log files.  But when I access the resource (via a servlet
for login authorization) I get the following exception:

------------------------------------<begin>-----------------------------

2002-03-24 17:55:05 StandardWrapperValve[invoker]: Servlet.service() for
servlet invoker threw exception
java.lang.IllegalStateException
    at 
org.apache.catalina.connector.HttpResponseFacade.sendRedirect(HttpResponseFa
cade.java:173)
    at AdminLogin.doGet(AdminLogin.java:44)
    at AdminLogin.doPost(AdminLogin.java:54)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at 
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java
:446)
    at 
org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:216)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
                                             <snip>
------------------------------------<end>------------------------------

If you need the rest let me know.

Got any ideas where to begin?  I would like to use the DBCP package as a
model.

Thanks,

Steven


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to