hi rafael,

it's a new thread - but the answer is the same (see [1]).

regards,
gerhard

[1] http://mail-archives.apache.org/mod_mbox/myfaces-users/201111.mbox/%3CCAGJtJfG-m8sN6TTsVbS%2BcX_SsN-R2wKguv8qN8i%3DiHejfxoZaw%40mail.gmail.com%3E

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



2011/11/8 Rafael Pestano <rmpest...@yahoo.com.br>
>
>
> Here is someone else having my 
> problem: http://stackoverflow.com/questions/6853625/glassfish-3-1-1-cdi-classloader-delegate-false/8050805#8050805
>
> I think its a bit different than yours cause i use hibernate as the guy in 
> the post above, im creating another topic to separate the issues.
>
>
>
>
> ________________________________
> De: Rafael Pestano <rmpest...@yahoo.com.br>
> Para: MyFaces Discussion <users@myfaces.apache.org>
> Enviadas: Segunda-feira, 7 de Novembro de 2011 9:07
> Assunto: Re: CDI issue with MyFaces on Glassfish 3.1.1
>
> Hi there,
>
> I'm also trying to do that(same steps) but i got another error while deploing 
> my app:
>
>  Exception while loading the app :
> org.jboss.weldx.transaction.org$jboss$weld$bean-WEB-INF$lib$myfaces-extcdi-bundle-jsf20-1$0$1-Built-in-UserTransaction_$$_WeldProxy
>  cannot be cast to javassist.util.proxy.ProxyObject
> java.lang.ClassCastException:
>
>
> org.jboss.weldx.transaction.org$jboss$weld$bean-WEB-INF$lib$myfaces-extcdi-bundle-jsf20-1$0$1-Built-in-UserTransaction_$$_WeldProxy
>
> cannot be cast to javassist.util.proxy.ProxyObject
>     at org.jboss.weld.bean.proxy.ProxyFactory.create(ProxyFactory.java:250)
>     at
> org.jboss.weld.bean.builtin.ee.AbstractEEBean.<init>(AbstractEEBean.java:46)
>     at 
> org.jboss.weld.bean.builtin.ee.UserTransactionBean.<init>(UserTransactionBean.java:60)
>     at 
> org.jboss.weld.bootstrap.BeanDeployment.deployBeans(BeanDeployment.java:199)
>     at 
> org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:364)
>     at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:170)
>     at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128)
>     at 
> org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:262)
>     at 
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:460)
>     at 
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
>     at
> org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)
>
>
> im using myfaces 2.1.3, CODI 1.0.1 Primefaces 3.0M4 and Glassfish 3.1.1(also 
> tried in 3.1 and 3.1.2)
>  <dependency>
>             <groupId>org.apache.myfaces.core</groupId>
>             <artifactId>myfaces-api</artifactId>
>            <version>2.1.3</version>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.myfaces.core</groupId>
>
> <artifactId>myfaces-impl</artifactId>
>            <version>2.1.3</version>
>         </dependency>
>
>
>
> ________________________________
> De: Vytautas Mackonis <vytautas.macko...@gmail.com>
> Para: users@myfaces.apache.org
> Enviadas: Domingo, 6 de Novembro de 2011 20:21
> Assunto: CDI issue with MyFaces on Glassfish 3.1.1
>
> Hi everyone,
> Ive been trying to override Mojarra with Myfaces on a Glassfish server. I
> managed to do it by:
>
>    - adding a maven dependency:
>
>         <dependency>
>             <groupId>org.apache.myfaces.core</groupId>
>             <artifactId>myfaces-impl</artifactId>
>             <version>2.1.3</version>
>         </dependency>
>
>    - modifying glassfish-web.xml:
>
> <glassfish-web-app error-url="">
>   <context-root>/TestApp-1.0-SNAPSHOT</context-root>
>   <jsp-config>
>     <property name="keepgenerated" value="true">
>       <description>Keep a copy of the generated servlet class' java
> code.</description>
>     </property>
>   </jsp-config>
>   <class-loader delegate="false"/>
>   <property name="useBundledJsf" value="true"/>
> </glassfish-web-app>
>
> After these steps the application deployed fine and from server logs i can
> tell that MyFaces are indeed used instead of Mojarra. However, the backing
> beans are not injected into views. I get the following error on form submit:
>
> org.apache.myfaces.view.facelets.el.ContextAwarePropertyNotFoundException:
> javax.el.PropertyNotFoundException: Target Unreachable, identifier
> 'calculatorBean' resolved to null
>
>
> If I do the backing bean configuration in faces-config.xml instead of just
> tossing @Named @RequestScoped on the bean class then the following error
> does not occur. So I assume my problem is CDI related. Have I missed
> something in the initial setup of my web application to enable CDI?
>
> By the way, here is a full stack trace of the error:
>
> org.apache.myfaces.view.facelets.el.ContextAwarePropertyNotFoundException:
> javax.el.PropertyNotFoundException: Target Unreachable, identifier
> 'calculatorBean' resolved to null
>     at 
> org.apache.myfaces.view.facelets.el.ContextAwareTagValueExpression.getType(ContextAwareTagValueExpression.java:77)
>     at 
> org.apache.myfaces.shared.renderkit._SharedRendererUtils.findUIOutputConverter(_SharedRendererUtils.java:77)
>     at 
> org.apache.myfaces.shared.renderkit.RendererUtils.findUIOutputConverter(RendererUtils.java:411)
>     at 
> org.apache.myfaces.shared.renderkit.RendererUtils.getConvertedUIOutputValue(RendererUtils.java:804)
>     at 
> org.apache.myfaces.shared.renderkit.html.HtmlTextRendererBase.getConvertedValue(HtmlTextRendererBase.java:311)
>     at javax.faces.component.UIInput.getConvertedValue(UIInput.java:623)
>     at javax.faces.component.UIInput.validate(UIInput.java:555)
>     at javax.faces.component.UIInput.processValidators(UIInput.java:246)
>     at javax.faces.component.UIForm.processValidators(UIForm.java:168)
>     at 
> javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1238)
>     at 
> javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1238)
>     at 
> javax.faces.component.UIViewRoot._processValidatorsDefault(UIViewRoot.java:1330)
>     at javax.faces.component.UIViewRoot.access$500(UIViewRoot.java:75)
>     at 
> javax.faces.component.UIViewRoot$ProcessValidatorPhaseProcessor.process(UIViewRoot.java:1405)
>     at javax.faces.component.UIViewRoot._process(UIViewRoot.java:1286)
>     at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:763)
>     at 
> org.apache.myfaces.lifecycle.ProcessValidationsExecutor.execute(ProcessValidationsExecutor.java:38)
>     at 
> org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:171)
>     at 
> org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
>     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:189)
>     at 
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)
>     at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
>     at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>     at 
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
>     at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
>     at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
>     at 
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
>     at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
>     at 
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)
>     at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
>     at 
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
>     at 
> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
>     at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
>     at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
>     at 
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
>     at 
> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
>     at 
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
>     at 
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
>     at 
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
>     at 
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
>     at 
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
>     at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
>     at 
> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
>     at 
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
>     at java.lang.Thread.run(Thread.java:680)
> Caused by: javax.el.PropertyNotFoundException: Target Unreachable,
> identifier 'calculatorBean' resolved to null
>     at com.sun.el.parser.AstValue.getTarget(AstValue.java:131)
>     at com.sun.el.parser.AstValue.getType(AstValue.java:76)
>     at com.sun.el.ValueExpressionImpl.getType(ValueExpressionImpl.java:195)
>     at 
> org.jboss.weld.el.WeldValueExpression.getType(WeldValueExpression.java:113)
>     at 
> org.apache.myfaces.view.facelets.el.ContextAwareTagValueExpression.getType(ContextAwareTagValueExpression.java:73)
>     ... 44 more
>
>
> Any help would be appretiated.
>
> Best regards,
> Vytautas

Reply via email to