Showing posts with label Tomcat. Show all posts
Showing posts with label Tomcat. Show all posts

How to remove JSP EL error

Posted on by Kim

If getting this error:

com.sun.faces.config.ConfigurationException: It appears the JSP version of the container is older than 2.1 and unable to locate the EL RI expression factory, com.sun.el.ExpressionFactoryImpl. If not using JSP or the EL RI, make sure the context initialization parameter, com.sun.faces.expressionFactory, is properly set.

Running eclipse and a server:
just go to 'Java EE Module Dependencies' and remove:

Building ear or war file:
make sure the following does not come with:

- servlet-api-??.jar
- jsp-api-??.jar

and let it be up to the server to provide the rigth versions.

Remove application name from URL in Tomcat 6 (ROOT application)

Posted on by Kim

E.g. to use www.test.test instead of www.test.test/mmsinbox

In server.xml add the following insite host tag:
On eclipse:

<Context docBase="mmsinbox" path="/mmsinbox" reloadable="true" source="org.eclipse.jst.jee.server:mmsinbox" />
Normal tomcat
<Context docBase="helloworld" path="" reloadable="true" />

Link: The Context Container