Hi nash_era, I tried your solution. But the Java class you provided has imported import javax.el.*; which is from jsp-api.jar, if I add this jar to my lib directory, and deploy, I will get error 'java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory'
I googled this error, it says its caused by the conflict. Tomcat has already had this jar, I then checked server lib directory, yeh it is there, but how could my Java class reference to there?? If I remove jsp-api.jar from my own lib directory, it's a compilation error, if I ignore it and still build war file and deploy it, its still failed to start the application as error now is 'INFO: validateJarFile(/usr/local/apache-tomcat-6.0.26/webapps/my_project/WEB-INF/lib/servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Please help, thanks.
'
[Message sent by forum member 'scorpioy']
http://forums.java.net/jive/thread.jspa?messageID=479368