JBoss Identity SAML Stack Installation

    This is a wiki article that is work in progress.

     

    tocServer Environments

     

     

    Tomcat

     

    JDK Used:  JDK1.5.0_18

     

    In the lib directory, the following jars (part of JBoss Identity stack) were added:

    • jboss-identity-bindings-1.0.0.alpha2-SNAPSHOT.jar
    • jboss-identity-fed-1.0.0.alpha2-SNAPSHOT.jar
    • jbossxacml-2.0.3.jar

       

       

      In the lib directory, the following jars files representing dependencies were added:

    • log4j-1.2.14.jar
    • stax-api-1.0.jar
    • jaxb-api-2.1.9.jar
    • jaxb-impl-2.1.9.jar
    • activation-1.1.jar

     

    log4j.xml was also added to the lib directory.

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
    
    <!-- ===============================================
    ====================== -->
    <!--                                                                       -->
    <!--  Log4j Configuration                                                  -->
    <!--                                                                       -->
    <!-- ==============================================
    ======================= -->
    
    <!--
       | For more configuration information and examples see
    the Jakarta Log4j
       | owebsite: http://jakarta.apache.org/log4j
     -->
    
    <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
    debug="false">
    
       <!-- ================================= -->
       <!-- Preserve messages in a local file -->
       <!-- ================================= -->
    
       <!-- A time/date based rolling appender -->
       <appender name="FILE" class="org.apache.log4j.DailyRollingFileAppender">
          <param name="File" value="../logs/server.log"/>
          <param name="Append" value="false"/> 
          <param name="Threshold" value="TRACE"/>
    
          <!-- Rollover at midnight each day -->
    <param name="DatePattern" value="'.'yyyy-MM-dd"/>
    
          <!-- Rollover at the top of each hour
          <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
          -->
    
          <layout class="org.apache.log4j.PatternLayout">
             <!-- The default pattern: Date Priority
    [Category] (Thread) Message\n -->
             <param name="ConversionPattern"
    value="%d %-5p [%c] (%t) %m%n"/>
    
             <!-- The full pattern: Date MS Priority [Category]
    (Thread:NDC) Message\n
             <param name="ConversionPattern"
    value="%d %-5r %-5p [%c] (%t:%x) %m%n"/>
              -->
          </layout>
       </appender>
    
       <!-- ============================== -->
       <!-- Append messages to the console -->
       <!-- ============================== -->
    
       <appender name="CONSOLE"
    class="org.apache.log4j.ConsoleAppender">
          <param name="Target" value="System.out"/>
          <param name="Threshold" value="INFO"/>
    
          <layout class="org.apache.log4j.PatternLayout">
             <!-- The default pattern: Date Priority
    [Category] Message\n -->
             <param name="ConversionPattern"
    value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
          </layout>
       </appender>
    
       <!-- ================ -->
       <!-- Limit categories -->
       <!-- ================ -->
    
       <!-- Limit the org.apache category to INFO as
    its DEBUG is verbose -->
       <category name="org.apache">
          <priority value="TRACE"/>
       </category>
       <category name="org.jboss">
          <priority value="TRACE"/>
       </category>
    
       <!-- Setup the Root category -->
       <!-- ======================= -->
    
       <root>
          <appender-ref ref="CONSOLE"/>
          <appender-ref ref="FILE"/>
       </root>
    
    </log4j:configuration>