[jboss-jira] [JBoss JIRA] (WFLY-1946) Severe error on deploy of ear: "Unable to obtain CDI 1.1 utilities for Mojarra"
Stan Silvert (JIRA)
jira-events at lists.jboss.org
Mon Aug 26 16:39:27 EDT 2013
[ https://issues.jboss.org/browse/WFLY-1946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stan Silvert reassigned WFLY-1946:
----------------------------------
Assignee: Stuart Douglas (was: Stan Silvert)
Stuart, can you take a look at this? I think I have narrowed down the problem.
JSF includes some CDI Extensions, such as this: https://github.com/jboss/mojarra/blob/2.2.2-jbossorg-1/jsf-ri/src/main/java/com/sun/faces/flow/FlowCDIExtension.java
If you look at line 101 you see where it is trying to using the ServiceLoader to get one of its own services from the same jar as the Extension. This jar is the JSF Impl jar located in the com.sun.jsf-impl module.
The problem is that this doesn't work in an EAR environment. I'm guessing it's a TCCL issue in Weld or the Weld subsystem.
> 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: Stuart Douglas
> 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