[jboss-jira] [JBoss JIRA] (AS7-2184) persistence.xml java:comp/env lookup fails during deployment because ContextInitialized is not complete

Bob Fields (Commented) (JIRA) jira-events at lists.jboss.org
Thu Oct 27 10:14:45 EDT 2011


    [ https://issues.jboss.org/browse/AS7-2184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12638036#comment-12638036 ] 

Bob Fields commented on AS7-2184:
---------------------------------

Thanks for the quick fix, I'm glad I could help. I do these kinds of tests on other software and know how frustrating it can be without a reproducible test case even for the simplest bug.

Any possibility we could merge this bugfix into the 7.0 AS branch? It will be a couple months before 7.1 is released to production.

BTW I found this when making updates to our code generation framework, see the comments on JBoss7 vs Tomcat7 at http://www.andromda.org/docs/andromda-documentation/getting-started-java/timetracker-tour.html.
                
> persistence.xml java:comp/env lookup fails during deployment because ContextInitialized is not complete
> -------------------------------------------------------------------------------------------------------
>
>                 Key: AS7-2184
>                 URL: https://issues.jboss.org/browse/AS7-2184
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Naming
>    Affects Versions: 7.0.2.Final
>         Environment: Hibernate 3.6.7, AS 7.0.2 (also fails on AS 6.1)
>            Reporter: Bob Fields
>            Assignee: Scott Marlow
>            Priority: Minor
>             Fix For: 7.1.0.Beta1
>
>
> Works in AS5.1 and earlier, fails in AS6.1 and AS 7.0.2. Standard web.xml configuration, no additional listeners.
> Deployment using <jta-data-source>java:comp/env/jdbc/timetracker</jta-data-source> fails because ENC is not initialized when contextInitialized event occurs. Succeeds if lookup is changed to java:jboss/datasources/ExampleDS which is defined in global JNDI.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list