[jboss-jira] [JBoss JIRA] (WFLY-1946) Severe error on deploy of ear: "Unable to obtain CDI 1.1 utilities for Mojarra"

Stuart Douglas (JIRA) jira-events at lists.jboss.org
Tue Aug 27 09:04:26 EDT 2013


     [ https://issues.jboss.org/browse/WFLY-1946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart Douglas reassigned WFLY-1946:
------------------------------------

    Assignee: Stan Silvert  (was: Stuart Douglas)


This is happening because JSF is not being added as a dependency to the ear, and the extensions are initialized with the TCCL set to the ears class loader. 

>From Weld's point of view I think this is the correct behaviour, extensions are not really considered scoped to a particular module.

I think the only way to solve this is to also add JSF to the top level class loader. According to the EE specs I am pretty sure we are supposed to be adding this anyway. 



                
> Severe error on deploy of ear: "Unable to obtain CDI 1.1 utilities for Mojarra"
> -------------------------------------------------------------------------------
>
>                 Key: WFLY-1946
>                 URL: https://issues.jboss.org/browse/WFLY-1946
>             Project: WildFly
>          Issue Type: Bug
>          Components: CDI / Weld, JSF
>    Affects Versions: 8.0.0.Beta1
>            Reporter: Frank Langelage
>            Assignee: Stan Silvert
>         Attachments: Jira-WFLY-1946.tar
>
>
> Deploy of test.ear shows a severe error:
> 00:23:21,917 INFO  [org.jboss.as.server.deployment#start] JBAS015876: Starting deployment of "test.ear" (runtime-name: "test.ear")
> 00:23:21,941 INFO  [org.jboss.as.server.deployment#start] JBAS015876: Starting deployment of "null" (runtime-name: "web.war")
> 00:23:21,942 INFO  [org.jboss.as.server.deployment#start] JBAS015876: Starting deployment of "null" (runtime-name: "ejb.jar")
> 00:23:22,080 INFO  [org.jboss.weld.deployer#deploy] JBAS016002: Processing weld deployment test.ear
> 00:23:22,121 INFO  [org.jboss.weld.deployer#deploy] JBAS016002: Processing weld deployment ejb.jar
> 00:23:22,141 INFO  [org.jboss.weld.deployer#deploy] JBAS016002: Processing weld deployment web.war
> 00:23:22,157 INFO  [org.jboss.weld.deployer#deploy] JBAS016005: Starting Services for CDI deployment: test.ear
> 00:23:22,192 INFO  [org.jboss.weld.deployer#start] JBAS016008: Starting weld service for deployment test.ear
> 00:23:22,734 SEVERE [javax.enterprise.resource.webcontainer.jsf.flow#afterBeanDiscovery] Unable to obtain CDI 1.1 utilities for Mojarra
> 00:23:22,753 SEVERE [javax.enterprise.resource.webcontainer.jsf.application.view#afterBeanDiscovery] Unable to obtain CDI 1.1 utilities for Mojarra
> 00:23:23,099 INFO  [test.web.Startup#contextInitialized] contextInitialized
> 00:23:23,405 INFO  [org.wildfly.extension.undertow#registerDeployment] JBAS018210: Register web context: /intern/web
> 00:23:23,465 INFO  [org.jboss.as.server#handleResult] JBAS018559: Deployed "test.ear" (runtime-name : "test.ear")
> Although everything seems to be fine. App works without errors.

--
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