[jboss-jira] [JBoss JIRA] Commented: (JBAS-6388) Wrong order of start of j2ee modules

jaikiran pai (JIRA) jira-events at lists.jboss.org
Tue Mar 24 08:02:22 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBAS-6388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12458737#action_12458737 ] 

jaikiran pai commented on JBAS-6388:
------------------------------------

This has been handled by Ales recently in 5_x http://www.jboss.org/index.html?module=bb&op=viewtopic&t=152368#4218174

public class LegacyDeploymentContextComparator extends DefaultDeploymentContextComparator
{
   /** Legacy orders */
   private static Map<String, Integer> legacyOrder;

   static
   {
      legacyOrder = new HashMap<String, Integer>();
      legacyOrder.put(".deployer", 50);
      legacyOrder.put("-deployer.xml", 50);
      legacyOrder.put(".aop", 100);
      legacyOrder.put("-aop.xml", 100);
      legacyOrder.put(".sar", 150);
      legacyOrder.put("-service.xml", 150);
      legacyOrder.put(".beans", 200);
      legacyOrder.put("-jboss-beans.xml", 200);
      legacyOrder.put(".rar", 250);
      legacyOrder.put("-ds.xml", 300);
      legacyOrder.put(".har", 350);
      legacyOrder.put(".jar", 400);
      legacyOrder.put(".ejb3", 400);
      legacyOrder.put(".par", 400);
      legacyOrder.put(".war", 500);
      legacyOrder.put(".wsr", 600);
      legacyOrder.put(".ear", 650);
      legacyOrder.put(".zip", 750);
      legacyOrder.put(".bsh", 800);
      legacyOrder.put(".last", 900);
   }


> Wrong order of start of j2ee modules
> ------------------------------------
>
>                 Key: JBAS-6388
>                 URL: https://jira.jboss.org/jira/browse/JBAS-6388
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: JBossAS-5.0.0.GA
>            Reporter: Roberto
>            Priority: Minor
>
> When yoi have an EAR containg EJB Jars and Web Archive (war), today often the was is started before ejb jars.
> This means that if you have in the war a autostart servlet using ejb, this throws an exception (becuase they are not binded)
> The right order should be 
> EJB JAR
> WAR

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list