struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chen Chunwei" <out-chenchun...@cn.panasonic.com>
Subject Re: Help on <data-source>
Date Tue, 01 Apr 2008 06:59:06 GMT
I'm using struts 1.1

----- Original Message ----- 
From: "Vinny" <xaymaca@gmail.com>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Tuesday, April 01, 2008 2:52 PM
Subject: Re: Help on <data-source>


What version of struts?
Data-source got deprecated at some point. I forget the version.



On 4/1/08, Chen Chunwei <out-chenchunwei@cn.panasonic.com> wrote:
> Hi all,
>
> I've configured a data source at struts-config.xml. This data source use
> oracle thin jdbc driver. And I've already included the ojdbc.jar. Also, the
> oracle database I'm trying to connect is OK. But I just can't make the data
> source get the connection. It always throws a SQLException: Timeout awaiting
> connection. Can anyone give some help? Following is my <data-source>.
> ----------------------------------------------------------------------------------------------
>   <data-source key="org.apache.struts.action.DATA_SOURCE">
>    <set-property property="password" value="passw0rd" />
>    <set-property property="minCount" value="" />
>    <set-property property="maxCount" value="" />
>    <set-property property="user" value="planuser" />
>    <set-property property="driverClass"
>     value="oracle.jdbc.driver.OracleDriver" />
>    <set-property property="description"
>     value="Oracle 9i Database - Struts Test" />
>    <set-property property="url"
>     value="jdbc:oracle:thin:@10.192.225.8:1521:wpsprod" />
>    <set-property property="readOnly" value="false" />
>    <set-property property="autoCommit" value="false" />
>    <set-property property="loginTimeout" value="30" />
>   </data-source>
> ----------------------------------------------------------------------------------------------
>
> Thanks
>
> Talos

-- 
Sent from Gmail for mobile | mobile.google.com

The future is here. It's just not widely distributed yet.
-William Gibson

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