Re: Request class is an empty placeholder
yeah, is fixed in MyFaces 2.0.0-beta What is your Trinidad version ? On Thu, Feb 25, 2010 at 1:38 PM, Jakob Korherr wrote: > 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 > >> >> 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. >> (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.
Re: Request class is an empty placeholder
Hi It is a known issue, so you can take a look at MYFACES-2434 too. http://issues.apache.org/jira/browse/MYFACES-2434 http://issues.apache.org/jira/browse/MYFACES-2520 regards, Leonardo Uribe 2010/2/25 Jakob Korherr > 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 > > > > > 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. > > (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:51
Re: Request class is an empty placeholder
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 > > 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. > (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.Unsupp
Request class is an empty placeholder
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. (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