Combination View Flat View Tree View
Threads [ Previous | Next ]
Victor Menegusso
Sample Richfaces JSF 1.2 Sun Facelets 6.0.5.1
March 24, 2011 6:15 AM
Answer

Victor Menegusso

Rank: Junior Member

Posts: 28

Join Date: March 3, 2011

Recent Posts

Hello folks

I'm having trouble with one's own example liferay
I took the example by doing the following:
ADD -> More -> Install More Applications, then in the search box type "jsf" and install the following example "Sample JSF 1.2 Sun Facelets Richfaces 6.0.5.1"

apos instalar e dar o deploy ocorre o seguinte erro
  1
  22011-03-24 12:20:19,069 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (HDScanner) deploy, ctxPath=/richfaces-sun-jsf1.2-facelets-portlet
  32011-03-24 12:20:20,007 INFO  [com.liferay.portal.deploy.hot.PortletHotDeployListener] (HDScanner) Registering portlets for richfaces-sun-jsf1.2-facelets-portlet
  42011-03-24 12:20:20,077 INFO  [javax.portlet.faces] (HDScanner) Init GenericFacesPortlet for portlet 1
  52011-03-24 12:20:20,081 INFO  [javax.portlet.faces] (HDScanner) Bridge class name is org.jboss.portletbridge.AjaxPortletBridge
  62011-03-24 12:20:20,097 INFO  [javax.portlet.faces] (HDScanner) The bridge does not support doHeaders method
  72011-03-24 12:20:20,098 INFO  [javax.portlet.faces] (HDScanner) GenericFacesPortlet for portlet 1 initialized
  82011-03-24 12:20:20,131 INFO  [com.liferay.portal.deploy.hot.PortletHotDeployListener] (HDScanner) 1 portlet for richfaces-sun-jsf1.2-facelets-portlet is available for use
  92011-03-24 12:20:20,236 SEVERE [javax.faces.webapp] (HDScanner) Initialization of the JSF runtime either failed or did not occurr.  Review the server''s log for details.
 10java.lang.InstantiationException: org.jboss.portletbridge.context.FacesContextFactoryImpl
 11    at java.lang.Class.newInstance0(Class.java:335)
 12    at java.lang.Class.newInstance(Class.java:303)
 13    at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:537)
 14    at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:394)
 15    at javax.faces.FactoryFinder.access$400(FactoryFinder.java:135)
 16    at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:717)
 17    at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:239)
 18    at javax.faces.webapp.FacesServlet.init(FacesServlet.java:164)
 19    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
 20    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)
 21    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)
 22    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4421)
 23    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
 24    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
 25    at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
 26    at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
 27    at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
 28    at sun.reflect.GeneratedMethodAccessor915.invoke(Unknown Source)
 29    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 30    at java.lang.reflect.Method.invoke(Method.java:585)
 31    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
 32    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
 33    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
 34    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
 35    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
 36    at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
 37    at $Proxy38.start(Unknown Source)
 38    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
 39    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
 40    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
 41    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
 42    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
 43    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
 44    at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
 45    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
 46    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
 47    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
 48    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
 49    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
 50    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
 51    at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
 52    at org.jboss.system.ServiceController.start(ServiceController.java:460)
 53    at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
 54    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
 55    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
 56    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
 57    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
 58    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
 59    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
 60    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
 61    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
 62    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
 63    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
 64    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
 65    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
 66    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
 67    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
 68    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
 69    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
 70    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
 71    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
 72    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
 73    at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:362)
 74    at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
 75    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
 76    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
 77    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
 78    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
 79    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
 80    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
 81    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
 82    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
 83    at java.lang.Thread.run(Thread.java:595)
 842011-03-24 12:20:20,238 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/richfaces-sun-jsf1.2-facelets-portlet]] (HDScanner) Marking servlet FacesServlet as unavailable
 852011-03-24 12:20:20,238 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/richfaces-sun-jsf1.2-facelets-portlet]] (HDScanner) Servlet /richfaces-sun-jsf1.2-facelets-portlet threw load() exception
 86javax.servlet.UnavailableException: Initialization of the JSF runtime either failed or did not occurr.  Review the server''s log for details.
 87    at javax.faces.webapp.FacesServlet.init(FacesServlet.java:172)
 88    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
 89    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)
 90    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)
 91    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4421)
 92    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
 93    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
 94    at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
 95    at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
 96    at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
 97    at sun.reflect.GeneratedMethodAccessor915.invoke(Unknown Source)
 98    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 99    at java.lang.reflect.Method.invoke(Method.java:585)
100    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
101    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
102    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
103    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
104    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
105    at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
106    at $Proxy38.start(Unknown Source)
107    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
108    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
109    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
110    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
111    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
112    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
113    at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
114    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
115    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
116    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
117    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
118    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
119    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
120    at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
121    at org.jboss.system.ServiceController.start(ServiceController.java:460)
122    at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
123    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
124    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
125    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
126    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
127    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
128    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
129    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
130    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
131    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
132    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
133    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
134    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
135    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
136    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
137    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
138    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
139    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
140    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
141    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
142    at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:362)
143    at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
144    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
145    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
146    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
147    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
148    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
149    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
150    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
151    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
152    at java.lang.Thread.run(Thread.java:595)



I'm using as the JBoss application server, this same example works in tomcat server aplicattivo