Forums de discussion

jsf project not getting deployed..

nalin sharma, modifié il y a 10 années.

jsf project not getting deployed..

New Member Publications: 11 Date d'inscription: 29/01/14 Publications récentes
hi,
i am creating liferay jboss based plugin project(v6.2 ga)..with jsf 2.x & "jsf standard" as "jsf component suite"..it creates the project properly with few warnings..then i create its build file using ant (right now i am trying to deploy the project with no portlets just to see that there are no errors before & during deployment)..after that when i put that build file on jboss server it shows this message:

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
18:41:05,889 INFO (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) 18:41:05,888 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:204] Processing JSF1-portlet-6.2.0.1${lp.version.file.suffix}.war

18:41:05,894 INFO (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) 18:41:05,894 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListener:79] Copying portlets for D:\Project\Polaris\liferay-portal-jboss-6.2.0-ce-ga1-20131101192857659\deploy\JSF1-portlet-6.2.0.1${lp.version.file.suffix}.war

18:41:05,925 INFO (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) 18:41:05,925 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:859] Deploying JSF1-portlet-6.2.0.1${lp.version.file.suffix}.war

18:41:05,938 INFO (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) 18:41:05,929 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:962] Updating JSF1 from version 6.2.0.1${lp to version 6.2.0.1${lp

18:41:05,940 INFO (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) Expanding: D:\Project\Polaris\liferay-portal-jboss-6.2.0-ce-ga1-20131101192857659\deploy\JSF1-portlet-6.2.0.1${lp.version.file.suffix}.war into C:\Users\BHOOTS~1\AppData\Local\Temp\20140207184105939

18:41:06,800 INFO (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) Copying 1 file to C:\Users\BHOOTS~1\AppData\Local\Temp\20140207184105939\WEB-INF

18:41:06,805 INFO (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) Copying 1 file to C:\Users\BHOOTS~1\AppData\Local\Temp\20140207184105939\WEB-INF\classes

18:41:06,818 INFO (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) Copying 1 file to C:\Users\BHOOTS~1\AppData\Local\Temp\20140207184105939\WEB-INF

18:41:06,821 INFO (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) Copying 1 file to C:\Users\BHOOTS~1\AppData\Local\Temp\20140207184105939\WEB-INF\jsp

18:41:06,951 INFO (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) 18:41:06,950 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:2380] Modifying Servlet 2.5 C:\Users\BHOOTS~1\AppData\Local\Temp\20140207184105939\WEB-INF\web.xml

18:41:06,958 INFO (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) Copying 74 files to D:\Project\Polaris\liferay-portal-jboss-6.2.0-ce-ga1-20131101192857659\jboss-7.1.1\standalone\deployments\JSF1-portlet.war

18:41:07,033 INFO (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) Copying 1 file to D:\Project\Polaris\liferay-portal-jboss-6.2.0-ce-ga1-20131101192857659\jboss-7.1.1\standalone\deployments\JSF1-portlet.war

18:41:07,035 INFO (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) Deleting directory C:\Users\BHOOTS~1\AppData\Local\Temp\20140207184105939

18:41:07,728 INFO (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) 18:41:07,728 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListener:91] Portlets for D:\Project\Polaris\liferay-portal-jboss-6.2.0-ce-ga1-20131101192857659\deploy\JSF1-portlet-6.2.0.1${lp.version.file.suffix}.war copied successfully. Deployment will start in a few seconds.

18:41:54,359 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "JSF1-portlet.war"
18:41:56,961 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry powermock-reflect-1.5.jar in "/D:/Project/Polaris/liferay-portal-jboss-6.2.0-ce-ga1-20131101192857659/jboss-7.1.1/standalone/deployments/JSF1-portlet.war/WEB-INF/lib/powermock-core.jar" does not point to a valid jar for a Class-Path reference.
18:41:56,964 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry objenesis-1.2.jar in "/D:/Project/Polaris/liferay-portal-jboss-6.2.0-ce-ga1-20131101192857659/jboss-7.1.1/standalone/deployments/JSF1-portlet.war/WEB-INF/lib/powermock-core.jar" does not point to a valid jar for a Class-Path reference.
18:41:56,967 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry javassist-3.17.1-GA.jar in "/D:/Project/Polaris/liferay-portal-jboss-6.2.0-ce-ga1-20131101192857659/jboss-7.1.1/standalone/deployments/JSF1-portlet.war/WEB-INF/lib/powermock-core.jar" does not point to a valid jar for a Class-Path reference.
18:41:57,103 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Tomcat6InjectionProvider:org.apache.catalina.util.DefaultAnnotationProcessor' for service type 'com.sun.faces.spi.injectionprovider'
18:41:57,103 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Jetty6InjectionProvider:org.mortbay.jetty.plus.annotation.InjectionCollection' for service type 'com.sun.faces.spi.injectionprovider'
18:41:57,104 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Tomcat6InjectionProvider:org.apache.catalina.util.DefaultAnnotationProcessor' for service type 'com.sun.faces.spi.injectionprovider'
18:41:57,105 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Jetty6InjectionProvider:org.mortbay.jetty.plus.annotation.InjectionCollection' for service type 'com.sun.faces.spi.injectionprovider'
18:41:57,376 INFO [org.apache.catalina.core.StandardContext] (MSC service thread 1-3) The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
18:41:57,377 INFO [org.apache.catalina.core.StandardContext] (MSC service thread 1-3) The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
18:41:57,381 INFO (MSC service thread 1-3) 18:41:57,380 INFO [MSC service thread 1-3][HotDeployEvent:130] Plugin JSF1-portlet requires marketplace-portlet

18:41:57,382 INFO (MSC service thread 1-3) 18:41:57,382 INFO [MSC service thread 1-3][HotDeployImpl:195] Deploying JSF1-portlet from queue

18:41:57,384 INFO (MSC service thread 1-3) 18:41:57,383 INFO [MSC service thread 1-3][PluginPackageUtil:1016] Reading plugin package for JSF1-portlet

18:41:58,957 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/JSF1-portlet]] (MSC service thread 1-3) Initializing Spring root WebApplicationContext
18:41:58,962 INFO (MSC service thread 1-3) 18:41:58,962 INFO [MSC service thread 1-3][HookHotDeployListener:687] Registering hook for JSF1-portlet

18:41:58,966 INFO (MSC service thread 1-3) 18:41:58,966 INFO [MSC service thread 1-3][HookHotDeployListener:814] Hook for JSF1-portlet is available for use

18:41:58,969 INFO (MSC service thread 1-3) 18:41:58,969 INFO [MSC service thread 1-3][PortletHotDeployListener:343] Registering portlets for JSF1-portlet

18:41:59,022 INFO [javax.portlet.faces] (MSC service thread 1-3) Init GenericFacesPortlet for portlet JSF1
18:41:59,024 INFO [javax.portlet.faces] (MSC service thread 1-3) Bridge class name is org.jboss.portletbridge.PortletBridgeImpl
18:41:59,038 INFO (MSC service thread 1-3) 18:41:59,037 INFO [MSC service thread 1-3][PortletHotDeployListener:490] 1 portlet for JSF1-portlet is available for use

18:41:59,044 INFO [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-3) Initializing Mojarra 2.1.7-jbossorg-1 (20120227-1401) for context '/JSF1-portlet'
18:42:01,361 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-3) Critical error during deployment: : com.sun.faces.config.ConfigurationException:
Source Document: jndi:/default-host/JSF1-portlet/WEB-INF/faces-config.xml
Cause: Unable to find class 'com.liferay.faces.util.lifecycle.DebugPhaseListener'
at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:273) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.config.processor.LifecycleConfigProcessor.addPhaseListeners(LifecycleConfigProcessor.java:132) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:111) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:361) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225) [jsf-impl-2.1.7-jbossorg-2.jar:]
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_25]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_25]
Caused by: java.lang.ClassNotFoundException: com.liferay.faces.util.lifecycle.DebugPhaseListener from [Module "deployment.JSF1-portlet.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]
at com.sun.faces.util.Util.loadClass(Util.java:345) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:311) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:240) [jsf-impl-2.1.7-jbossorg-2.jar:]
... 14 more

18:42:01,371 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/JSF1-portlet]] (MSC service thread 1-3) Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException:
Source Document: jndi:/default-host/JSF1-portlet/WEB-INF/faces-config.xml
Cause: Unable to find class 'com.liferay.faces.util.lifecycle.DebugPhaseListener'
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:292) [jsf-impl-2.1.7-jbossorg-2.jar:]
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_25]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_25]
Caused by: com.sun.faces.config.ConfigurationException:
Source Document: jndi:/default-host/JSF1-portlet/WEB-INF/faces-config.xml
Cause: Unable to find class 'com.liferay.faces.util.lifecycle.DebugPhaseListener'
at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:273) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.config.processor.LifecycleConfigProcessor.addPhaseListeners(LifecycleConfigProcessor.java:132) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:111) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:361) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225) [jsf-impl-2.1.7-jbossorg-2.jar:]
... 8 more
Caused by: java.lang.ClassNotFoundException: com.liferay.faces.util.lifecycle.DebugPhaseListener from [Module "deployment.JSF1-portlet.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]
at com.sun.faces.util.Util.loadClass(Util.java:345) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:311) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:240) [jsf-impl-2.1.7-jbossorg-2.jar:]
... 14 more

18:42:01,382 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-3) Error listenerStart
18:42:01,382 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-3) Context [/JSF1-portlet] startup failed due to previous errors
18:42:01,383 SEVERE [javax.faces] (MSC service thread 1-3) Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory. Attempting to find backup.
18:42:01,384 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-3) Unexpected exception when attempting to tear down the Mojarra runtime: java.lang.IllegalStateException: Could not find backup for factory javax.faces.application.ApplicationFactory.
at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1008) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:343) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:131) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:328) [jsf-impl-2.1.7-jbossorg-2.jar:]
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3489) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3999) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3917) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_25]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_25]

18:42:01,389 INFO (MSC service thread 1-3) 18:42:01,388 INFO [MSC service thread 1-3][HotDeployEvent:130] Plugin JSF1-portlet requires marketplace-portlet

18:42:01,390 INFO (MSC service thread 1-3) 18:42:01,390 INFO [MSC service thread 1-3][PortletHotDeployListener:523] Unregistering portlets for JSF1-portlet

18:42:01,391 INFO [javax.portlet.faces] (MSC service thread 1-3) Destroy GenericFacesPortlet for portlet JSF1
18:42:01,395 INFO (MSC service thread 1-3) 18:42:01,394 INFO [MSC service thread 1-3][PortletHotDeployListener:558] 1 portlet for JSF1-portlet was unregistered

18:42:01,397 INFO (MSC service thread 1-3) 18:42:01,396 INFO [MSC service thread 1-3][HookHotDeployListener:944] Hook for JSF1-portlet was unregistered

18:42:01,397 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/JSF1-portlet]] (MSC service thread 1-3) Closing Spring root WebApplicationContext
18:42:01,399 INFO (MSC service thread 1-3) 18:42:01,398 INFO [MSC service thread 1-3][PluginPackageUtil:1016] Reading plugin package for JSF1-portlet

18:42:01,402 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.web.deployment.default-host./JSF1-portlet: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./JSF1-portlet: JBAS018040: Failed to start context
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:95)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_25]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_25]

18:42:01,608 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "JSF1-portlet.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./JSF1-portlet" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./JSF1-portlet: JBAS018040: Failed to start context"}}
18:42:01,661 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment JSF1-portlet.war in 52ms
18:42:01,662 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.web.deployment.default-host./JSF1-portlet: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./JSF1-portlet: JBAS018040: Failed to start context

18:42:01,663 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./JSF1-portlet" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./JSF1-portlet: JBAS018040: Failed to start context"}}}}

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

my faces config.xml says :
<phase-listener>com.liferay.faces.util.lifecycle.DebugPhaseListener</phase-listener>
(and rest of stuff before that.)..there is a warning on this line("phase-listener references to com.liferay.faces.util.lifecycle.DebugPhaseListener that does not extend javax.faces.event.PhaseListener")..hence i imported "liferay-faces-util-3.2.4-ga5.jar" because it had this(DebugPhaseListener) class file..and now even after refreshing and cleaning multiple times..this warning doesn't goes away..i guess this warning the only reason my project is not getting deployed..

please can u tell me a workaround for this..i mean is the above warning the only reason for a failed deployment or its something else..

thank you.
nalin sharma, modifié il y a 10 années.

RE: jsf project not getting deployed..

New Member Publications: 11 Date d'inscription: 29/01/14 Publications récentes
please can someone help me out on this issue...
thumbnail
Vernon Singleton, modifié il y a 10 années.

RE: jsf project not getting deployed..

Expert Publications: 315 Date d'inscription: 14/01/13 Publications récentes
nalin sharma:
hi,
i am creating liferay jboss based plugin project(v6.2 ga)..with jsf 2.x & "jsf standard"

... snipped for brevity ...

[com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:204] Processing JSF1-portlet-6.2.0.1${lp.version.file.suffix}.war

... snipped for brevity ...

18:41:59,044 INFO [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-3) Initializing Mojarra 2.1.7-jbossorg-1 (20120227-1401) for context '/JSF1-portlet'
18:42:01,361 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-3) Critical error during deployment: : com.sun.faces.config.ConfigurationException:
Source Document: jndi:/default-host/JSF1-portlet/WEB-INF/faces-config.xml
Cause: Unable to find class 'com.liferay.faces.util.lifecycle.DebugPhaseListener'
at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:273) [jsf-impl-2.1.7-jbossorg-2.jar:]

... snipped for brevity ...

my faces config.xml says :
<phase-listener>com.liferay.faces.util.lifecycle.DebugPhaseListener</phase-listener>
(and rest of stuff before that.)..there is a warning on this line("phase-listener references to com.liferay.faces.util.lifecycle.DebugPhaseListener that does not extend javax.faces.event.PhaseListener")..hence i imported "liferay-faces-util-3.2.4-ga5.jar" because it had this(DebugPhaseListener) class file..and now even after refreshing and cleaning multiple times..this warning doesn't goes away..i guess this warning the only reason my project is not getting deployed..

please can u tell me a workaround for this..i mean is the above warning the only reason for a failed deployment or its something else..

thank you.


Hi Nalin,

Is the war file that you are building and deploying really called "JSF1-portlet-6.2.0.1${lp.version.file.suffix}.war"? If it is, did you choose that file name?
I guess I am just curious ... How are you deploying your war file? using an IDE? a copy command? some other method?

But now down to business ... make sure you upgrade your jboss instance to use the correct version of mojarra according to these instructions.

Then, just to get a good baseline with a working portlet, you might want to build Liferay Faces from source as shown here, but check out the 3.2.x branch instead. Make sure you use the jboss profile when you do build liferay faces from source:
mvn -P jboss clean install

Then you can deploy one of the demo wars like your own which uses the jsf standard component library, for example, demos/bridge/jsf2-portlet/target/jsf2-portlet-3.1.4-ga5-SNAPSHOT.war. Then place the portlet on a page and make sure it works, then report your findings back here.

Hope that helps,
Vernon
thumbnail
Vernon Singleton, modifié il y a 10 années.

RE: jsf project not getting deployed..

Expert Publications: 315 Date d'inscription: 14/01/13 Publications récentes
Yes, I just noticed from your error log, that it looks like your jboss is configured with the its favorite version of mojarra, but the liferay faces bridge version 3.2.4-ga5 requires mojarra 2.1.21, i believe.

Use the version scheme noted here to get the correct version of mojarra that you need for the correct version of the bridge that you need for your version of the Liferay Portal.

Again, hope that helps,
Vernon
thumbnail
Vernon Singleton, modifié il y a 10 années.

RE: jsf project not getting deployed..

Expert Publications: 315 Date d'inscription: 14/01/13 Publications récentes
One last note, the version scheme noted here does not tell you the exact version of mojarra to use which is usually quite important. It only tells you the major1 version of mojarra. But I'm pretty sure that is why we have the wiki article called Upgrading Mojarra in Jboss AS .

But also, you can get the precise tested and targeted mojarra version to use by looking in the parent pom.xml file of the Liferay Faces project for your version of the Liferay Portal. Which in your case would be here for 3.2.x. That's how you can see that you need mojarra 2.1.21.
nalin sharma, modifié il y a 10 années.

RE: jsf project not getting deployed..

New Member Publications: 11 Date d'inscription: 29/01/14 Publications récentes
hi
yes i am using ide..liferay eclipse ide(separately installed jboss tools)..
i am creating a project..then using ant i am creating its .war file..then on my liferay localhost page under "App Manager>Install" installing this war file..this automatically starts the deployment of this war file..
not using maven,so no pom.xml..

i followed ur instructions and updated mojarra..and now its showing these errors...and plus one more thing in faces config.xml there is a warning on this line:
<lifecycle>
<phase-listener>com.liferay.faces.util.lifecycle.DebugPhaseListener</phase-listener>
</lifecycle>
warning says :
"phase-listener references to non-existent class com.liferay.faces.util.lifecycle.DebugPhaseListener"
"Cannot find fully qualified class: com.liferay.faces.util.lifecycle.DebugPhaseListener"
i checked,this class is there in liferay faces util 3.2.4 ga.jar..and i added this jar in build path and still this warning..cleaned and refreshed several times...

anyways regarding this error "javax.portlet.faces.GenericFacesPortlet":
this class is there in liferay-faces-bridge 3.2.4 ga5.jar and i have added this jar in project build path...still its showing this error..
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
09:50:14,906 INFO [stdout] (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) 09:50:14,905 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListener:91] Portlets for D:\Project\Polaris\liferay-portal-jboss-6.2.0-ce-ga1-20131101192857659\deploy\Jsf2-portlet-6.2.0.1${lp.version.file.suffix}.war copied successfully. Deployment will start in a few seconds.

09:50:43,229 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) JBAS015003: Found Jsf2-portlet.war in deployment directory. To trigger deployment create a file called Jsf2-portlet.war.dodeploy
09:50:43,320 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "Jsf2-portlet.war"

-- some warning messages snipped--

09:50:45,994 INFO [stdout] (MSC service thread 1-1) 09:50:45,994 INFO [MSC service thread 1-1][PluginPackageUtil:1016] Reading plugin package for Jsf2-portlet
09:50:47,505 INFO [stdout] (MSC service thread 1-1) 09:50:47,505 INFO [MSC service thread 1-1][HookHotDeployListener:814] Hook for Jsf2-portlet is available for use
09:50:47,509 INFO [stdout] (MSC service thread 1-1) 09:50:47,507 INFO [MSC service thread 1-1][PortletHotDeployListener:343] Registering portlets for Jsf2-portlet
09:50:47,604 INFO [stdout] (MSC service thread 1-1) 09:50:47,600 ERROR [MSC service thread 1-1][PortletBagFactory:411] java.lang.ClassNotFoundException: javax.portlet.faces.GenericFacesPortlet from [Module "deployment.Jsf2-portlet.war:main" from Service Module Loader]

09:50:47,605 INFO [stdout] (MSC service thread 1-1) java.lang.ClassNotFoundException: javax.portlet.faces.GenericFacesPortlet from [Module "deployment.Jsf2-portlet.war:main" from Service Module Loader]
09:50:47,606 INFO [stdout] (MSC service thread 1-1) at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

09:50:47,607 INFO [stdout] (MSC service thread 1-1) at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

09:50:47,608 INFO [stdout] (MSC service thread 1-1) at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

09:50:47,609 INFO [stdout] (MSC service thread 1-1) at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

09:50:47,609 INFO [stdout] (MSC service thread 1-1) at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

09:50:47,610 INFO [stdout] (MSC service thread 1-1) at com.liferay.portlet.PortletBagFactory.getPortletInstance(PortletBagFactory.java:408)

09:50:47,611 INFO [stdout] (MSC service thread 1-1) at com.liferay.portlet.PortletBagFactory.create(PortletBagFactory.java:121)

09:50:47,611 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy(PortletHotDeployListener.java:369)

09:50:47,612 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:124)

09:50:47,614 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:205)

09:50:47,614 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:96)

09:50:47,615 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:27)

09:50:47,616 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:164)

09:50:47,617 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:154)

09:50:47,617 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)

09:50:47,618 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:64)

09:50:47,619 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:56)

09:50:47,620 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:54)

09:50:47,621 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:116)

09:50:47,621 INFO [stdout] (MSC service thread 1-1) at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392)

09:50:47,622 INFO [stdout] (MSC service thread 1-1) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850)

09:50:47,623 INFO [stdout] (MSC service thread 1-1) at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)

09:50:47,624 INFO [stdout] (MSC service thread 1-1) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

09:50:47,624 INFO [stdout] (MSC service thread 1-1) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

09:50:47,625 INFO [stdout] (MSC service thread 1-1) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

09:50:47,627 INFO [stdout] (MSC service thread 1-1) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

09:50:47,628 INFO [stdout] (MSC service thread 1-1) at java.lang.Thread.run(Unknown Source)

09:50:47,637 INFO [stdout] (MSC service thread 1-1) 09:50:47,636 ERROR [MSC service thread 1-1][PortletBagFactory:340] javax.portlet.PortletException: java.lang.NullPointerException

09:50:47,639 INFO [stdout] (MSC service thread 1-1) javax.portlet.PortletException: java.lang.NullPointerException

09:50:47,640 INFO [stdout] (MSC service thread 1-1) at com.liferay.portlet.InvokerPortletFactoryImpl.create(InvokerPortletFactoryImpl.java:63)

09:50:47,640 INFO [stdout] (MSC service thread 1-1) at com.liferay.portlet.PortletInstanceFactoryImpl.init(PortletInstanceFactoryImpl.java:225)

09:50:47,641 INFO [stdout] (MSC service thread 1-1) at com.liferay.portlet.PortletInstanceFactoryImpl.create(PortletInstanceFactoryImpl.java:145)

09:50:47,642 INFO [stdout] (MSC service thread 1-1) at com.liferay.portlet.PortletInstanceFactoryUtil.create(PortletInstanceFactoryUtil.java:41)

09:50:47,643 INFO [stdout] (MSC service thread 1-1) at com.liferay.portlet.PortletBagFactory.create(PortletBagFactory.java:337)

09:50:47,645 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy(PortletHotDeployListener.java:369)

09:50:47,646 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:124)

09:50:47,648 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:205)

09:50:47,649 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:96)

09:50:47,650 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:27)

09:50:47,650 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:164)

09:50:47,651 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:154)

09:50:47,652 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)

09:50:47,653 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:64)

09:50:47,654 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:56)

09:50:47,655 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:54)

09:50:47,656 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:116)

09:50:47,656 INFO [stdout] (MSC service thread 1-1) at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392)

09:50:47,657 INFO [stdout] (MSC service thread 1-1) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850)

09:50:47,658 INFO [stdout] (MSC service thread 1-1) at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)

09:50:47,660 INFO [stdout] (MSC service thread 1-1) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

09:50:47,661 INFO [stdout] (MSC service thread 1-1) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

09:50:47,662 INFO [stdout] (MSC service thread 1-1) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

09:50:47,663 INFO [stdout] (MSC service thread 1-1) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

09:50:47,663 INFO [stdout] (MSC service thread 1-1) at java.lang.Thread.run(Unknown Source)

09:50:47,664 INFO [stdout] (MSC service thread 1-1) Caused by: java.lang.NullPointerException

09:50:47,665 INFO [stdout] (MSC service thread 1-1) at com.liferay.portlet.InvokerPortletImpl.<init>(InvokerPortletImpl.java:169)

09:50:47,665 INFO [stdout] (MSC service thread 1-1) at com.liferay.portlet.InvokerPortletFactoryImpl.create(InvokerPortletFactoryImpl.java:56)

09:50:47,666 INFO [stdout] (MSC service thread 1-1) ... 24 more

09:50:47,668 INFO [stdout] (MSC service thread 1-1) 09:50:47,667 ERROR [MSC service thread 1-1][HotDeployImpl:208] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for Jsf2-portletJsf2-portlet

09:50:47,670 INFO [stdout] (MSC service thread 1-1) com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for Jsf2-portletJsf2-portlet

09:50:47,671 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:46)

09:50:47,672 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:127)

09:50:47,674 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:205)

09:50:47,675 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:96)

09:50:47,676 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:27)

09:50:47,677 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:164)

09:50:47,678 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:154)

09:50:47,679 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)

09:50:47,680 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:64)

09:50:47,681 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:56)

09:50:47,682 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:54)

09:50:47,683 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:116)

09:50:47,683 INFO [stdout] (MSC service thread 1-1) at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392)

09:50:47,684 INFO [stdout] (MSC service thread 1-1) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850)

09:50:47,685 INFO [stdout] (MSC service thread 1-1) at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)

09:50:47,686 INFO [stdout] (MSC service thread 1-1) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

09:50:47,687 INFO [stdout] (MSC service thread 1-1) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

09:50:47,688 INFO [stdout] (MSC service thread 1-1) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

09:50:47,689 INFO [stdout] (MSC service thread 1-1) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

09:50:47,690 INFO [stdout] (MSC service thread 1-1) at java.lang.Thread.run(Unknown Source)

09:50:47,690 INFO [stdout] (MSC service thread 1-1) Caused by: javax.portlet.PortletException: java.lang.NullPointerException

09:50:47,691 INFO [stdout] (MSC service thread 1-1) at com.liferay.portlet.InvokerPortletFactoryImpl.create(InvokerPortletFactoryImpl.java:63)

09:50:47,692 INFO [stdout] (MSC service thread 1-1) at com.liferay.portlet.PortletInstanceFactoryImpl.init(PortletInstanceFactoryImpl.java:225)

09:50:47,693 INFO [stdout] (MSC service thread 1-1) at com.liferay.portlet.PortletInstanceFactoryImpl.create(PortletInstanceFactoryImpl.java:145)

09:50:47,695 INFO [stdout] (MSC service thread 1-1) at com.liferay.portlet.PortletInstanceFactoryUtil.create(PortletInstanceFactoryUtil.java:41)

09:50:47,696 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.deploy.hot.PortletHotDeployListener.initPortletApp(PortletHotDeployListener.java:620)

09:50:47,697 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy(PortletHotDeployListener.java:376)

09:50:47,698 INFO [stdout] (MSC service thread 1-1) at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:124)

09:50:47,699 INFO [stdout] (MSC service thread 1-1) ... 18 more

09:50:47,699 INFO [stdout] (MSC service thread 1-1) Caused by: java.lang.NullPointerException

09:50:47,700 INFO [stdout] (MSC service thread 1-1) at com.liferay.portlet.InvokerPortletImpl.<init>(InvokerPortletImpl.java:169)

09:50:47,701 INFO [stdout] (MSC service thread 1-1) at com.liferay.portlet.InvokerPortletFactoryImpl.create(InvokerPortletFactoryImpl.java:56)

09:50:47,702 INFO [stdout] (MSC service thread 1-1) ... 24 more

09:50:47,750 INFO [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) Initializing Mojarra 2.1.21 ( 20130409-1421 https://svn.java.net/svn/mojarra~svn/tags/2.1.21@11854) for context '/Jsf2-portlet'
09:50:48,785 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) Critical error during deployment: : com.sun.faces.config.ConfigurationException:
Source Document: jndi:/default-host/Jsf2-portlet/WEB-INF/faces-config.xml
Cause: Unable to find class 'com.liferay.faces.util.lifecycle.DebugPhaseListener'
at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:273) [jsf-impl-2.1.21.jar:2.1.21]
at com.sun.faces.config.processor.LifecycleConfigProcessor.addPhaseListeners(LifecycleConfigProcessor.java:132) [jsf-impl-2.1.21.jar:2.1.21]
at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:111) [jsf-impl-2.1.21.jar:2.1.21]
at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114) [jsf-impl-2.1.21.jar:2.1.21]
at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222) [jsf-impl-2.1.21.jar:2.1.21]
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:361) [jsf-impl-2.1.21.jar:2.1.21]
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:216) [jsf-impl-2.1.21.jar:2.1.21]
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_25]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_25]
Caused by: java.lang.ClassNotFoundException: com.liferay.faces.util.lifecycle.DebugPhaseListener from [Module "deployment.Jsf2-portlet.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]
at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_25]
at java.lang.Class.forName(Unknown Source) [rt.jar:1.7.0_25]
at com.sun.faces.util.Util.loadClass(Util.java:273) [jsf-impl-2.1.21.jar:2.1.21]
at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:311) [jsf-impl-2.1.21.jar:2.1.21]
at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:240) [jsf-impl-2.1.21.jar:2.1.21]
... 14 more

09:50:48,804 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/Jsf2-portlet]] (MSC service thread 1-1) Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException:
Source Document: jndi:/default-host/Jsf2-portlet/WEB-INF/faces-config.xml
Cause: Unable to find class 'com.liferay.faces.util.lifecycle.DebugPhaseListener'
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:276) [jsf-impl-2.1.21.jar:2.1.21]
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_25]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_25]
Caused by: com.sun.faces.config.ConfigurationException:
Source Document: jndi:/default-host/Jsf2-portlet/WEB-INF/faces-config.xml
Cause: Unable to find class 'com.liferay.faces.util.lifecycle.DebugPhaseListener'
at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:273) [jsf-impl-2.1.21.jar:2.1.21]
at com.sun.faces.config.processor.LifecycleConfigProcessor.addPhaseListeners(LifecycleConfigProcessor.java:132) [jsf-impl-2.1.21.jar:2.1.21]
at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:111) [jsf-impl-2.1.21.jar:2.1.21]
at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114) [jsf-impl-2.1.21.jar:2.1.21]
at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222) [jsf-impl-2.1.21.jar:2.1.21]
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:361) [jsf-impl-2.1.21.jar:2.1.21]
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:216) [jsf-impl-2.1.21.jar:2.1.21]
... 8 more
Caused by: java.lang.ClassNotFoundException: com.liferay.faces.util.lifecycle.DebugPhaseListener from [Module "deployment.Jsf2-portlet.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]
at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_25]
at java.lang.Class.forName(Unknown Source) [rt.jar:1.7.0_25]
at com.sun.faces.util.Util.loadClass(Util.java:273) [jsf-impl-2.1.21.jar:2.1.21]
at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:311) [jsf-impl-2.1.21.jar:2.1.21]
at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:240) [jsf-impl-2.1.21.jar:2.1.21]
... 14 more

09:50:48,824 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-1) Error listenerStart
09:50:48,852 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-1) Context [/Jsf2-portlet] startup failed due to previous errors
09:50:48,858 SEVERE [javax.faces] (MSC service thread 1-1) Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory. Attempting to find backup.
09:50:48,859 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) Unexpected exception when attempting to tear down the Mojarra runtime: java.lang.IllegalStateException: Could not find backup for factory javax.faces.application.ApplicationFactory.
at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1010) [jsf-api-2.1.21.jar:2.1]
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:342) [jsf-api-2.1.21.jar:2.1]
at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:141) [jsf-impl-2.1.21.jar:2.1.21]
at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:314) [jsf-impl-2.1.21.jar:2.1.21]
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3489) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3999) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3917) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_25]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_25]

09:50:48,931 INFO [stdout] (MSC service thread 1-1) 09:50:48,930 INFO [MSC service thread 1-1][PluginPackageUtil:1016] Reading plugin package for Jsf2-portlet

09:50:48,973 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.web.deployment.default-host./Jsf2-portlet: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./Jsf2-portlet: JBAS018040: Failed to start context
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:95)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_25]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_25]

09:50:49,237 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "Jsf2-portlet.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./Jsf2-portlet" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./Jsf2-portlet: JBAS018040: Failed to start context"}}
JBAS014777: Services which failed to start: service jboss.web.deployment.default-host./Jsf2-portlet: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./Jsf2-portlet: JBAS018040: Failed to start context
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
anyways thank you ur reply...
thumbnail
Vernon Singleton, modifié il y a 10 années.

RE: jsf project not getting deployed..

Expert Publications: 315 Date d'inscription: 14/01/13 Publications récentes
Hi Nalin,

I'm not sure what to say, except that I just now:

1) installed the liferay-portal-jboss-6.2.0-ce-ga1-20131101192857659 bundle
$ unzip ~/Downloads/liferay-portal-jboss-6.2.0-ce-ga1-20131101192857659.zip

2) followed the instructions to upgrade mojarra on jboss to version 2.1.21

3) started the Liferay Portal up on this new jboss instance
$ ./jboss-7.1.1/bin/standalone.sh

4) watched it startup without any errors

5) went into my clone of the liferay faces 3.2.x repository, and did a clean install for jboss
$ cd ~/Projects/liferay.com/liferay-faces-3.2.x
$ mvn -P jboss clean install

7) deployed the war
$ cd demos/bridge/jsf2-portlet
$ cp -p target/jsf2-portlet-3.2.4-ga5-SNAPSHOT.war $LIFERAY_HOME/deploy/.

8) watched it deploy without any errors or warnings

9) got the following log message:
15:14:07,953 INFO [stdout] (MSC service thread 1-5) 15:14:07,953 INFO [MSC service thread 1-5][PortletHotDeployListener:490] 1 portlet for jsf2-portlet is available for use

10) browsed to localhost:8080, signed in

11) added the jsf2-portlet to a page

12) tested the portlet
Results :
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0

13) Noted that the jsf2-portlet is working well

Maybe you could try those same steps and let me know where something different happens.

Hope that helps.
Vernon