카테고리 없음2016. 8. 8. 16:41
반응형



mvn dependency:tree -Dverbose -Dincludes=org.slf4j


의존성 체크후 버전 예외처리

Posted by 1010
카테고리 없음2016. 8. 3. 15:26
반응형

Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar



Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, preemptingStackOverflowError.

The purpose of slf4j-log4j12 module is to delegate or redirect calls made to an SLF4J logger to log4j. The purpose of the log4j-over-slf4j module is to redirect calls made to a log4j logger to SLF4J. If SLF4J is bound withslf4j-log4j12.jar and log4j-over-slf4j.jar is also present on the class path, a StackOverflowError will inevitably occur immediately after the first invocation of an SLF4J or a log4j logger.

Here is how the exception might look like:

Exception in thread "main" java.lang.StackOverflowError
  at java
.util.Hashtable.containsKey(Hashtable.java:306)
  at org
.apache.log4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:36)
  at org
.apache.log4j.LogManager.getLogger(LogManager.java:39)
  at org
.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)
  at org
.slf4j.LoggerFactory.getLogger(LoggerFactory.java:249)
  at org
.apache.log4j.Category.<init>(Category.java:53)
  at org
.apache.log4j.Logger..<init>(Logger.java:35)
  at org
.apache.log4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:39)
  at org
.apache.log4j.LogManager.getLogger(LogManager.java:39)
  at org
.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)
  at org
.slf4j.LoggerFactory.getLogger(LoggerFactory.java:249)
  at org
.apache.log4j.Category..<init>(Category.java:53)
  at org
.apache.log4j.Logger..<init>(Logger.java:35)
  at org
.apache.log4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:39)
  at org
.apache.log4j.LogManager.getLogger(LogManager.java:39)
  subsequent lines omitted
...

SINCE 1.5.11 SLF4J software preempts the inevitable stack overflow error by throwing an exception with details about the actual cause of the problem. This is deemed to be better than leaving the user wondering about the reasons of the StackOverflowError.

For more background on this topic see Bridging legacy APIs.



-----------------------------------------------


pom.xml hierarchy 에서 의존성 관계 확인후 예외 처리

Posted by 1010
카테고리 없음2016. 8. 3. 10:57
반응형

Problem
CentOS installation fails with the message:
“Unable to read package metadata. This may be due to missing repodata directory. Please ensure that your install tree has been correctly generated”.

Solution 1
Add the corresponding repository server. In case of CentOS 6.5 64bit: http://mirror.centos.org/centos/6.5/os/x86_64/

Solution 2
See the following stackoverflow thread: http://stackoverflow.com/questions/21637068/unable-to-read-package-metadata-this-may-be-due-to-missing-repodata-directory


확인해 보니 mirror 경로가 변경되었다. 괜히 삽질


http://mirror.centos.org/centos/6/os/x86_64/

Posted by 1010
카테고리 없음2016. 8. 2. 15:45
반응형

http://mirror.oasis.onnetcorp.com/centos/6.5/isos/x86_64/

Posted by 1010
카테고리 없음2016. 8. 1. 13:24
반응형


/standalone/configuration/standalone.xml <interfaces> <interface name="management"> <inet-address value="${jboss.bind.address.management:192.168.33.10}"/> </interface> <interface name="public"> <inet-address value="${jboss.bind.address:192.168.33.10}"/> </interface> </interfaces>


Posted by 1010
카테고리 없음2016. 8. 1. 12:47
반응형

 - 설정 파일 추가.(기존에 해당 파일이 없음)

 - 홈디렉토리, listen port 등을 설정할 수 있음.

 - $ vi /etc/sysconfig/svnserve

OPTIONS="--threads --root /home/svn"


 - /etc/init.d/svnserve 파일을 보면 서비스에 등록하기 위해서 /etc/sysconfig/svnserve 파일이 필요하다는 것을 알 수 있다.

 - 이후 service svnserve start|stop|restart 로 구동 가능.

 

서버 재 부팅시 자동으로 시작하게 만들기.

 - 설정확인.

 - $ chkconfig --list svnserve


 - 설정하기.

 - $ chkconfig svnserve on

Posted by 1010
카테고리 없음2016. 8. 1. 12:46
반응형

1. /etc : postinstall.httpd.bat 실행


2. /bin : httpd -k install 실행 (서비스등록)


3./bin : net start Apache2.2 : 서비스 실행


원도우 서비스 관리자에 등록되어 있는지 확인


4. h

Posted by 1010
카테고리 없음2016. 7. 27. 16:33
반응형
1.
# cd /etc/yum.repos.d
# cp rhel-debuginfo.repo rhel-debuginfo.repo.bak
# vim rhel-debuginfo.repo
 
[base]
name=CentOS-$releasever - Base
baseurl=http://mirror.centos.org/centos/6/os/$basearch/
gpgcheck=1
 
#released updates
[update]
name=CentOS-$releasever - Updates
baseurl=http://mirror.centos.org/centos/6/updates/$basearch/
gpgcheck=1
 
저장


2.

rpm --import http://mirror.centos.org/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6


3.

# yum list
# yum -y update
# yum -y 패키지명


Posted by 1010
카테고리 없음2016. 7. 14. 13:13
반응형

vi /etc/sysconfig/iptables

-A INPUT -m state –state NEW -m tcp -p tcp –dport {포트} -j ACCEPT

service iptables restart

Posted by 1010
카테고리 없음2016. 6. 27. 11:43
반응형

1. /etc : postinstall.httpd.bat 실행


2. /bin : httpd -k install 실행 (서비스등록)


3./bin : net start Apache2.2 : 서비스 실행


원도우 서비스 관리자에 등록되어 있는지 확인


4. http://127.0.0.1/, http://127.0.0.1:8080/ 확인

Posted by 1010