Bug 921004
Summary: | CDI injection into JAX-RS service does not work when hot-deployed. | ||
---|---|---|---|
Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Pavel Macik <pmacik> |
Component: | CDI/Weld, RESTEasy | Assignee: | Stuart Douglas <sdouglas> |
Status: | CLOSED WONTFIX | QA Contact: | |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.0.1 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-03-16 05:14:36 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Pavel Macik
2013-03-13 09:59:52 UTC
Hot deployment does not actually have anything to do with it. It appears to be a race condition in deployment, sometimes it works and sometimes it does not. This is actually caused by user error. In the reproducer the class should only be returned by Application.getClasses(), not Application.getSingletons(). Ideally RESTeasy would detect this case, and would throw an error. I have filed an issue against RESTeasy to detect this problem. Stuart Douglas <stuart.w.douglas> updated the status of jira AS7-6723 to Resolved Ron Sigal <ron.sigal> updated the status of jira RESTEASY-841 to Resolved Alessio Soldano <asoldano> updated the status of jira RESTEASY-841 to Closed |