[richfaces-issues] [JBoss JIRA] Closed: (RF-2152) Deployment Error in Rich Faces

prashant verma (JIRA) jira-events at lists.jboss.org
Thu Feb 14 22:57:26 EST 2008


     [ http://jira.jboss.com/jira/browse/RF-2152?page=all ]

prashant verma closed RF-2152.
------------------------------


Hi,

I have solved this problem for jboss portal2.4.1 with jboss 4.0.5 not sure about others. following are the steps that I have Taken.

(1) Only Copy the richfaces ui and impl files in the war.
(2) Now copy the richfaces api,ui and impl files in the server/default/lib folder

There is no need for api to be present in the ear file and its important beacuse its presence only is creating the trouble and err is generated due to that.

Thanks 
Prashant

> Deployment Error in Rich Faces
> ------------------------------
>
>                 Key: RF-2152
>                 URL: http://jira.jboss.com/jira/browse/RF-2152
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.1.3
>         Environment: JDK1.5, Jboss Portal 2.4.1, Jboss App Server 4.0.5, 
>            Reporter: prashant verma
>         Assigned To: Ilya Shaikovsky
>
> I am trying the example thats given in the RichFaces developers Guide in Chapter 3 and trying to deploy it on Jboss server. then
> Case 1:  when I have all the 3 rich faces jar in the ear of my application then during the deployment following error comes.
> 17:20:42,518 INFO  [FacesConfigurator] Serialization provider : class org.apache.myfaces.shared_impl .util.serial.DefaultSerialFactory
> 17:20:42,549 INFO  [StartupServletContextListener] ServletContext 'D:\Users\jboss\jb\4.0.5\server\default\.\tmp\deploy\tmp35551richfaces.ear-contents\richfaces-exp.war\' initialized.
> 17:20:42,612 INFO  [CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
> 17:20:42,628 INFO  [LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {org.richfaces.SKIN=blueSky}
> 17:20:42,628 INFO  [LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
> 17:20:42,690 INFO  [CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
> 17:20:42,690 INFO  [LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {org.richfaces.SKIN=blueSky}
> 17:20:42,690 INFO  [LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
> 17:20:42,737 INFO  [CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
> 17:20:42,737 ERROR [[/richfaces]] Exception starting filter richfaces
> javax.faces.FacesException: Could not find class: 'org.ajax4jsf.cache.LRUMapCacheFactory'
>         at org.ajax4jsf.resource.InternetResourceService.init(InternetResourceService.java:112)
>         at org.ajax4jsf.webapp.BaseFilter.init(BaseFilter.java:148)
>         at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
>         at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
>         at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
>         at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3634)
>         at sun.reflect.GeneratedMethodAccessor282.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.jboss.portal.server.deployment.PortalWebTomcat5App.startFilter(PortalWebTomcat5App.java:119)
>         at org.jboss.portal.server.deployment.PortalWebTomcat5App.instrument(PortalWebTomcat5App.java:99)
>         at org.jboss.portal.server.deployment.jboss.ServerDeployer.instrument(ServerDeployer.java:319)
>         at org.jboss.portal.server.deployment.jboss.ServerDeployer.deploy(ServerDeployer.java:285)
>         at sun.reflect.GeneratedMethodAccessor275.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
>         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
>         at $Proxy77.deploy(Unknown Source)
>         at org.jboss.portal.server.deployment.WebAppAdapter.deploy(WebAppAdapter.java:54)
>         at org.jboss.portal.server.deployment.WebAppIntercepter.handleNotification(WebAppIntercepter.java:134)
>         at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
> Case 2: Now I put all the 3 jars impl,ui and api in the Users\jboss\jb\4.0.5\server\default\lib folder then the error changes to this one :
> 17:44:27,596 WARN  [FacesConfigurator] More than one managed bean w/ the name of 'a4j' - only keeping the last
> 17:44:27,596 WARN  [FacesConfigurator] More than one managed bean w/ the name of 'a4jSkin' - only keeping the last
> 17:44:27,612 WARN  [FacesConfigurator] More than one managed bean w/ the name of 'richSkin' - only keeping the last
> 17:44:27,612 WARN  [FacesConfigurator] More than one managed bean w/ the name of 'ajaxContext' - only keeping the last
> 17:44:27,643 INFO  [FacesConfigurator] Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
> 17:44:27,675 INFO  [StartupServletContextListener] ServletContext 'D:\Users\jboss\jb\4.0.5\server\default\.\tmp\deploy\tmp45961richfaces.ear-contents\richfaces-exp.war\' initialized.
> 17:44:27,768 INFO  [CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
> 17:44:27,768 INFO  [LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {org.richfaces.SKIN=blueSky}
> 17:44:27,784 INFO  [LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
> 17:44:27,815 INFO  [CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
> 17:44:27,815 INFO  [LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {org.richfaces.SKIN=blueSky}
> 17:44:27,831 INFO  [LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
> 17:44:27,878 INFO  [CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
> 17:44:27,878 ERROR [[/richfaces]] Exception starting filter richfaces javax.faces.FacesException: Class: 'org.ajax4jsf.cache.LRUMapCacheFactory' does not implement CacheFactory
>         at org.ajax4jsf.resource.InternetResourceService.init(InternetResourceService.java:112)
>         at org.ajax4jsf.webapp.BaseFilter.init(BaseFilter.java:148)
>         at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
>         at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
>         at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
>         at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3634)
>         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:585)
>         at org.jboss.portal.server.deployment.PortalWebTomcat5App.startFilter(PortalWebTomcat5App.java:119)
>         at org.jboss.portal.server.deployment.PortalWebTomcat5App.instrument(PortalWebTomcat5App.java:99)
>         at org.jboss.portal.server.deployment.jboss.ServerDeployer.instrument(ServerDeployer.java:319)
>         at org.jboss.portal.server.deployment.jboss.ServerDeployer.deploy(ServerDeployer.java:285)
>         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:585)
>         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
>         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
>         at $Proxy77.deploy(Unknown Source)
>         at org.jboss.portal.server.deployment.WebAppAdapter.deploy(WebAppAdapter.java:54)
> Please Help.Thanks in advance
> Prashant

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list