Dear Friends,

While upgrading application to Jsf2.0 created in Spring3 and Jsf1.0 (myfaces), i am facing some issues mentioned below.

I have done following steps to upgrade the application.

From IntelliJ IDEA:

* Open project settings/Monitor/Dependencies
* Removed facelet*jar, el*.jars, myfaces* jars from project
* Added jsf2.0.x ri mojarra jars and tomahawk1.1.9.jar
* Open project settings/monitor/web settings
* Under "modules and libs to package": remove el-.jars,facelet-jar and myfaces jars
* Added jsf2.0.x ri mojarra jars and tomahawk1.1.9.jar
* Removed erroneous class usages from our classes Lists.java and RegExValidator.java. In Lists.java, replace import with org.apache.commons.lang.LocaleUtils. In RegExValidator, replace import with "org.apache.myfaces.shared_tomahawk.util.MessageUt ils".

Edit Web.xml:

* facelets.VIEW_MAPPINGS -> javax.faces.FACELETS_VIEW_MAPPINGS
* facelets.LIBRARIES -> javax.faces.FACELETS_LIBRARIES
* Change Faces Servlet to <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
* Change header to:

<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

Edit faces-config.xml:

* Add header:

<?xml version="1.0"?>

<faces-config xmlns="http://java.sun.com/xml/ns/javaee"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"

version="2.0">

* Remove line "<view-handler>com.sun.facelets.FaceletViewHandler</view-handler>"

After doing all the steps mentioned above getting the following error:

"A literal value was specified for attribute actionListener that is defined as a deferred method with a return type of void. JSP.2.3.4 does not permit literal values in this case"

Actually Jsf2.0 el expressions #{myBean.property} are not getting resolved thats why its showing the above error.

Also I have tried lot of workarounds mentioned in below links but no success.

http://www.mail-archive.com/users@to.../msg74807.html
http://old.nabble.com/Issues-with-To...d27879497.html
https://issues.apache.org/bugzilla/s...tiple&id=47453
http://weblogs.java.net/blog/cayhors...-20-and-tomcat
http://forums.oracle.com/forums/thre...sageID=6356505
http://www.coderanch.com/how-to/java/ServletsWebXml
http://www.coderanch.com/how-to/java...kingAsExpected
http://www.springwebdevelopment.com/...on-language-el
http://www.mail-archive.com/users@my.../msg43119.html
http://www.apacheserver.net/el-api2-...p-at171461.htm
http://old.nabble.com/using-new-el-a...s28649111.html
http://wiki.apache.org/myfaces/HowToEnableEl22
http://ocpsoft.com/java/jsf2-java/js...el-el2-to-jsf/
http://www.softwareengineeringsoluti...LResolvers.htm
http://today.java.net/article/2006/0...ge-jsp-and-jsf
http://docs.sun.com/app/docs/doc/819...if?l=en&a=view
http://www.ibm.com/developerworks/ja...fu1/index.html
http://www.javabeat.net/tips/116-new...in-jsf-20.html
http://seamframework.org/Community/WebBeansInTomcat
http://forum.springsource.org/showthread.php?t=86577
http://static.springsource.org/sprin...aceselresolver

Can anybody guide me, what is missing, so that i can successfully migrate application to Jsf2.0

Thanks in Advance,
Dhillon