[jboss-jira] [JBoss JIRA] (AS7-6723) CDI injection into JAX-RS service does not work when hot-deployed.

RH Bugzilla Integration (JIRA) jira-events at lists.jboss.org
Wed Mar 13 06:00:45 EDT 2013


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

RH Bugzilla Integration commented on AS7-6723:
----------------------------------------------

Pavel Macik <pmacik at redhat.com> made a comment on [bug 921004|https://bugzilla.redhat.com/show_bug.cgi?id=921004]

To reproduce the issue use following steps:
1.) Get the reproducer from git://github.com/pmacik/jaxrs-cdi-reproducer.git
2.) Get out-of-the-box JBoss AS7 (7.1.1.Final)
3.) Start the AS up
4.) Build the reproducer WAR using "mvn package"
5.) Deploy the reproducer WAR - copy the WAR into (JBOSS_HOME)/standalone/deployments directory
6.) Go to http://localhost:8080/JAXRS-CDI-reproducer/rest/bean/getAll -> NPE is thrown (bean was not injected)
7.) Go to http://localhost:8080/JAXRS-CDI-reproducer/BeanServlet -> the bean is properly injected


There is a workaround - deploy WAR before AS start-up.
                
> CDI injection into JAX-RS service does not work when hot-deployed.
> ------------------------------------------------------------------
>
>                 Key: AS7-6723
>                 URL: https://issues.jboss.org/browse/AS7-6723
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: CDI / Weld, REST
>    Affects Versions: 7.1.1.Final
>            Reporter: Pavel Macik
>            Assignee: Stuart Douglas
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list