atom feed16 messages in org.apache.myfaces.usersRe: CODI on WebLogic 12c
FromSent OnAttachments
JiayunDec 28, 2011 3:56 am 
Gerhard PetracekDec 28, 2011 4:49 am 
JiayunDec 29, 2011 6:14 pm 
Gerhard PetracekDec 29, 2011 6:25 pm 
JiayunDec 29, 2011 6:56 pm 
Gerhard PetracekDec 29, 2011 7:38 pm 
JiayunDec 29, 2011 10:29 pm 
Mark StrubergDec 30, 2011 12:52 am 
JiayunDec 30, 2011 1:50 am 
Gerhard PetracekDec 30, 2011 3:22 am 
JiayunJan 1, 2012 6:24 pm 
Gerhard PetracekJan 2, 2012 2:12 am 
JiayunJan 10, 2012 12:47 am 
Rudy De BusscherJan 10, 2012 1:18 am 
Gerhard PetracekJan 10, 2012 1:25 am 
Gerhard PetracekJan 10, 2012 1:40 am 
Subject:Re: CODI on WebLogic 12c
From:Jiayun (jia@gmail.com)
Date:Dec 30, 2011 1:50:21 am
List:org.apache.myfaces.users

Hi strub,

You are right.

I unpacked the myfaces-extcdi-bundle-jsf20-1.0.1.jar file to WEB-INF/classes, and merged its beans.xml to WEB-INF/beans.xml, then it did work.

On Fri, Dec 30, 2011 at 4:52 PM, Mark Struberg <stru@yahoo.de> wrote:

yup, looks like the modularity bug Glassfish had as well. This got fixed by a new Weld version + some hacks in the integration code.

For Glassfish it works if you unpack all your CDI dependencies to WEB-INF/classes and merge all the beans.xmls into WEB-INF/beans.xml

LieGrue, strub

----- Original Message -----

From: Gerhard Petracek <gerh@gmail.com> To: MyFaces Discussion <use@myfaces.apache.org> Cc: arun@gmail.com Sent: Friday, December 30, 2011 4:38 AM Subject: Re: CODI on WebLogic 12c

hi,

ok - thx for the info. i'll file an issue for the first part.

the current issue sounds quite similar to a glassfish/weld integration issue we saw months ago.

as you see in the log it doesn't make sense because the bean exists already:

... config implementation:

org.apache.myfaces.extensions.cdi.core.api.config.CodiCoreConfig$Proxy$_$$_WeldClientProxy

config implementation: org.apache.myfaces.extensions.cdi.core.api.config.CodiCoreConfig ...

a portable cdi extension like myfaces codi can't provide a fix btw. workaround for it. (in some cases it helped to copy the content of the beans.xml to the beans.xml of the project.)

however, please contact the wls team and report this issue.

regards, gerhard

2011/12/30 Jiayun <jia@gmail.com>

It seems ok on startup with v1.0.1, but I got this exception when browse the page:

<2011/12/30 上午10時53分41秒 TST> <Notice> <StdErr> <BEA-000000> <十二月 30, 2011 10:53:41 上午 org.apache.myfaces.extensions.cdi.core.api.provider.ServiceProvider <clinit> 資訊:

org.apache.myfaces.extensions.cdi.core.impl.provider.DefaultServiceProvider

installed successfully.> <2011/12/30 上午10時53分41秒 TST> <Notice> <StdErr> <BEA-000000> <十二月 30, 2011 10:53:41 上午 org.apache.myfaces.extensions.cdi.core.api.provider.ServiceProvider <clinit> 資訊:

org.apache.myfaces.extensions.cdi.core.impl.provider.DefaultServiceProviderContext

installed successfully.> <2011/12/30 上午10時53分42秒 TST> <Notice> <StdErr> <BEA-000000> <十二月 30, 2011 10:53:42 上午

org.apache.myfaces.extensions.cdi.core.impl.projectstage.ProjectStageProducer

initProjectStage 資訊: Computed the following CODI ProjectStage: Production> <2011/12/30 上午10時53分49秒 TST> <Notice> <LoggingService> <BEA-320400> <The log file

E:\Oracle1211\Middleware\user_projects\domains\base_domain\servers\AdminServer\logs\base_domain.log

will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms, such as Windows.> <2011/12/30 上午10時53分49秒 TST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to

E:\Oracle1211\Middleware\user_projects\domains\base_domain\servers\AdminServer\logs\base_domain.log00036.

Log messages will continue to be logged in

E:\Oracle1211\Middleware\user_projects\domains\base_domain\servers\AdminServer\logs\base_domain.log.>

<2011/12/30 上午10時53分49秒 TST> <Notice> <Log Management> <BEA-170027> <The server has successfully established a connection with the Domain level Diagnostic Service.> <2011/12/30 上午10時53分49秒 TST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN.> <2011/12/30 上午10時53分49秒 TST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING.> <2011/12/30 上午10時53分49秒 TST> <Warning> <Server> <BEA-002611> <The hostname "0907234PC01.iead.local", maps to multiple IP addresses: 192.168.9.100, 192.168.56.1, 192.168.169.1, 192.168.177.1, fe80:0:0:0:744a:ff59:279d:dba0%10, fe80:0:0:0:c13c:e868:7bc5:a81b%16, fe80:0:0:0:14ca:5a87:7e96:d888%17, fe80:0:0:0:f429:1d11:fce1:660f%19.> <2011/12/30 上午10時53分49秒 TST> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 192.168.169.1:7001 for protocols iiop, t3, ldap, snmp, http.> <2011/12/30 上午10時53分49秒 TST> <Notice> <Server> <BEA-002613> <Channel "Default[9]" is now listening on fe80:0:0:0:0:100:7f:fffe:7001 for protocols iiop, t3, ldap, snmp, http.> <2011/12/30 上午10時53分49秒 TST> <Notice> <Server> <BEA-002613> <Channel "Default[14]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.> <2011/12/30 上午10時53分49秒 TST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.177.1:7001 for protocols iiop, t3, ldap, snmp, http.> <2011/12/30 上午10時53分49秒 TST> <Notice> <Server> <BEA-002613> <Channel "Default[4]" is now listening on fe80:0:0:0:0:5efe:c0a8:b101:7001 for protocols iiop, t3, ldap, snmp, http.> <2011/12/30 上午10時53分49秒 TST> <Notice> <Server> <BEA-002613> <Channel "Default[11]" is now listening on fe80:0:0:0:0:5efe:c0a8:964:7001 for protocols iiop, t3, ldap, snmp, http.> <2011/12/30 上午10時53分49秒 TST> <Notice> <Server> <BEA-002613> <Channel "Default[7]" is now listening on fe80:0:0:0:14ca:5a87:7e96:d888:7001 for protocols iiop, t3, ldap, snmp, http.> <2011/12/30 上午10時53分49秒 TST> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on 192.168.9.100:7001 for protocols iiop, t3, ldap, snmp, http.> <2011/12/30 上午10時53分49秒 TST> <Notice> <Server> <BEA-002613> <Channel "Default[12]" is now listening on fe80:0:0:0:744a:ff59:279d:dba0:7001 for protocols iiop, t3, ldap, snmp, http.> <2011/12/30 上午10時53分49秒 TST> <Notice> <Server> <BEA-002613> <Channel "Default[8]" is now listening on fe80:0:0:0:c13c:e868:7bc5:a81b:7001 for protocols iiop, t3, ldap, snmp, http.> <2011/12/30 上午10時53分49秒 TST> <Notice> <Server> <BEA-002613> <Channel "Default[6]" is now listening on fe80:0:0:0:0:5efe:c0a8:a901:7001 for protocols iiop, t3, ldap, snmp, http.> <2011/12/30 上午10時53分49秒 TST> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 192.168.56.1:7001 for protocols iiop, t3, ldap, snmp, http.> <2011/12/30 上午10時53分49秒 TST> <Notice> <Server> <BEA-002613> <Channel "Default[13]" is now listening on 0:0:0:0:0:0:0:1:7001 for protocols iiop, t3, ldap, snmp, http.> <2011/12/30 上午10時53分49秒 TST> <Notice> <Server> <BEA-002613> <Channel "Default[5]" is now listening on fe80:0:0:0:f429:1d11:fce1:660f:7001 for protocols iiop, t3, ldap, snmp, http.> <2011/12/30 上午10時53分49秒 TST> <Notice> <Server> <BEA-002613> <Channel "Default[10]" is now listening on fe80:0:0:0:0:5efe:c0a8:3801:7001 for protocols iiop, t3, ldap, snmp, http.> <2011/12/30 上午10時53分49秒 TST> <Notice> <WebLogicServer> <BEA-000331> <Started the WebLogic Server Administration Server "AdminServer" for domain "base_domain" running in development mode.> <2011/12/30 上午10時53分49秒 TST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING.> <2011/12/30 上午10時53分49秒 TST> <Notice> <WebLogicServer> <BEA-000360> <The server started in RUNNING mode.> <2011/12/30 上午10時54分04秒 TST> <Warning> <Socket> <BEA-000402> <There are: 5 active sockets, but the maximum number of socket reader threads allowed by the configuration is: 4. The configuration may need altered.> <2011/12/30 上午10時54分36秒 TST> <Notice> <StdErr> <BEA-000000> <十二月 30, 2011 10:54:36 上午 org.apache.myfaces.extensions.cdi.jsf2.impl.Jsf2ModuleStartupObserver logJsfModuleConfiguration 資訊: [Started] MyFaces CODI JSF-Module v1.0.1 for JSF 2.0 Used JSF implementation: Mojarra v1.0.0.0_2-1-5

config implementation:

org.apache.myfaces.extensions.cdi.jsf.api.config.JsfModuleConfig$Proxy$_$$_WeldClientProxy

config implementation: org.apache.myfaces.extensions.cdi.jsf.api.config.JsfModuleConfig method: isInvalidValueAwareMessageInterpolatorEnabled value: true

method: isUseViewConfigsAsNavigationCasesEnabled value: true

method: isInitialRedirectEnabled value: true

method: isAlwaysKeepMessages value: true

config implementation:

org.apache.myfaces.extensions.cdi.core.api.scope.conversation.config.WindowContextConfig$Proxy$_$$_WeldClientProxy

config implementation:

org.apache.myfaces.extensions.cdi.core.api.scope.conversation.config.WindowContextConfig

method: isAddWindowIdToActionUrlsEnabled value: false

method: getWindowContextTimeoutInMinutes value: 60

method: isCloseEmptyWindowContextsEnabled value: false

method: isEagerWindowContextDetectionEnabled value: true

method: isCreateWindowContextEventEnabled value: false

method: isCloseWindowContextEventEnabled value: false

method: isUrlParameterSupported value: true

method: isUnknownWindowIdsAllowed value: false

method: getMaxWindowContextCount value: 64

config implementation:

org.apache.myfaces.extensions.cdi.core.api.scope.conversation.config.ConversationConfig$Proxy$_$$_WeldClientProxy

config implementation:

org.apache.myfaces.extensions.cdi.core.api.scope.conversation.config.ConversationConfig

method: getConversationTimeoutInMinutes value: 30

method: isStartConversationEventEnabled value: false

method: isCloseConversationEventEnabled value: false

method: isRestartConversationEventEnabled value: false

method: isConversationRequiredEnabled value: true

method: isScopeBeanEventEnabled value: false

method: isAccessBeanEventEnabled value: false

method: isUnscopeBeanEventEnabled value: false

MessageContextConfig class:

org.apache.myfaces.extensions.cdi.message.impl.DefaultMessageContextConfig

MessageInterpolator class: class

org.apache.myfaces.extensions.cdi.jsf.impl.message.FacesMessageInterpolator

MessageResolver class: class

org.apache.myfaces.extensions.cdi.jsf.impl.message.JsfAwareApplicationMessagesMessageResolver

MessageHandler class: class

org.apache.myfaces.extensions.cdi.jsf.impl.message.JsfAwareMessageHandler

LocaleResolver class: class

org.apache.myfaces.extensions.cdi.jsf.impl.message.JsfAwareLocaleResolver

FormatterFactory class: class org.apache.myfaces.extensions.cdi.message.impl.DefaultFormatterFactory> <2011/12/30 上午10時54分36秒 TST> <Notice> <StdErr> <BEA-000000> <十二月 30, 2011 10:54:36 上午 org.apache.myfaces.extensions.cdi.jsf2.impl.Jsf2ModuleStartupObserver logJsfModuleConfiguration 資訊: [Started] MyFaces CODI JSF-Module v1.0.1 for JSF 2.0 Used JSF implementation: Mojarra v1.0.0.0_2-1-5

config implementation:

org.apache.myfaces.extensions.cdi.jsf.api.config.JsfModuleConfig$Proxy$_$$_WeldClientProxy

config implementation: org.apache.myfaces.extensions.cdi.jsf.api.config.JsfModuleConfig method: isInvalidValueAwareMessageInterpolatorEnabled value: true

method: isUseViewConfigsAsNavigationCasesEnabled value: true

method: isInitialRedirectEnabled value: true

method: isAlwaysKeepMessages value: true

config implementation:

org.apache.myfaces.extensions.cdi.core.api.scope.conversation.config.WindowContextConfig$Proxy$_$$_WeldClientProxy

config implementation:

org.apache.myfaces.extensions.cdi.core.api.scope.conversation.config.WindowContextConfig

method: isAddWindowIdToActionUrlsEnabled value: false

method: getWindowContextTimeoutInMinutes value: 60

method: isCloseEmptyWindowContextsEnabled value: false

method: isEagerWindowContextDetectionEnabled value: true

method: isCreateWindowContextEventEnabled value: false

method: isCloseWindowContextEventEnabled value: false

method: isUrlParameterSupported value: true

method: isUnknownWindowIdsAllowed value: false

method: getMaxWindowContextCount value: 64

config implementation:

org.apache.myfaces.extensions.cdi.core.api.scope.conversation.config.ConversationConfig$Proxy$_$$_WeldClientProxy

config implementation:

org.apache.myfaces.extensions.cdi.core.api.scope.conversation.config.ConversationConfig

method: getConversationTimeoutInMinutes value: 30

method: isStartConversationEventEnabled value: false

method: isCloseConversationEventEnabled value: false

method: isRestartConversationEventEnabled value: false

method: isConversationRequiredEnabled value: true

method: isScopeBeanEventEnabled value: false

method: isAccessBeanEventEnabled value: false

method: isUnscopeBeanEventEnabled value: false

MessageContextConfig class:

org.apache.myfaces.extensions.cdi.message.impl.DefaultMessageContextConfig

MessageInterpolator class: class

org.apache.myfaces.extensions.cdi.jsf.impl.message.FacesMessageInterpolator

MessageResolver class: class

org.apache.myfaces.extensions.cdi.jsf.impl.message.JsfAwareApplicationMessagesMessageResolver

MessageHandler class: class

org.apache.myfaces.extensions.cdi.jsf.impl.message.JsfAwareMessageHandler

LocaleResolver class: class

org.apache.myfaces.extensions.cdi.jsf.impl.message.JsfAwareLocaleResolver

FormatterFactory class: class org.apache.myfaces.extensions.cdi.message.impl.DefaultFormatterFactory> <2011/12/30 上午10時54分36秒 TST> <Notice> <StdErr> <BEA-000000> <十二月 30, 2011 10:54:36 上午 org.apache.myfaces.extensions.cdi.jpa.impl.JpaModuleStartupObserver logJpaModuleConfiguration 資訊: [Started] MyFaces CODI JPA-Module v1.0.1> <2011/12/30 上午10時54分36秒 TST> <Notice> <StdErr> <BEA-000000> <十二月 30, 2011 10:54:36 上午 org.apache.myfaces.extensions.cdi.core.impl.CoreStartupObserver logCoreConfiguration 資訊: [Started] MyFaces CODI (Extensions CDI) Core v1.0.1 Used CDI implementation: Weld v1.0.0.0_1-1-3.SP1

project-stage: Production project-stage class:

org.apache.myfaces.extensions.cdi.core.api.projectstage.ProjectStage$Production

application-parameters: name: org.apache.myfaces.SECRET value: NzY1NDMyMTA=

name: com.sun.faces.injectionProvider value: com.bea.faces.WeblogicInjectionProvider

name: org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION value: 20

name: org.apache.myfaces.SERIALIZE_STATE_IN_SESSION value: true

name: org.apache.myfaces.DETECT_JAVASCRIPT value: false

name: javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL value: true

name: org.apache.myfaces.PRETTY_HTML value: true

name: javax.faces.PROJECT_STAGE value: Production

name: org.apache.myfaces.COMPRESS_STATE_IN_SESSION value: true

name: org.apache.myfaces.AUTO_SCROLL value: true

name: javax.faces.STATE_SAVING_METHOD value: client

name: org.apache.myfaces.ALLOW_JAVASCRIPT value: true

config implementation:

org.apache.myfaces.extensions.cdi.core.api.config.CodiCoreConfig$Proxy$_$$_WeldClientProxy

config implementation: org.apache.myfaces.extensions.cdi.core.api.config.CodiCoreConfig method: isAdvancedQualifierRequiredForDependencyInjection value: true

method: isConfigurationLoggingEnabled value: true

method: isInvalidBeanCreationEventEnabled value: false> <2011/12/30 上午10時54分36秒 TST> <Notice> <StdErr> <BEA-000000> <十二月 30, 2011 10:54:36 上午

org.apache.myfaces.extensions.cdi.scripting.impl.ScriptingModuleStartupObserver

logScriptingModuleConfiguration 資訊: [Started] MyFaces CODI Scripting-Module v1.0.1> <2011/12/30 上午10時54分36秒 TST> <Notice> <StdErr> <BEA-000000> <十二月 30, 2011 10:54:36 上午

org.apache.myfaces.extensions.cdi.bv.impl.BeanValidationModuleStartupObserver

logBeanValidationModuleConfiguration 資訊: [Started] MyFaces CODI Bean-Validation-Module v1.0.1> <2011/12/30 上午10時54分37秒 TST> <Error> <javax.enterprise.resource.webcontainer.jsf.application> <BEA-000000> <Error Rendering View[/helloWorld.xhtml] javax.el.ELException:

//D:/workspace37/.metadata/.plugins/org.eclipse.core.resources/.projects/coditest/beadep/base_domain/coditest/helloWorld.xhtml

@35,84 value="#{helloWorld.name}": java.lang.IllegalStateException: No bean found for type: org.apache.myfaces.extensions.cdi.core.api.config.CodiCoreConfig at

com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:114)

at

javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194)

at

javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:182)

at javax.faces.component.UIOutput.getValue(UIOutput.java:169) at

com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:205)

Truncated. see log file for complete stacktrace Caused By: java.lang.IllegalStateException: No bean found for type: org.apache.myfaces.extensions.cdi.core.api.config.CodiCoreConfig at

org.apache.myfaces.extensions.cdi.core.impl.util.CodiUtils.getOrCreateBeanByClass(CodiUtils.java:198)

at

org.apache.myfaces.extensions.cdi.core.impl.util.CodiUtils.getContextualReferenceByClass(CodiUtils.java:174)

at

org.apache.myfaces.extensions.cdi.core.impl.util.CodiUtils.getContextualReferenceByClass(CodiUtils.java:139)

at

org.apache.myfaces.extensions.cdi.core.impl.scope.conversation.ConversationContextAdapter.init(ConversationContextAdapter.java:151)

at

org.apache.myfaces.extensions.cdi.core.impl.scope.conversation.ConversationContextAdapter.lazyInit(ConversationContextAdapter.java:142)

Truncated. see log file for complete stacktrace

<2011/12/30 上午10時54分37秒 TST> <Error> <HTTP> <BEA-101017> <[ServletContext@295241746[app:coditest module:coditest path:null spec-version:3.0], request: weblogic.servlet.internal.ServletRequestImpl@34b02fe8[ GET /coditest/helloWorld.xhtml HTTP/1.1 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: zh-tw,en;q=0.7,en-us;q=0.3 Accept-Encoding: gzip, deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Connection: keep-alive Cache-Control: max-age=0

]] Root cause of ServletException. java.lang.IllegalStateException: No bean found for type: org.apache.myfaces.extensions.cdi.core.api.config.CodiCoreConfig at

org.apache.myfaces.extensions.cdi.core.impl.util.CodiUtils.getOrCreateBeanByClass(CodiUtils.java:198)

at

org.apache.myfaces.extensions.cdi.core.impl.util.CodiUtils.getContextualReferenceByClass(CodiUtils.java:174)

at

org.apache.myfaces.extensions.cdi.core.impl.util.CodiUtils.getContextualReferenceByClass(CodiUtils.java:139)

at

org.apache.myfaces.extensions.cdi.core.impl.scope.conversation.ConversationContextAdapter.init(ConversationContextAdapter.java:151)

at

org.apache.myfaces.extensions.cdi.core.impl.scope.conversation.ConversationContextAdapter.lazyInit(ConversationContextAdapter.java:142)

Truncated. see log file for complete stacktrace

2011/12/30 Gerhard Petracek <gerh@gmail.com>

hi,

ok - that might be caused by a very similar issue. please try the pre-packaged bundle with the version 1.0.1. (v1.0.1 doesn't have this feature [1])

regards, gerhard

[1] https://issues.apache.org/jira/browse/EXTCDI-223

2011/12/30 Jiayun <jia@gmail.com>

Use the pre-packaged bundle, I will get these messages:

<2011/12/30 上午10時12分06秒 TST> <Notice> <StdErr>

<BEA-000000> <十二月 30,

2011

10:12:06 上午

org.apache.myfaces.extensions.cdi.core.api.provider.ServiceProvider

<clinit> 資訊:

org.apache.myfaces.extensions.cdi.core.impl.provider.DefaultServiceProvider

installed successfully.> <2011/12/30 上午10時12分06秒 TST> <Notice> <StdErr>

<BEA-000000> <十二月 30,

2011

10:12:06 上午

org.apache.myfaces.extensions.cdi.core.api.provider.ServiceProvider

<clinit> 資訊:

org.apache.myfaces.extensions.cdi.core.impl.provider.DefaultServiceProviderContext

installed successfully.> <2011/12/30 上午10時12分07秒 TST> <Notice> <StdErr>

<BEA-000000> <十二月 30,

2011

10:12:07 上午

org.apache.myfaces.extensions.cdi.core.impl.projectstage.ProjectStageProducer

initProjectStage 資訊: Computed the following CODI ProjectStage: Production> <2011/12/30 上午10時12分08秒 TST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID

"1325211123996"

for

task "0". Error is: "weblogic.management.DeploymentException: " weblogic.management.DeploymentException: at

weblogic.application.internal.BaseDeployment.throwAppException(BaseDeployment.java:123)

at

weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:239)

at

weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:48)

at

weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158)

at

weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)

Truncated. see log file for complete stacktrace Caused By: org.jboss.weld.exceptions.DefinitionException:

Exception

List

with 1 exceptions: Exception 0 : org.jboss.weld.exceptions.IllegalArgumentException: WELD-001324 Argument bean must not be null at

org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:646)

at

org.apache.myfaces.extensions.cdi.jpa.impl.transaction.context.TransactionContextExtension.registerTransactionContext(TransactionContextExtension.java:51)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601) at

org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264)

at

org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)

at

org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137)

at

org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260)

at

org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:170)

at

org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:51)

at

org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:154)

at

org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:241)

at

org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:229)

at

org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:207)

at

org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:75)

at

org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:46)

at

org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.fire(AfterBeanDiscoveryImpl.java:40)

at

org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:341)

at

com.oracle.injection.provider.weld.WeldInjectionContainer.deploy(WeldInjectionContainer.java:98)

at

com.oracle.injection.integration.CDIAppDeploymentExtension.prepare(CDIAppDeploymentExtension.java:58)

at

weblogic.application.internal.flow.AppDeploymentExtensionFlow.prepare(AppDeploymentExtensionFlow.java:23)

at

weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:706)

at

weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)

at

weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:237)

at

weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:48)

at

weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158)

at

weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)

at

weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)

at

weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:96)

at

weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:229)

at

weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)

at

weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)

at

weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)

at

weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)

at

weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)

at

weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)

at

weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)

at

weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)

at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256) at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

at

org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:48)

at

org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.fire(AfterBeanDiscoveryImpl.java:40)

at

org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:341)

at

com.oracle.injection.provider.weld.WeldInjectionContainer.deploy(WeldInjectionContainer.java:98)

at

com.oracle.injection.integration.CDIAppDeploymentExtension.prepare(CDIAppDeploymentExtension.java:58)

Truncated. see log file for complete stacktrace

<2011/12/30 上午10時12分09秒 TST> <Warning>

<Deployer> <BEA-149004>

<Failures

were detected while initiating deploy task for application "coditest".> <2011/12/30 上午10時12分09秒 TST> <Warning>

<Deployer> <BEA-149078> <Stack

trace

for message 149004 weblogic.management.DeploymentException: at

weblogic.application.internal.BaseDeployment.throwAppException(BaseDeployment.java:123)

at

weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:239)

at

weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:48)

at

weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158)

at

weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)

Truncated. see log file for complete stacktrace Caused By: org.jboss.weld.exceptions.DefinitionException:

Exception

List

with 1 exceptions: Exception 0 : org.jboss.weld.exceptions.IllegalArgumentException: WELD-001324 Argument bean must not be null at

org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:646)

at

org.apache.myfaces.extensions.cdi.jpa.impl.transaction.context.TransactionContextExtension.registerTransactionContext(TransactionContextExtension.java:51)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601) at

org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264)

at

org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)

at

org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137)

at

org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260)

at

org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:170)

at

org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:51)

at

org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:154)

at

org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:241)

at

org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:229)

at

org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:207)

at

org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:75)

at

org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:46)

at

org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.fire(AfterBeanDiscoveryImpl.java:40)

at

org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:341)

at

com.oracle.injection.provider.weld.WeldInjectionContainer.deploy(WeldInjectionContainer.java:98)

at

com.oracle.injection.integration.CDIAppDeploymentExtension.prepare(CDIAppDeploymentExtension.java:58)

at

weblogic.application.internal.flow.AppDeploymentExtensionFlow.prepare(AppDeploymentExtensionFlow.java:23)

at

weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:706)

at

weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)

at

weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:237)

at

weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:48)

at

weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158)

at

weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)

at

weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)

at

weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:96)

at

weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:229)

at

weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)

at

weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)

at

weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)

at

weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)

at

weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)

at

weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)

at

weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)

at

weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)

at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256) at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

at

org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:48)

at

org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.fire(AfterBeanDiscoveryImpl.java:40)

at

org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:341)

at

com.oracle.injection.provider.weld.WeldInjectionContainer.deploy(WeldInjectionContainer.java:98)

at

com.oracle.injection.integration.CDIAppDeploymentExtension.prepare(CDIAppDeploymentExtension.java:58)

Truncated. see log file for complete stacktrace

This is why I excluded the JPA-1.0 module.

jiayun

2011/12/28 Gerhard Petracek <gerh@gmail.com>

hi jiayun,

it looks like they have the same issue like glassfish.

please try to use the pre-packaged bundle instead.

maven dependency:

<dependency>

<groupId>org.apache.myfaces.extensions.cdi.bundles</groupId>

<artifactId>myfaces-extcdi-bundle-jsf20</artifactId>

<version>${codi.version}</version> <scope>compile</scope> </dependency>

regards, gerhard

2011/12/28 Jiayun <jia@gmail.com>

Hi,

I deployed the following project to WebLogic 12c.

http://dl.dropbox.com/u/10756430/coditest.7z

And I got these error messages:

<2011/12/28 下午07時43分15秒 TST> <Notice>

<StdErr> <BEA-000000> <十二月

28,

2011

7:43:15 下午

org.apache.myfaces.extensions.cdi.core.api.provider.ServiceProvider

<clinit> 資訊:

org.apache.myfaces.extensions.cdi.core.impl.provider.DefaultServiceProvider

installed successfully.> <2011/12/28 下午07時43分15秒 TST> <Notice>

<StdErr> <BEA-000000> <十二月

28,

2011

7:43:15 下午

org.apache.myfaces.extensions.cdi.core.api.provider.ServiceProvider

<clinit> 資訊:

org.apache.myfaces.extensions.cdi.core.impl.provider.DefaultServiceProviderContext

installed successfully.> <2011/12/28 下午07時43分16秒 TST> <Notice>

<StdErr> <BEA-000000> <十二月

28,

2011

7:43:16 下午

org.apache.myfaces.extensions.cdi.core.impl.projectstage.ProjectStageProducer

initProjectStage 資訊: Computed the following CODI ProjectStage: Production> <2011/12/28 下午07時43分18秒 TST> <Error>

<Deployer> <BEA-149265>

<Failure

occurred in the execution of deployment request with ID

"1325072592407"

for

task "0". Error is: "weblogic.management.DeploymentException: " weblogic.management.DeploymentException: at

weblogic.application.internal.BaseDeployment.throwAppException(BaseDeployment.java:123)

at

weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:239)

at

weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:48)

at

weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158)

at

weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)

Truncated. see log file for complete stacktrace Caused By:

org.jboss.weld.exceptions.DeploymentException:

WELD-001408

Unsatisfied dependencies for type [ProjectStage] with

qualifiers

[@Default]

at injection point [[field] @Inject private

org.apache.myfaces.extensions.cdi.jsf.api.config.ClientConfig.projectStage]

at

org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:258)

at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:105) at

org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:125)

at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:324) at

org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:309)

Truncated. see log file for complete stacktrace

<2011/12/28 下午07時43分18秒 TST> <Warning>

<Deployer> <BEA-149004>

<Failures

were detected while initiating deploy task for

application

"coditest".>

<2011/12/28 下午07時43分18秒 TST> <Warning>

<Deployer> <BEA-149078>

<Stack

trace

for message 149004 weblogic.management.DeploymentException: at

weblogic.application.internal.BaseDeployment.throwAppException(BaseDeployment.java:123)

at

weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:239)

at

weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:48)

at

weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158)

at

weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)

Truncated. see log file for complete stacktrace Caused By:

org.jboss.weld.exceptions.DeploymentException:

WELD-001408

Unsatisfied dependencies for type [ProjectStage] with

qualifiers

[@Default]

at injection point [[field] @Inject private

org.apache.myfaces.extensions.cdi.jsf.api.config.ClientConfig.projectStage]

at

org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:258)

at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:105) at

org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:125)

at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:324) at

org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:309)

Truncated. see log file for complete stacktrace

I don't know if this is caused by CODI.

Thanks.