Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-4258

Fix "arquillian-tomee-moviefun-example" related to OWB4 changes for bean resolution of dotted names in expression language

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.0.0-M1
    • 10.0.0-M1
    • None
    • None

    Description

      The arquillian example produces the following stacktrace in the context of jsp and el:

       

      SEVERE: Servlet.service() for servlet [jsp] threw exception
      jakarta.el.PropertyNotFoundException: The class 'org.apache.webbeans.el22.WrappedValueExpressionNode' does not have the property 'title'.
      	at jakarta.el.BeanELResolver.getBeanProperty(BeanELResolver.java:626)
      	at jakarta.el.BeanELResolver.getValue(BeanELResolver.java:338)
      	at org.apache.jasper.el.JasperELResolver.getValue(JasperELResolver.java:129)
      	at org.apache.el.parser.AstValue.getValue(AstValue.java:169)
      	at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:190)
      	at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:701)
      	at org.apache.jsp.WEB_002dINF.setup_jsp._jspx_meth_c_005fout_005f0(setup_jsp.java:247)
      	at org.apache.jsp.WEB_002dINF.setup_jsp._jspx_meth_c_005fforEach_005f0(setup_jsp.java:198)
      	at org.apache.jsp.WEB_002dINF.setup_jsp._jspService(setup_jsp.java:150)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      	at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:614)
      	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:456)
      	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:380)
      	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:328)
      	at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:614)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:205)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149)
      	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:174)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149)
      	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:642)
      	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:408)
      	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:340)
      	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:277)
      	at org.superbiz.moviefun.SetupServlet.doGet(SetupServlet.java:44)
      	at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:527)
      	at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:614) 

      struberg  says: "This is about the discussion whether dots are allowed in @ Named("bla.blub.dings"). According to the UEL spec it is NOT allowed. This also has been confirmed by Ed Burns, back then spec lead of Servlets and UEL. JBoss still forced that into CDI. OWB never implemented it though as it is just nuts, not usable in EL anyway and also slowing down the impls."

       

      It is most likely related to this change in OWB: https://github.com/apache/openwebbeans/commit/4e4962a69064585d146c71bb387a8395455e88b5

      Attachments

        Activity

          People

            rzo1 Richard Zowalla
            rzo1 Richard Zowalla
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: