2018-11-16

Exception while configure log4j 1.2 by java.util.Properties & PropertyConfigurator.configure


Scenario:

Exception while configure log4j 1.2  by  java.util.Properties & PropertyConfigurator.configure


log4j:WARN No appenders could be found for logger (com.test.TestLog).
log4j:WARN Please initialize the log4j system properly.


Searched by: WARN No appenders could be found for logger after PropertyConfigurator.configure java.util.Properties

found: Log4J warn please help me urgent - Experts Exchange
















Source URL: https://www.experts-exchange.com/questions/24432318/Log4J-warn-please-help-me-urgent.html


> after my application loading then my log file successfully creating file and writing what every error into the log file

because it is working fine, and is not causing your error

> but why that error is coming.....................

because other parts of the application are trying to use log4j before it is configured


2018-11-13

Practice in 1440


Practice in 1440


Source URL: https://www.youtube.com/watch?v=-Qy2vist-XQ&t=274s

The 15 secrets successful people know about time management.

So here are the 15tips , incase u r in hurry;)

41% of items that people put on their to-do lists are never done at all, to-do lists is the graveyard, is important but not urgent

1) Time is ur most valuable and scarcest source (1440 mins a day)
2) Identify ur most imp task and do it first.
3) Work from ur calendar not from a to- do list.
4) To overcome procrastination beat ur future self.
5) There will be always more to do
6) Always carry a notebook(to capture info.)
7) Control ur inbox( to avoid distractions)
8) Schedule and attend meetings as a last resort(say no to things)
9) Say no to everything that doesnt support ur immediate goals
10) Follow the powerful pareto principle (80/20 rule)
11) Focus on ur unique strengths and passion.
12) Batch ur work with recurring themes.
13) If u can do a task in less than 5 mins , do it immediately
14) Routinely use early mornings to strength ur mind ur body and ur spirit.
15) Productivity is about energy and focus and not time. And follow pomodoro technique, take breaks , sleep properly , do exercise,eat properly.
And watch full video to get proper explanations.




2018-11-12

apache 2.4.6 virtualhost reverse proxy tomcat proxy:error] [pid 3363] AH00940: HTTP: disabled connection for (localhost)



sudo tail -200f /etc/httpd/logs/yourdomainname-error_log



[Mon Nov 12 19:40:54.576505 2018] [proxy:error] [pid 3363] AH00940: HTTP: disabled connection for (localhost)
[Mon Nov 12 19:40:54.615281 2018] [proxy:error] [pid 3365] AH00940: HTTP: disabled connection for (localhost)



Source URL: https://serverfault.com/questions/382076/apache-proxy-not-working-for-a-localhost-port


Here is the solution for your problem:
To turn on this boolean you simple have to use this line (root permissions)
setsebool -P httpd_can_network_connect on
or
sudo setsebool -P httpd_can_network_connect on
Hope that helps. Reference see here: https://wiki.centos.org/TipsAndTricks/SelinuxBooleans







apache 2.4.6 virtual host reverse proxy Your browser sent a request that this server could not understand


The case i hit this is due to apache configuration version issue.

Source URL: https://stackoverflow.com/questions/10445455/apache-dont-have-permission-to-access-on-this-server-when-i-am-using-virtua

This configuration was valid for apache version 2.2
First check your apache version by typing apachectl -V in your terminal.
If it shows something like this
Server version: Apache/2.4.27 (Ubuntu)
Server built:   2018-04-18T14:20:05
then your apache version has updated but the conf you are using is deprecated.
So instead of
2.2 configuration:
Order allow,deny
Allow from all
use this:
2.4 configuration:
Require all granted
For further documentation related to the upgrade, follow the official docs:




Google Referrals