title: migration from JBoss 4.X to 7.1 Issue
body: <p>I am migrating application from JBOSS 4.X to JBoss 7.1. I am facing one problem as metioned here</p>
  
  <pre><code>myApp.ear
       + ---- lib
       |       |------- common.jar
       |
      +----- META-INF
      |       +-- jboss-deployment-structure.xml and  other config files
      |       
      |
      | ---- xxxEJB.jar
      + ---- xxxWebApp.war
  
  jboss-deployment-structure.xml in ear/meta-inf is as follows
  &lt;jboss-deployment-structure&gt; 
  &lt;ear-subdeployments-isolated&gt;false&lt;/ear-subdeployments-isolated&gt;
  &lt;deployment&gt;
      &lt;dependencies&gt;
          &lt;module name="javaee.api" export="true"/&gt;//module.xml
          &lt;module name="sun.jdk" export="true"/&gt;
          &lt;module name="com.lib" export="true"/&gt;
          &lt;module name="deployment.myapp.ear.xxxejb.jar"/&gt;
      &lt;/dependencies&gt;
  &lt;/deployment&gt;   
  &lt;sub-deployment name="xxxwebapp.war"&gt;
      &lt;resources&gt;
           &lt;resource-root path="common.jar" &gt;
           &lt;/resource-root&gt;
      &lt;/resources&gt;
  &lt;/sub-deployment&gt;
  
  &lt;/jboss-deployment-structure&gt;
  </code></pre>
  
  <p>I am getting the following exception when trying to invoke the application</p>
  
  <pre><code>08:05:06,546 ERROR [stderr] (http--127.0.0.1-8080-1) javax.naming.NameNotFoundException: com.xxx.session.UserMgrHome -- service jboss.naming.context.java."com.xxx.session.UserMgrHome"
  
  08:05:06,546 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:97)
  
  08:05:06,546 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:178)
  
  08:05:06,546 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:113)
  
  08:05:06,546 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:214)
  
  08:05:06,562 ERROR [stderr] (http--127.0.0.1-8080-1)    at javax.naming.InitialContext.lookup(InitialContext.java:392)
  </code></pre>
  
  <p>Any pointers to this Please</p>
  
  <p>Thanks and regards
  Srini</p>