1 Reply Latest reply on Mar 2, 2015 6:17 AM by ctomc

    How to change order of Registered web context in jboss deployment of an ear?

    jince

      I am trying to deploy an ear using jboss.

       

       

      After the deployment of EAR, a part of the server log is as follows:

       

       

        11:32:43,059 INFO  [org.quartz.xml.XMLSchedulingDataProcessor] (MSC service thread 1-7) Adding 3 jobs, 3 triggers.

          11:32:43,059 INFO  [org.quartz.xml.XMLSchedulingDataProcessor] (MSC service thread 1-7) Adding job: RemoveExpiredSession.UserSession

          11:32:43,059 INFO  [org.quartz.xml.XMLSchedulingDataProcessor] (MSC service thread 1-7) Adding job: ExpireOfferAndRFQsGroup.ExpireOfferAndRFQs

          11:32:43,059 INFO  [org.quartz.xml.XMLSchedulingDataProcessor] (MSC service thread 1-7) Adding job: RemoveOneTimeUsers.OneTimeUser

          11:32:43,059 INFO  [org.quartz.core.QuartzScheduler] (MSC service thread 1-7) Scheduler EcomJobScheduler_$_NON_CLUSTERED started.

          11:32:43,059 INFO  [org.quartz.ee.servlet.QuartzInitializerListener] (MSC service thread 1-7) Scheduler has been started...

          11:32:43,059 INFO  [org.quartz.ee.servlet.QuartzInitializerListener] (MSC service thread 1-7) Storing the Quartz Scheduler Factory in the servlet context at key: org.quartz.impl.StdSchedulerFactory.KEY

          11:32:43,090 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) JBAS017534: Registered web context: /xyzscheduler

          11:32:43,294 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-1) Deploying javax.ws.rs.core.Application: class com.sial.xyz.j.services.CommonServiceEndPointsApplication$Proxy$_$$_WeldClientProxy

          11:32:43,294 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-8) Deploying javax.ws.rs.core.Application: class com.sial.xyz.c.services.cServiceEndpointsApplication$Proxy$_$$_WeldClientProxy

          11:32:43,294 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-4) Deploying javax.ws.rs.core.Application: class com.sial.xyz.s.services.sServiceEndPointApplication$Proxy$_$$_WeldClientProxy

          11:32:43,294 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-3) Deploying javax.ws.rs.core.Application: class com.sial.xyz.i.services.iServiceEndPointApplication$Proxy$_$$_WeldClientProxy

          11:32:43,934 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) JBAS017534: Registered web context: /s

          11:32:44,027 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) JBAS017534: Registered web context: /c

          11:32:44,152 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-1) JBAS017534: Registered web context: /a

          11:32:44,584 INFO  [org.jboss.ejb.client] (default task-1) JBoss EJB Client version 2.0.0.Final

          11:32:44,944 INFO  [stdout] (default task-1) null == cluster id

         

          11:32:49,735 INFO  [com.datastax.driver.core.policies.DCAwareRoundRobinPolicy] (default task-1) Using data-center name 'DFW' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor)

          11:32:49,735 WARN  [com.datastax.driver.core.policies.DCAwareRoundRobinPolicy] (default task-1) Some contact points don't match specified local data center. Local DC = DFW. Non-conforming contact points: /141.247.178.204:9042 (STL),/141.247.76.37:9042 (BAN),/141.247.76.36:9042 (BAN)

          11:32:49,736 INFO  [stdout] (default task-1) Connected to cluster: Test Cluster

          11:32:49,736 INFO  [stdout] (default task-1) Datacenter: BAN; Host: /141.247.76.37; Rack: RAC2

          11:32:49,736 INFO  [stdout] (default task-1) Datacenter: BAN; Host: /141.247.76.36; Rack: RAC1

          11:32:49,736 INFO  [stdout] (default task-1) Datacenter: STL; Host: /141.247.178.204; Rack: RAC1

          11:32:49,736 INFO  [stdout] (default task-1) Datacenter: DFW; Host: dfwpj1dtx01.sial.com/141.247.233.253; Rack: RAC1

          11:32:49,767 INFO  [com.datastax.driver.core.Cluster] (Cassandra Java Driver worker-0) New Cassandra host dfwpj1dtx01.sial.com/141.247.233.253:9042 added

          11:32:49,767 INFO  [com.datastax.driver.core.Cluster] (Cassandra Java Driver worker-1) New Cassandra host /141.247.178.204:9042 added

          11:32:49,736 INFO  [com.datastax.driver.core.Cluster] (Cassandra Java Driver worker-2) New Cassandra host /141.247.76.37:9042 added

          11:32:49,767 INFO  [com.datastax.driver.core.Cluster] (Cassandra Java Driver worker-3) New Cassandra host /141.247.76.36:9042 added

          11:32:52,614 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (default task-1) ISPN000078: Starting JGroups Channel

          11:32:52,630 INFO  [stdout] (default task-1)

          11:32:52,630 INFO  [stdout] (default task-1) -------------------------------------------------------------------

          11:32:52,630 INFO  [stdout] (default task-1) GMS: address=banlt-4thh622/sialCache, cluster=sialCache, physical address=0.0.0.0:55200

          11:32:52,630 INFO  [stdout] (default task-1) -------------------------------------------------------------------

         

          11:32:54,663 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (default task-1) ISPN000094: Received new cluster view: [banlt-4thh622/sialCache|0] (1) [banlt-4thh622/sialCache]

          11:32:54,663 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (default task-1) ISPN000079: Cache local address is banlt-4thh622/sialCache, physical addresses are [0.0.0.0:55200]

          11:32:54,664 INFO  [org.infinispan.factories.GlobalComponentRegistry] (default task-1) ISPN000128: Infinispan version: Infinispan 'Infinium' 6.0.1.Final

          11:32:54,851 INFO  [org.infinispan.jmx.CacheJmxRegistration] (default task-1) ISPN000031: MBeans were successfully registered to the platform MBean server.

          11:32:54,867 INFO  [org.jboss.as.clustering.infinispan] (default task-1) JBAS010281: Started sialCache cache from sialCache container

          11:32:54,929 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017534: Registered web context: /i

          11:32:55,038 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 30) JBAS018559: Deployed "ojdbc6.jar" (runtime-name : "ojdbc6.jar")

          11:32:55,038 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 30) JBAS018559: Deployed "XYZ.ear" (runtime-name : "XYZ.ear")

       

      Here the ear is deploying properly. Now what I want is to change the order of

      Registered web context.

       

       

      in the server log you can see:

       

       

      11:32:43,934 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) JBAS017534: Registered web context: /s

          11:32:44,027 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) JBAS017534: Registered web context: /c

          11:32:44,152 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-1) JBAS017534: Registered web context: /a

       

      Here s is registered first then c , then a.

       

      After this, it is going to cassandra. After that is shows:

       

       

      11:32:54,929 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017534: Registered web context: /i

       

       

      Now what I want is that, I want to register '/i' with other registration which is happening above, so tha is should look like :

       

       

        

       

       

         

       

       

        11:32:43,934 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) JBAS017534: Registered web context: /s

          11:32:44,027 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) JBAS017534: Registered web context: /c

          11:32:44,152 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-1) JBAS017534: Registered web context: /a

          11:32:54,929 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017534: Registered web context: /i

       

      My jboss-deployment-structure.xml is as follows:

       

       

      <?xml version="1.0" encoding="UTF-8"?>

         

          <iboss-deployment-structure>

         

           

            <ear-subdeployments-isolated>true</ear-subdeployments-isolated>

           

            <sub-deployment name="ECommerceScheduler.war">

             

              <dependencies>

               

                <module name="deployment.XYZ.ear.a.war" />

                <module name="deployment.XYZ.ear.i.war" />

              </dependencies>

             

              <local-last value="true" />

            </sub-deployment>

            <sub-deployment name="c.war">

            

              <dependencies>

               

                <module name="deployment.XYZ.ear.a.war" />

                <module name="deployment.XYZ.ear.i.war" />

              </dependencies>

             

              <local-last value="true" />

            </sub-deployment>

             <sub-deployment name="i.war">

            <dependencies>

            <module name="deployment.XYZ.ear.s.war"></module>

            </dependencies>

            </sub-deployment>

            <sub-deployment name="a.war">

             

              <dependencies>

              

                <module name="deployment.XYZ.ear.i.war" />

              </dependencies>

             

              <local-last value="true" />

            </sub-deployment>

           

           </iboss-deployment-structure>

       

      My application.xml is :

       

       

        <?xml version="1.0" encoding="UTF-8"?>

          <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/application_7.xsd" id="Application_ID" version="7">

            <display-name>XYZ</display-name>

            <module>

              <web>

                <web-uri>a.war</web-uri>

                <context-root>a</context-root>

              </web>

            </module>

            <module>

              <web>

                <web-uri>i.war</web-uri>

                <context-root>i</context-root>

              </web>

            </module>

            <module>

              <web>

                <web-uri>s.war</web-uri>

                <context-root>s</context-root>

              </web>

            </module>

            <module>

              <web>

                <web-uri>XYZScheduler.war</web-uri>

                <context-root>XYZscheduler</context-root>

              </web>

            </module>

            <module>

              <web>

                <web-uri>c.war</web-uri>

                <context-root>c</context-root>

              </web>

            </module>

            <module>

              <ejb>XYZCore.jar</ejb>

            </module>

          </application>

       

       

       

      Someone please help me out.

       

       

      Thank you.