Skip to content

Instantly share code, notes, and snippets.

Created September 30, 2014 08:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
JBOSS EAP 6.2 logging with Spring Boot and jax-ws

Spring Boot and JBOSS EAP 6.2.0 logging

Problem: There is no logging with Java jax-ws client. Other logs are written fine to server.log


<?xml version="1.0" encoding="UTF-8"?>

    <include resource="org/springframework/boot/logging/logback/base.xml"/>
    <logger name="org.springframework.web" level="INFO"/>
    <!-- Spring WS SOAP envelop logger interceptor beállítás -->
    <logger name="" level="TRACE" />
    <logger name="org.springframework.transaction.interceptor.TransactionInterceptor" level="TRACE" />
    <logger name="" level="DEBUG"/>

</configuration> (boot your app)

@ComponentScan(basePackages = "")
@EnableTransactionManagement(order = Ordered.HIGHEST_PRECEDENCE - 20)
public class TomcatStart {

     * Boot app
     * @param args
    public static void main(String[] args) {
        // JAX-WS logs:
        System.setProperty("", "true");
        System.setProperty("", "true");
        System.setProperty("", "true");
        System.setProperty("", "true");
        SpringApplication springApp = new SpringApplication(TomcatStart.class);
        springApp.addListeners(new ApplicationPidListener(""));;

standalone.xml configuration modification

        <property name="org.apache.cxf.logging.enabled" value="true"/>


            <logger category="hu.vanio">
                <level name="DEBUG"/>
            <logger category="org.springframework.transaction.interceptor.TransactionInterceptor">
                <level name="TRACE"/>
            <logger category="">
                <level name="TRACE"/>
            <logger category="org.springframework.web">
                <level name="INFO"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment