8 Replies Latest reply on Sep 27, 2013 2:00 PM by Wolf-Dieter Fink

    How to create a new profile in jboss-eap-5.1.2

    Dan Jacob Newbie

      How can I create a seperate profile in jboss other than the default profile? What all are the steps I need to follow while creating a new profile?

      Can anyone please help me with this?

        • 1. Re: How to create a new profile in jboss-eap-5.1.2
          Anders Welen Apprentice
          1. Copy the configuration you want to base your config on (in this example "default")
            cp -R $JBOSS_HOME/server/default $JBOSS_HOME/server/myConfig
          2. Start the new config
            ./run.sh -c myConfig
          1 of 1 people found this helpful
          • 2. Re: How to create a new profile in jboss-eap-5.1.2
            erasmo2 marciano2 Master

            Hi


            It seeem to me tah you can not create profiles in jboss 5


            The profile default,full, full-ha is a feature of version 7


            You can start new instance example default default2 default3 ...


            You have run this command


            ./run.sh -c YOUR-INSTANCE

            • 3. Re: How to create a new profile in jboss-eap-5.1.2
              Dan Jacob Newbie

              Thanks for your guidence.

              How do we handle, if we have more than one instances that are running in the same jboss server? Is it an effective and efficient way if we use different port nos for two seperate instances? If yes where do I need to update the port nos? I belive it has to do in jboss-service.xml.

              • 4. Re: How to create a new profile in jboss-eap-5.1.2
                Wolf-Dieter Fink Master

                A simple way is to use a virtual IP address, you need to configure your network/machine for this, start the JBoss instance with "run.sh -b <myIP> ..." in this case.

                Other is to change the ports via PortBindingManager to not change ports in many different places.

                 

                You can find the documentation here

                1 of 1 people found this helpful
                • 5. Re: How to create a new profile in jboss-eap-5.1.2
                  Dan Jacob Newbie

                  Thank you so much for your valuable inputs on creating a new jboss instance.

                   

                  I have tried the second method, that is with PortBindingManager.
                  Following are the steps I followed for creating a new instance:
                  1) I have just copied the default instance.
                  2) Tried to run the new instance with a different port.

                  As per I understood, we need not do any changes in bindings-jboss-beans.xml. It will take the different port no that we are passing while starting the server with new instance.
                  Following is the startup command I have given for the new instance.
                  sh run.sh -c newDefault -Djboss.service.binding.set=ports-01 -Djboss.messaging.ServerPeerID=1

                   

                  But I am getting following  error...

                  ERROR: transport error 202: bind failed: Address already in use
                  ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
                  JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]
                  FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
                  run.sh: line 283:  1757 Aborted                 "$JAVA" $JAVA_OPTS -Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" -classpath "$JBOSS_CLASSPATH" org.jboss.Main "$@"


                  Please note: The default instance is already running.

                  Do I need to anything other than this? Like, enable the port no somewhere? Please help.

                  • 6. Re: How to create a new profile in jboss-eap-5.1.2
                    Wolf-Dieter Fink Master

                    Does the instance start correct if you stop the "default" instance?

                    If yes it looks like you have something forgotten. Normaly you need to activate the binding manager by remove the surrounding comment signs <!-- -->

                    • 7. Re: How to create a new profile in jboss-eap-5.1.2
                      Dan Jacob Newbie


                      The new default instance is starting if I stop the default instance. But I am not able to access my application.

                      In binding manager the port details are uncommented only. I did not do any changes binding manager.


                      Do I need to update the https access port in jboss/server/default/deploy/jbossweb.sar/server.xml?

                      Currently I am using 8085. When I start new default instance with passing the port no as ports-01, I can access it using 8185 right?

                       

                      Following is the error message I get when using 8185.

                       

                      Network Error (tcp_error)


                      A communication error occurred: "" 
                      The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time. 

                       

                      Also from the server startup logs, I could see its using 8085 instead of 8185. When I am accessing the application with 8085, I am able to access it.

                       

                      I have set the ports-01 in BindingManager file. Please find the updated code..

                       

                      <!-- Provides management tools with a ProfileService ManagementView

                              interface to the SBM and its components -->

                         <bean name="ServiceBindingManagementObject"

                               class="org.jboss.services.binding.managed.ServiceBindingManagementObject">

                              

                            <constructor>

                               <!-- The name of the set of bindings to use for this server -->

                               <parameter>${jboss.service.binding.set:ports-01}</parameter>

                       

                      Please help. Thanks in advance.

                      • 8. Re: How to create a new profile in jboss-eap-5.1.2
                        Wolf-Dieter Fink Master

                        AFAIK the binding manager works only with the original setting in the config files (otherwise you need to change the port's in the binding manager) as the scripts use xslt to change the ports based on the original port numbers.

                         

                        Check it with a unmodified default profile.