
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
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
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
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- Apache (13)
- Build Tools (2)
- Gradle (2)
- Caching (1)
- cpanel (1)
- cURL (1)
- Database (7)
- Hibernate (5)
- Java Core (38)
- Java Script (15)
- Bootstrap (1)
- File Upload (7)
- jQuery (3)
- React (3)
- JEE (13)
- JSON (41)
- GSON (13)
- Jackson 1X (1)
- Jackson 2X (12)
- jsoniter (1)
- Logging (2)
- Apache Commons Logging (1)
- Apache Log4J (1)
- Logback (1)
- SLF4J (1)
- MongoDB (1)
- OS (1)
- Linux (1)
- Security (5)
- Server (4)
- Tomcat (4)
- Service (2)
- Micro (2)
- Spring (46)
- Pattern (2)
- Spring Boot (20)
- Spring Data (4)
- Spring MVC (8)
- Spring REST (13)
- Spring Security (7)
- Testing (11)
- XML (5)
- JDOM XML Parser (1)