IT 한길

Progamming/Java +2

 

 

 

 

 

1.프로그램설치

-JDK 1.6 설치

-JBoss 5.1.0.GA-jdk6 (http://sourceforge.net/projects/jboss/files/JBoss/JBoss-5.1.0.GA/jboss-5.1.0.GA-jdk6.zip)

-EJBCA 4.0.12(http://sourceforge.net/projects/ejbca/files/ejbca4/ejbca_4_0_12/ejbca_4_0_12.zip)

 

 

--EJBCA_HOME/lib/bc*.jar 파일을 JBOSS_HOME/server/default/lib 폴더에 복사한다.

(If you are using Oracle's JDK and JBoss 5.1.x you need to copy EJBCA_HOME/lib/bc*.jar to JBOSS_HOME/server/default/lib/. Remember this when it's time for upgrades! This is a bug tracked by JBoss as JBAS-7882. OpenJDK works just fine though, such as the OpenJDK distributed with RedHat, Ubuntu, Debian etc.

The same bug is present on JBoss 6.0, but the workaround is different, the same workaround as for JBoss 5.1 does not work with JBoss 6. The only way to work around this with Oracle JDK and JBoss 6 is to copy ejbca/lib/bc*.jar to $JAVA_HOME/jre/lib/ext, and to remove lib/bc*.jar from the deployed ejbca.ear file. See the JBAS-7882 issue for more information.)

 

 

2.EJBCA 설정

-ejbca.properties 수정

  appserver.home=/opt/jboss-5.1.0

-ejbca폴더에서 ant bootstrap

-jboss 시작

-ant install

-ant deploy

-jboss 재시작

 

 

 

 

'Progamming > Java' 카테고리의 다른 글

RMI 정리중  (0) 2012.05.10

RMI 정리중

Progamming/Java2012. 5. 10. 11:56

 

그림 출처: http://java.sun.com/docs/books/tutorial/rmi/overview.html

 

 

RMI(Remote Method Invocation)

 - 네트웍상에 있는 원격컴퓨터의 객체의 메소드를 호출하는 JAVA의 분산처리 방법

 

SERVER
  -원격인터페이스, 구현클래스, 서버프로그램, Stub

Stup 파일 생성
 -rmic -classpath . -d . RmiServicempl

 -rmic -classpath . -d . test.RmiServicempl

 

rmiregistry 등록 
 -start rmiregistry 1099  (기본 포트1099)
 

서버실행
java -classpath /opt/apache-tomcat-5.26/webapps/arcotweb/WEB-INF/classes/  -Djava.rmi.server.codebase=file:/opt/apache-tomcat-5.5.26/webapps/arcotweb/WEB-INF/classes/ -Djava.security.policy=server.policy  RmiServer

 

Client
 -원격인터페이스, 클라이언트프로그램, Stub

 

*문제해결 및 참고

-http://blog.naver.com/eunicon?Redirect=Log&logNo=100043860463

-http://blog.naver.com/ypark197?Redirect=Log&logNo=90034481566

-http://cafe.naver.com/sungwookhome/293

-RMI 사용에 의한 동적인 코드의 다운로드(codeb.pdf

 


'Progamming > Java' 카테고리의 다른 글

EJBCA 설치 테스트  (0) 2012.11.14