1 2 Previous Next 18 Replies Latest reply on Apr 28, 2009 1:34 PM by havramm

    Unwanted deployment of the shared STLBs

    havramm

      We have one shared library that contains several STLBs. This library needs to be deployed either as single EJB-JAR or
      as shared JAR from which STLBs will be deployed using XML descriptors.

      In the case when we need to deploy same STLB several times (using ejb-jar.xml) under different names we are using following structure of EAR:

      +-test.ear
      |
      +-META-INF
      | +-MANIFEST.INF
      | +-application.xml (1)
      |
      +-depl.jar
      | +-META-INF
      | +-MANIFEST.MF
      | +-ejb-jar.xml (2)
      |
      +-lib
       +-shared-ejbs.jar
       +-META-INF
       | +-MANIFEST.MF
       |
       +-test
       +-SharedLocal.class (3)
       +-SharedBean.class (4)


      With following contents:

      application.xml (1):

      <?xml version="1.0" encoding="UTF-8"?>
      <application xmlns="http://java.sun.com/xml/ns/javaee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd"
       version="5">
       <description>SDMS Enterprise Application</description>
       <display-name>test-ear</display-name>
       <module>
       <ejb>depl.jar</ejb>
       </module>
      </application>


      ejb-jar.xml (2):

      <?xml version="1.0" encoding="UTF-8"?>
      <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
       version="3.0">
       <enterprise-beans>
      
       <session>
       <ejb-name>FirstSharedBean</ejb-name>
       <ejb-class>test.SharedBean</ejb-class>
       </session>
      
       <session>
       <ejb-name>SecondSharedBean</ejb-name>
       <ejb-class>test.SharedBean</ejb-class>
       </session>
      
       </enterprise-beans>
      </ejb-jar>


      SharedLocal.class (3):

      package test;
      
      import javax.ejb.Local;
      
      @Local
      public interface SharedLocal {
       String sayHello();
      }
      


      SharedBean.class (4):

      package test;
      
      import javax.ejb.Stateless;
      
      @Stateless
      public class SharedBean implements SharedLocal {
       String sayHello() {
       return "Hello, World!";
       }
      }
      


      Using this approach we have not problems with JBoss v4.2.2 and v4.2.3 - one shared STLB has been deployed under two different names.
      These days we are testing our deployments on JBoss v5.0.0.CR2 and we have noticed that our shared STLB is deployed not two but three times -
      beside two explicitly deployed (FirstSharedBean and SecondSharedBean) there is one more instance deployed as SharedBean:

      [url=http://img383.imageshack.us/img383/4513/sshot1be6.jpg][img]http://img383.imageshack.us/img383/4513/sshot1be6.jpg[/img][/url]
      [Click on link to see the JNDI View...]

      Also, here is the log of deployment:

      11:21:06,185 WARN [EjbMetadataJndiPolicyDecoratorDeployer] Defaulting to DefaultJndiBindingPolicy of "org.jboss.metadata.ejb.jboss.jndipolicy.plugins.BasicJndiBindingPolicy" for Session Bean SharedBean
      11:21:06,185 WARN [EjbMetadataJndiPolicyDecoratorDeployer] Defaulting to DefaultJndiBindingPolicy of "org.jboss.metadata.ejb.jboss.jndipolicy.plugins.BasicJndiBindingPolicy" for Session Bean FirstSharedBean
      11:21:06,185 WARN [EjbMetadataJndiPolicyDecoratorDeployer] Defaulting to DefaultJndiBindingPolicy of "org.jboss.metadata.ejb.jboss.jndipolicy.plugins.BasicJndiBindingPolicy" for Session Bean SecondSharedBean
      11:21:06,205 INFO [JBossASKernel] Created KernelDeployment for: test-ear.ear
      11:21:06,205 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=test-ear.ear,jar=test-ear.ear,name=SharedBean,service=EJB3
      11:21:06,205 INFO [JBossASKernel] with dependencies:
      11:21:06,205 INFO [JBossASKernel] and demands:
      11:21:06,205 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
      11:21:06,205 INFO [JBossASKernel] and supplies:
      11:21:06,205 INFO [JBossASKernel] Class:test.SharedLocal
      11:21:06,205 INFO [JBossASKernel] jndi:SharedBean/remote
      11:21:06,205 INFO [JBossASKernel] jndi:SharedBean/local
      11:21:06,205 INFO [JBossASKernel] jndi:SharedBean/local-test.SharedLocal
      11:21:06,205 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=test-ear.ear,jar=test-ear.ear,name=SharedBean,service=EJB3) to KernelDeployment of: test-ear.ear
      11:21:06,247 INFO [JBossASKernel] Created KernelDeployment for: depl.jar
      11:21:06,247 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=FirstSharedBean,service=EJB3
      11:21:06,247 INFO [JBossASKernel] with dependencies:
      11:21:06,247 INFO [JBossASKernel] and demands:
      11:21:06,247 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
      11:21:06,247 INFO [JBossASKernel] and supplies:
      11:21:06,247 INFO [JBossASKernel] Class:test.SharedLocal
      11:21:06,247 INFO [JBossASKernel] jndi:test-ear/FirstSharedBean/local
      11:21:06,247 INFO [JBossASKernel] jndi:test-ear/FirstSharedBean/local-test.SharedLocal
      11:21:06,247 INFO [JBossASKernel] jndi:test-ear/FirstSharedBean/remote
      11:21:06,247 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=FirstSharedBean,service=EJB3) to KernelDeployment of: depl.jar
      11:21:06,248 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=SecondSharedBean,service=EJB3
      11:21:06,248 INFO [JBossASKernel] with dependencies:
      11:21:06,248 INFO [JBossASKernel] and demands:
      11:21:06,248 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
      11:21:06,248 INFO [JBossASKernel] and supplies:
      11:21:06,248 INFO [JBossASKernel] jndi:test-ear/SecondSharedBean/remote
      11:21:06,248 INFO [JBossASKernel] Class:test.SharedLocal
      11:21:06,248 INFO [JBossASKernel] jndi:test-ear/SecondSharedBean/local-test.SharedLocal
      11:21:06,248 INFO [JBossASKernel] jndi:test-ear/SecondSharedBean/local
      11:21:06,248 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=SecondSharedBean,service=EJB3) to KernelDeployment of: depl.jar
      11:21:06,307 INFO [SessionSpecContainer] Starting jboss.j2ee:ear=test-ear.ear,jar=test-ear.ear,name=SharedBean,service=EJB3
      11:21:06,307 INFO [EJBContainer] STARTED EJB: test.SharedBean ejbName: SharedBean
      11:21:06,307 WARN [SessionSpecContainer] Populating JBoss-specific annotation metadata manually until done by deployers: jboss.j2ee:ear=test-ear.ear,jar=test-ear.ear,name=SharedBean,service=EJB3
      11:21:06,385 INFO [SessionSpecContainer] Starting jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=FirstSharedBean,service=EJB3
      11:21:06,385 INFO [EJBContainer] STARTED EJB: test.SharedBean ejbName: FirstSharedBean
      11:21:06,385 WARN [SessionSpecContainer] Populating JBoss-specific annotation metadata manually until done by deployers: jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=FirstSharedBean,service=EJB3
      11:21:06,464 INFO [SessionSpecContainer] Starting jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=SecondSharedBean,service=EJB3
      11:21:06,465 INFO [EJBContainer] STARTED EJB: test.SharedBean ejbName: SecondSharedBean
      11:21:06,465 WARN [SessionSpecContainer] Populating JBoss-specific annotation metadata manually until done by deployers: jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=SecondSharedBean,service=EJB3


      Obviously, deployment strategy within JBoss has been changed (we've not considered which one is "by spec").
      Our problem is that we do not want to have such unwanted deployment of our SharedBean - is there anything we can do to prevent implicit deployment of STLBs from shared libs?


        • 1. Re: Unwanted deployment of the shared STLBs
          alesj

           

          "havramm" wrote:

          Obviously, deployment strategy within JBoss has been changed (we've not considered which one is "by spec").
          Our problem is that we do not want to have such unwanted deployment of our SharedBean - is there anything we can do to prevent implicit deployment of STLBs from shared libs?

          Can you try this on the current AS trunk?

          Since it might be how we are gathering Enterprise Bean metadata
          via annotation scanning - see metadata-deployers-jboss-beans.xml.

          I've changed/fixed things a bit after CR2.
          Excluding the ear's lib by default from annotation scanning.
          And since you declare your beans via ejb-jar.xml, this shouldn't be a problem.

          • 2. Re: Unwanted deployment of the shared STLBs
            havramm

            I've tried with trunk version 79275 - still the same behavior...

            • 3. Re: Unwanted deployment of the shared STLBs
              emuckenhuber

               

              "havramm" wrote:
              I've tried with trunk version 79275 - still the same behavior...


              Hmm to achieve this, i think you should remove the @Stateless annotation from your shared bean.
              You can specify the stateless bean in your xml (as you do it anyway) and the other annotations (e.g. @Local) will be picked up.


              • 4. Re: Unwanted deployment of the shared STLBs
                havramm

                 

                "emuckenhuber" wrote:
                Hmm to achieve this, i think you should remove the @Stateless annotation from your shared bean.
                You can specify the stateless bean in your xml (as you do it anyway) and the other annotations (e.g. @Local) will be picked up.

                Yes, we know for workaround without specifying @Stateless annotation. But in most cases our shared library should be deployed without ejb-jar.xml so we would like to have both possibilities.

                "alesj" wrote:
                I've changed/fixed things a bit after CR2.
                Excluding the ear's lib by default from annotation scanning.
                And since you declare your beans via ejb-jar.xml, this shouldn't be a problem.


                Ales, can you tell something more regarding your previous post? Have ear's lib been excluded from annotation scanning?

                • 5. Re: Unwanted deployment of the shared STLBs
                  alesj

                   

                  "havramm" wrote:
                  "alesj" wrote:
                  I've changed/fixed things a bit after CR2.
                  Excluding the ear's lib by default from annotation scanning.
                  And since you declare your beans via ejb-jar.xml, this shouldn't be a problem.


                  Ales, can you tell something more regarding your previous post? Have ear's lib been excluded from annotation scanning?

                  Should be excluded.
                  This was done to fix the JBAS-5895 issue:
                  - https://jira.jboss.org/jira/browse/JBAS-5895
                  See EarLibExcludeDeployer in metadata-deployers-jboss-beans.xml.

                  I'll try to mock you example to see what the problem might be.

                  • 6. Re: Unwanted deployment of the shared STLBs
                    havramm

                    Hello Ales,

                    It seems that problem still exists in JBoss AS v5.0.1.GA.
                    Ear's lib has been scanned and STLBs from it have been deployed... Do you have any clue what is going on?

                    Thanks!

                    • 7. Re: Unwanted deployment of the shared STLBs
                      alesj

                      How do you know that ear's lib has been scanned?
                      Can you check that recurse filter from EarLibExcludeDeployer doesn't kick in?

                      • 8. Re: Unwanted deployment of the shared STLBs
                        havramm

                         

                        "alesj" wrote:
                        How do you know that ear's lib has been scanned?
                        Can you check that recurse filter from <a href="http://anonsvn.jboss.org/repos/jbossas/trunk/server/src/main/org/jboss/deployment/EarLibExcludeDeployer.java">EarLibExcludeDeployer</a> doesn't kick in?


                        OK - according to the log, ear's lib has been excluded, but we still have "phantom" bean deployed (from lib). Layout of the ear is the same as in the very first post. This is current log of deployment of the test-ear.ear:
                        15:57:05,282 DEBUG [AbstractAttachmentStore] No persisted attachment found for deployment AbstractVFSDeployment(test-ear.ear) with relative path: test-ear.ear-795562154525dced4fe962d51cbc6542\
                        15:57:05,285 DEBUG [MainDeployerImpl] Add deployment: vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/
                        15:57:05,287 DEBUG [SaxJBossXBParser] Created parser: org.apache.xerces.jaxp.SAXParserImpl@1ad39f8, isNamespaceAware: true, isValidating: true, isXIncludeAware: true
                        15:57:05,287 DEBUG [SaxJBossXBParser] http://xml.org/sax/features/validation set to: true
                        15:57:05,287 DEBUG [SaxJBossXBParser] http://xml.org/sax/features/namespaces set to: true
                        15:57:05,287 DEBUG [SaxJBossXBParser] http://apache.org/xml/features/validation/dynamic set to: true
                        15:57:05,287 DEBUG [SaxJBossXBParser] http://xml.org/sax/features/validation set to: true
                        15:57:05,287 DEBUG [SaxJBossXBParser] Created parser: org.apache.xerces.jaxp.SAXParserImpl@1ad39f8, isNamespaceAware: true, isValidating: true, isXIncludeAware: true
                        15:57:05,300 DEBUG [MainDeployerImpl] Scheduling deployment: vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/ parent=null
                        15:57:05,300 DEBUG [MainDeployerImpl] Scheduling deployment: vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/depl.jar/ parent=AbstractVFSDeploymentContext@13786588{vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/}
                        15:57:05,301 DEBUG [DeployersImpl] Deploying vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/
                        15:57:05,304 DEBUG [JBossXBDeployerHelper] Parsing file: ZipEntryHandler@24640604[path=test-ear.ear/META-INF/application.xml context=file:/C:/JBoss-5.0.1.GA/server/default/deploy/ real=file:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/META-INF/application.xml] for type: class org.jboss.metadata.ear.spec.EarMetaData
                        15:57:05,304 DEBUG [SaxJBossXBParser] Created parser: org.apache.xerces.jaxp.SAXParserImpl@591d98, isNamespaceAware: true, isValidating: true, isXIncludeAware: true
                        15:57:05,304 DEBUG [SaxJBossXBParser] http://xml.org/sax/features/validation set to: true
                        15:57:05,304 DEBUG [SaxJBossXBParser] http://xml.org/sax/features/namespaces set to: true
                        15:57:05,304 DEBUG [SaxJBossXBParser] http://apache.org/xml/features/xinclude/fixup-base-uris set to: false
                        15:57:05,305 DEBUG [SaxJBossXBParser] http://apache.org/xml/features/xinclude/fixup-language set to: false
                        15:57:05,305 DEBUG [SaxJBossXBParser] http://apache.org/xml/features/validation/dynamic set to: true
                        15:57:05,305 DEBUG [SaxJBossXBParser] http://apache.org/xml/features/validation/schema set to: true
                        15:57:05,305 DEBUG [SaxJBossXBParser] http://xml.org/sax/features/validation set to: true
                        15:57:05,305 DEBUG [SaxJBossXBParser] Created parser: org.apache.xerces.jaxp.SAXParserImpl@591d98, isNamespaceAware: true, isValidating: true, isXIncludeAware: true
                        15:57:05,337 DEBUG [JBossXBDeployerHelper] Parsed file: ZipEntryHandler@24640604[path=test-ear.ear/META-INF/application.xml context=file:/C:/JBoss-5.0.1.GA/server/default/deploy/ real=file:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/META-INF/application.xml] to: org.jboss.metadata.ear.spec.Ear50MetaData@1f
                        15:57:05,338 DEBUG [JBossXBDeployerHelper] Parsing file: ZipEntryHandler@20253969[path=test-ear.ear/depl.jar/META-INF/ejb-jar.xml context=file:/C:/JBoss-5.0.1.GA/server/default/deploy/ real=file:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/depl.jar/META-INF/ejb-jar.xml] for type: class org.jboss.metadata.ejb.spec.EjbJarMetaData
                        15:57:05,338 DEBUG [SaxJBossXBParser] Created parser: org.apache.xerces.jaxp.SAXParserImpl@1ecf98f, isNamespaceAware: true, isValidating: true, isXIncludeAware: true
                        15:57:05,338 DEBUG [SaxJBossXBParser] http://xml.org/sax/features/validation set to: true
                        15:57:05,338 DEBUG [SaxJBossXBParser] http://xml.org/sax/features/namespaces set to: true
                        15:57:05,338 DEBUG [SaxJBossXBParser] http://apache.org/xml/features/xinclude/fixup-base-uris set to: false
                        15:57:05,338 DEBUG [SaxJBossXBParser] http://apache.org/xml/features/xinclude/fixup-language set to: false
                        15:57:05,338 DEBUG [SaxJBossXBParser] http://apache.org/xml/features/validation/dynamic set to: true
                        15:57:05,338 DEBUG [SaxJBossXBParser] http://apache.org/xml/features/validation/schema set to: true
                        15:57:05,338 DEBUG [SaxJBossXBParser] http://xml.org/sax/features/validation set to: true
                        15:57:05,339 DEBUG [SaxJBossXBParser] Created parser: org.apache.xerces.jaxp.SAXParserImpl@1ecf98f, isNamespaceAware: true, isValidating: true, isXIncludeAware: true
                        15:57:05,422 DEBUG [JBossXBDeployerHelper] Parsed file: ZipEntryHandler@20253969[path=test-ear.ear/depl.jar/META-INF/ejb-jar.xml context=file:/C:/JBoss-5.0.1.GA/server/default/deploy/ real=file:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/depl.jar/META-INF/ejb-jar.xml] to: org.jboss.metadata.ejb.spec.EjbJar30MetaData@1f
                        15:57:05,423 DEBUG [JBossXBDeployerHelper] Parsing file: FileHandler@24433116[path=standardjboss.xml context=file:/C:/JBoss-5.0.1.GA/server/default/conf/ real=file:/C:/JBoss-5.0.1.GA/server/default/conf/standardjboss.xml] for type: class org.jboss.metadata.ejb.jboss.JBossMetaData
                        15:57:05,423 DEBUG [SaxJBossXBParser] Created parser: org.apache.xerces.jaxp.SAXParserImpl@1068452, isNamespaceAware: true, isValidating: true, isXIncludeAware: true
                        15:57:05,423 DEBUG [SaxJBossXBParser] http://xml.org/sax/features/validation set to: true
                        15:57:05,423 DEBUG [SaxJBossXBParser] http://xml.org/sax/features/namespaces set to: true
                        15:57:05,423 DEBUG [SaxJBossXBParser] http://apache.org/xml/features/xinclude/fixup-base-uris set to: false
                        15:57:05,423 DEBUG [SaxJBossXBParser] http://apache.org/xml/features/xinclude/fixup-language set to: false
                        15:57:05,423 DEBUG [SaxJBossXBParser] http://apache.org/xml/features/validation/dynamic set to: true
                        15:57:05,423 DEBUG [SaxJBossXBParser] http://apache.org/xml/features/validation/schema set to: false
                        15:57:05,423 DEBUG [SaxJBossXBParser] http://xml.org/sax/features/validation set to: true
                        15:57:05,424 DEBUG [SaxJBossXBParser] Created parser: org.apache.xerces.jaxp.SAXParserImpl@1068452, isNamespaceAware: true, isValidating: true, isXIncludeAware: true
                        15:57:05,491 DEBUG [JBossEntityResolver] Cannot resolve [publicID=,systemID=null]
                        15:57:05,491 DEBUG [JBossEntityResolver] Cannot resolve [publicID=null,systemID=]
                        ...
                        15:57:05,581 DEBUG [JBossXBDeployerHelper] Parsed file: FileHandler@24433116[path=standardjboss.xml context=file:/C:/JBoss-5.0.1.GA/server/default/conf/ real=file:/C:/JBoss-5.0.1.GA/server/default/conf/standardjboss.xml] to: org.jboss.metadata.ejb.jboss.JBoss50DTDMetaData@1f
                        15:57:05,582 DEBUG [InMemoryClassesDeployer] Dynamic class root for vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/ is vfsmemory://2828286f-g551wo-ftcxyrsg-1-ftcxzgz2-9n
                        15:57:05,582 DEBUG [Domain] org.jboss.classloading.spi.dependency.Domain@2803d5{DefaultDomain} add module VFSDeploymentClassLoaderPolicyModule test-ear.ear:0.0.0
                        15:57:05,582 DEBUG [BaseClassLoader] Created BaseClassLoader@d2f95b{vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/} with policy VFSClassLoaderPolicy@f0d946{name=vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/ domain=null roots=[MemoryContextHandler@4765296[path= context=vfsmemory://2828286f-g551wo-ftcxyrsg-1-ftcxzgz2-9n real=vfsmemory://2828286f-g551wo-ftcxyrsg-1-ftcxzgz2-9n], DelegatingHandler@29455157[path=test-ear.ear/lib/shared-ejbs.jar context=file:/C:/JBoss-5.0.1.GA/server/default/deploy/ real=file:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/lib/shared-ejbs.jar], DelegatingHandler@24293360[path=test-ear.ear context=file:/C:/JBoss-5.0.1.GA/server/default/deploy/ real=file:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear], DelegatingHandler@8181275[path=test-ear.ear/depl.jar context=file:/C:/JBoss-5.0.1.GA/server/default/deploy/ real=file:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/depl.jar]] delegates=null exported=[test, META-INF.maven.netset.test-ear, META-INF.maven.netset.depl, META-INF.maven.netset.shared-ejbs, META-INF] <IMPORT-ALL>NON_EMPTY}
                        15:57:05,582 DEBUG [BaseClassLoaderDomain] ClassLoaderDomain@aea710{DefaultDomain} registerClassLoader BaseClassLoader@d2f95b{vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/}
                        15:57:05,584 DEBUG [JBoss5ClassPoolFactory] Created pool org.jboss.aop.asintegration.jboss5.JBoss5ClassPool@30181347 [class path: BaseClassLoader@d2f95b{vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/};] - dcl:BaseClassLoader@d2f95b{vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/} for loader BaseClassLoader@d2f95b{vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/}
                        15:57:05,584 DEBUG [AOPClassLoaderDeployer] Adding AspectManager attachment org.jboss.aop.AspectManager@1537060 for AbstractVFSDeploymentContext@13786588{vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/}
                        15:57:05,584 DEBUG [AOPClassLoaderDeployer] Adding AspectManager attachment org.jboss.aop.AspectManager@1537060 for AbstractVFSDeploymentContext@15561225{vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/depl.jar/}
                        15:57:05,585 DEBUG [EarLibExcludeDeployer] Excluding ear's lib directory: ZipEntryHandler@17282056[path=test-ear.ear/lib context=file:/C:/JBoss-5.0.1.GA/server/default/deploy/ real=file:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/lib]
                        15:57:05,621 DEBUG [JBossMetaDataProcessorChain] Added Processor org.jboss.metadata.process.processor.ejb.jboss.SetDefaultLocalBusinessInterfaceProcessor@1e5305e to Chain org.jboss.metadata.process.chain.ejb.jboss.JBossMetaDataProcessorChain@1ca7bad
                        15:57:05,622 DEBUG [JBossMetaDataProcessorChain] Added Processor org.jboss.metadata.process.processor.ejb.jboss.ClusterConfigDefaultValueProcessor@7ddc66 to Chain org.jboss.metadata.process.chain.ejb.jboss.JBossMetaDataProcessorChain@1ca7bad
                        15:57:05,622 DEBUG [JBossMetaDataProcessorChain] Added Processor org.jboss.metadata.process.processor.ejb.jboss.SetExplicitLocalJndiNameProcessor@110d0b1 to Chain org.jboss.metadata.process.chain.ejb.jboss.JBossMetaDataProcessorChain@1ca7bad
                        15:57:05,622 DEBUG [JBossMetaDataProcessorChain] Added Processor org.jboss.metadata.process.processor.ejb.jboss.JBossMetaDataValidatorChainProcessor@f54e75 to Chain org.jboss.metadata.process.chain.ejb.jboss.JBossMetaDataProcessorChain@1ca7bad
                        15:57:05,622 DEBUG [MetadataUtil] Creating ProcessorChain with the following Processors: org.jboss.metadata.process.processor.ejb.jboss.SetDefaultLocalBusinessInterfaceProcessor@1e5305e org.jboss.metadata.process.processor.ejb.jboss.ClusterConfigDefaultValueProcessor@7ddc66 org.jboss.metadata.process.processor.ejb.jboss.SetExplicitLocalJndiNameProcessor@110d0b1 org.jboss.metadata.process.processor.ejb.jboss.JBossMetaDataValidatorChainProcessor@f54e75
                        15:57:05,628 DEBUG [JBossEjb3SessionBeanValidatorBase] Performing validation on Session EJB: + SharedBean
                        15:57:05,628 DEBUG [JBossEjb3SessionBeanValidatorBase] Performing validation on Session EJB: + SharedBean
                        15:57:05,628 DEBUG [JBossEjb3SessionBeanValidatorBase] Performing validation on Session EJB: + SharedBean
                        15:57:05,628 DEBUG [JBossMetaDataValidatorChain] Passed Validation on all configured validators for org.jboss.metadata.ejb.jboss.JBossMetaData@1f
                        15:57:05,628 DEBUG [JBossMetaDataValidatorChainProcessor] org.jboss.metadata.ejb.jboss.JBossMetaData@1f has been validated by org.jboss.metadata.validation.chain.ejb.jboss.JBossMetaDataValidatorChain@1a41a8d
                        15:57:05,628 DEBUG [JBossMetaDataProcessorChain] org.jboss.metadata.ejb.jboss.JBossMetaData@1f has been processed on org.jboss.metadata.process.chain.ejb.jboss.JBossMetaDataProcessorChain@1ca7bad
                        15:57:05,629 DEBUG [JBossMetaDataProcessorChain] Added Processor org.jboss.metadata.process.processor.ejb.jboss.SetDefaultLocalBusinessInterfaceProcessor@cb531c to Chain org.jboss.metadata.process.chain.ejb.jboss.JBossMetaDataProcessorChain@bd9138
                        15:57:05,629 DEBUG [JBossMetaDataProcessorChain] Added Processor org.jboss.metadata.process.processor.ejb.jboss.ClusterConfigDefaultValueProcessor@7ddc66 to Chain org.jboss.metadata.process.chain.ejb.jboss.JBossMetaDataProcessorChain@bd9138
                        15:57:05,629 DEBUG [JBossMetaDataProcessorChain] Added Processor org.jboss.metadata.process.processor.ejb.jboss.SetExplicitLocalJndiNameProcessor@110d0b1 to Chain org.jboss.metadata.process.chain.ejb.jboss.JBossMetaDataProcessorChain@bd9138
                        15:57:05,629 DEBUG [JBossMetaDataProcessorChain] Added Processor org.jboss.metadata.process.processor.ejb.jboss.JBossMetaDataValidatorChainProcessor@f54e75 to Chain org.jboss.metadata.process.chain.ejb.jboss.JBossMetaDataProcessorChain@bd9138
                        15:57:05,629 DEBUG [MetadataUtil] Creating ProcessorChain with the following Processors: org.jboss.metadata.process.processor.ejb.jboss.SetDefaultLocalBusinessInterfaceProcessor@cb531c org.jboss.metadata.process.processor.ejb.jboss.ClusterConfigDefaultValueProcessor@7ddc66 org.jboss.metadata.process.processor.ejb.jboss.SetExplicitLocalJndiNameProcessor@110d0b1 org.jboss.metadata.process.processor.ejb.jboss.JBossMetaDataValidatorChainProcessor@f54e75
                        15:57:05,629 DEBUG [JBossEjb3SessionBeanValidatorBase] Performing validation on Session EJB: + FirstSharedBean
                        15:57:05,629 DEBUG [JBossEjb3SessionBeanValidatorBase] Performing validation on Session EJB: + SecondSharedBean
                        15:57:05,629 DEBUG [JBossEjb3SessionBeanValidatorBase] Performing validation on Session EJB: + FirstSharedBean
                        15:57:05,629 DEBUG [JBossEjb3SessionBeanValidatorBase] Performing validation on Session EJB: + SecondSharedBean
                        15:57:05,629 DEBUG [JBossEjb3SessionBeanValidatorBase] Performing validation on Session EJB: + FirstSharedBean
                        15:57:05,629 DEBUG [JBossEjb3SessionBeanValidatorBase] Performing validation on Session EJB: + SecondSharedBean
                        15:57:05,629 DEBUG [JBossMetaDataValidatorChain] Passed Validation on all configured validators for org.jboss.metadata.ejb.jboss.JBossMetaData@1f
                        15:57:05,629 DEBUG [JBossMetaDataValidatorChainProcessor] org.jboss.metadata.ejb.jboss.JBossMetaData@1f has been validated by org.jboss.metadata.validation.chain.ejb.jboss.JBossMetaDataValidatorChain@1892b4e
                        15:57:05,629 DEBUG [JBossMetaDataProcessorChain] org.jboss.metadata.ejb.jboss.JBossMetaData@1f has been processed on org.jboss.metadata.process.chain.ejb.jboss.JBossMetaDataProcessorChain@bd9138
                        15:57:05,629 DEBUG [EjbMetadataJndiPolicyDecoratorDeployer] Decorating EJB3 EJBs in org.jboss.metadata.ejb.jboss.JBossMetaData@1f with JNDI Policy
                        15:57:05,630 DEBUG [MetadataUtil] Defaulting to DefaultJndiBindingPolicy of "org.jboss.metadata.ejb.jboss.jndipolicy.plugins.BasicJndiBindingPolicy" for Session Bean SharedBean
                        15:57:05,632 DEBUG [MetadataUtil] Replaced SharedBean with decorated instance fit with DefaultJndiBindingPolicy
                        15:57:05,632 DEBUG [EjbMetadataJndiPolicyDecoratorDeployer] Decorating EJB3 EJBs in org.jboss.metadata.ejb.jboss.JBossMetaData@1f with JNDI Policy
                        15:57:05,632 DEBUG [MetadataUtil] Defaulting to DefaultJndiBindingPolicy of "org.jboss.metadata.ejb.jboss.jndipolicy.plugins.BasicJndiBindingPolicy" for Session Bean FirstSharedBean
                        15:57:05,632 DEBUG [MetadataUtil] Defaulting to DefaultJndiBindingPolicy of "org.jboss.metadata.ejb.jboss.jndipolicy.plugins.BasicJndiBindingPolicy" for Session Bean SecondSharedBean
                        15:57:05,632 DEBUG [MetadataUtil] Replaced FirstSharedBean with decorated instance fit with DefaultJndiBindingPolicy
                        15:57:05,632 DEBUG [MetadataUtil] Replaced SecondSharedBean with decorated instance fit with DefaultJndiBindingPolicy
                        15:57:05,636 DEBUG [JBossSessionPolicyDecorator] Resolved JNDI Name for Interface local of type BUSINESS_LOCAL is SharedBean/local
                        15:57:05,636 DEBUG [JBossSessionPolicyDecorator] Resolved JNDI Name for Interface test.SharedLocal of type BUSINESS_LOCAL is SharedBean/local-test.SharedLocal
                        15:57:05,636 DEBUG [JBossSessionPolicyDecorator] Resolved JNDI Name for Interface local of type BUSINESS_LOCAL is test-ear/FirstSharedBean/local
                        15:57:05,636 DEBUG [JBossSessionPolicyDecorator] Resolved JNDI Name for Interface test.SharedLocal of type BUSINESS_LOCAL is test-ear/FirstSharedBean/local-test.SharedLocal
                        15:57:05,636 DEBUG [JBossSessionPolicyDecorator] Resolved JNDI Name for Interface local of type BUSINESS_LOCAL is test-ear/SecondSharedBean/local
                        15:57:05,636 DEBUG [JBossSessionPolicyDecorator] Resolved JNDI Name for Interface test.SharedLocal of type BUSINESS_LOCAL is test-ear/SecondSharedBean/local-test.SharedLocal
                        15:57:05,636 DEBUG [MappedReferenceMetaDataResolverDeployer] SecondSharedBean duplicates business local: test.SharedLocal, existing: ejb/depl.jar#FirstSharedBean
                        15:57:05,636 DEBUG [MappedReferenceMetaDataResolverDeployer] vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/ endpoint mappings:
                         + ejb/depl.jar#SecondSharedBean -> ContainerDependencyMetaData(deploymentPath=depl.jar,componentName=SecondSharedBean,containerName=test-ear/SecondSharedBean/remote,jndiNames=[test-ear/SecondSharedBean/remote, test-ear/SecondSharedBean/local, test-ear/SecondSharedBean/local-test.SharedLocal],jndiAliasDepends=[],targets=[],jndiDepends=[])
                         + ejb/depl.jar#FirstSharedBean -> ContainerDependencyMetaData(deploymentPath=depl.jar,componentName=FirstSharedBean,containerName=test-ear/FirstSharedBean/remote,jndiNames=[test-ear/FirstSharedBean/local, test-ear/FirstSharedBean/remote, test-ear/FirstSharedBean/local-test.SharedLocal],jndiAliasDepends=[],targets=[],jndiDepends=[])
                         + ejb/#SharedBean -> ContainerDependencyMetaData(deploymentPath=,componentName=SharedBean,containerName=SharedBean/remote,jndiNames=[SharedBean/local, SharedBean/local-test.SharedLocal, SharedBean/remote],jndiAliasDepends=[],targets=[],jndiDepends=[])
                        
                        15:57:05,636 DEBUG [MappedReferenceMetaDataResolverDeployer] Processing unit=depl.jar, structure:
                        test-ear.ear
                        +EjbEndpoint:ejbName=SharedBean,ejbClass=test.SharedBean,BusinessLocals: [test.SharedLocal]
                        
                        +depl.jar
                        ++EjbEndpoint:ejbName=FirstSharedBean,ejbClass=test.SharedBean,BusinessLocals: [test.SharedLocal]
                        ++EjbEndpoint:ejbName=SecondSharedBean,ejbClass=test.SharedBean,BusinessLocals: [test.SharedLocal]
                        
                        
                        15:57:05,636 DEBUG [MappedReferenceMetaDataResolverDeployer] Processing unit=test-ear.ear, structure:
                        test-ear.ear
                        +EjbEndpoint:ejbName=SharedBean,ejbClass=test.SharedBean,BusinessLocals: [test.SharedLocal]
                        
                        +depl.jar
                        ++EjbEndpoint:ejbName=FirstSharedBean,ejbClass=test.SharedBean,BusinessLocals: [test.SharedLocal]
                        ++EjbEndpoint:ejbName=SecondSharedBean,ejbClass=test.SharedBean,BusinessLocals: [test.SharedLocal]
                        
                        
                        15:57:05,637 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@13786588{vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/}
                        15:57:05,637 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@13786588{vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/}
                        15:57:05,637 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@15561225{vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/depl.jar/}
                        15:57:05,637 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@15561225{vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/depl.jar/}
                        15:57:05,637 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@15561225{vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/depl.jar/}
                        15:57:05,637 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@15561225{vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/depl.jar/}
                        15:57:05,640 DEBUG [Ejb3Deployer] ********* Ejb3Deployer Begin Unit: test-ear.ear jar: test-ear.ear
                        15:57:05,681 DEBUG [InterceptorMetaDataBridge] ======> Creating interceptor metadata bridge
                        15:57:05,727 DEBUG [GenericBeanAspectFactory] Creating advice InvocationContextInterceptor with loader null
                        15:57:06,054 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor with loader null
                        15:57:06,054 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.BlockContainerShutdownInterceptor with loader null
                        15:57:06,056 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.asynchronous.AsynchronousInterceptor with loader BaseClassLoader@14300c8{vfsfile:/C:/JBoss-5.0.1.GA/server/default/conf/jboss-service.xml}
                        15:57:06,061 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.ENCPropagationInterceptor with loader null
                        15:57:06,063 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.security.AuthenticationInterceptorFactory
                        15:57:06,065 DEBUG [AuthenticationInterceptorFactory] Creating interceptor with authentication manager 'null'
                        15:57:06,066 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.security.RunAsSecurityInterceptorFactory
                        15:57:06,069 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.aspects.tx.TxPropagationInterceptor with loader null
                        15:57:06,076 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.tx.CMTTxInterceptorFactory
                        15:57:06,089 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.stateless.StatelessInstanceInterceptor with loader null
                        15:57:06,091 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.tx.BMTTxInterceptorFactory
                        15:57:06,092 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.AllowedOperationsInterceptor with loader null
                        15:57:06,093 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor with loader null
                        15:57:06,094 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.connectionmanager.CachedConnectionInterceptorFactory
                        15:57:06,109 DEBUG [Ejb3AnnotationHandler] found EJB3: ejbName=SharedBean, class=test.SharedBean, type=STATELESS
                        15:57:06,114 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.tx.CMTTxInterceptorFactory
                        15:57:06,114 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.tx.BMTTxInterceptorFactory
                        15:57:06,114 DEBUG [ProxyDeployer] no declared remote bindings for : SharedBean
                        15:57:06,115 DEBUG [Ejb3Registry] Registered container jboss.j2ee:ear=test-ear.ear,jar=test-ear.ear,name=SharedBean,service=EJB3,VMID=445ea26deb28e77c:-488c1f6f:1209050cc31:-7fc7
                        15:57:06,137 DEBUG [Ejb3Deployment] EJB3 deployment time took: 497
                        15:57:06,145 DEBUG [InterceptorRegistry] Found default interceptors []
                        15:57:06,146 DEBUG [InterceptorRegistry] Found class interceptors []
                        15:57:06,151 INFO [JBossASKernel] Created KernelDeployment for: test-ear.ear
                        15:57:06,153 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=test-ear.ear,jar=test-ear.ear,name=SharedBean,service=EJB3
                        15:57:06,153 INFO [JBossASKernel] with dependencies:
                        15:57:06,153 INFO [JBossASKernel] and demands:
                        15:57:06,153 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
                        15:57:06,153 INFO [JBossASKernel] and supplies:
                        15:57:06,153 INFO [JBossASKernel] Class:test.SharedLocal
                        15:57:06,153 INFO [JBossASKernel] jndi:SharedBean/remote
                        15:57:06,153 INFO [JBossASKernel] jndi:SharedBean/local
                        15:57:06,153 INFO [JBossASKernel] jndi:SharedBean/local-test.SharedLocal
                        15:57:06,153 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=test-ear.ear,jar=test-ear.ear,name=SharedBean,service=EJB3) to KernelDeployment of: test-ear.ear
                        15:57:06,155 DEBUG [Ejb3Deployment] Bound ejb3 container jboss.j2ee:ear=test-ear.ear,jar=test-ear.ear,name=SharedBean,service=EJB3
                        15:57:06,158 DEBUG [Ejb3Deployer] ********* Ejb3Deployer Begin Unit: depl.jar jar: depl.jar
                        15:57:06,158 DEBUG [InterceptorMetaDataBridge] ======> Creating interceptor metadata bridge
                        15:57:06,168 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.asynchronous.AsynchronousInterceptor with loader BaseClassLoader@14300c8{vfsfile:/C:/JBoss-5.0.1.GA/server/default/conf/jboss-service.xml}
                        15:57:06,169 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.security.AuthenticationInterceptorFactory
                        15:57:06,169 DEBUG [AuthenticationInterceptorFactory] Creating interceptor with authentication manager 'null'
                        15:57:06,169 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.security.RunAsSecurityInterceptorFactory
                        15:57:06,169 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.tx.CMTTxInterceptorFactory
                        15:57:06,169 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.tx.BMTTxInterceptorFactory
                        15:57:06,169 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.connectionmanager.CachedConnectionInterceptorFactory
                        15:57:06,170 DEBUG [Ejb3DescriptorHandler] adding class annotation javax.ejb.Stateless to jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=FirstSharedBean,service=EJB3 org.jboss.ejb3.annotation.impl.StatelessImpl@a943af
                        15:57:06,171 DEBUG [Ejb3DescriptorHandler] Adding @Local interface test.SharedLocal as specified in metadata
                        15:57:06,171 DEBUG [Ejb3DescriptorHandler] adding class annotation javax.ejb.Local to jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=FirstSharedBean,service=EJB3 org.jboss.ejb3.annotation.impl.LocalImpl@9ac7bd
                        15:57:06,171 DEBUG [Ejb3DescriptorHandler] adding class annotation org.jboss.ejb3.annotation.SecurityDomain to jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=FirstSharedBean,service=EJB3 SecurityDomainImpl[value=, unauthenticatedPrincipal=anonymous]
                        15:57:06,171 DEBUG [Ejb3DescriptorHandler] adding class annotation org.jboss.ejb3.annotation.LocalBinding to jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=FirstSharedBean,service=EJB3 org.jboss.ejb3.annotation.impl.LocalBindingImpl@154ef33
                        15:57:06,172 DEBUG [Ejb3DescriptorHandler] adding class annotation org.jboss.ejb3.annotation.LocalHomeBinding to jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=FirstSharedBean,service=EJB3 org.jboss.ejb3.annotation.impl.LocalHomeBindingImpl@80364e
                        15:57:06,173 DEBUG [Ejb3DescriptorHandler] adding class annotation org.jboss.ejb3.annotation.RemoteHomeBinding to jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=FirstSharedBean,service=EJB3 [RemoteHomeBindingImpl:, jndi=test-ear/FirstSharedBean/home]
                        15:57:06,174 DEBUG [Ejb3DescriptorHandler] adding class annotation org.jboss.ejb3.annotation.RemoteBinding to jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=FirstSharedBean,service=EJB3 [RemoteBindingImpl:, jndi=test-ear/FirstSharedBean/remote, stack=, bindUrl=, proxyFactory=RemoteProxyFactory, constructionPoint=org.jboss.ejb3.Ejb3DescriptorHandler.addRemoteJndiAnnotations(Ejb3DescriptorHandler.java:1796)]
                        15:57:06,175 DEBUG [Ejb3DescriptorHandler] Adding org.jboss.ejb3.annotation.RemoteBinding to jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=FirstSharedBean,service=EJB3: [RemoteBindingImpl:, jndi=test-ear/FirstSharedBean/remote, stack=, bindUrl=, proxyFactory=RemoteProxyFactory, constructionPoint=org.jboss.ejb3.Ejb3DescriptorHandler.addRemoteJndiAnnotations(Ejb3DescriptorHandler.java:1796)]
                        15:57:06,175 DEBUG [Ejb3DescriptorHandler] found EJB3: ejbName=FirstSharedBean, class=test.SharedBean, type=STATELESS
                        15:57:06,176 DEBUG [InterceptorMetaDataBridge] ======> Creating interceptor metadata bridge
                        15:57:06,183 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.asynchronous.AsynchronousInterceptor with loader BaseClassLoader@14300c8{vfsfile:/C:/JBoss-5.0.1.GA/server/default/conf/jboss-service.xml}
                        15:57:06,183 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.security.AuthenticationInterceptorFactory
                        15:57:06,183 DEBUG [AuthenticationInterceptorFactory] Creating interceptor with authentication manager 'null'
                        15:57:06,183 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.security.RunAsSecurityInterceptorFactory
                        15:57:06,183 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.tx.CMTTxInterceptorFactory
                        15:57:06,183 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.tx.BMTTxInterceptorFactory
                        15:57:06,183 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.connectionmanager.CachedConnectionInterceptorFactory
                        15:57:06,184 DEBUG [Ejb3DescriptorHandler] adding class annotation javax.ejb.Stateless to jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=SecondSharedBean,service=EJB3 org.jboss.ejb3.annotation.impl.StatelessImpl@18d708f
                        15:57:06,184 DEBUG [Ejb3DescriptorHandler] Adding @Local interface test.SharedLocal as specified in metadata
                        15:57:06,184 DEBUG [Ejb3DescriptorHandler] adding class annotation javax.ejb.Local to jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=SecondSharedBean,service=EJB3 org.jboss.ejb3.annotation.impl.LocalImpl@d8c235
                        15:57:06,184 DEBUG [Ejb3DescriptorHandler] adding class annotation org.jboss.ejb3.annotation.SecurityDomain to jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=SecondSharedBean,service=EJB3 SecurityDomainImpl[value=, unauthenticatedPrincipal=anonymous]
                        15:57:06,184 DEBUG [Ejb3DescriptorHandler] adding class annotation org.jboss.ejb3.annotation.LocalBinding to jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=SecondSharedBean,service=EJB3 org.jboss.ejb3.annotation.impl.LocalBindingImpl@b6607a
                        15:57:06,184 DEBUG [Ejb3DescriptorHandler] adding class annotation org.jboss.ejb3.annotation.LocalHomeBinding to jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=SecondSharedBean,service=EJB3 org.jboss.ejb3.annotation.impl.LocalHomeBindingImpl@1782572
                        15:57:06,184 DEBUG [Ejb3DescriptorHandler] adding class annotation org.jboss.ejb3.annotation.RemoteHomeBinding to jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=SecondSharedBean,service=EJB3 [RemoteHomeBindingImpl:, jndi=test-ear/SecondSharedBean/home]
                        15:57:06,184 DEBUG [Ejb3DescriptorHandler] adding class annotation org.jboss.ejb3.annotation.RemoteBinding to jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=SecondSharedBean,service=EJB3 [RemoteBindingImpl:, jndi=test-ear/SecondSharedBean/remote, stack=, bindUrl=, proxyFactory=RemoteProxyFactory, constructionPoint=org.jboss.ejb3.Ejb3DescriptorHandler.addRemoteJndiAnnotations(Ejb3DescriptorHandler.java:1796)]
                        15:57:06,185 DEBUG [Ejb3DescriptorHandler] Adding org.jboss.ejb3.annotation.RemoteBinding to jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=SecondSharedBean,service=EJB3: [RemoteBindingImpl:, jndi=test-ear/SecondSharedBean/remote, stack=, bindUrl=, proxyFactory=RemoteProxyFactory, constructionPoint=org.jboss.ejb3.Ejb3DescriptorHandler.addRemoteJndiAnnotations(Ejb3DescriptorHandler.java:1796)]
                        15:57:06,185 DEBUG [Ejb3DescriptorHandler] found EJB3: ejbName=SecondSharedBean, class=test.SharedBean, type=STATELESS
                        15:57:06,185 DEBUG [GenericBeanAspectFactory] Creating advice Basic Authorization
                        15:57:06,187 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.tx.CMTTxInterceptorFactory
                        15:57:06,188 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.tx.BMTTxInterceptorFactory
                        15:57:06,188 DEBUG [Ejb3Registry] Registered container jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=FirstSharedBean,service=EJB3,VMID=445ea26deb28e77c:-488c1f6f:1209050cc31:-7fc7
                        15:57:06,189 DEBUG [GenericBeanAspectFactory] Creating advice Basic Authorization
                        15:57:06,189 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.tx.CMTTxInterceptorFactory
                        15:57:06,189 DEBUG [GenericBeanAspectFactory] Creating advice org.jboss.ejb3.tx.BMTTxInterceptorFactory
                        15:57:06,189 DEBUG [Ejb3Registry] Registered container jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=SecondSharedBean,service=EJB3,VMID=445ea26deb28e77c:-488c1f6f:1209050cc31:-7fc7
                        15:57:06,190 DEBUG [Ejb3Deployment] EJB3 deployment time took: 32
                        15:57:06,190 DEBUG [InterceptorRegistry] Found default interceptors []
                        15:57:06,190 DEBUG [InterceptorRegistry] Found class interceptors []
                        15:57:06,194 DEBUG [InterceptorRegistry] Found default interceptors []
                        15:57:06,194 DEBUG [InterceptorRegistry] Found class interceptors []
                        15:57:06,198 INFO [JBossASKernel] Created KernelDeployment for: depl.jar
                        15:57:06,198 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=FirstSharedBean,service=EJB3
                        15:57:06,198 INFO [JBossASKernel] with dependencies:
                        15:57:06,198 INFO [JBossASKernel] and demands:
                        15:57:06,198 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
                        15:57:06,198 INFO [JBossASKernel] and supplies:
                        15:57:06,198 INFO [JBossASKernel] Class:test.SharedLocal
                        15:57:06,198 INFO [JBossASKernel] jndi:test-ear/FirstSharedBean/local
                        15:57:06,198 INFO [JBossASKernel] jndi:test-ear/FirstSharedBean/local-test.SharedLocal
                        15:57:06,198 INFO [JBossASKernel] jndi:test-ear/FirstSharedBean/remote
                        15:57:06,198 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=FirstSharedBean,service=EJB3) to KernelDeployment of: depl.jar
                        15:57:06,199 DEBUG [Ejb3Deployment] Bound ejb3 container jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=FirstSharedBean,service=EJB3
                        15:57:06,199 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=SecondSharedBean,service=EJB3
                        15:57:06,199 INFO [JBossASKernel] with dependencies:
                        15:57:06,199 INFO [JBossASKernel] and demands:
                        15:57:06,199 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
                        15:57:06,199 INFO [JBossASKernel] and supplies:
                        15:57:06,199 INFO [JBossASKernel] jndi:test-ear/SecondSharedBean/remote
                        15:57:06,199 INFO [JBossASKernel] Class:test.SharedLocal
                        15:57:06,199 INFO [JBossASKernel] jndi:test-ear/SecondSharedBean/local-test.SharedLocal
                        15:57:06,199 INFO [JBossASKernel] jndi:test-ear/SecondSharedBean/local
                        15:57:06,199 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=SecondSharedBean,service=EJB3) to KernelDeployment of: depl.jar
                        15:57:06,199 DEBUG [Ejb3Deployment] Bound ejb3 container jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=SecondSharedBean,service=EJB3
                        15:57:06,201 DEBUG [AbstractDeploymentContext] Added component jboss.j2ee:ear=test-ear.ear,jar=test-ear.ear,name=SharedBean,service=EJB3 to vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/
                        15:57:06,202 DEBUG [AbstractDeploymentContext] Added component jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=FirstSharedBean,service=EJB3 to vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/depl.jar/
                        15:57:06,204 DEBUG [AbstractDeploymentContext] Added component jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=SecondSharedBean,service=EJB3 to vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/depl.jar/
                        15:57:06,263 DEBUG [AbstractInjectionValueMetaData] jboss.j2ee:ear=test-ear.ear,jar=test-ear.ear,name=SharedBean,service=EJB3: Contextual injection usage (class -> classloader): interface org.jboss.jca.spi.ComponentStack -> BaseClassLoader@14300c8{vfsfile:/C:/JBoss-5.0.1.GA/server/default/conf/jboss-service.xml} defined by AbstractPropertyMetaData@1115cea{name=cachedConnectionManager value=AbstractInjectionValueMetaData@eb3b83{value=null injectionType=BY_CLASS propertyMetaData=cachedConnectionManager}}
                        15:57:06,263 DEBUG [AbstractInjectionValueMetaData] jboss.j2ee:ear=test-ear.ear,jar=test-ear.ear,name=SharedBean,service=EJB3: Contextual injection usage (class -> classloader): interface javax.transaction.TransactionManager -> BaseClassLoader@14300c8{vfsfile:/C:/JBoss-5.0.1.GA/server/default/conf/jboss-service.xml} defined by AbstractPropertyMetaData@1902864{name=transactionManager value=AbstractInjectionValueMetaData@14be60b{value=null injectionType=BY_CLASS propertyMetaData=transactionManager}}
                        15:57:06,265 INFO [SessionSpecContainer] Starting jboss.j2ee:ear=test-ear.ear,jar=test-ear.ear,name=SharedBean,service=EJB3
                        15:57:06,270 DEBUG [UserTransactionImpl] new UserTx: org.jboss.ejb3.tx.UserTransactionImpl@13a377d
                        15:57:06,270 DEBUG [EJBContainer] Linked java:comp/TransactionSynchronizationRegistry to JNDI name: java:TransactionSynchronizationRegistry
                        15:57:06,270 INFO [EJBContainer] STARTED EJB: test.SharedBean ejbName: SharedBean
                        15:57:06,271 DEBUG [SessionContainer] Registered jboss.j2ee:ear=test-ear.ear,jar=test-ear.ear,name=SharedBean,service=EJB3 with org.jboss.aop.Dispatcher via InvokableContextClassProxyHack at key jboss.j2ee:ear=test-ear.ear,jar=test-ear.ear,name=SharedBean,service=EJB3
                        15:57:06,271 DEBUG [Ejb3McRegistrar] Returning from name "org.jboss.ejb3.JndiRegistrar.Session.SLSBJndiRegistrar": org.jboss.ejb3.proxy.jndiregistrar.JndiStatelessSessionRegistrar@3d982d
                        15:57:06,271 DEBUG [JndiSessionRegistrarBase] Found Session Bean: SharedBean
                        15:57:06,277 DEBUG [JndiSessionRegistrarBase] Registering org.jboss.ejb3.proxy.factory.session.stateless.StatelessSessionLocalProxyFactory@1eaee49 under key "ProxyFactory/SharedBean/SharedBean/local"...
                        15:57:06,293 DEBUG [ProxyFactoryBase] Started: org.jboss.ejb3.proxy.factory.session.stateless.StatelessSessionLocalProxyFactory@1eaee49
                        15:57:06,297 DEBUG [SessionProxyFactoryBase] Created Session Bean Business Interface-Specific Proxy Constructor implementing "test.SharedLocal"
                        15:57:06,297 DEBUG [SessionProxyFactoryBase] Created Session Bean Default EJB3 Business Proxy Constructor implementing [interface test.SharedLocal, interface org.jboss.ejb3.proxy.intf.EjbProxy, interface org.jboss.ejb3.proxy.intf.SessionProxy]
                        15:57:06,297 DEBUG [Ejb3McRegistrar] Installed in AbstractKernelController@e2e276{null} at "ProxyFactory/SharedBean/SharedBean/local": org.jboss.ejb3.proxy.factory.session.stateless.StatelessSessionLocalProxyFactory@1eaee49
                        15:57:06,297 DEBUG [JndiSessionRegistrarBase] Adding RefAddr to Reference: Type "ProxyFactoryKey", Content "ProxyFactory/SharedBean/SharedBean/local"
                        15:57:06,297 DEBUG [JndiSessionRegistrarBase] Adding RefAddr to Reference: Type "EJB Container Name", Content "jboss.j2ee:ear=test-ear.ear,jar=test-ear.ear,name=SharedBean,service=EJB3"
                        15:57:06,297 DEBUG [JndiSessionRegistrarBase] Adding RefAddr to Default Local Reference: Type "Local Business Interface", Content "test.SharedLocal"
                        15:57:06,297 DEBUG [JndiSessionRegistrarBase] Default Local Business View for EJB SharedBean to be bound into JNDI at "SharedBean/local"
                        15:57:06,297 DEBUG [JndiSessionRegistrarBase] Adding RefAddr to Reference: Type "ProxyFactoryKey", Content "ProxyFactory/SharedBean/SharedBean/local"
                        15:57:06,297 DEBUG [JndiSessionRegistrarBase] Adding RefAddr to Reference: Type "EJB Container Name", Content "jboss.j2ee:ear=test-ear.ear,jar=test-ear.ear,name=SharedBean,service=EJB3"
                        15:57:06,309 DEBUG [JBossSessionPolicyDecorator] Resolved JNDI Name for Interface test.SharedLocal of type BUSINESS_LOCAL is SharedBean/local-test.SharedLocal
                        15:57:06,309 DEBUG [JndiSessionRegistrarBase] Local Business View for test.SharedLocal of EJB SharedBean to be bound into JNDI at "SharedBean/local-test.SharedLocal"
                        15:57:06,309 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
                        
                         SharedBean/local - EJB3.x Default Local Business Interface
                         SharedBean/local-test.SharedLocal - EJB3.x Local Business Interface
                        
                        15:57:06,309 DEBUG [JndiSessionRegistrarBase] Bound javax.naming.Reference into JNDI at "SharedBean/local"
                        15:57:06,309 DEBUG [JndiSessionRegistrarBase] Bound javax.naming.Reference into JNDI at "SharedBean/local-test.SharedLocal"
                        15:57:06,328 DEBUG [EJBTimerServiceImpl] createTimerService: org.jboss.ejb.txtimer.TimerServiceImpl@377d53
                        15:57:06,787 DEBUG [AbstractInjectionValueMetaData] jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=FirstSharedBean,service=EJB3: Contextual injection usage (class -> classloader): interface org.jboss.jca.spi.ComponentStack -> BaseClassLoader@14300c8{vfsfile:/C:/JBoss-5.0.1.GA/server/default/conf/jboss-service.xml} defined by AbstractPropertyMetaData@e926a3{name=cachedConnectionManager value=AbstractInjectionValueMetaData@e7c4ef{value=null injectionType=BY_CLASS propertyMetaData=cachedConnectionManager}}
                        15:57:06,788 DEBUG [AbstractInjectionValueMetaData] jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=FirstSharedBean,service=EJB3: Contextual injection usage (class -> classloader): interface javax.transaction.TransactionManager -> BaseClassLoader@14300c8{vfsfile:/C:/JBoss-5.0.1.GA/server/default/conf/jboss-service.xml} defined by AbstractPropertyMetaData@324105{name=transactionManager value=AbstractInjectionValueMetaData@14ab68b{value=null injectionType=BY_CLASS propertyMetaData=transactionManager}}
                        15:57:06,790 INFO [SessionSpecContainer] Starting jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=FirstSharedBean,service=EJB3
                        15:57:06,790 DEBUG [UserTransactionImpl] new UserTx: org.jboss.ejb3.tx.UserTransactionImpl@56c0b1
                        15:57:06,790 DEBUG [EJBContainer] Linked java:comp/TransactionSynchronizationRegistry to JNDI name: java:TransactionSynchronizationRegistry
                        15:57:06,790 INFO [EJBContainer] STARTED EJB: test.SharedBean ejbName: FirstSharedBean
                        15:57:06,790 DEBUG [SessionContainer] Registered jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=FirstSharedBean,service=EJB3 with org.jboss.aop.Dispatcher via InvokableContextClassProxyHack at key jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=FirstSharedBean,service=EJB3
                        15:57:06,790 DEBUG [Ejb3McRegistrar] Returning from name "org.jboss.ejb3.JndiRegistrar.Session.SLSBJndiRegistrar": org.jboss.ejb3.proxy.jndiregistrar.JndiStatelessSessionRegistrar@3d982d
                        15:57:06,790 DEBUG [JndiSessionRegistrarBase] Found Session Bean: FirstSharedBean
                        15:57:06,791 DEBUG [JndiSessionRegistrarBase] Registering org.jboss.ejb3.proxy.factory.session.stateless.StatelessSessionLocalProxyFactory@184cdab under key "ProxyFactory/FirstSharedBean/test-ear/FirstSharedBean/local"...
                        15:57:06,797 DEBUG [ProxyFactoryBase] Started: org.jboss.ejb3.proxy.factory.session.stateless.StatelessSessionLocalProxyFactory@184cdab
                        15:57:06,797 DEBUG [SessionProxyFactoryBase] Created Session Bean Business Interface-Specific Proxy Constructor implementing "test.SharedLocal"
                        15:57:06,797 DEBUG [SessionProxyFactoryBase] Created Session Bean Default EJB3 Business Proxy Constructor implementing [interface test.SharedLocal, interface org.jboss.ejb3.proxy.intf.EjbProxy, interface org.jboss.ejb3.proxy.intf.SessionProxy]
                        15:57:06,797 DEBUG [Ejb3McRegistrar] Installed in AbstractKernelController@e2e276{null} at "ProxyFactory/FirstSharedBean/test-ear/FirstSharedBean/local": org.jboss.ejb3.proxy.factory.session.stateless.StatelessSessionLocalProxyFactory@184cdab
                        15:57:06,797 DEBUG [JndiSessionRegistrarBase] Adding RefAddr to Reference: Type "ProxyFactoryKey", Content "ProxyFactory/FirstSharedBean/test-ear/FirstSharedBean/local"
                        15:57:06,797 DEBUG [JndiSessionRegistrarBase] Adding RefAddr to Reference: Type "EJB Container Name", Content "jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=FirstSharedBean,service=EJB3"
                        15:57:06,797 DEBUG [JndiSessionRegistrarBase] Adding RefAddr to Default Local Reference: Type "Local Business Interface", Content "test.SharedLocal"
                        15:57:06,797 DEBUG [JndiSessionRegistrarBase] Default Local Business View for EJB FirstSharedBean to be bound into JNDI at "test-ear/FirstSharedBean/local"
                        15:57:06,797 DEBUG [JndiSessionRegistrarBase] Adding RefAddr to Reference: Type "ProxyFactoryKey", Content "ProxyFactory/FirstSharedBean/test-ear/FirstSharedBean/local"
                        15:57:06,797 DEBUG [JndiSessionRegistrarBase] Adding RefAddr to Reference: Type "EJB Container Name", Content "jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=FirstSharedBean,service=EJB3"
                        15:57:06,797 DEBUG [JBossSessionPolicyDecorator] Resolved JNDI Name for Interface test.SharedLocal of type BUSINESS_LOCAL is test-ear/FirstSharedBean/local-test.SharedLocal
                        15:57:06,797 DEBUG [JndiSessionRegistrarBase] Local Business View for test.SharedLocal of EJB FirstSharedBean to be bound into JNDI at "test-ear/FirstSharedBean/local-test.SharedLocal"
                        15:57:06,797 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
                        
                         test-ear/FirstSharedBean/local - EJB3.x Default Local Business Interface
                         test-ear/FirstSharedBean/local-test.SharedLocal - EJB3.x Local Business Interface
                        
                        15:57:06,797 DEBUG [JndiSessionRegistrarBase] Bound javax.naming.Reference into JNDI at "test-ear/FirstSharedBean/local"
                        15:57:06,798 DEBUG [JndiSessionRegistrarBase] Bound javax.naming.Reference into JNDI at "test-ear/FirstSharedBean/local-test.SharedLocal"
                        15:57:06,799 DEBUG [EJBTimerServiceImpl] createTimerService: org.jboss.ejb.txtimer.TimerServiceImpl@aad926
                        15:57:06,828 DEBUG [AbstractInjectionValueMetaData] jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=SecondSharedBean,service=EJB3: Contextual injection usage (class -> classloader): interface org.jboss.jca.spi.ComponentStack -> BaseClassLoader@14300c8{vfsfile:/C:/JBoss-5.0.1.GA/server/default/conf/jboss-service.xml} defined by AbstractPropertyMetaData@87832d{name=cachedConnectionManager value=AbstractInjectionValueMetaData@b535fe{value=null injectionType=BY_CLASS propertyMetaData=cachedConnectionManager}}
                        15:57:06,828 DEBUG [AbstractInjectionValueMetaData] jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=SecondSharedBean,service=EJB3: Contextual injection usage (class -> classloader): interface javax.transaction.TransactionManager -> BaseClassLoader@14300c8{vfsfile:/C:/JBoss-5.0.1.GA/server/default/conf/jboss-service.xml} defined by AbstractPropertyMetaData@ebeb60{name=transactionManager value=AbstractInjectionValueMetaData@a9ed1f{value=null injectionType=BY_CLASS propertyMetaData=transactionManager}}
                        15:57:06,830 INFO [SessionSpecContainer] Starting jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=SecondSharedBean,service=EJB3
                        15:57:06,830 DEBUG [UserTransactionImpl] new UserTx: org.jboss.ejb3.tx.UserTransactionImpl@1f42649
                        15:57:06,830 DEBUG [EJBContainer] Linked java:comp/TransactionSynchronizationRegistry to JNDI name: java:TransactionSynchronizationRegistry
                        15:57:06,830 INFO [EJBContainer] STARTED EJB: test.SharedBean ejbName: SecondSharedBean
                        15:57:06,830 DEBUG [SessionContainer] Registered jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=SecondSharedBean,service=EJB3 with org.jboss.aop.Dispatcher via InvokableContextClassProxyHack at key jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=SecondSharedBean,service=EJB3
                        15:57:06,830 DEBUG [Ejb3McRegistrar] Returning from name "org.jboss.ejb3.JndiRegistrar.Session.SLSBJndiRegistrar": org.jboss.ejb3.proxy.jndiregistrar.JndiStatelessSessionRegistrar@3d982d
                        15:57:06,830 DEBUG [JndiSessionRegistrarBase] Found Session Bean: SecondSharedBean
                        15:57:06,830 DEBUG [JndiSessionRegistrarBase] Registering org.jboss.ejb3.proxy.factory.session.stateless.StatelessSessionLocalProxyFactory@1fd9e4b under key "ProxyFactory/SecondSharedBean/test-ear/SecondSharedBean/local"...
                        15:57:06,837 DEBUG [ProxyFactoryBase] Started: org.jboss.ejb3.proxy.factory.session.stateless.StatelessSessionLocalProxyFactory@1fd9e4b
                        15:57:06,837 DEBUG [SessionProxyFactoryBase] Created Session Bean Business Interface-Specific Proxy Constructor implementing "test.SharedLocal"
                        15:57:06,837 DEBUG [SessionProxyFactoryBase] Created Session Bean Default EJB3 Business Proxy Constructor implementing [interface test.SharedLocal, interface org.jboss.ejb3.proxy.intf.EjbProxy, interface org.jboss.ejb3.proxy.intf.SessionProxy]
                        15:57:06,837 DEBUG [Ejb3McRegistrar] Installed in AbstractKernelController@e2e276{null} at "ProxyFactory/SecondSharedBean/test-ear/SecondSharedBean/local": org.jboss.ejb3.proxy.factory.session.stateless.StatelessSessionLocalProxyFactory@1fd9e4b
                        15:57:06,837 DEBUG [JndiSessionRegistrarBase] Adding RefAddr to Reference: Type "ProxyFactoryKey", Content "ProxyFactory/SecondSharedBean/test-ear/SecondSharedBean/local"
                        15:57:06,837 DEBUG [JndiSessionRegistrarBase] Adding RefAddr to Reference: Type "EJB Container Name", Content "jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=SecondSharedBean,service=EJB3"
                        15:57:06,837 DEBUG [JndiSessionRegistrarBase] Adding RefAddr to Default Local Reference: Type "Local Business Interface", Content "test.SharedLocal"
                        15:57:06,837 DEBUG [JndiSessionRegistrarBase] Default Local Business View for EJB SecondSharedBean to be bound into JNDI at "test-ear/SecondSharedBean/local"
                        15:57:06,837 DEBUG [JndiSessionRegistrarBase] Adding RefAddr to Reference: Type "ProxyFactoryKey", Content "ProxyFactory/SecondSharedBean/test-ear/SecondSharedBean/local"
                        15:57:06,837 DEBUG [JndiSessionRegistrarBase] Adding RefAddr to Reference: Type "EJB Container Name", Content "jboss.j2ee:ear=test-ear.ear,jar=depl.jar,name=SecondSharedBean,service=EJB3"
                        15:57:06,837 DEBUG [JBossSessionPolicyDecorator] Resolved JNDI Name for Interface test.SharedLocal of type BUSINESS_LOCAL is test-ear/SecondSharedBean/local-test.SharedLocal
                        15:57:06,837 DEBUG [JndiSessionRegistrarBase] Local Business View for test.SharedLocal of EJB SecondSharedBean to be bound into JNDI at "test-ear/SecondSharedBean/local-test.SharedLocal"
                        15:57:06,837 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
                        
                         test-ear/SecondSharedBean/local - EJB3.x Default Local Business Interface
                         test-ear/SecondSharedBean/local-test.SharedLocal - EJB3.x Local Business Interface
                        
                        15:57:06,837 DEBUG [JndiSessionRegistrarBase] Bound javax.naming.Reference into JNDI at "test-ear/SecondSharedBean/local"
                        15:57:06,840 DEBUG [JndiSessionRegistrarBase] Bound javax.naming.Reference into JNDI at "test-ear/SecondSharedBean/local-test.SharedLocal"
                        15:57:06,842 DEBUG [EJBTimerServiceImpl] createTimerService: org.jboss.ejb.txtimer.TimerServiceImpl@1def740
                        15:57:06,879 DEBUG [AbstractDeploymentContext] Added component jboss.jacc:id="vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/",service=jacc to vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/
                        15:57:06,881 DEBUG [AbstractDeploymentContext] Added component jboss.jacc:id="vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/depl.jar/",parent="test-ear.ear",service=jacc to vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/depl.jar/
                        15:57:06,881 DEBUG [ServiceCreator] About to create bean: jboss.jacc:service=jacc,id="vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/" with code: org.jboss.deployment.security.EjbJaccPolicy
                        15:57:06,882 DEBUG [ServiceCreator] Created mbean: jboss.jacc:service=jacc,id="vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/"
                        15:57:06,883 DEBUG [ServiceConfigurator] PolicyConfigurationFacadeMBean set to MBeanProxyExt[jboss.jacc:service=jacc,id="vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/depl.jar/",parent="test-ear.ear"] in jboss.jacc:service=jacc,id="vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/"
                        15:57:06,884 DEBUG [ServiceController] Creating service jboss.jacc:service=jacc,id="vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/"
                        15:57:06,884 DEBUG [ServiceController] Waiting in create of jboss.jacc:service=jacc,id="vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/" on jboss.jacc:id="vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/depl.jar/",parent="test-ear.ear",service=jacc jboss.jacc:id="vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/depl.jar/",parent="test-ear.ear",service=jacc
                        15:57:06,884 DEBUG [ServiceController] starting service jboss.jacc:service=jacc,id="vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/"
                        15:57:06,884 DEBUG [ServiceController] Waiting in start of jboss.jacc:service=jacc,id="vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/" on
                        15:57:06,884 DEBUG [ServiceCreator] About to create bean: jboss.jacc:service=jacc,id="vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/depl.jar/",parent="test-ear.ear" with code: org.jboss.deployment.security.EjbPolicyConfigurationFacade
                        15:57:06,885 DEBUG [ServiceCreator] Created mbean: jboss.jacc:service=jacc,id="vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/depl.jar/",parent="test-ear.ear"
                        15:57:06,885 DEBUG [ServiceController] Creating service jboss.jacc:service=jacc,id="vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/depl.jar/",parent="test-ear.ear"
                        15:57:06,887 DEBUG [ServiceController] starting service jboss.jacc:service=jacc,id="vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/depl.jar/",parent="test-ear.ear"
                        15:57:06,889 DEBUG [DeployersImpl] Fully Deployed vfszip:/C:/JBoss-5.0.1.GA/server/default/deploy/test-ear.ear/
                        


                        • 9. Re: Unwanted deployment of the shared STLBs
                          alesj

                          Beats me then. :-(

                          The next step is to see if this class pops up in OptAnnotationMetaDataDeployer,
                          when you ask AnnotationEnvironment for the classes annotated with @Stateless.

                          • 10. Re: Unwanted deployment of the shared STLBs
                            havramm

                             

                            "alesj" wrote:
                            Beats me then. :-(

                            The next step is to see if this class pops up in OptAnnotationMetaDataDeployer,
                            when you ask AnnotationEnvironment for the classes annotated with @Stateless.


                            Can you give me some more instructions what I should do to provide you more information?

                            • 11. Re: Unwanted deployment of the shared STLBs
                              alesj

                              In metadata-deployer-jboss-beans.xml there is OptAnnotationMetaDataDeployer defined:
                              - http://anonsvn.jboss.org/repos/jbossas/trunk/server/src/main/org/jboss/deployment/OptAnnotationMetaDataDeployer.java

                              It's this code

                               for(Class<? extends Annotation> annotation : typeAnnotations)
                               {
                               Class<Annotation> annotationClass = (Class<Annotation>)annotation;
                               Set<Element<Annotation, Class<?>>> elements = env.classIsAnnotatedWith(annotationClass);
                               for(Element<Annotation, Class<?>> elt : elements)
                               classes.add(elt.getOwner());
                               }
                              

                              that gathers all possible classes that should be "interesting" for EJB3.

                              In your case the annotation class is Stateless.class,
                              and we would like to see which classes "env.classIsAnnotatedWith(...)" returns.
                              If it returns your illegal bean, than there is something leaking into AnnotationEnviroment,
                              which should be actually ignored via that recurse filter.

                              If you can debug those classes that would be great. :-)

                              • 12. Re: Unwanted deployment of the shared STLBs
                                havramm

                                OK, I will checkout code for AS and try to debug it in the evening. I will keep you informed how it is going...

                                Best regards!

                                • 13. Re: Unwanted deployment of the shared STLBs
                                  havramm

                                   

                                  "alesj" wrote:
                                  In your case the annotation class is Stateless.class,
                                  and we would like to see which classes "env.classIsAnnotatedWith(...)" returns.
                                  If it returns your illegal bean, than there is something leaking into AnnotationEnviroment,
                                  which should be actually ignored via that recurse filter.

                                  If you can debug those classes that would be great. :-)


                                  I did debugging and it was exactly as you supposed - my class have been returned as one annotated with "Stateless".

                                  • 14. Re: Unwanted deployment of the shared STLBs
                                    havramm

                                    One more thing:

                                    There are actually two passes through OptAnnotationMetadata.getClasses method.

                                    During the first pass, parameter unit (VFSDeploymentUnit) is set to my ear (test.ear) and within it (?) my bean has been found.
                                    Second pass has parameter unit set to jar (depl.jar) from ear and it does not found any class that can be deployed (and that is OK).

                                    Hope this helps...

                                    1 2 Previous Next