Posted In: Server, Tomcat

Tomcat 9 – Why you should start using org.apache.tomcat.jdbc.pool

The JDBC Connection Pool org.apache.tomcat.jdbc.pool is a replacement or an alternative to the Apache Commons DBCP connection pool. So why do we need a new connection pool? Here are a few of the reasons: 1. Multi threaded. Support for highly concurrent environments and multi core/cpu systems. 2. Tomcat jdbc pool implements the ability retrieve a […]

Read More

by , on August 27th, 2017

Posted In: Server, Tomcat

Tomcat 9 – How to correct java.sql.SQLException: No suitable driver found

Case 1 – Using Tomcat connection pool Developer is using to create JNDI. Then please verify TOMCAT/lib has JDBC drivers available. Oracle – ojdbc6.jar MySQL – mysql-connector-java-6.0.5.jar HSQLDB – hsqldb-1.8.0.7.jar PostgreSQL – PostgreSQL JDBC 4.1 Driver, 42.1.4.jre7 Case 2 – Using JDBC driver manager to create connection Either put driver jar in WEB-INF/lib of your […]

Read More

by , on August 26th, 2017

Posted In: Server, Tomcat

How to set the context path of a web application in Tomcat 9

How to set the context path to “/” or root of a web application in Tomcat 9 Deploying my application at the root in Tomcat 1. Setting context path using Eclipse   Set context path in server web module   Set context path in Web project settings   2. Setting context path “/” directly on […]

Read More

by , on August 26th, 2017

Posted In: Apache, Server, Tomcat, Tomcat

How to save uploaded files in a enterprise application

Before writing about how to upload file developer needs to consider how to choose location to upload the file.   1. Not clustered environment – Basic file system Case 1 – Uploading files to Web root This is easiest solution to implement. Developer will be tempted to do this. E.G. Application is deployed at location […]

Read More

by , on August 25th, 2017

  • Categories