datasource problem

hi all,

i am new to java struts...........

when i am connecting my application with the database(MS Access)

it gives the error as :

Aug 3, 2005 7:42:19 PM org.apache.struts.action.ActionServlet initModuleDataSources

SEVERE: Initializing application data source Ajava.lang.NullPointerException

where my Datasource in Struts config is :

<data-sources>

<data-source key="A" type="org.apache.commons.dbcp.BasicDataSource">

<set-property property="description" value="My Access DB Connection"/>

<set-property property="driverClassName" value="sun.jdbc.odbc.JdbcOdbcDriver"/>

<set-property property="url" value="jdbc:odbc:search"/>

<set-property property="username" value=""/>

<set-property property="password" value=""/>

<set-property property="maxCount" value="4"/>

<set-property property="minCount" value="2"/>

</data-source>

</data-sources>

please help

[1052 byte] By [talktoamit80a] at [2007-11-26]
# 1

<data-sources>

<data-source key="A" type="org.apache.commons.dbcp.BasicDataSource">

<set-property property="description" value="My Access DB Connection"/>

<set-property property="driverClassName" value="sun.jdbc.odbc.JdbcOdbcDriver"/>

<set-property property="url" value="jdbc:odbc:?"/>

<set-property property="username" value="?"/>

<set-property property="password" value="?"/>

<set-property property="maxCount" value="4"/>

<set-property property="minCount" value="2"/>

</data-source>

</data-sources>

Please fill in the ? in the configuration.

Remember that the url property needs to be configured as a odbc in Windows DataSource Configuration thru Control Panel.

Thanks and regards,

Pazhanikanthan. P

pazhanikanthana at 2007-7-11 > top of java,Enterprise & Remote Computing,AVK Portability...