1 Reply Latest reply on Jul 10, 2015 11:23 AM by Radoslav Husar

    WildFly failing to start as daemon after reboot.

    evapizana Newbie

      Hi,

      I have created a Mac OS X daemon to start WildFly. The first time it all works fine. But after I reboot the machine, the daemon is starting WildFly but WildFly fails to start.

       

      The first error shown has to do with MODCLUSTER, so I am guessing what can be wrong with my config?
      The rest are errors with my war file, but are they making WildFly no to even start?

       

       

      The error log I get is the following:

       

      2014-02-07 09:37:36,511 INFO  [org.jboss.modcluster] (ServerService Thread Pool -- 54) MODCLUSTER000002: Initiating mod_cluster shutdown
      2014-02-07 09:37:36,511 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-1) JBAS017532: Host default-host stopping
      2014-02-07 09:37:36,512 WARN  [org.jboss.modcluster] (ServerService Thread Pool -- 54) MODCLUSTER000033: Failed to interrupt socket reception.: java.io.IOException: Can't assign requested address
        at java.net.PlainDatagramSocketImpl.send(Native Method) [rt.jar:1.7.0_51]
        at java.net.DatagramSocket.send(DatagramSocket.java:676) [rt.jar:1.7.0_51]
        at org.jboss.modcluster.advertise.impl.AdvertiseListenerImpl.interruptDatagramReader(AdvertiseListenerImpl.java:208)
        at org.jboss.modcluster.advertise.impl.AdvertiseListenerImpl.stop(AdvertiseListenerImpl.java:227)
        at org.jboss.modcluster.advertise.impl.AdvertiseListenerImpl.destroy(AdvertiseListenerImpl.java:243)
        at org.jboss.modcluster.ModClusterService.shutdown(ModClusterService.java:220)
        at org.wildfly.extension.mod_cluster.ContainerEventHandlerService.stop(ContainerEventHandlerService.java:115)
        at org.jboss.as.clustering.msc.AsynchronousService$2.run(AsynchronousService.java:114) [wildfly-clustering-common-8.0.0.CR1.jar:8.0.0.CR1]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]
        at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]
        at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.1.Final.jar:2.1.1.Final]
      
      
      2014-02-07 09:37:36,522 WARN  [org.jboss.msc.service.fail] (MSC service thread 1-14) MSC000004: Failure during stop of service jboss.ws.endpoint."mywar.war"."com.company.commons.web.services.performance.statsWS": java.lang.ExceptionInInitializerError
        at com.company.util.threading.ThreadPoolEx.<init>(TSThreadPoolEx.java:92)
        at com.company.util.threading.TSThreadPoolEx.<init>(TSThreadPoolEx.java:51)
        at com.company.javaext.common.XSystem.<clinit>(XSystem.java:1078)
        at com.company.javaext.util.appserver.PerformanceMonitor.createInstance(TSPerformanceMonitor.java:61)
        at com.company.javaext.util.appserver.PerformanceMonitor.getInstance(TSPerformanceMonitor.java:45)
        at com.company.commons.web.services.performance.statsWS.getPerformanceMonitor(TSCPUStatsWeb.java:188)
        at com.company.commons.web.services.performance.statsWS$TSCPUStatsListener.onStop(TSCPUStatsWeb.java:56)
        at com.company.commons.web.services.listeners.WebServiceListener.handleNotification2(TSWebServiceListener.java:75)
        at org.jboss.system.ListenerServiceMBeanSupport.handleNotification(ListenerServiceMBeanSupport.java:391)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor$ListenerWrapper.handleNotification(DefaultMBeanServerInterceptor.java:1754) [rt.jar:1.7.0_51]
        at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:274) [rt.jar:1.7.0_51]
        at javax.management.NotificationBroadcasterSupport$SendNotifJob.run(NotificationBroadcasterSupport.java:339) [rt.jar:1.7.0_51]
        at javax.management.NotificationBroadcasterSupport$1.execute(NotificationBroadcasterSupport.java:324) [rt.jar:1.7.0_51]
        at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:247) [rt.jar:1.7.0_51]
        at javax.management.MBeanServerDelegate.sendNotification(MBeanServerDelegate.java:209) [rt.jar:1.7.0_51]
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.sendNotification(DefaultMBeanServerInterceptor.java:1498) [rt.jar:1.7.0_51]
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterFromRepository(DefaultMBeanServerInterceptor.java:1952) [rt.jar:1.7.0_51]
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(DefaultMBeanServerInterceptor.java:447) [rt.jar:1.7.0_51]
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:415) [rt.jar:1.7.0_51]
        at com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:546) [rt.jar:1.7.0_51]
        at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.unregisterMBean(PluggableMBeanServerImpl.java:1540) [wildfly-jmx-8.0.0.CR1.jar:8.0.0.CR1]
        at org.jboss.as.jmx.PluggableMBeanServerImpl.unregisterMBean(PluggableMBeanServerImpl.java:1058) [wildfly-jmx-8.0.0.CR1.jar:8.0.0.CR1]
        at org.jboss.as.webservices.service.EndpointService.unregisterEndpoint(EndpointService.java:149)
        at org.jboss.as.webservices.service.EndpointService.stop(EndpointService.java:123)
        at org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:2056) [jboss-msc-1.2.0.CR1.jar:1.2.0.CR1]
        at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:2017) [jboss-msc-1.2.0.CR1.jar:1.2.0.CR1]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]
        at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]
      Caused by: java.lang.IllegalStateException: Shutdown in progress
        at java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66) [rt.jar:1.7.0_51]
        at java.lang.Runtime.addShutdownHook(Runtime.java:211) [rt.jar:1.7.0_51]
        at com.company.util.threading.JVMShutdownThread.<init>(TSJVMShutdownThread.java:48)
        at com.company.util.threading.JVMShutdownThread.<clinit>(TSJVMShutdownThread.java:94)
        ... 29 more
      
      
      2014-02-07 09:37:36,677 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.deployment.unit."mywar.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."mywar.war".WeldStartService: Failed to start service
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.0.CR1.jar:1.2.0.CR1]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]
        at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]
      Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type Set<Service> with qualifiers @Default
        at injection point [BackedAnnotatedParameter] Parameter 1 of [BackedAnnotatedConstructor] @Inject com.google.gwt.thirdparty.guava.common.util.concurrent.ServiceManager(Set<Service>)
        at com.google.gwt.thirdparty.guava.common.util.concurrent.ServiceManager.<init>(ServiceManager.java:0)
      
      
        at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:361)
        at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:282)
        at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:133)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:164)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:507)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_51]
        ... 3 more
      
      
      2014-02-07 09:37:36,683 INFO  [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016009: Stopping weld service for deployment mywar.war
      2014-02-07 09:37:36,683 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-11) JBAS010409: Unbound data source [java:jboss/datasources/ExampleDS]
      2014-02-07 09:37:36,684 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) JBAS010418: Stopped Driver service with driver-name = h2
      2014-02-07 09:37:36,774 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-5) JBAS017521: Undertow AJP listener ajp suspending
      2014-02-07 09:37:36,774 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-16) JBAS017521: Undertow HTTP listener default suspending
      2014-02-07 09:37:36,775 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-16) JBAS017520: Undertow HTTP listener default stopped, was bound to MEX-LAP-MAC14.local/127.0.0.1:8080
      2014-02-07 09:37:36,776 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-5) JBAS017520: Undertow AJP listener ajp stopped, was bound to MEX-LAP-MAC14.local/127.0.0.1:8009
      2014-02-07 09:37:36,777 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-16) JBAS017506: Undertow 1.0.0.Beta30 stopping
      2014-02-07 09:37:36,931 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015877: Stopped deployment mywar.war (runtime-name: mywar.war) in 434ms
      2014-02-07 09:37:36,935 INFO  [org.jboss.as] (MSC service thread 1-13) JBAS015950: WildFly 8.0.0.CR1 "WildFly" stopped in 428ms