Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Excellent post………………Could you please explain how you get this " java:/comp/env"… Sorry I am kind of beginner in Java language. Thanking in advance. regards, Zulifqar
- Zulifqar
THanks for the post, but I am getting Error: Java.lang.ClassCastException: org.apache.tomcat.dbcp.dbcp.BasicDataSource cannot be cast to sun.jdbc.odbc.ee.DataSource can you please help
- Anshul Jain
Hi sir,i created a datasource in Server.xml and writing resourcelink in context.xml but it is not considering second Database Connection Details sir. in Server.xml under GlobalNamingResources tag i wrote 2 Resource tags for 2 different db connections and in Context.xml i wrote 2 ResourceLink for those 2 different db connections, First Connection is working where as second one is not working sir.
- Venkata Sriram
i do not understand this sir plz explain where it is …“java:/comp/env/jdbc/MyLocalDB”
- lalit
I have put in server context.xml. but i have put following tag in the web.xml DB Connection jdbc/MoranDB javax.sql.DataSource Container ============== i am able to use the Datasource connection. But i want to know the difference between using (server.xml and context.xml) and as i do(context.xml of server and web.xml of application). PS: i am using tomcat-7 and Mysql database. please give you insight. thank you
- irshad
Thanks for the post. I read a lot of blogs, and everywhere I saw only the configuration in Server.xml file. I was trying to following the same thing but it never worked, after looking at your explanation, I added the elements in Context.xml and it worked like a charm. Thanks again, brother.
- pradeep
Thank for great tutorials. I have problem with this one. It doesn’t show me table, it just show message “TODO write content”. What can be wrong?
- Oleg