Deploy on Jboss

Deploy on JBoss

  1. 다운로드 “jboss-eap-6.3.0.zip”

  2. 압축풀기 “jboss-eap-6.3.0.zip”

  3. JAVA_HOME 지정

    • 위치 : WAS_HOME /bin/standalone.conf.bat
      rem #
      rem # Specify the location of the Java home directory (it is recommended that
      rem # this always be set). If set, then "%JAVA_HOME%\bin\java" will be used as
      rem # the Java VM executable; otherwise, "%JAVA%" will be used (see below).
      rem #
      set "JAVA_HOME=C:/Program Files/Java/jdk1.6.0_45"
      
  4. CONFIG_PATH 추가

    • 위치 : WAS_HOME /bin/standalone.conf.bat
      rem #
      rem # Specify options to pass to the Java VM. Note, there are some additional
      rem # options that are always passed by run.bat.
      rem #
      set "JAVA_OPTS=-Xms1G -Xmx1G -XX:MaxPermSize=256M"
      set "JAVA_OPTS=%JAVA_OPTS% -DCONFIG_PATH=C:/glueconf"
      
  5. security-manager.properties 를 복사

    • 위치 : CONFIG_PATH로 지정된 곳 ( C:/glueconf )
      queryLoader.rootPath=query
      glue-security-dataSource.jndiname=java:jboss/jdbc/oracle/GlueSecurityDS
      glueUserService.crc=true
      log.file.path=C:/logs/security-manager.log
      
  6. 라이센스 정보 파일 복사

    • 위치 : CONFIG_PATH로 지정된 곳 ( C:/glueconf )
  7. org.bouncycastle module 구성

    • 위치 : WAS_HOME /modules/system/layers/base
    • module.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <module xmlns="urn:jboss:module:1.1" name="org.bouncycastle" slot="main">
          <resources>
              <resource-root path="bcprov-jdk15on-1.60.jar"/>
          </resources>
          <dependencies>
              <module name="javax.api" export="true"/>
          </dependencies>
      </module>
      
    • bcprov-jdk15on-1.60.jar

  8. 관리자 계정 추가

    • 위치 : WAS_HOME /bin/add-user.bat
      C:\>cd jboss-eap-6.3
      
      C:\jboss-eap-6.3>cd bin
      
      C:\jboss-eap-6.3\bin>add-user.bat
      JAVA_HOME is not set. Unexpected results may occur.
      Set JAVA_HOME to the directory of your local JDK to avoid this message.
      
      What type of user do you wish to add?
      a) Management User (mgmt-users.properties)
      b) Application User (application-users.properties)
      (a):
      
  9. jboss 실행후 관리 콘솔 로그인

  10. 관리콘솔을 통해 JDBC Driver 추가

  11. 관리콘솔을 통해 JDBC DataSource 구성

    • 위치 : Configuration > Subsystems > Connector > Datasources
    • java:jboss/jdbc/oracle/GlueSecurityDS
  12. 관리콘솔을 통해 Global Modules 등록

    • 위치 : Configuration > Subsystems > Container > EE
    • org.bouncycastle
  13. glue-security-manager-{version}.war 을 security-manager.war 로 파일명 변경 후 deploy

    • 위치 : WAS_HOME /standalone/deployments
  14. jboss 재시작

    • 위치 : WAS_HOME /bin/standalone.bat
  15. 로그인