Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-2713

Multi-ear war JNDI lookup issues ServletContextListener.contextInitialized()

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.1.0.Alpha1
    • Fix Version/s: 7.1.0.Beta1
    • Component/s: Server
    • Labels:
      None

      Description

      The offending application is an EAR with 2 WARs (one uses JSF, one doesn't). It can be found in https://gist.github.com/1380689. Each WAR contains a listener which upon start performs a lookup to java:jboss/datasources/ExampleDS.

      Scenario to reproduce: build application, deploy in running instance. Most of the time the first deployment succeeds. Upon a subsequent deployment, the application fails with a naming lookup error on the datasource in the JSF jar. The cause is that the NamespaceContextSelector doesn't have the jboss namespace setup (none of them, actually).

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                swd847 Stuart Douglas
                Reporter:
                marius.bogoevici Marius Bogoevici
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: