Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-604

EL Literals not working in numberguess on Jetty or Tomcat.

XMLWordPrintable

      Is the examples POM in Weld 1 CR1 importing the wrong EL lib version?

      I am having a hard time getting EL Literals working in Jetty or Tomcat. I first tried in my own app and couldn't get them working, so I tried modifying the numberguess example home.xhtml file to:
      <div>
      I'm thinking of a number between #

      {game.getSmallest()}

      and #

      {game.biggest}

      . You have #

      {game.remainingGuesses}

      guesses.
      </div>

      ...and got:

      2009-10-21 23:22:22.697::WARN: /weld-numberguess/home.jsf
      java.lang.NoSuchMethodError: javax.el.ELResolver.invoke(Ljavax/el/ELContext;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
      at com.sun.el.parser.AstValue.getValue(AstValue.java:111)
      at com.sun.el.parser.AstValue.getValue(AstValue.java:163)
      at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:219)
      at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:71)
      at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:71)
      at com.sun.faces.facelets.el.ELText$ELTextVariable.writeText(ELText.java:217)
      at com.sun.faces.facelets.el.ELText$ELTextComposite.writeText(ELText.java:141)
      at com.sun.faces.facelets.compiler.TextInstruction.write(TextInstruction.java:78)
      at com.sun.faces.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:74)
      at com.sun.faces.facelets.compiler.UILeaf.encodeAll(UILeaf.java:178)
      at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1610)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1613)
      at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:340)
      at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:126)
      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:127)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:311)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
      at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
      at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      at org.mortbay.jetty.Server.handle(Server.java:326)
      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)
      at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:915)
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
      at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
      at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

      If it helps, according to mvn site, the versions are:
      javax.el el-api 2.1.2-b04
      org.glassfish.web el-impl 2.1.2-b04

              pmuiratbleepbleep Pete Muir (Inactive)
              sboscarine_jira Steven Boscarine (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: