-
servlet-api-2.5.jar jar not loaded
Deployed a “war” file on Tomcat, and hits following error messages :
Date: 2019-08-17 View: 1358
-
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: 1469
-
mongoimport unable to import $numberLong
A collection with NumberLong type data as follows :
Date: 2019-08-17 View: 1341
-
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: 1356
-
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: 1860
-
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: 1231
-
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: 1358
-
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: 1240
-
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: 1493
-
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: 2273
-
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: 1479
-
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: 1428
-
Nginx : Block User Agent
In Nginx, you can block certain user agents (normally it is crawler) like this :
Date: 2019-08-17 View: 1400
-
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: 1531
-
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: 4446