title: How to I get the error stack trace to appera in my JBoss server log?
body: <p>I have a Spring 3.2.11.RELEASE running on Wildfly 10.  On a particular page of my application, this is being printed to my browser</p>
  
  <pre><code>{"status":"failure","exception":"ClassCastException","exceptionMessage":"java.lang.Boolean cannot be cast to java.util.List","errorMessage":"java.lang.Boolean cannot be cast to java.util.List"} 
  </code></pre>
  
  <p>I would like to figure out what the stack trace of what is causing this, but it is not listed in my $JBOSS_HOME/standalone/log/server.log file.  How do I make it appear?  Below is my logging configuration in my $JBOSS_HOME/standalone/configuration/standalone.xml file …</p>
  
  <pre><code>    &lt;subsystem xmlns="urn:jboss:domain:logging:3.0"&gt;
          &lt;console-handler name="CONSOLE"&gt;
              &lt;level name="INFO"/&gt;
              &lt;formatter&gt;
                  &lt;named-formatter name="COLOR-PATTERN"/&gt;
              &lt;/formatter&gt;
          &lt;/console-handler&gt;
          &lt;periodic-rotating-file-handler name="FILE" autoflush="true"&gt;
              &lt;formatter&gt;
                  &lt;named-formatter name="PATTERN"/&gt;
              &lt;/formatter&gt;
              &lt;file relative-to="jboss.server.log.dir" path="server.log"/&gt;
              &lt;suffix value=".yyyy-MM-dd"/&gt;
              &lt;append value="true"/&gt;
          &lt;/periodic-rotating-file-handler&gt;
          &lt;logger category="com.arjuna"&gt;
              &lt;level name="DEBUG"/&gt;
          &lt;/logger&gt;
          &lt;logger category="org.apache.tomcat.util.modeler"&gt;
              &lt;level name="DEBUG"/&gt;
          &lt;/logger&gt;
          &lt;logger category="org.jboss.as.config"&gt;
              &lt;level name="DEBUG"/&gt;
          &lt;/logger&gt;
          &lt;logger category="sun.rmi"&gt;
              &lt;level name="DEBUG"/&gt;
          &lt;/logger&gt;
          &lt;logger category="com"&gt;
              &lt;level name="DEBUG"/&gt;
          &lt;/logger&gt;
          &lt;logger category="org"&gt;
              &lt;level name="DEBUG"/&gt;
          &lt;/logger&gt;
          &lt;logger category="org.hibernate"&gt;
              &lt;level name="DEBUG"/&gt;
          &lt;/logger&gt;
          &lt;root-logger&gt;
              &lt;level name="INFO"/&gt;
              &lt;handlers&gt;
                  &lt;handler name="CONSOLE"/&gt;
                  &lt;handler name="FILE"/&gt;
              &lt;/handlers&gt;
          &lt;/root-logger&gt;
          &lt;formatter name="PATTERN"&gt;
              &lt;pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n"/&gt;
          &lt;/formatter&gt;
          &lt;formatter name="COLOR-PATTERN"&gt;
              &lt;pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n"/&gt;
          &lt;/formatter&gt;
      &lt;/subsystem&gt;
  </code></pre>
  
  <p>I have defined no log4j.proeprties or log4j.xml in my application so I’m not sure how else to configure getting a stack trace to appear in my logs.</p>