Okay. I figured out that <data-sources> needs to go at the tope and I
removed the set-property tags and actually made the properties.

I am using postgres 7.1 something. 

Now when I start my sample application I get a ClassNotFoundException.
I've checked and postgresql.jar from my postgres install is in my apps
WEF-INF/lib directory. 

I've got the application working by establishing my own connections and
not using the pool, so I know I can talk to JDBC and it can load the
driver.

But I can't seem to get the strut-pool stuff to load it....

Can anyone point out my stupid mistake?

Here is my <data-sources> section:

    <data-sources>
      <data-source
        autoCommit="false"
        driverClass="org.postgresql.Driver"
        maxCount="4"
        minCount="2"
        password="whatever"
        url="jdbc:postgresql://localhost/LPC"
        user="edwardam" />
    </data-sources>


On 25 Jul 2001 14:05:00 -0400, Edward Muller wrote:
> I'm trying to configure a data-source in my struts-config.xml file and I
> get the following error:
> 
> Parse Error at line 71 column -1: Element "struts-config" allows no
> further input; "data-sources" is not allowed.
> ...(more traceback here)...
> 
> 
> The snippet from my struts-config.xml file is as follows:
>     <data-sources>
>       <data-source>
>         <set-property property="autoCommit" value="false" />
>         <set-property property="description" value="Postgres Server"/>
>         <set-property property="driverClass"
> value="org.postgresql.Driver"/>
>         <set-property property="maxCount" value="4"/>
>         <set-property property="minCount" value="2"/>
>         <set-property property="password" value="whatever"/>
>         <set-property property="url"
> value="jdbc:postgresql://localhost/LPC"/>
>         <set-property property="user" value="edwardam"/>
>       </data-source>
>     </data-sources>
> 
> What am I doing wrong?
> 
> --
> Edward Muller
> Director of Information Services
> LearningPatterns.com Inc.
> 
> Direct: 212-487-9064 x 115
> Fax: 212-202-3822
> Email: [EMAIL PROTECTED]
> 
> http://www.learningpatterns.com
--
Edward Muller
Director of Information Services
LearningPatterns.com Inc.

Direct: 212-487-9064 x 115
Fax: 212-202-3822
Email: [EMAIL PROTECTED]

http://www.learningpatterns.com

Reply via email to