Which settings are needed to make use of EL 3 in a JavaEE environment?
<p>I am using <a href="http://tomee.apache.org/index.html" rel="nofollow noreferrer">Apache TomEE 1.7.4</a>.</p>

<p>The dependencies added in my <code>pom.xml</code> file are-</p>

<pre><code>        &lt;dependency&gt;
            &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
            &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
            &lt;version&gt;3.1.0&lt;/version&gt;
        &lt;/dependency&gt; 

        &lt;dependency&gt;
            &lt;groupId&gt;javax.el&lt;/groupId&gt;
            &lt;artifactId&gt;el-api&lt;/artifactId&gt;
            &lt;version&gt;2.2&lt;/version&gt;
        &lt;/dependency&gt;

        &lt;dependency&gt;
            &lt;groupId&gt;com.sun.faces&lt;/groupId&gt;
            &lt;artifactId&gt;jsf-api&lt;/artifactId&gt;
            &lt;version&gt;2.2.0&lt;/version&gt;
        &lt;/dependency&gt;

        &lt;dependency&gt;
            &lt;groupId&gt;com.sun.faces&lt;/groupId&gt;
            &lt;artifactId&gt;jsf-impl&lt;/artifactId&gt;
            &lt;version&gt;2.2.0&lt;/version&gt;
        &lt;/dependency&gt;
</code></pre>

<p>To make use of the <code>new string concatenation operator +=</code> like in -</p>

<pre><code> &lt;h:graphicImage 
   value="#{resource[facesContext.viewRoot.locale+='/default:img/rafa.png']}"/&gt;
</code></pre>

<p>I replaced the EL 2.2 version with this-</p>

<pre><code>         &lt;dependency&gt;
            &lt;groupId&gt;javax.el&lt;/groupId&gt;
            &lt;artifactId&gt;javax.el-api&lt;/artifactId&gt;
            &lt;version&gt;3.0.0&lt;/version&gt;
         &lt;/dependency&gt;
</code></pre>

<p>But i am getting a -</p>

<pre><code>Caused by: javax.el.ELException: Failed to parse the expression [#{resource[facesContext.viewRoot.locale+='/default:img/rafa.png']}]
    at org.apache.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:145)
    at org.apache.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:171)
    at org.apache.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:216)
    at org.apache.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:66)
    at org.apache.webbeans.el22.WrappedExpressionFactory.createValueExpression(WrappedExpressionFactory.java:59)
    at com.sun.faces.facelets.tag.TagAttributeImpl.getValueExpression(TagAttributeImpl.java:408)
    ... 43 more
</code></pre>

<p>Suggestions, if any?</p>

<p>I am not sure whether I will have to upgrade to version 8 since, </p>

<blockquote>
  <p>Apache Tomcat 8 supports the Java Servlet 3.1, JavaServer Pages 2.3,
  Java Unified Expression Language 3.0 and Java API for WebSocket 1.1
  specifications.</p>
</blockquote>

<p><hr/>
OKay, it works perfect with <code>GlassFish(4.0) Java EE Application Server</code>.
But what I don't understand which entries to be made in pom.xml file-</p>

<p><a href="https://stackoverflow.com/tags/jsf/info">Here</a>, it is mentioned that the below dependency needs to be added in <code>pom.xml</code></p>

<pre><code>&lt;dependency&gt;
    &lt;groupId&gt;javax&lt;/groupId&gt;
    &lt;artifactId&gt;javaee-web-api&lt;/artifactId&gt;
    &lt;version&gt;&lt;!-- 7.0 (JSF 2.2) or 6.0 (JSF 2.0/2.1) --&gt;&lt;/version&gt;
    &lt;scope&gt;provided&lt;/scope&gt;
&lt;/dependency&gt;
</code></pre>

<p>After adding it, there is-</p>

<p><a href="https://i.stack.imgur.com/2NIIc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2NIIc.png" alt="enter image description here"></a></p>

<p>A screenshot to illustrate my confusion-</p>

<p>In the server logs, i found that the server is using this version of Mojarra</p>

<blockquote>
  <p>2016-06-08T17:26:36.778+0530|INFO: Initializing <code>Mojarra 2.2.0</code> (
  20130502-2118 <a href="https://svn.java.net/svn/mojarra~svn/tags/2.2.0@11930" rel="nofollow noreferrer">https://svn.java.net/svn/mojarra~svn/tags/2.2.0@11930</a>)</p>
</blockquote>

<p>with the lib folder of Glassfish 4.0 -
<a href="https://i.stack.imgur.com/C5xDl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C5xDl.png" alt="enter image description here"></a></p>

<p>You see there is a jar file <code>javaee</code>.</p>

<p>If I need to use the <code>Mojarra 2.2.6</code> version, say for example, what exactly I need to do?</p>