stupid mistake.
the postgres jar must be in the tomcat/libs folder, project/web-inf/libs is
not enough
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html

On Thu, Jun 25, 2009 at 7:45 PM, Johannes Nel <johannes....@gmail.com>wrote:

> Hi
>
> in my project.xml file (for tomcat) I am trying to setup a RDS connection
> to a postgres  db.
> i get the following error:
>
> Data source not found: java:/comp/env/jdbc/dbName
>
> I have tried
>
>     <Resource name="jdbc/DbName" type="javax.sql.DataSource"
>         driverClassName="org.postgresql.Driver"
>         maxIdle="2" maxWait="5000"
>         url="jdbc:postgresql://username:passw...@localhost/dbName"
> username="username" password="password" maxActive="4"
>     />
> <Resource name="jdbc/DbName" type="javax.sql.DataSource"
>         driverClassName="org.postgresql.Driver"
>         maxIdle="2" maxWait="5000"
>         url="postgresql://username:passw...@localhost/dbName"
> username="username" password="password" maxActive="4"
>     />
> and
>
>     <Resource name="jdbc/DbName" type="javax.sql.DataSource"
>         driverClassName="org.postgresql.Driver"
>         maxIdle="2" maxWait="5000"
>         url="jdbc:postgresql://localhost/dbName" username="username"
> password="password" maxActive="4"
>     />
>
>
> How would I achieve this.
>
> As a side note related to the licensing error i inquired about before:
>  if i uninstal my FB4  and reinstal  (plugin on 3.4 modeling edition), my
> Flash perpective works, once I close and reopen the eclipse instance, it
> stops working (giving me the same licensing error (code 6) as it did
> before). The modeling plugin continues working  once I reopen eclipse.
>
> thanks
> johan
> \\no comment
>



-- 
j:pn
\\no comment

Reply via email to