struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peceka <pec...@gmail.com>
Subject Problems with <data-sources>
Date Sun, 05 Jun 2005 15:15:03 GMT
Hi,

My simple aplication:
register1.jsp
register.do:

(from struts-config.xml):
<action
            path="/actions/register1"
            type="my.domain.RegisterAction1">
          <forward
                name="success"
                path="/WEB-INF/results/results1.jsp"/>

and results1.jsp

It works.
But when i add to my struts-config.xml:
<data-sources>
<data-source key="myDB" type="org.apache.commons.dbcp.BasicDataSource">
    <set-property
      property="driverClassName"
      value="org.postgresql.Driver" />
    <set-property
      property="url"
      value="jdbc:postgresql://localhost/mydatabase" />
    <set-property
      property="username"
      value="me" />
    <set-property
      property="password"
      value="pass" />
    <set-property
      property="maxActive"
      value="10" />
    <set-property
      property="maxWait"
      value="5000" />
    <set-property
      property="defaultAutoCommit"
      value="false" />
    <set-property
      property="defaultReadOnly"
      value="false" />
</data-source>
</data-sources>


My application doesn't work. With my brwoser I go to register1.jsp
then submit my form and in browser i've got:

HTTP Status 404 - Servlet action is not available

type Status report

message Servlet action is not available

description The requested resource (Servlet action is not available)
is not available.
Apache Tomcat/5.5.7


I'm using struts 1.2.7, jdk1.5, netbeans 4.1 (with tomcat5.5).


Why? What's wrong with this?
I've added library commons-dbcp-1.2.1.jar to my project and of course:
postgresql-8.0-311.jdbc3.jar.


TIA,
pecek.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message