You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by peceka <pe...@gmail.com> on 2005/06/05 17:15:03 UTC
Problems with
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
Re: Problems with
Posted by Martin Gainty <mg...@hotmail.com>.
Peceka
Looks like something simple like
localhost isnt defined in your hosts file
What do the tomcat logs say??
Martin-
----- Original Message -----
From: "peceka" <pe...@gmail.com>
To: <us...@struts.apache.org>
Sent: Sunday, June 05, 2005 11:15 AM
Subject: Problems with <data-sources>
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
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org