glassfish
  1. glassfish
  2. GLASSFISH-20016

Implement new deployment failure when resource type does not match object in jndi

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0_b83
    • Component/s: cdi
    • Labels:
      None

      Description

      Weld does the validation during bootstrap.deployBeans() which is called by WeldDeployer.event when the event is APPLICATION_LOADED.

      The implementation is in InjectionServicesImpl but it doesn't work right now because WeldDeployer is being processed too early and the objects are not in JNDI yet.

      Fixes these CDI tck tests:
      org.jboss.cdi.tck.tests.implementation.simple.resource.broken.type.ResourceDefinitionWithDifferentTypeTest
      org.jboss.cdi.tck.tests.implementation.simple.resource.broken.type.env.ResourceDefinitionWithDifferentTypeTest
      org.jboss.cdi.tck.tests.implementation.simple.resource.broken.type.persistence.ResourceDefinitionWithDifferentTypeTest
      org.jboss.cdi.tck.tests.implementation.simple.resource.broken.type.ejb.ResourceDefinitionWithDifferentTypeTest

        Activity

        Hide
        jjsnyder83 added a comment -

        Committed revision 61031.

        Show
        jjsnyder83 added a comment - Committed revision 61031.

          People

          • Assignee:
            jjsnyder83
            Reporter:
            jjsnyder83
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: