9 Replies Latest reply on Jun 6, 2013 12:08 AM by ksreen

    standalone-custom.xml problem

    raviteja457

      Hi all,

       

      I created new standalone.xml named as standalone-custom.xml and  i configured some tags in that standalone-custom.xml when i start a server it was running good and fine without error......When i stop and restart the server it will ask a question called do you want to refresh  ...? if i click yes the custom tags are missing again i have to put those and save and restart.............this was my problem .........

       

      Can anyone help i dontwant to refresh the standalone-custom.xml

       

       

      Thanks in advance..............................please help me out............

        • 1. Re: standalone-custom.xml problem
          jaikiran

          Ravi Teja wrote:

           

          Hi all,

           

          When i stop and restart the server it will ask a question called do you want to refresh

          What is that "it"? Who's asking that question? And what custom tags have you added to that configuration?

          • 2. Re: standalone-custom.xml problem
            raviteja457

            Oh sorry if i restart the server the server is asking do you want save ? 

            if i click yes ............

            In standalone-custom.xml  the below tags are missing...?

             

            <jms-connection-factories>

                                <pooled-connection-factory name="hornetq-ra">

                                    <transaction mode="xa"/>

                                    <connectors>

                                        <connector-ref connector-name="netty-remote"/>

                                    </connectors>

                                    <entries>

                                        <entry name="java:/JmsXA"/>

                                    </entries>

                                </pooled-connection-factory>

                            </jms-connection-factories>

            • 3. Re: standalone-custom.xml problem
              erasmomarciano

              Hi

              Wich SO are you using?

              Linux Windows

              • 4. Re: standalone-custom.xml problem
                raviteja457

                ubuntu

                • 5. Re: standalone-custom.xml problem
                  sfcoy

                  It looks like you're editing the file with a text editor while the server is running.

                   

                  Don't do that.

                  • 6. Re: standalone-custom.xml problem
                    raviteja457

                    Ya right how can i resolve that

                    • 7. Re: standalone-custom.xml problem
                      wdfink

                      You should not edit the standalone*.xml if the server is running.

                      You can use the CLI shell (jboss-cli.sh) to modify the configuration during runtime.

                      • 8. Re: standalone-custom.xml problem
                        erasmomarciano

                        Hi

                         

                        Do you want to add a connection-factorie while JBoss is running?

                         

                        You can use web-interface of Jboss or CLI shell (jboss-cli.sh) like Wolf-Dieter Fink says

                        • 9. Re: standalone-custom.xml problem
                          ksreen

                          The standalone configuration folder will have multiple xmls. One that was used for the first start of the server. Then the last version that was used to start the server successfully and finally the current version you have modified.

                          If something is wrong, it replaces the xml with the last successfully started xml. Hence, may be your entries are missing.

                          So, after you restart check the log file if there are any parse errors (in the custom tag u have added) and make sure that all the services are started and none have failed. If you see any failed services, that should give you an idea of what is wrong.