2 Replies Latest reply on Mar 22, 2011 4:07 PM by Peter Johnson

    We cannot start jboss as from run.bat file

    Key Maker Newbie

      Hi people,

       

      we have a terrible problem wasting our time for a while. We are creating a war file in eclipse and deploying it to the JBOSS AS 4.2. If we start the application server from eclipse's servers view, the server starts without a problem. But if we try to start the server through using "run.bat" file from inside the jboss installation folder, the server is getting in an infinite loop.

       

      We really don't understand the reason and we don't have the opportunity to start the server from eclipse.

       

      Here is some log :

       

      2011-03-22 16:15:58,393 INFO  [STDOUT] 2011-03-22 16:15:58,393 DEBUG -   No rules found matching 'resource-config'.

      2011-03-22 16:15:58,394 INFO  [STDOUT] 2011-03-22 16:15:58,394 DEBUG - characters(

      )

      2011-03-22 16:15:58,394 INFO  [STDOUT] 2011-03-22 16:15:58,394 DEBUG - characters(

      )

      2011-03-22 16:15:58,394 INFO  [STDOUT] 2011-03-22 16:15:58,394 DEBUG - endElement(,,resource-config)

      2011-03-22 16:15:58,394 INFO  [STDOUT] 2011-03-22 16:15:58,394 DEBUG -   match='resource-config'

      2011-03-22 16:15:58,394 INFO  [STDOUT] 2011-03-22 16:15:58,394 DEBUG -   bodyText='

      '

      2011-03-22 16:15:58,394 INFO  [STDOUT] 2011-03-22 16:15:58,394 DEBUG -   No rules found matching 'resource-config'.

      2011-03-22 16:15:58,394 INFO  [STDOUT] 2011-03-22 16:15:58,394 DEBUG -   Popping body text ''

      2011-03-22 16:15:58,394 INFO  [STDOUT] 2011-03-22 16:15:58,394 DEBUG - endDocument()

      2011-03-22 16:15:58,394 INFO  [STDOUT] 2011-03-22 16:15:58,394 DEBUG - Process resources configuration file jar:file:/C:/dev/vsme/jboss-4.2.3.GA-jdk6/jboss-4.2.3.GA/server/default/tmp/deploy/tmp7036313473592387206vsme-gui-exp.war/WEB-INF/lib/richfaces-impl-3.3.3.Final.jar!/META-INF/resources-config.xml

      2011-03-22 16:15:58,396 INFO  [STDOUT] 2011-03-22 16:15:58,396 DEBUG - setDocumentLocator(org.apache.xerces.parsers.AbstractSAXParser$LocatorProxy@72c950)

      2011-03-22 16:15:58,396 INFO  [STDOUT] 2011-03-22 16:15:58,396 DEBUG - startDocument()

      2011-03-22 16:15:58,396 INFO  [STDOUT] 2011-03-22 16:15:58,396 DEBUG - startElement(,,resource-config)

      2011-03-22 16:15:58,396 INFO  [STDOUT] 2011-03-22 16:15:58,396 DEBUG -   Pushing body text ''

      2011-03-22 16:15:58,396 INFO  [STDOUT] 2011-03-22 16:15:58,396 DEBUG -   New match='resource-config'

      2011-03-22 16:15:58,397 INFO  [STDOUT] 2011-03-22 16:15:58,397 DEBUG -   No rules found matching 'resource-config'.

      2011-03-22 16:15:58,397 INFO  [STDOUT] 2011-03-22 16:15:58,397 DEBUG - characters(

        )

      2011-03-22 16:15:58,397 INFO  [STDOUT] 2011-03-22 16:15:58,397 DEBUG - startElement(,,resource)

      2011-03-22 16:15:58,397 INFO  [STDOUT] 2011-03-22 16:15:58,397 DEBUG -   Pushing body text '

        '

      2011-03-22 16:15:58,397 INFO  [STDOUT] 2011-03-22 16:15:58,397 DEBUG -   New match='resource-config/resource'

      2011-03-22 16:15:58,397 INFO  [STDOUT] 2011-03-22 16:15:58,397 DEBUG -   Fire begin() for ObjectCreateRule[className=org.ajax4jsf.resource.JarResource, attributeName=class]

      2011-03-22 16:15:58,397 INFO  [STDOUT] 2011-03-22 16:15:58,397 DEBUG - [ObjectCreateRule]{resource-config/resource}New org.ajax4jsf.javascript.AjaxScript

      2011-03-22 16:15:58,400 INFO  [STDOUT] 2011-03-22 16:15:58,400 DEBUG - Return instance of internet resource builder org.ajax4jsf.resource.ResourceBuilderImpl@18a8ae7

      2011-03-22 16:15:58,400 INFO  [STDOUT] 2011-03-22 16:15:58,400 DEBUG - AjaxScript() - Created instance of AjaxScript resource

      2011-03-22 16:15:58,401 INFO  [STDOUT] 2011-03-22 16:15:58,400 DEBUG -   Fire begin() for SetNextRule[methodName=addResource, paramType=org.ajax4jsf.resource.InternetResource]

      2011-03-22 16:15:58,401 INFO  [STDOUT] 2011-03-22 16:15:58,401 DEBUG - characters(

          )

      2011-03-22 16:15:58,401 INFO  [STDOUT] 2011-03-22 16:15:58,401 DEBUG - startElement(,,name)

      2011-03-22 16:15:58,401 INFO  [STDOUT] 2011-03-22 16:15:58,401 DEBUG -   Pushing body text '

          '

      2011-03-22 16:15:58,401 INFO  [STDOUT] 2011-03-22 16:15:58,401 DEBUG -   New match='resource-config/resource/name'

      2011-03-22 16:15:58,401 INFO  [STDOUT] 2011-03-22 16:15:58,401 DEBUG -   Fire begin() for CallMethodRule[methodName=setKey, paramCount=0, paramTypes={java.lang.String}]

      2011-03-22 16:15:58,401 INFO  [STDOUT] 2011-03-22 16:15:58,401 DEBUG - characters(org.ajax4jsf.javascript.AjaxScript)

      2011-03-22 16:15:58,401 INFO  [STDOUT] 2011-03-22 16:15:58,401 DEBUG - endElement(,,name)

      2011-03-22 16:15:58,401 INFO  [STDOUT] 2011-03-22 16:15:58,401 DEBUG -   match='resource-config/resource/name'

      2011-03-22 16:15:58,401 INFO  [STDOUT] 2011-03-22 16:15:58,401 DEBUG -   bodyText='org.ajax4jsf.javascript.AjaxScript'

      2011-03-22 16:15:58,401 INFO  [STDOUT] 2011-03-22 16:15:58,401 DEBUG -   Fire body() for CallMethodRule[methodName=setKey, paramCount=0, paramTypes={java.lang.String}]

      2011-03-22 16:15:58,401 INFO  [STDOUT] 2011-03-22 16:15:58,401 DEBUG -   Popping body text '

          '

      2011-03-22 16:15:58,401 INFO  [STDOUT] 2011-03-22 16:15:58,401 DEBUG -   Fire end() for CallMethodRule[methodName=setKey, paramCount=0, paramTypes={java.lang.String}]

      2011-03-22 16:15:58,403 INFO  [STDOUT] 2011-03-22 16:15:58,403 DEBUG - [CallMethodRule]{resource-config/resource/name} Call org.ajax4jsf.javascript.AjaxScript.setKey(org.ajax4jsf.javascript.AjaxScript/java.lang.String)

      2011-03-22 16:15:58,409 INFO  [STDOUT] 2011-03-22 16:15:58,409 DEBUG - Matching name=setKey on class org.ajax4jsf.javascript.AjaxScript

      2011-03-22 16:15:58,411 INFO  [STDOUT] 2011-03-22 16:15:58,411 DEBUG - Found straight match: public void org.ajax4jsf.resource.InternetResourceBase.setKey(java.lang.String)

      2011-03-22 16:15:58,411 INFO  [STDOUT] 2011-03-22 16:15:58,411 DEBUG - isPublic:true

      2011-03-22 16:15:58,411 INFO  [STDOUT] 2011-03-22 16:15:58,411 DEBUG - characters(

        )

      2011-03-22 16:15:58,411 INFO  [STDOUT] 2011-03-22 16:15:58,411 DEBUG - endElement(,,resource)

      2011-03-22 16:15:58,411 INFO  [STDOUT] 2011-03-22 16:15:58,411 DEBUG -   match='resource-config/resource'

      2011-03-22 16:15:58,411 INFO  [STDOUT] 2011-03-22 16:15:58,411 DEBUG -   bodyText='

       

        '

      2011-03-22 16:15:58,412 INFO  [STDOUT] 2011-03-22 16:15:58,412 DEBUG -   Fire body() for ObjectCreateRule[className=org.ajax4jsf.resource.JarResource, attributeName=class]

      2011-03-22 16:15:58,412 INFO  [STDOUT] 2011-03-22 16:15:58,412 DEBUG -   Fire body() for SetNextRule[methodName=addResource, paramType=org.ajax4jsf.resource.InternetResource]

      2011-03-22 16:15:58,412 INFO  [STDOUT] 2011-03-22 16:15:58,412 DEBUG -   Popping body text '

        '

      2011-03-22 16:15:58,412 INFO  [STDOUT] 2011-03-22 16:15:58,412 DEBUG -   Fire end() for SetNextRule[methodName=addResource, paramType=org.ajax4jsf.resource.InternetResource]

      2011-03-22 16:15:58,413 INFO  [STDOUT] 2011-03-22 16:15:58,413 DEBUG - [SetNextRule]{resource-config/resource} Call org.ajax4jsf.resource.ResourceBuilderImpl.addResource(org.ajax4jsf.javascript.AjaxScript@206be6)

      2011-03-22 16:15:58,413 INFO  [STDOUT] 2011-03-22 16:15:58,413 DEBUG - Matching name=addResource on class org.ajax4jsf.resource.ResourceBuilderImpl

      2011-03-22 16:15:58,416 INFO  [STDOUT] 2011-03-22 16:15:58,416 DEBUG - Found straight match: public void org.ajax4jsf.resource.ResourceBuilderImpl.addResource(org.ajax4jsf.resource.InternetResource)

      2011-03-22 16:15:58,416 INFO  [STDOUT] 2011-03-22 16:15:58,416 DEBUG - isPublic:true

      2011-03-22 16:15:58,416 INFO  [STDOUT] 2011-03-22 16:15:58,416 DEBUG -   Fire end() for ObjectCreateRule[className=org.ajax4jsf.resource.JarResource, attributeName=class]

      2011-03-22 16:15:58,416 INFO  [STDOUT] 2011-03-22 16:15:58,416 DEBUG - [ObjectCreateRule]{resource-config/resource} Pop org.ajax4jsf.javascript.AjaxScript

      2011-03-22 16:15:58,417 INFO  [STDOUT] 2011-03-22 16:15:58,417 DEBUG - characters(

        )

      2011-03-22 16:15:58,417 INFO  [STDOUT] 2011-03-22 16:15:58,417 DEBUG - startElement(,,resource)

      2011-03-22 16:15:58,417 INFO  [STDOUT] 2011-03-22 16:15:58,417 DEBUG -   Pushing body text '

       

        '

      2011-03-22 16:15:58,417 INFO  [STDOUT] 2011-03-22 16:15:58,417 DEBUG -   New match='resource-config/resource'

      2011-03-22 16:15:58,417 INFO  [STDOUT] 2011-03-22 16:15:58,417 DEBUG -   Fire begin() for ObjectCreateRule[className=org.ajax4jsf.resource.JarResource, attributeName=class]

      2011-03-22 16:15:58,421 INFO  [STDOUT] 2011-03-22 16:15:58,421 DEBUG - [ObjectCreateRule]{resource-config/resource}New org.ajax4jsf.javascript.SmartPositionScript

      2011-03-22 16:15:58,426 INFO  [STDOUT] 2011-03-22 16:15:58,426 DEBUG - Return instance of internet resource builder org.ajax4jsf.resource.ResourceBuilderImpl@18a8ae7

      2011-03-22 16:15:58,426 INFO  [STDOUT] 2011-03-22 16:15:58,426 DEBUG -   Fire begin() for SetNextRule[methodName=addResource, paramType=org.ajax4jsf.resource.InternetResource]

      2011-03-22 16:15:58,426 INFO  [STDOUT] 2011-03-22 16:15:58,426 DEBUG - characters(

          )

      2011-03-22 16:15:58,426 INFO  [STDOUT] 2011-03-22 16:15:58,426 DEBUG - startElement(,,name)

      2011-03-22 16:15:58,426 INFO  [STDOUT] 2011-03-22 16:15:58,426 DEBUG -   Pushing body text '

          '

      2011-03-22 16:15:58,427 INFO  [STDOUT] 2011-03-22 16:15:58,427 DEBUG -   New match='resource-config/resource/name'

      2011-03-22 16:15:58,427 INFO  [STDOUT] 2011-03-22 16:15:58,427 DEBUG -   Fire begin() for CallMethodRule[methodName=setKey, paramCount=0, paramTypes={java.lang.String}]

      2011-03-22 16:15:58,427 INFO  [STDOUT] 2011-03-22 16:15:58,427 DEBUG - characters(org.ajax4jsf.javascript.SmartPositionScript)

      2011-03-22 16:15:58,427 INFO  [STDOUT] 2011-03-22 16:15:58,427 DEBUG - endElement(,,name)

      2011-03-22 16:15:58,427 INFO  [STDOUT] 2011-03-22 16:15:58,427 DEBUG -   match='resource-config/resource/name'

      2011-03-22 16:15:58,427 INFO  [STDOUT] 2011-03-22 16:15:58,427 DEBUG -   bodyText='org.ajax4jsf.javascript.SmartPositionScript'

      2011-03-22 16:15:58,427 INFO  [STDOUT] 2011-03-22 16:15:58,427 DEBUG -   Fire body() for CallMethodRule[methodName=setKey, paramCount=0, paramTypes={java.lang.String}]

      2011-03-22 16:15:58,427 INFO  [STDOUT] 2011-03-22 16:15:58,427 DEBUG -   Popping body text '

          '

      2011-03-22 16:15:58,427 INFO  [STDOUT] 2011-03-22 16:15:58,427 DEBUG -   Fire end() for CallMethodRule[methodName=setKey, paramCount=0, paramTypes={java.lang.String}]

      2011-03-22 16:15:58,427 INFO  [STDOUT] 2011-03-22 16:15:58,427 DEBUG - [CallMethodRule]{resource-config/resource/name} Call org.ajax4jsf.javascript.SmartPositionScript.setKey(org.ajax4jsf.javascript.SmartPositionScript/java.lang.String)

      2011-03-22 16:15:58,427 INFO  [STDOUT] 2011-03-22 16:15:58,427 DEBUG - Matching name=setKey on class org.ajax4jsf.javascript.SmartPositionScript

      2011-03-22 16:15:58,428 INFO  [STDOUT] 2011-03-22 16:15:58,428 DEBUG - Found straight match: public void org.ajax4jsf.resource.InternetResourceBase.setKey(java.lang.String)

      2011-03-22 16:15:58,428 INFO  [STDOUT] 2011-03-22 16:15:58,428 DEBUG - isPublic:true

      2011-03-22 16:15:58,428 INFO  [STDOUT] 2011-03-22 16:15:58,428 DEBUG - characters(

        )

      2011-03-22 16:15:58,428 INFO  [STDOUT] 2011-03-22 16:15:58,428 DEBUG - endElement(,,resource)

      2011-03-22 16:15:58,428 INFO  [STDOUT] 2011-03-22 16:15:58,428 DEBUG -   match='resource-config/resource'

      2011-03-22 16:15:58,428 INFO  [STDOUT] 2011-03-22 16:15:58,428 DEBUG -   bodyText='

       

        '

      2011-03-22 16:15:58,428 INFO  [STDOUT] 2011-03-22 16:15:58,428 DEBUG -   Fire body() for ObjectCreateRule[className=org.ajax4jsf.resource.JarResource, attributeName=class]

      2011-03-22 16:15:58,428 INFO  [STDOUT] 2011-03-22 16:15:58,428 DEBUG -   Fire body() for SetNextRule[methodName=addResource, paramType=org.ajax4jsf.resource.InternetResource]

      2011-03-22 16:15:58,428 INFO  [STDOUT] 2011-03-22 16:15:58,428 DEBUG -   Popping body text '

       

        '

      2011-03-22 16:15:58,428 INFO  [STDOUT] 2011-03-22 16:15:58,428 DEBUG -   Fire end() for SetNextRule[methodName=addResource, paramType=org.ajax4jsf.resource.InternetResource]

      2011-03-22 16:15:58,433 INFO  [STDOUT] 2011-03-22 16:15:58,433 DEBUG - [SetNextRule]{resource-config/resource} Call org.ajax4jsf.resource.ResourceBuilderImpl.addResource(org.ajax4jsf.javascript.SmartPositionScript@be8216)

      2011-03-22 16:15:58,433 INFO  [STDOUT] 2011-03-22 16:15:58,433 DEBUG - Matching name=addResource on class org.ajax4jsf.resource.ResourceBuilderImpl

      2011-03-22 16:15:58,433 INFO  [STDOUT] 2011-03-22 16:15:58,433 DEBUG -   Fire end() for ObjectCreateRule[className=org.ajax4jsf.resource.JarResource, attributeName=class]

      2011-03-22 16:15:58,438 INFO  [STDOUT] 2011-03-22 16:15:58,438 DEBUG - [ObjectCreateRule]{resource-config/resource} Pop org.ajax4jsf.javascript.SmartPositionScript

      2011-03-22 16:15:58,438 INFO  [STDOUT] 2011-03-22 16:15:58,438 DEBUG - characters(

        )

      2011-03-22 16:15:58,438 INFO  [STDOUT] 2011-03-22 16:15:58,438 DEBUG - startElement(,,resource)

      2011-03-22 16:15:58,439 INFO  [STDOUT] 2011-03-22 16:15:58,439 DEBUG -   Pushing body text '

       

       

        '

      2011-03-22 16:15:58,439 INFO  [STDOUT] 2011-03-22 16:15:58,439 DEBUG -   New match='resource-config/resource'

      2011-03-22 16:15:58,439 INFO  [STDOUT] 2011-03-22 16:15:58,439 DEBUG -   Fire begin() for ObjectCreateRule[className=org.ajax4jsf.resource.JarResource, attributeName=class]

      2011-03-22 16:15:58,439 INFO  [STDOUT] 2011-03-22 16:15:58,439 DEBUG - [ObjectCreateRule]{resource-config/resource}New org.ajax4jsf.javascript.AjaxScript

      2011-03-22 16:15:58,439 INFO  [STDOUT] 2011-03-22 16:15:58,439 DEBUG - Return instance of internet resource builder org.ajax4jsf.resource.ResourceBuilderImpl@18a8ae7

      2011-03-22 16:15:58,440 INFO  [STDOUT] 2011-03-22 16:15:58,440 DEBUG - AjaxScript() - Created instance of AjaxScript resource

      2011-03-22 16:15:58,440 INFO  [STDOUT] 2011-03-22 16:15:58,440 DEBUG -   Fire begin() for SetNextRule[methodName=addResource, paramType=org.ajax4jsf.resource.InternetResource]

      2011-03-22 16:15:58,440 INFO  [STDOUT] 2011-03-22 16:15:58,440 DEBUG - characters(

          )

      2011-03-22 16:15:58,440 INFO  [STDOUT] 2011-03-22 16:15:58,440 DEBUG - startElement(,,name)

      2011-03-22 16:15:58,440 INFO  [STDOUT] 2011-03-22 16:15:58,440 DEBUG -   Pushing body text '

          '

      2011-03-22 16:15:58,441 INFO  [STDOUT] 2011-03-22 16:15:58,441 DEBUG -   New match='resource-config/resource/name'

      2011-03-22 16:15:58,441 INFO  [STDOUT] 2011-03-22 16:15:58,441 DEBUG -   Fire begin() for CallMethodRule[methodName=setKey, paramCount=0, paramTypes={java.lang.String}]

      2011-03-22 16:15:58,441 INFO  [STDOUT] 2011-03-22 16:15:58,441 DEBUG - characters(ajax.js)

      2011-03-22 16:15:58,441 INFO  [STDOUT] 2011-03-22 16:15:58,441 DEBUG - endElement(,,name)

      2011-03-22 16:15:58,441 INFO  [STDOUT] 2011-03-22 16:15:58,441 DEBUG -   match='resource-config/resource/name'

      2011-03-22 16:15:58,442 INFO  [STDOUT] 2011-03-22 16:15:58,442 DEBUG -   bodyText='ajax.js'

      2011-03-22 16:15:58,442 INFO  [STDOUT] 2011-03-22 16:15:58,442 DEBUG -   Fire body() for CallMethodRule[methodName=setKey, paramCount=0, paramTypes={java.lang.String}]

      2011-03-22 16:15:58,442 INFO  [STDOUT] 2011-03-22 16:15:58,442 DEBUG -   Popping body text '

          '

      2011-03-22 16:15:58,442 INFO  [STDOUT] 2011-03-22 16:15:58,442 DEBUG -   Fire end() for CallMethodRule[methodName=setKey, paramCount=0, paramTypes={java.lang.String}]

      2011-03-22 16:15:58,442 INFO  [STDOUT] 2011-03-22 16:15:58,442 DEBUG - [CallMethodRule]{resource-config/resource/name} Call org.ajax4jsf.javascript.AjaxScript.setKey(ajax.js/java.lang.String)

      2011-03-22 16:15:58,443 INFO  [STDOUT] 2011-03-22 16:15:58,443 DEBUG - Matching name=setKey on class org.ajax4jsf.javascript.AjaxScript

      2011-03-22 16:15:58,443 INFO  [STDOUT] 2011-03-22 16:15:58,443 DEBUG - characters(

        )

       

      Please help us! Any kind of help is appreciated.

       

      Thanks.

        • 1. We cannot start jboss as from run.bat file
          Wolf-Dieter Fink Master

          Please edit your comment and attach the log output instead of pasting it into the post, it will make the thread unreadable.

           

          If you try to start a clean jboss (e.g. install new in parallel to C:/dev/vsme/jboss-4.2.3.GA-jdk6) without any error?

          If not I suppose your cmd setting is different from eclipse.

          Also it look like that your app use STDOUT instead of logging with log4j.

           

          So try to check with a clean installation and if this will work attach boot.log and server.log from your start with run.bat (you should check whether you use the same JDK)

          • 2. We cannot start jboss as from run.bat file
            Peter Johnson Master

            I am afraid that we will not be able to debug the infinite loop within your code since we don't have your code and therefore do not know what it does. If you can share the code with us, please attache the relevant source files (the ones the match the STDOUT entires you posted). If you cannot share the code, then it will be up to you to find the infinite loop.

             

            By the way, I recommend that you start JBoss AS with your app not deployed. Once JBoss AS has finished starting up, then copy your app to the deploy folder and see what happens.