0 Replies Latest reply on May 7, 2018 3:41 AM by ganaranjoo

    Failed to start service with wildfly 12

    ganaranjoo

      Hola a todos, tengo el siguiente que no he podido solucionar, ya he verificado el archivo standalone.xml varias veces y aún me sigue saliendo

      12:19:22,476 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "WebBoncargoAdmin-1.0-SNAPSHOT.war")]) - failure description: {
          "WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./boncargo.UndertowDeploymentInfoService" => "Failed to start service
          Caused by: java.lang.IllegalArgumentException: UT010012: Listener class class excelenta.com.excelenta.webboncargoadmin.dto.web.UsuarioLogeadoDTO must implement at least one listener interface"},
          "WFLYCTL0412: Required services that are not installed:" => ["jboss.undertow.deployment.default-server.default-host./boncargo"],
          "WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"WebBoncargoAdmin-1.0-SNAPSHOT.war\".deploymentCompleteService is missing [jboss.undertow.deployment.default-server.default-host./boncargo]"]
      }
      12:19:22,614 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 38) WFLYSRV0010: Deployed "WebBoncargoAdmin-1.0-SNAPSHOT.war" (runtime-name : "WebBoncargoAdmin-1.0-SNAPSHOT.war")
      12:19:22,614 INFO  [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
      WFLYCTL0184:    New missing/unsatisfied dependencies:
            service jboss.undertow.deployment.default-server.default-host./boncargo (unavailable) dependents: [service jboss.deployment.unit."WebBoncargoAdmin-1.0-SNAPSHOT.war".deploymentCompleteService]
      WFLYCTL0186:   Services which failed to start:      service jboss.undertow.deployment.default-server.default-host./boncargo.UndertowDeploymentInfoService: Failed to start service
      

      El archivo java es el siguiente

      package excelenta.com.excelenta.webboncargoadmin.dto.web;
      import excelenta.com.excelenta.webboncargoadmin.interfaces.ILocalBonCargoDB;
      import excelenta.com.excelenta.webboncargoadmin.util.ContextLookUpUtils;
      import excelenta.com.excelenta.webboncargoadmin.util.LogBonCargo;
      import java.util.ArrayList;
      import java.util.HashMap;
      import java.util.List;
      import java.util.Map;
      import javax.annotation.PreDestroy;
      import javax.servlet.http.HttpSession;
      import javax.servlet.http.HttpSessionBindingEvent;
      import javax.servlet.http.HttpSessionBindingListener;
      public class UsuarioLogeadoDTO implements HttpSessionBindingListener{
          
          private static final long serialVersionUID = 02L;
          
          private UsuarioDTO usuarioDTO;
          private List<RolUsuarioDTO> listaRolUsuarioLogeadoDTO;
          private String ipFromLogueado;
          private Long idUsuarioLogLogin;
          private String carpetaRecursosEmpresa;
          private String ipPuertoContextPath;
          
          /**
           * 
           */
          public static final Map<UsuarioLogeadoDTO, HttpSession> usuariosLogueados = new HashMap<UsuarioLogeadoDTO, HttpSession>();
              
          /**
           * 
           * @param other
           * @return 
           */
          @Override
          public boolean equals(Object other) {
              return (other instanceof UsuarioLogeadoDTO) && (usuarioDTO.getId() != null) ? usuarioDTO.getId().equals(((UsuarioLogeadoDTO) other).getUsuarioDTO().getId()) : (other == this);
          }
          /**
           * 
           * @return 
           */
          @Override
          public int hashCode() {
              return (usuarioDTO.getId() != null) ? (this.getClass().hashCode() + usuarioDTO.getId().hashCode()) : super.hashCode();
          }
          
          /**
           * 
           * @param event 
           */
          @Override
          public void valueBound(HttpSessionBindingEvent event) {
              HttpSession session = usuariosLogueados.remove(this);
              if (session != null) {
                  session.invalidate();
              }
              usuariosLogueados.put(this, event.getSession());
          }
          /**
           * 
           * @param event 
           */
          @Override
          public void valueUnbound(HttpSessionBindingEvent event) {
              
              Long idUsuarioLogin = this.getIdUsuarioLogLogin();
              usuariosLogueados.remove(this);
              //logout
              try {
                  
                  ILocalBonCargoDB iLocalBonCargoDB = ContextLookUpUtils.getInstance().getOperacionesBoncargoDB();
                  iLocalBonCargoDB.registrarLogoutUsuario( idUsuarioLogin );
                  
              } catch (Exception e) {
                  LogBonCargo.error(e);
              }
              
          }
          public UsuarioLogeadoDTO() {
          }
      
          public UsuarioLogeadoDTO(String carpetaRecursosEmpresa) {
              this.carpetaRecursosEmpresa = carpetaRecursosEmpresa;
          }
          
          public UsuarioDTO getUsuarioDTO() {
              return usuarioDTO;
          }
          public void setUsuarioDTO(UsuarioDTO usuarioDTO) {
              this.usuarioDTO = usuarioDTO;
          }
          public List<RolUsuarioDTO> getListaRolUsuarioLogeadoDTO() {
              if( listaRolUsuarioLogeadoDTO == null ){
                  listaRolUsuarioLogeadoDTO = new ArrayList<>();
              }
              return listaRolUsuarioLogeadoDTO;
          }
      }
      
      

      Y el listener ya está anunciado en el web.XML

      Por favor ayuda, ya no se que mas colocar