Peceka Looks like something simple like localhost isnt defined in your hosts file What do the tomcat logs say?? Martin-
----- Original Message ----- From: "peceka" <[EMAIL PROTECTED]>
To: <user@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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]