tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (TOMEE-1138) Cannot reference @Stateful @ConversationScoped bean in JSF page
Date Wed, 12 Mar 2014 22:36:42 GMT

     [ https://issues.apache.org/jira/browse/TOMEE-1138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Romain Manni-Bucau resolved TOMEE-1138.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6.1
         Assignee: Romain Manni-Bucau

Fixed, thanks for the report

> Cannot reference @Stateful @ConversationScoped bean in JSF page
> ---------------------------------------------------------------
>
>                 Key: TOMEE-1138
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1138
>             Project: TomEE
>          Issue Type: Bug
>    Affects Versions: 1.6.1
>         Environment: Windows 7, JDK 1.6.0 x64
>            Reporter: Donatas Ciuksys
>            Assignee: Romain Manni-Bucau
>             Fix For: 1.6.1
>
>
> With such a bean:
> @Named
> @Stateful
> @ConversationScoped
> public class MyConversation implements Serializable {
>     private String name = "John";
>     public String getName() { return name;    }
>     public void setName(String name) { this.name = name;    }   
> }
> and this JSF page:
> <?xml version='1.0' encoding='UTF-8' ?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:h="http://java.sun.com/jsf/html">
>     <h:head>
>         <title>My Title</title>
>     </h:head>
>     <h:body>
>         Hello #{myConversation.name}
>     </h:body>
> </html>
> I get this error:
> javax.el.PropertyNotFoundException: Property 'name' not found on type org.apache.webbeans.custom.lang.Object$$OwbNormalScopeProxy0
> 	at javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:195)
> 	at javax.el.BeanELResolver$BeanProperties.access$400(BeanELResolver.java:172)
> 	at javax.el.BeanELResolver.property(BeanELResolver.java:281)
> 	at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
> 	at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:58)
> 	at org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:179)
> 	at org.apache.el.parser.AstValue.getValue(AstValue.java:182)
> 	at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:184)
> 	at org.apache.webbeans.el22.WrappedValueExpression.getValue(WrappedValueExpression.java:70)
> 	at org.apache.myfaces.view.facelets.el.ELText$ELTextVariable.writeText(ELText.java:219)
> 	at org.apache.myfaces.view.facelets.el.ELText$ELTextComposite.writeText(ELText.java:131)
> 	at org.apache.myfaces.view.facelets.compiler.TextInstruction.write(TextInstruction.java:45)
> 	at org.apache.myfaces.view.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:46)
> 	at org.apache.myfaces.view.facelets.compiler.UILeaf.encodeAll(UILeaf.java:508)
> 	at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:541)
> 	at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:541)
> 	at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1981)
> 	at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:305)
> 	at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59)
> 	at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116)
> 	at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:241)
> 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:199)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> 	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
> 	at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
> 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
> 	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
> 	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
> 	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
> 	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:744)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message