February 01, 2018

JBoss EAP 6.4 server log not getting updated deploying Spring Boot war

We recently deployed a new Spring Boot war on Jboss EAP 6.4 on our dev server. After which Server.log file stopped getting updated. Later we realized the problem because of our application configuration. We have added jboss-deployment-structure.xml in our Spring Boot application.

< ?xml version="1.0" encoding="UTF-8"? >
 < jboss-deployment-structure >
     < deployment >
         < exclude-subsystems >
             < subsystem name="jpa" / >
           < subsystem name="webservices" / >
         < /exclude-subsystems >
         < exclusions >
             < !-- WFCORE-209 workaround -- >
             < module name="javaee.api" / >
             < !--  -- >
             < module name="javax.persistence.api" / >
             < module name="org.hibernate" / >
         < /exclusions >
         < dependencies >
       
             < !-- WFCORE-209 workaround -- >
             < module name="javax.activation.api" export="true"/ >
             < module name="javax.annotation.api" export="true"/ >
             < module name="javax.ejb.api" export="true"/ >
             < module name="javax.el.api" export="true"/ >
             < module name="javax.enterprise.api" export="true"/ >
             < module name="javax.enterprise.deploy.api" export="true"/ >
             < module name="javax.inject.api" export="true"/ >
             < module name="javax.interceptor.api" export="true"/ >
             < module name="javax.jms.api" export="true"/ >
             < module name="javax.jws.api" export="true"/ >
             < module name="javax.mail.api" export="true"/ >
             < module name="javax.management.j2ee.api" export="true"/ >
             < !--  < module name="javax.persistence.api" export="true"/ >  -- >
             < module name="javax.resource.api" export="true"/ >
             < module name="javax.rmi.api" export="true"/ >
             < module name="javax.security.auth.message.api" export="true"/ >
             < module name="javax.security.jacc.api" export="true"/ >
             < module name="javax.servlet.api" export="true"/ >
             < module name="javax.servlet.jsp.api" export="true"/ >
             < module name="javax.transaction.api" export="true"/ >
             < module name="javax.validation.api" export="true"/ >
             < module name="javax.ws.rs.api" export="true"  services="export"/ >
             < module name="javax.xml.bind.api" export="true"/ >
             < module name="javax.xml.registry.api" export="true"/ >
             < module name="javax.xml.soap.api" export="true"/ >
             < module name="javax.xml.ws.api" export="true"/ >
   
             < !-- This one always goes last. -- >
             < module name="javax.api" export="true"/ >
             < !-- -- >
             < module name="org.jboss.xnio" / >
             < system >
                 < paths >
                     < path name="sun/net/www/protocol/https" / >
                     < path name="sun/net/www/protocol/http" / >
                     < path name="com/sun/net/ssl/internal/ssl" / >
                 < /paths >
             < /system >
           
         < /dependencies >
     < /deployment >
 < /jboss-deployment-structure >

 
The server.logs started updating themselves after we removed below line from our jboss-deployment-structure.xml

 < subsystem name="logging" / >

-K Himaanshu Shuklaa..

No comments:

Post a Comment