Deploy jsf2-hello-world-portlet on liferay ce 6.2 installed on jboss as 7.1.1
pcg4m3s Jan 15, 2014 4:22 AMHi,
I downloader the project "jsf2-hello-world-portlet" in eclipse, I exported war and I loaded it on liferay ce 6.2 (installed on jboss as 7.1.1).
Shoud it work on liferay or it work onli to gatein?
When I load it, I have this log message:
09:34:53,590 INFO [stdout] (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) 09:34:53,590 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:204] Processing jsf2-hello-world-portlet.war 09:34:53,592 INFO [stdout] (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) 09:34:53,592 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListener:79] Copying portlets for /home/jbserver/deploy/jsf2-hello-world-portlet.war 09:34:53,639 INFO [stdout] (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) 09:34:53,638 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:1916] /home/jbserver/deploy/jsf2-hello-world-portlet.war does not have a WEB-INF/liferay-plugin-package.xml or WEB-INF/liferay-plugin-package.properties 09:34:53,640 INFO [stdout] (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) 09:34:53,640 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:859] Deploying jsf2-hello-world-portlet.war 09:34:53,720 INFO [stdout] (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) Expanding: /home/jbserver/deploy/jsf2-hello-world-portlet.war into /tmp/20140115093453647 09:34:53,840 INFO [stdout] (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) Copying 1 file to /tmp/20140115093453647/WEB-INF/classes 09:34:53,865 INFO [stdout] (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) Copying 1 file to /tmp/20140115093453647/WEB-INF/classes 09:34:53,873 INFO [stdout] (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) Copying 1 file to /tmp/20140115093453647/WEB-INF 09:34:53,876 INFO [stdout] (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) Copying 1 file to /tmp/20140115093453647/WEB-INF/jsp 09:34:53,970 INFO [stdout] (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) 09:34:53,970 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:2380] Modifying Servlet 2.5 /tmp/20140115093453647/WEB-INF/web.xml 09:34:54,114 INFO [stdout] (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) Copying 28 files to /home/jbserver/jboss-as-7.1.1.Final/standalone/deployments/jsf2-hello-world-portlet.war 09:34:54,161 INFO [stdout] (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) Copying 1 file to /home/jbserver/jboss-as-7.1.1.Final/standalone/deployments/jsf2-hello-world-portlet.war 09:34:54,177 INFO [stdout] (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) Deleting directory /tmp/20140115093453647 09:34:54,190 INFO [stdout] (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) 09:34:54,190 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListener:91] Portlets for /home/jbserver/deploy/jsf2-hello-world-portlet.war copied successfully. Deployment will start in a few seconds. 09:34:56,722 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found jsf2-hello-world-portlet.war in deployment directory. To trigger deployment create a file called jsf2-hello-world-portlet.war.dodeploy 09:34:56,727 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "jsf2-hello-world-portlet.war" 09:34:57,611 INFO [stdout] (MSC service thread 1-2) 09:34:57,607 INFO [MSC service thread 1-2][HotDeployEvent:130] Plugin jsf2-hello-world-portlet requires marketplace-portlet 09:34:57,617 INFO [stdout] (MSC service thread 1-2) 09:34:57,612 INFO [MSC service thread 1-2][HotDeployImpl:195] Deploying jsf2-hello-world-portlet from queue 09:34:57,618 INFO [stdout] (MSC service thread 1-2) 09:34:57,617 INFO [MSC service thread 1-2][PluginPackageUtil:1016] Reading plugin package for jsf2-hello-world-portlet 09:34:57,619 INFO [stdout] (MSC service thread 1-2) 09:34:57,618 WARN [MSC service thread 1-2][PluginPackageUtil:1114] Plugin package on context jsf2-hello-world-portlet cannot be tracked because this WAR does not contain a liferay-plugin-package.xml file 09:34:57,733 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/jsf2-hello-world-portlet]] (MSC service thread 1-2) Initializing Spring root WebApplicationContext 09:34:57,733 INFO [org.springframework.web.context.ContextLoader] (MSC service thread 1-2) Root WebApplicationContext: initialization started 09:34:57,745 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-2) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@18a9af3: defining beans [com.liferay.portal.security.lang.DoPrivilegedFactory]; root of factory hierarchy 09:34:57,746 INFO [org.springframework.web.context.ContextLoader] (MSC service thread 1-2) Root WebApplicationContext: initialization completed in 13 ms 09:34:57,752 INFO [stdout] (MSC service thread 1-2) 09:34:57,752 INFO [MSC service thread 1-2][PortletHotDeployListener:343] Registering portlets for jsf2-hello-world-portlet 09:34:57,821 INFO [stdout] (MSC service thread 1-2) 09:34:57,821 WARN [MSC service thread 1-2][PortletLocalServiceImpl:802] Portlet with the name jsf2HelloWorldPortlet_WAR_jsf2helloworldportlet is described in portlet.xml but does not have a matching entry in liferay-portlet.xml 09:34:57,823 INFO [stdout] (MSC service thread 1-2) 09:34:57,822 ERROR [MSC service thread 1-2][PortletBagFactory:411] java.lang.ClassNotFoundException: javax.portlet.faces.GenericFacesPortlet from [Module "deployment.jsf2-hello-world-portlet.war:main" from Service Module Loader] 09:34:57,823 INFO [stdout] (MSC service thread 1-2) java.lang.ClassNotFoundException: javax.portlet.faces.GenericFacesPortlet from [Module "deployment.jsf2-hello-world-portlet.war:main" from Service Module Loader] 09:34:57,825 INFO [stdout] (MSC service thread 1-2) at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) 09:34:57,825 INFO [stdout] (MSC service thread 1-2) at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) 09:34:57,825 INFO [stdout] (MSC service thread 1-2) at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) 09:34:57,827 INFO [stdout] (MSC service thread 1-2) at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) 09:34:57,827 INFO [stdout] (MSC service thread 1-2) at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) 09:34:57,827 INFO [stdout] (MSC service thread 1-2) at com.liferay.portlet.PortletBagFactory.getPortletInstance(PortletBagFactory.java:408) 09:34:57,829 INFO [stdout] (MSC service thread 1-2) at com.liferay.portlet.PortletBagFactory.create(PortletBagFactory.java:121) 09:34:57,829 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy(PortletHotDeployListener.java:369) 09:34:57,830 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:124) 09:34:57,830 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:205) 09:34:57,830 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:96) 09:34:57,835 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:27) 09:34:57,835 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:164) 09:34:57,836 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:154) 09:34:57,836 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44) 09:34:57,836 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:64) 09:34:57,836 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:56) 09:34:57,837 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:54) 09:34:57,837 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:116) 09:34:57,839 INFO [stdout] (MSC service thread 1-2) at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) 09:34:57,841 INFO [stdout] (MSC service thread 1-2) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) 09:34:57,842 INFO [stdout] (MSC service thread 1-2) at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) 09:34:57,842 INFO [stdout] (MSC service thread 1-2) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) 09:34:57,842 INFO [stdout] (MSC service thread 1-2) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) 09:34:57,842 INFO [stdout] (MSC service thread 1-2) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 09:34:57,844 INFO [stdout] (MSC service thread 1-2) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 09:34:57,844 INFO [stdout] (MSC service thread 1-2) at java.lang.Thread.run(Thread.java:744) 09:34:57,851 INFO [stdout] (MSC service thread 1-2) 09:34:57,850 ERROR [MSC service thread 1-2][PortletBagFactory:340] javax.portlet.PortletException: java.lang.NullPointerException 09:34:57,851 INFO [stdout] (MSC service thread 1-2) javax.portlet.PortletException: java.lang.NullPointerException 09:34:57,851 INFO [stdout] (MSC service thread 1-2) at com.liferay.portlet.InvokerPortletFactoryImpl.create(InvokerPortletFactoryImpl.java:63) 09:34:57,854 INFO [stdout] (MSC service thread 1-2) at com.liferay.portlet.PortletInstanceFactoryImpl.init(PortletInstanceFactoryImpl.java:225) 09:34:57,854 INFO [stdout] (MSC service thread 1-2) at com.liferay.portlet.PortletInstanceFactoryImpl.create(PortletInstanceFactoryImpl.java:145) 09:34:57,854 INFO [stdout] (MSC service thread 1-2) at com.liferay.portlet.PortletInstanceFactoryUtil.create(PortletInstanceFactoryUtil.java:41) 09:34:57,854 INFO [stdout] (MSC service thread 1-2) at com.liferay.portlet.PortletBagFactory.create(PortletBagFactory.java:337) 09:34:57,856 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy(PortletHotDeployListener.java:369) 09:34:57,856 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:124) 09:34:57,856 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:205) 09:34:57,867 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:96) 09:34:57,868 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:27) 09:34:57,868 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:164) 09:34:57,868 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:154) 09:34:57,869 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44) 09:34:57,869 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:64) 09:34:57,869 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:56) 09:34:57,879 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:54) 09:34:57,880 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:116) 09:34:57,880 INFO [stdout] (MSC service thread 1-2) at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) 09:34:57,880 INFO [stdout] (MSC service thread 1-2) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) 09:34:57,880 INFO [stdout] (MSC service thread 1-2) at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) 09:34:57,881 INFO [stdout] (MSC service thread 1-2) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) 09:34:57,881 INFO [stdout] (MSC service thread 1-2) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) 09:34:57,881 INFO [stdout] (MSC service thread 1-2) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 09:34:57,881 INFO [stdout] (MSC service thread 1-2) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 09:34:57,886 INFO [stdout] (MSC service thread 1-2) at java.lang.Thread.run(Thread.java:744) 09:34:57,886 INFO [stdout] (MSC service thread 1-2) Caused by: java.lang.NullPointerException 09:34:57,886 INFO [stdout] (MSC service thread 1-2) at com.liferay.portlet.InvokerPortletImpl.<init>(InvokerPortletImpl.java:169) 09:34:57,886 INFO [stdout] (MSC service thread 1-2) at com.liferay.portlet.InvokerPortletFactoryImpl.create(InvokerPortletFactoryImpl.java:56) 09:34:57,898 INFO [stdout] (MSC service thread 1-2) ... 24 more 09:34:57,908 INFO [stdout] (MSC service thread 1-2) 09:34:57,907 ERROR [MSC service thread 1-2][HotDeployImpl:208] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for jsf2-hello-world-portletjsf2-hello-world-portlet 09:34:57,909 INFO [stdout] (MSC service thread 1-2) com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for jsf2-hello-world-portletjsf2-hello-world-portlet 09:34:57,909 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:46) 09:34:57,913 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:127) 09:34:57,914 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:205) 09:34:57,914 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:96) 09:34:57,914 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:27) 09:34:57,915 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:164) 09:34:57,915 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:154) 09:34:57,915 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44) 09:34:57,923 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:64) 09:34:57,923 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:56) 09:34:57,924 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:54) 09:34:57,924 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:116) 09:34:57,924 INFO [stdout] (MSC service thread 1-2) at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) 09:34:57,926 INFO [stdout] (MSC service thread 1-2) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) 09:34:57,929 INFO [stdout] (MSC service thread 1-2) at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) 09:34:57,930 INFO [stdout] (MSC service thread 1-2) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) 09:34:57,930 INFO [stdout] (MSC service thread 1-2) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) 09:34:57,932 INFO [stdout] (MSC service thread 1-2) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 09:34:57,932 INFO [stdout] (MSC service thread 1-2) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 09:34:57,933 INFO [stdout] (MSC service thread 1-2) at java.lang.Thread.run(Thread.java:744) 09:34:57,933 INFO [stdout] (MSC service thread 1-2) Caused by: javax.portlet.PortletException: java.lang.NullPointerException 09:34:57,933 INFO [stdout] (MSC service thread 1-2) at com.liferay.portlet.InvokerPortletFactoryImpl.create(InvokerPortletFactoryImpl.java:63) 09:34:57,933 INFO [stdout] (MSC service thread 1-2) at com.liferay.portlet.PortletInstanceFactoryImpl.init(PortletInstanceFactoryImpl.java:225) 09:34:57,936 INFO [stdout] (MSC service thread 1-2) at com.liferay.portlet.PortletInstanceFactoryImpl.create(PortletInstanceFactoryImpl.java:145) 09:34:57,938 INFO [stdout] (MSC service thread 1-2) at com.liferay.portlet.PortletInstanceFactoryUtil.create(PortletInstanceFactoryUtil.java:41) 09:34:57,938 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.deploy.hot.PortletHotDeployListener.initPortletApp(PortletHotDeployListener.java:620) 09:34:57,938 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy(PortletHotDeployListener.java:376) 09:34:57,942 INFO [stdout] (MSC service thread 1-2) at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:124) 09:34:57,943 INFO [stdout] (MSC service thread 1-2) ... 18 more 09:34:57,943 INFO [stdout] (MSC service thread 1-2) Caused by: java.lang.NullPointerException 09:34:57,943 INFO [stdout] (MSC service thread 1-2) at com.liferay.portlet.InvokerPortletImpl.<init>(InvokerPortletImpl.java:169) 09:34:57,943 INFO [stdout] (MSC service thread 1-2) at com.liferay.portlet.InvokerPortletFactoryImpl.create(InvokerPortletFactoryImpl.java:56) 09:34:57,943 INFO [stdout] (MSC service thread 1-2) ... 24 more 09:34:57,962 INFO [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-2) Initializing Mojarra 2.1.7-jbossorg-1 (20120227-1401) for context '/jsf2-hello-world-portlet' 09:34:58,222 INFO [org.jboss.web] (MSC service thread 1-2) JBAS018210: Registering web context: /jsf2-hello-world-portlet 09:34:58,470 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "jsf2-hello-world-portlet.war"