dcsimg
Exception after adding richFaces jar to myFaces projects
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   tong123123_tong123123
Posted On:   Saturday, November 15, 2008 01:32 PM

I have added richfaces-api-3.2.1.GA.jar, richfaces-impl-3.2.1.GA.jar, richfaces-ui-3.2.1.GA.jar to my old MyFaces projects which also contains myfaces-api-1.2.5.jar, myfaces-impl-1.2.5.jar, myfaces-shared-impl-3.0.5.jar. I have clear the cache of tomcat under apache-tomcat-6.0.18workCatalinalocalhost then I configure the web.xml according to RichFaces documentation as follow: org.richfaces.SKIN blueSky RichFaces Filter richfaces org.ajax4jsf.Filter extensionsFilter org.apache.myfaces.webapp.filter.ExtensionsFilter Set the size limit for uploaded files. Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB up   More>>

I have added richfaces-api-3.2.1.GA.jar, richfaces-impl-3.2.1.GA.jar, richfaces-ui-3.2.1.GA.jar to my old MyFaces projects which also contains myfaces-api-1.2.5.jar, myfaces-impl-1.2.5.jar, myfaces-shared-impl-3.0.5.jar.
I have clear the cache of tomcat under apache-tomcat-6.0.18workCatalinalocalhost

then I configure the web.xml according to RichFaces documentation as follow:

org.richfaces.SKIN
blueSky


RichFaces Filter
richfaces
org.ajax4jsf.Filter


extensionsFilter
org.apache.myfaces.webapp.filter.ExtensionsFilter

Set the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
uploadMaxFileSize
100m


Set the threshold size - files
below this limit are stored in memory, files above
this limit are stored on disk.

Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
uploadThresholdSize
100k



Set the path where the intermediary files will be stored.

uploadRepositoryPath
/temp


.........

richfaces
Faces Servlet
REQUEST
FORWARD
INCLUDE


extensionsFilter
Faces Servlet


Faces Servlet
javax.faces.webapp.FacesServlet
1

........

Faces Servlet
*.jsf

.........
according to the documentation of RichFaces. "the RichFaces filter must be the first one among other filters in the web.xml configuration file.", I already take this step!!
but when I run the old MyFaces application, exception as follows occur

			
java.lang.NoSuchMethodError: javax.faces.context.FacesContext.getELContext()Ljavax/el/ELContext;
at org.richfaces.skin.SkinFactoryImpl.processProperties(SkinFactoryImpl.java:261)
at org.richfaces.skin.SkinFactoryImpl.buildSkin(SkinFactoryImpl.java:301)
at org.richfaces.skin.SkinFactoryImpl.getSkinByName(SkinFactoryImpl.java:126)
at org.richfaces.skin.SkinFactoryImpl.getSkin(SkinFactoryImpl.java:141)
at org.ajax4jsf.event.AjaxPhaseListener.beforePhase(AjaxPhaseListener.java:119)
at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManage
r.java:73)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:147)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290
)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235
)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:366)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235
)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)


this seeems that some library is conflict!! why will this happen? I already clear the tomcat cache and set richfaces filter as the first filter!!    <<Less
About | Sitemap | Contact