Porting JSF application from tomcat 6 to weblogic 9

Hi all,

I have a deployed a sample JSF application in tomcat 6.0. It works fine.

But when i try to port the same application to weblogic 9 it is not working, I am getting the following error when i try to access the jsf(jsp)

weblogic.servlet.jsp.CompilationException: Failed to compile JSP /login.jsp

login.jsp:12:44: No conversion available for the type "javax.el.ValueExpression".

UserID: <h:inputText value="#{mgr.userID}"/>

My web.xml contains FaceServlet mapping. Is there any weblogic specif Expression language listener i need to add in we.xml as context param?

I have aded jsf-impl,jsf-api,standard,jstl and el-api jar in the classpath llib.

Any sort of help on this to proceed will be great.

[759 byte] By [sudheerkollaraa] at [2007-11-27 11:20:29]
# 1

Hi

"JSP /login.jsp" seems to hint that you use straight JSF (with JSP and not facelets)...

Well JSF 1.2 requires JEE 5 and WLS 9.x only supports J2EE 1.4 -> the JSP-version included in WLS 9 is not readyfor JSF.

BUT: you can add Facelets to your setup, convert all your JSP's to xhtml-files and then it is possible to use WLS 9.

If you want to test on Tomcat before deploying to WLS 9, you should use Tomcat 5.5

hth

Alexander

Alexander_Jessea at 2007-7-29 14:42:59 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Hi Alexander Jesse,

Thanks for pointing out the solution.

I was also going through webogic 9.1 docs for JSF, and found weblogic 9.1 doesnt support JSF 1.2, jsp 2.3. It supports only jsf 1.1 and jstl 1.1 jar .

Now currently i am using jsf 1.2 and el-api.jar. Also i am using jasper-el.jar copied from tomcat lib for ExpressionFactoryImpl.

1. So does this application works with weblogic 9.1 if i change jsf 1.2 jar to jsf 1.1 jar?

2. Also do i need to keep jasper-el and el-api.jar?

3. Also do i need to change <%@ page contentType="application/xhtml+xml" %> ?

All these three steps are mandatory?

Please provide some direction on this to proceed

Regards,

Sudheer

sudheerkollaraa at 2007-7-29 14:42:59 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...