[JBoss JIRA] Created: (WELD-332) Link against EL API 2.2 (rather than 2.1)
by Dan Allen (JIRA)
Link against EL API 2.2 (rather than 2.1)
-----------------------------------------
Key: WELD-332
URL: https://jira.jboss.org/jira/browse/WELD-332
Project: Weld
Issue Type: Feature Request
Components: Web Tier integration (JSF, JSP, EL and Servlet)
Affects Versions: 1.0.0.GA
Reporter: Dan Allen
Fix For: 1.0.1.CR1
We should link against the EL API 2.2 rather than 2.1. EL 2.2 has support for parametrized method expressions, which Red Hat pushed strongly for to get into Java EE 6. Therefore, we should not only be supporting it, but showing it off. Right now, using a parametrized method expression in a Facelets view throws an exception.
We also need to push this upstream into JBoss AS 6 so that EL 2.2 is supported out of the box. Right now, it ain't.
javax.faces.view.facelets.TagAttributeException: /home.xhtml @26,140 action="#{game.check(game.guess)}" Error Parsing: #{game.check(game.guess)}
com.sun.faces.facelets.tag.TagAttributeImpl.getMethodExpression(TagAttributeImpl.java:225)
com.sun.faces.facelets.tag.jsf.ActionSourceRule$ActionMapper2.applyMetadata(ActionSourceRule.java:97)
com.sun.faces.facelets.tag.MetadataImpl.applyMetadata(MetadataImpl.java:74)
javax.faces.view.facelets.MetaTagHandler.setAttributes(MetaTagHandler.java:122)
javax.faces.view.facelets.DelegatingMetaTagHandler.setAttributes(DelegatingMetaTagHandler.java:96)
com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:153)
javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:114)
javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:91)
javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:120)
com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:204)
javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:114)
javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:91)
com.sun.faces.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:97)
com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:172)
com.sun.faces.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:386)
com.sun.faces.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:357)
com.sun.faces.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:102)
javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:91)
com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:86)
javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:91)
com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:75)
com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:301)
com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:360)
com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:339)
com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:191)
com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:149)
com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:86)
com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:75)
com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:145)
com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:715)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:311)
org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:68)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 10 months
[JBoss JIRA] Created: (WELD-380) ContextNotActiveException on logout
by John Leed (JIRA)
ContextNotActiveException on logout
-----------------------------------
Key: WELD-380
URL: https://jira.jboss.org/jira/browse/WELD-380
Project: Weld
Issue Type: Bug
Components: Scopes & Contexts
Affects Versions: 1.0.0.GA
Environment: Sun Glassfish Enterprise Server v3
Reporter: John Leed
I have single sign on enabled and to log off a user, I have a "Log Off" button link to the thisJSP:
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
xmlns:c="http://java.sun.com/jsp/jstl/core">
<jsp:scriptlet>
session.invalidate();
Cookie cookie=new Cookie("JSESSIONIDSSO", "");
cookie.setDomain(request.getHeader("host"));
cookie.setPath("/");
cookie.setMaxAge(0);
response.addCookie(cookie);
</jsp:scriptlet>
<c:redirect url="/" context="/" />
</jsp:root>
This causes the following exception in the server log:
INFO: PWC2787: Session event listener threw exception
javax.enterprise.context.ContextNotActiveException: No active contexts for scope type javax.enterprise.context.SessionScoped
at org.jboss.weld.BeanManagerImpl.getContext(BeanManagerImpl.java:928)
at org.jboss.weld.bean.proxy.ClientProxyMethodHandler.getProxiedInstance(ClientProxyMethodHandler.java:140)
at org.jboss.weld.bean.proxy.ClientProxyMethodHandler.invoke(ClientProxyMethodHandler.java:101)
at org.jboss.weld.conversation.ServletConversationManager_$$_javassist_57.destroyAllConversations(ServletConversationManager_$$_javassist_57.java)
at org.jboss.weld.servlet.ServletLifecycle.endSession(ServletLifecycle.java:82)
at org.jboss.weld.servlet.WeldListener.sessionDestroyed(WeldListener.java:134)
at org.apache.catalina.session.StandardSession.expire(StandardSession.java:743)
at org.apache.catalina.session.StandardSession.expire(StandardSession.java:705)
at org.apache.catalina.session.StandardSession.expire(StandardSession.java:693)
at org.apache.catalina.authenticator.SingleSignOnEntry.expireSessions(SingleSignOnEntry.java:196)
at com.sun.enterprise.security.web.GlassFishSingleSignOn.deregister(GlassFishSingleSignOn.java:537)
at com.sun.enterprise.security.web.GlassFishSingleSignOn.sessionEvent(GlassFishSingleSignOn.java:267)
at org.apache.catalina.session.StandardSession.fireSessionEvent(StandardSession.java:2052)
at org.apache.catalina.session.StandardSession.expire(StandardSession.java:806)
at org.apache.catalina.session.StandardSession.expire(StandardSession.java:705)
at org.apache.catalina.session.StandardSession.expire(StandardSession.java:693)
at org.apache.catalina.session.StandardSession.invalidate(StandardSession.java:1378)
at org.apache.catalina.session.StandardSessionFacade.invalidate(StandardSessionFacade.java:206)
at org.apache.jsp.security.logout_jspx._jspService(logout_jspx.java from :56)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:406)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:483)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:373)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
at com.kroger.thmm.filter.SessionTimeoutFilter.doFilter(SessionTimeoutFilter.java:67)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
at com.kroger.thmm.filter.StoreViewFilter.doFilter(StoreViewFilter.java:72)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
at com.kroger.thmm.filter.SessionTimeoutFilter.doFilter(SessionTimeoutFilter.java:67)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:329)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
at java.lang.Thread.run(Thread.java:619)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 10 months