1 2 Previous Next 18 Replies Latest reply on Jul 5, 2012 8:00 AM by samwun9988 Go to original post
      • 15. Re: Log4j not working with JBOSS 7.2
        wdfink

        For me it works on Fedora15 with no problems.

         

        Have a look to the output before BUILD FAILURE, maybe that gives you hints.

        What might happen is that the test fail because of finding a running AS instance, be sure that there isn't one running during build.

        • 16. Re: Log4j not working with JBOSS 7.2
          samwun9988

          I have got that resolved.

          Thank you very much for all suggstions. very helpful.

          Sam

          • 17. Re: Log4j not working with JBOSS 7.2
            wdfink

            No problem

             

            You should mark the thread as assumed answered, or something like that and give an idea how you fix it (if possible) to help others.

            • 18. Re: Log4j not working with JBOSS 7.2
              samwun9988

              I upgrade jboss to 7.1.1.Final and then added the following change to standalone-full.xml file:

               

              <console-handler name="CONSOLE">

                              <formatter>

                                  <pattern-formatter pattern="%d{HH:mm:ss.SSS} %-5p [%c] (%t) %s%E%n"/>

                              </formatter>

                          </console-handler>

                          <periodic-rotating-file-handler name="FILE">

                              <formatter>

                                  <pattern-formatter pattern="%d{HH:mm:ss.SSS} %-5p [%c] (%t) %s%E%n"/>

                              </formatter>

                              <file relative-to="jboss.server.log.dir" path="server.log"/>

                              <suffix value=".yyyy-MM-dd"/>

                              <append value="true"/>

                          </periodic-rotating-file-handler>

               

                          <root-logger>

                              <level name="DEBUG"/>

                              <handlers>

                                  <handler name="CONSOLE"/>

                                  <handler name="FILE"/>

                              </handlers>

                          </root-logger>

              In my pom.xml file, I removed the following config:

               

              <dependency>

                          <groupId>org.slf4j</groupId>

                          <artifactId>slf4j-api</artifactId>

                          <version>${org.slf4j-version}</version>

                      </dependency>

                      <dependency>

                          <groupId>org.slf4j</groupId>

                          <artifactId>jcl-over-slf4j</artifactId>

                          <version>${org.slf4j-version}</version>

                      </dependency>

                      <dependency>

                          <groupId>org.slf4j</groupId>

                          <artifactId>slf4j-log4j12</artifactId>

                          <version>${org.slf4j-version}</version>

                          <scope>runtime</scope>

                      </dependency>

              I assumed jboss has its own log4j module build in already.

              Cheers

              Sam

              1 2 Previous Next