2012/12/29 Mauro <mrsan...@gmail.com>:
> Hello.
> I've various web applications running under tomcat6.

Which one of many 6.0.x versions?

> One of those use jndi, say the name of webapp is my_app.
> I put a my_app.xml under Catalina/localhost/ with a context section in
> which I put:
>
> <Resource name="jdbc/my_app" auth="Container" type="javax.sql.DataSource"
>          maxActive="100" maxIdle="30" maxWait="10000"
>          username="xxx" password="xxx" driverClassName="org.postgresql.Driver"
>          url="jdbc:postgresql://svsopsql01.comune.cagliari.loc:5432/my_app"/>
>
> The jndi connection work well but........
> I deploy another web application that uses jndi, say my_app1.
> Put a my_app1.xml under Catalina/localhost/
>
>
> <Resource name="jdbc/my_app1" auth="Container" type="javax.sql.DataSource"
>          maxActive="100" maxIdle="30" maxWait="10000"
>          username="xxx" password="xxx" driverClassName="org.postgresql.Driver"
>          url="jdbc:postgresql://svsopsql01.comune.cagliari.loc:5432/my_app1"/>
>
>
> This second application does not work and I must investigate on it but
> the problem is that also the jndi connection of the first application,
> my_app, does not work.
> Why?
> I'm correct on putting my_app.xml and my_app1.xml under Catalina/localhost?

So, if it is one application then it works. If you deploy the second
application then both the first and the second do not work?

What do you mean by "does not work"?
What are the symptoms, messages etc.

Where did you place your JDBC drivers?
I'd say that they should be in $CATALINA_BASE/lib, and NOT in any of your wars.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to