[
https://issues.jboss.org/browse/AS7-2184?page=com.atlassian.jira.plugin.s...
]
Bob Fields updated AS7-2184:
----------------------------
Steps to Reproduce: Deploy attached JavaCompEnvContextBug.war file in
http://community.jboss.org/message/632844#632844 zip attachment. Error is immediate during
deployment. Change persistence.xml to point to global datasource, redeploy, run
jndiBeans.jsp to verify that the java:comp/env datasource is configured correctly in
web.xml and the java:comp/env lookup works OK after app initialization. (was: Deploy
attached JavaCompEnvContextBug.war file in
http://community.jboss.org/message/632844#632844 zip attachment. Change persistence.xml to
point to global datasource, redeploy, run jndiBeans.jsp to verify that the java:comp/env
datasource is configured correctly in web.xml and the java:comp/env lookup works OK after
app initialization.)
Forum Reference:
http://community.jboss.org/message/632844#632844,
http://community.jboss.org/thread/173769,
http://community.jboss.org/message/570071#570071
(was:
http://community.jboss.org/message/632844#632844,
http://community.jboss.org/thread/173769,
http://community.jboss.org/message/570071#570071)
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: JPA / Hibernate, VFS
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
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