Can you send the top few lines from the exception stack trace?

I think I have a similar problem with a different set up
(solaris/postgreSQL). I have a feeling the database
code just doesn't work.

"Wang, Meng" wrote:
> 
> Dear Jim,
> 
> Thank you for your rapid response.  Here is the specific information:
> 
> Web server: tomcat321
> database:       ACCESS
> OS:             Window 2000
> JDK:            JDK1.3
> ----------------------------------------------
> 1. For testing purpose, I put database under my application root directory
> and setup DSN in ODBC.
> 
> 2. I initiate the database config in the struts-config.xml:
> 
> <data-sources>
>   <data-source
>      autoCommit="false"
>     description="Example Data Source Configuration"
>     driverClass="sun.jdbc.odbc.JdbcOdbcDriver"
>        maxCount="4"
>        minCount="2"
>          key="abc"
>         password=""
>        url="jdbc:odbc:test"
>        user=""  />
>   </data-sources>
> 3. The codes in the Action class for connecting the database is:
>     try {
>                 ....
>           DataSource ds = servlet.findDataSource("abc");
>             .....
> 
> The problem is:  can NOT find the data source.  Is there any more thing to
> do for connecting the database?
> 
> Thanks a lots!!

Reply via email to