-
servlet-api-2.5.jar jar not loaded
Deployed a “war” file on Tomcat, and hits following error messages :
Date: 2019-08-17 View: 1385
-
Java : Unsupported major.minor version 51.0
Run a “jar” on Debian 7.5, and hits the following error messages :
Date: 2019-08-17 View: 1494
-
mongoimport unable to import $numberLong
A collection with NumberLong type data as follows :
Date: 2019-08-17 View: 1365
-
Linux : How to gzip a folder
On Linux, gzip is unable to compress a folder, it used to compress a single file only. To compress a folder, you should use tar + gzip, which is tar -z.
Date: 2019-08-17 View: 1379
-
Ubuntu : Status 14: The disk contains an unclean file system
Dual boot Windows and Ubuntu, but Ubuntu is unable to access the Windows partition /dev/sdb3, shows the following error message :
Date: 2019-08-17 View: 1897
-
MongoDB : write Aggregation result into a new collection
This article shows you 2 ways to export a MongoDB “aggregation” result into another new collection.
Date: 2019-08-17 View: 1258
-
Find out Tomcat is using which JDK or JAVA_HOME
In this article, we will show you how to find out which JRE / JDK or JAVA_HOME is used by the Tomcat container.
Date: 2019-08-17 View: 1384
-
How to change Tomcat to use JDK 7
The current environment is using Tomcat 7 + JDK 6. How to configure Tomcat to use JDK 7?
Date: 2019-08-17 View: 1265
-
How to change Tomcat manager default path ?
By default, Tomcat’s manager webapp is able to access via yourapp:8080/manager. It is a good practice to change the default /manager to something else, to avoid potential brute force attack.
Date: 2019-08-17 View: 1523
-
Java Read a file from resources folder
In this tutorial, we will show you how to read a file from a resources folder or classpath, in both runtime and unit test environment. Try putting a file into the src/main/resources folder, and read the file with following code snippets :
Date: 2019-08-17 View: 2302
-
jsoup : Send search query to Google
This example shows you how to use jsoup to send a search query to Google.
Date: 2019-08-17 View: 1509
-
Count IP address in Nginx access logs
Recently, many referer spam hit on my server, below is the command I used to find and count the IP Address from a Nginx access log file.
Date: 2019-08-17 View: 1453
-
Nginx : Block User Agent
In Nginx, you can block certain user agents (normally it is crawler) like this :
Date: 2019-08-17 View: 1427
-
Java : Return a random item from a List
Normally, we are using the following ways to generate a random number in Java.
Date: 2019-08-17 View: 1551
-
Nginx + Apache Tomcat configuration example
This tutorial shows you how to configure Nginx as a reverse proxy to redirect the traffics from port 80 to Apache Tomcat on port 8080.
Date: 2019-08-17 View: 4469