Hi,

Are you using the latest versions of MyFaces Core and Trinidad? There
already has been some work on this issue (see MYFACES-2520 for details) and
this should be fixed.

Regards,
Jakob

2010/2/25 navnath29 <kumbhar.navn...@gmail.com>

>
> Hi there,
>
> I am trying to implement jsf in my existing java project.
> So I have added required jar files and update web.xml
> When I run server I found out error something like this
>
> java.lang.UnsupportedOperationException: This request class is an empty
> placeholder
>        at
>
> org.apache.myfaces.application._SystemEventServletRequest$1.invoke(_SystemEventServletReq
> uest.java:56)
>        at $Proxy0.getContentType(Unknown Source)
>        at
>
> javax.servlet.ServletRequestWrapper.getContentType(ServletRequestWrapper.java:134)
>        at
>
> org.apache.myfaces.context.servlet.ServletExternalContextImpl.getRequestContentType(Servl
> etExternalContextImpl.java:322)
>        at
>
> org.apache.myfaces.trinidad.util.ExternalContextUtils.getContentType(ExternalContextUtils
> .java:341)
>        at
>
> org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler.isMultipartRequest(Mu
> ltipartFormHandler.java:57)
>        at
>
> org.apache.myfaces.trinidadinternal.config.upload.FileUploadConfiguratorImpl.beginRequest
> (FileUploadConfiguratorImpl.java:109)
>        at
>
> org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl._startConfiguratorServi
> ceRequest(GlobalConfiguratorImpl.java:532)
>        at
>
> org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.beginRequest(GlobalConf
> iguratorImpl.java:211)
>        at
>
> org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.getExternalContext(Glob
> alConfiguratorImpl.java:327)
>        at
>
> org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit.<init>
> (FacesContextFactoryImpl.java:90)
>        at
>
> org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl.getFacesContext(Faces
> ContextFactoryImpl.java:68)
>        at
>
> org.apache.myfaces.webapp.AbstractFacesInitializer.dispatchInitDestroyEvent(AbstractFaces
> Initializer.java:140)
>        at
>
> org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.jav
> a:109)
>        at
>
> org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServlet
> ContextListener.java:155)
>        at
>
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
>        at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
>        at
>
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
>        at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
>        at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
>        at
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987)
>        at
>
> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)
>        at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)
>        at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
>        at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
>        at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>        at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>        at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
>        at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>        at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>        at
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>        at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>        at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> Feb 25, 2010 4:43:51 PM org.apache.myfaces.webapp.AbstractFacesInitializer
> initFaces
> SEVERE: An error occured while initializing MyFaces: This request class is
> an empty placeholder
> java.lang.UnsupportedOperationException: This request class is an empty
> placeholder
>        at
>
> org.apache.myfaces.application._SystemEventServletRequest$1.invoke(_SystemEventServletReq
> uest.java:56)
>        at $Proxy0.getHeader(Unknown Source)
>        at
>
> javax.servlet.http.HttpServletRequestWrapper.getHeader(HttpServletRequestWrapper.java:80)
>
>        at
>
> org.apache.myfaces.trinidadinternal.context.external.ServletRequestHeaderMap.getAttribute
> (ServletRequestHeaderMap.java:42)
>        at
>
> org.apache.myfaces.trinidadinternal.context.external.ServletRequestHeaderMap.getAttribute
> (ServletRequestHeaderMap.java:30)
>        at
>
> org.apache.myfaces.trinidadinternal.context.external.AbstractAttributeMap.get(AbstractAtt
> ributeMap.java:73)
>        at
>
> org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit.isAjaxRequest(CoreRender
> Kit.java:148)
>        at
>
> org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit.isPartialRequest(CoreRen
> derKit.java:163)
>        at
>
> org.apache.myfaces.trinidadinternal.config.xmlHttp.XmlHttpConfigurator.getExternalContext
> (XmlHttpConfigurator.java:61)
>        at
>
> org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.getExternalContext(Glob
> alConfiguratorImpl.java:351)
>        at
>
> org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit.<init>
> (FacesContextFactoryImpl.java:90)
>        at
>
> org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl.getFacesContext(Faces
> ContextFactoryImpl.java:68)
>        at
>
> org.apache.myfaces.webapp.AbstractFacesInitializer.dispatchInitDestroyEvent(AbstractFaces
> Initializer.java:140)
>        at
>
> org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.jav
> a:109)
>        at
>
> org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServlet
> ContextListener.java:155)
>        at
>
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
>        at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
>        at
>
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
>        at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
>        at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
>        at
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987)
>        at
>
> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)
>        at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)
>        at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
>        at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
>        at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>        at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>        at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
>        at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>        at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>        at
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>        at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>        at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>
>
> I have search with this error on forums, but no one resolve it.
> Could you please help me out regarding this issue?
> At least, let me know the exact problem, so that I can work on it.
>
> Thank You.
> --
> View this message in context:
> http://old.nabble.com/Request-class-is-an-empty-placeholder-tp27714410p27714410.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Reply via email to