Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
emmy ma
standalone myFaces portlet deployment error
May 24, 2009 12:50 AM
Answer

emmy ma

Rank: New Member

Posts: 6

Join Date: May 13, 2009

Recent Posts

Hello,

i'm very new in liferay and portlet development. I try to write a JSF portlet follow liferay JSF portlet tutorial and try to deploy a simple JSF portlet which use myfaces and my deployment environment is tomcat6 bundle with liferay 5.2.2 I got the error message as below:

 107:16:09,953 INFO  [MyFacesGenericPortlet:205] PortletContext 'C:\liferay-portal
 2-tomcat-6.0-5.2.2\liferay-portal-5.2.2\tomcat-6.0.18\temp\4-addWordPortal\' init
 3ialized.
 407:16:09,968 ERROR [HotDeployUtil:111] com.liferay.portal.kernel.deploy.hot.HotD
 5eployException: Error registering portlets for addWordPortal
 6com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portl
 7ets for addWordPortal
 8        at com.liferay.portal.deploy.hot.BaseHotDeployListener.throwHotDeployExc
 9eption(BaseHotDeployListener.java:47)
10        at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(P
11ortletHotDeployListener.java:124)
12        at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._doFireDeployEvent
13(HotDeployUtil.java:108)
14        at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._fireDeployEvent(H
15otDeployUtil.java:153)
16        at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(Ho
17tDeployUtil.java:43)
18        at com.liferay.portal.kernel.servlet.PortletContextListener.portalInit(P
19ortletContextListener.java:113)
20        at com.liferay.portal.kernel.util.PortalInitableUtil.init(PortalInitable
21Util.java:48)
22        at com.liferay.portal.kernel.servlet.PortletContextListener.contextIniti
23alized(PortletContextListener.java:109)
24        at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
25t.java:3843)
26        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
27342)
28        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
29.java:791)
30        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
311)
32        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
33
34        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
35a:926)
36        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
37ava:889)
38        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492
39)
40        at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1217)
41        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
42:293)
43        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
44eSupport.java:117)
45        at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBas
46e.java:1337)
47        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.p
48rocessChildren(ContainerBase.java:1601)
49        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.p
50rocessChildren(ContainerBase.java:1610)
51        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.r
52un(ContainerBase.java:1590)
53        at java.lang.Thread.run(Thread.java:595)
54Caused by: java.lang.VerifyError: Cannot inherit from final class
55        at java.lang.ClassLoader.defineClass1(Native Method)
56        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
57        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
584)
59        at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp
60ClassLoader.java:1847)
61        at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa
62der.java:890)
63        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
64der.java:1354)
65        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
66der.java:1233)
67        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
68        at java.lang.Class.getDeclaredConstructors0(Native Method)
69        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
70        at java.lang.Class.getConstructor0(Class.java:2671)
71        at java.lang.Class.getConstructor(Class.java:1629)
72        at javax.faces.FactoryFinder.newFactoryInstance(FactoryFinder.java:176)
73        at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:136)
74        at org.apache.myfaces.portlet.MyFacesGenericPortlet.init(MyFacesGenericP
75ortlet.java:114)
76        at javax.portlet.GenericPortlet.init(GenericPortlet.java:107)
77        at com.liferay.portlet.InvokerPortletImpl.init(InvokerPortletImpl.java:2
7850)
79        at com.liferay.portlet.PortletInstanceFactoryImpl.init(PortletInstanceFa
80ctoryImpl.java:245)
81        at com.liferay.portlet.PortletInstanceFactoryImpl.create(PortletInstance
82FactoryImpl.java:135)
83        at com.liferay.portlet.PortletInstanceFactoryUtil.create(PortletInstance
84FactoryUtil.java:47)
85        at com.liferay.portal.deploy.hot.PortletHotDeployListener.initPortlet(Po
86rtletHotDeployListener.java:593)
87        at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy
88(PortletHotDeployListener.java:242)
89        at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(P
90ortletHotDeployListener.java:121)
91        ... 22 more


all jar i used as follow:
portals-bridges-jsf-1.0.4.jar
portlet-bridge-api-1.0.0-beta.jar
portlet-bridge-impl-1.0.1-beta.jar
commons-beanutils-1.7.0.jar
commons-codec-1.3.jar
commons-collections-3.2.jar
commons-digester-1.8.jar
commons-discovery-0.4.jar
commons-logging-1.1.1.jar
myfaces-api-1.2.6.jar
myfaces-impl.1.2.6.jar
tomahawk-1.1.8.jar

did anyone have this problem before??