11 Replies Latest reply on Sep 3, 2008 12:32 PM by jagdeep

    JBoss application startup exception

      Hello,
      1)I have an eval version of JON setup on my local box. I have the server and agent running on the same box.
      2) I have two simple web app configuration in JBoss, again JBoss 4.2.2GA and the apps are in the same local box. I can start and run these apps independently (outside of JON)

      I am trying to start the applications from JON, and am getting the following exception for both apps.
      I have defined a bind address of 0.0.0.0 in my run.sh script.
      My App2 uses default JBoss binding configuration and App1 uses the port-02 setup from the examples file.

      Could someone suggest what should be done?

      java.lang.RuntimeException: Server failed to start:
      at org.rhq.plugins.jbossas.JBossASServerOperationsDelegate.start(JBossASServerOperationsDelegate.java:146)
      at org.rhq.plugins.jbossas.JBossASServerOperationsDelegate.invoke(JBossASServerOperationsDelegate.java:103)
      at org.rhq.plugins.jbossas.JBossASServerComponent.invokeOperation(JBossASServerComponent.java:348)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:446)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
      at java.util.concurrent.FutureTask.run(FutureTask.java:123)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      at java.lang.Thread.run(Thread.java:595)

        • 1. Re: JBoss application startup exception

          Hi could someone please help me with this? My eval version is expiring pretty soon, so I need to complete my evaluation. Any thoughts would be appreciated.
          Thanks.

          • 2. Re: JBoss application startup exception
            pilhuhn

            Hello,

            when you first took your applications into inventory, did they show up correctly?
            And do you "only" get the exception or does the appserver(s) not come back up again?

            Can you -- when the AS are in inventory -- go to the inventory tab and verify the connection properties -- especially that the run.sh scripts are detected correctly

            Thanks
            Heiko

            • 3. Re: JBoss application startup exception
              pilhuhn

              And: is this the complete output in the log or is there additional information before or after the stack trace?

              • 4. Re: JBoss application startup exception
                ips

                Hi,

                When you say "starting your apps", I assume you mean starting the JBossAS instances those apps are deployed to.

                After the Start operation executes the start script (i.e. run.sh), it goes into a loop which checks every 5 seconds whether the AS instance responds to a ping (a ping being connecting to the remote JMX server and calling getAttribute("Started") on the "jboss.system:type=Server" MBean and seeing if that call returns any value). If it hasn't successfully pinged the instance after 20 seconds, it throws the "Server failed to start" RuntimeException you are seeing.

                Does the instance in question ever start up or does it truly fail to start? If it does start up, is it possibly taking longer than 20 seconds to start?

                -Ian


                • 5. Re: JBoss application startup exception

                  Hi Heiko, Ian,

                  Long read, but am trying to answer all questions you have asked.
                  1) By start, I am going to the operations tab / start operation for that recognized application serevr instance.
                  2) I first try APP2, a failure is reported, but when I try it , I see it is UP. The other day, I was seeing the exact log that I reported below, no more. Today I see the entire JBoss startup log sandwitched between the failure exception reported below.
                  3) I try my second app APP1, a failure is reported. On trying, it is DOWN. The exception reported is same as below, no more.
                  4) I tried to compare both configurations and the only difference I see is the one which came up (APP2) is going against the run.BAT file, the other one is going against run.SH (though, outside of the JON, I have made sure both scripts are similar and I can successfully start the servers through double clicking the BAT or invoking the SH through Cygwin)
                  5) I try editing this,and point to run.BAT and save, and I get a big exception (pasted in next comment).
                  6) Sporadically, in the past I have had start operation 'success'.
                  7) Ian, the instance does take more than 20 secs to start. Is this a configuration? where can I set it? By the way, I observe that the operation stays 'in progress' mode fro about 2 mins, refreshing at certain intervals, before reporting failure.

                  Let me know if I can post any more information.

                  • 6. Re: JBoss application startup exception

                    The exception I get when I try to change the start script path from run.sh to run.bat:

                    Unable to update this resource's connection properties. org.rhq.core.clientapi.agent.discovery.InvalidPluginConfigurationClientException: Unable to connect to managed resource of type 'JBossAS Server' using the specified connection properties. Failed to start component for resource Resource[id=501649, type=JBossAS Server, key=C:\software\jboss-4.2.2.GA\server\app1, name=MyServer JBossAS 4.2.2.GA app1 (0.0.0.0:1299), version=4.2.2.GA]. at org.rhq.core.pc.inventory.InventoryManager.updatePluginConfiguration(InventoryManager.java:291) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.rhq.enterprise.communications.command.impl.remotepojo.server.RemotePojoInvocationCommandService.execute(RemotePojoInvocationCommandService.java:184) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:414) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:201) at $Proxy1.execute(Unknown Source) at org.rhq.enterprise.communications.command.server.CommandProcessor.handleIncomingInvocationRequest(CommandProcessor.java:335) at org.rhq.enterprise.communications.command.server.CommandProcessor.invoke(CommandProcessor.java:230) at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:734) at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:560) at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:383) at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:165) Caused by: java.lang.Exception: [Warning] Unable to connect to JBoss Server ... 22 more Caused by: org.mc4j.ems.connection.EmsConnectException: [Warning] Could not connect [jnp://127.0.0.1:1299] javax.naming.CommunicationException: Could not obtain connection to any of these urls: 127.0.0.1:1299 [Root exception is javax.naming.CommunicationException: Failed to connect to server 127.0.0.1:1299 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server 127.0.0.1:1299 [Root exception is java.net.ConnectException: Connection refused: connect]]] at org.rhq.core.util.exception.WrappedRemotingException.getCause(WrappedRemotingException.java:117) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:496) at java.lang.Throwable.printStackTrace(Throwable.java:469) at org.rhq.core.clientapi.server.configuration.ConfigurationUpdateResponse.setErrorMessageFromThrowable(ConfigurationUpdateResponse.java:112) at org.rhq.core.clientapi.server.configuration.ConfigurationUpdateResponse.(ConfigurationUpdateResponse.java:55) at org.rhq.enterprise.server.configuration.ConfigurationManagerBean.executePluginConfigurationUpdate(ConfigurationManagerBean.java:184) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112) at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166) at org.rhq.enterprise.server.authz.RequiredPermissionsInterceptor.checkRequiredPermissions(RequiredPermissionsInterceptor.java:153) at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118) at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79) at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:253) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77) at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:214) at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:184) at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:81) at $Proxy257.executePluginConfigurationUpdate(Unknown Source) at org.rhq.enterprise.server.configuration.ConfigurationManagerBean.completePluginConfigurationUpdate(ConfigurationManagerBean.java:139) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112) at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166) at org.rhq.enterprise.server.authz.RequiredPermissionsInterceptor.checkRequiredPermissions(RequiredPermissionsInterceptor.java:153) at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118) at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126) at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77) at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:214) at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:184) at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:81) at $Proxy257.completePluginConfigurationUpdate(Unknown Source) at org.rhq.enterprise.server.configuration.ConfigurationManagerBean.updatePluginConfiguration(ConfigurationManagerBean.java:214) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112) at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166) at org.rhq.enterprise.server.authz.RequiredPermissionsInterceptor.checkRequiredPermissions(RequiredPermissionsInterceptor.java:153) at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118) at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79) at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77) at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:214) at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:184) at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:81) at $Proxy257.updatePluginConfiguration(Unknown Source) at org.rhq.enterprise.gui.inventory.resource.ConnectionPropertiesUIBean.update(ConnectionPropertiesUIBean.java:92) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.el.parser.AstValue.invoke(AstValue.java:131) at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276) at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68) at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) at javax.faces.component.UICommand.broadcast(UICommand.java:387) at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184) at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162) at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141) at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.rhq.enterprise.gui.legacy.AuthenticationFilter.doFilter(AuthenticationFilter.java:128) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.rhq.enterprise.gui.common.upload.MultipartFilter.doFilter(MultipartFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.rhq.helpers.rtfilter.filter.RtFilter.doFilter(RtFilter.java:112) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:595) Caused by: javax.naming.CommunicationException: [Warning] Could not obtain connection to any of these urls: 127.0.0.1:1299 at org.rhq.core.util.exception.WrappedRemotingException.getCause(WrappedRemotingException.java:117) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:496) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:498) ... 160 more Caused by: javax.naming.CommunicationException: [Warning] Failed to connect to server 127.0.0.1:1299 at org.rhq.core.util.exception.WrappedRemotingException.getCause(WrappedRemotingException.java:117) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:496) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:498) ... 161 more Caused by: javax.naming.ServiceUnavailableException: [Warning] Failed to connect to server 127.0.0.1:1299 at org.rhq.core.util.exception.WrappedRemotingException.getCause(WrappedRemotingException.java:117) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:496) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:498) ... 162 more Caused by: java.net.ConnectException: [Warning] Connection refused: connect at org.rhq.core.util.exception.WrappedRemotingException.getCause(WrappedRemotingException.java:117) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:496) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:498) ... 163 more

                    • 7. Re: JBoss application startup exception
                      pilhuhn

                      About the .sh issue: is this file read- and executable for the JBossON agent? I have seen failures, when the script had no x-bit set. This is of course no issue on Windows.

                      • 8. Re: JBoss application startup exception

                        Hi Heiko,
                        Thanks, that solves part of the problem. The file had rwx for user only. I gave it rwx for user , group and others. And the application (APP1) comes up.
                        But the other problems remain:
                        1) I see the exception sandwitched inbetween the startup logs.
                        2) JON reports a failure on the start operation.

                        Ian had mentioned the timeout of 20 secs. Where can I adjust that? I know my application usually takes a minute or more to come up. Maybe setting that value higher would help in the correct working of JON.

                        • 9. Re: JBoss application startup exception
                          pilhuhn

                          Hello,

                          when you go to the operations tab, and have selected an operation, it will show additional fields like when to invoke the operation and if this should be repeated. At the bottom, there is also a timeout field. Try putting 60000 as value in it if the start of your app is 60s - or perhaps even a bigger value.

                          Heiko

                          • 10. Re: JBoss application startup exception

                            Hi Heiko,

                            I tried incremeting the timeout to a comfortably extra value, but that doesn't seem to help.

                            One observation was: I tailed my application's server.log, and it seems when I start from JON, the log is verbose (DEBUG)...though when I look at jboss/server/<my app>/conf/jboss-log4j.xml, the console threshold is INFO.

                            Is this level set somewhere in JON also?

                            Thanks,
                            Jagdeep

                            • 11. Re: JBoss application startup exception

                              hello, my server starts in about 55 seconds. I have put the time outs to 300000 milliseconds during the start operations. The server started once and JON showed success. After shutting fown through JON and retrying, it once again shows failure with the same exception (in actuality it has started).

                              I am pretty confused at this point with respect to timeouts and why a server would start once and show failure on the next.

                              Any suggestions , thoughts are welcome.