Fórumok

The JSF 2.0 portlet always waiting on loading!

arron wu, módosítva 13 év-val korábban

The JSF 2.0 portlet always waiting on loading!

New Member Bejegyzések: 16 Csatlakozás dátuma: 2010.07.06. Legújabb bejegyzések
The JSF2 portlet always waiting on loading!
I deploy the example to liferay 6.0.3,but the page no response.always on loading!

and the console output:

16:09:05,734 DEBUG [BridgeImpl:196] doFacesRequest(renderRequest, renderResponse) this=[BridgeImpl.java@1a8b91c]
16:09:05,734 DEBUG [BridgeImpl:196] doFacesRequest(renderRequest, renderResponse) this=[BridgeImpl.java@1a8b91c]


I get the example from svn source, the detail error:

2010-7-23 16:55:27 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: A web application created a ThreadLocal with key of type [null] (value [com.sun.faces.util.Util$1@262bf5]) and a value of type [java.util.HashMap] (value [{com.sun.faces.patternCache={ = }}]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
16:55:28,765 INFO  [PortletHotDeployListener:222] Registering portlets for jsf2-portlet
16:55:28,890 ERROR [PortletBagFactory:290] java.lang.NullPointerException
java.lang.NullPointerException
	at org.portletfaces.bridge.GenericFacesPortlet.init(GenericFacesPortlet.java:126)
	at com.liferay.portlet.InvokerPortletImpl.init(InvokerPortletImpl.java:244)
	at com.liferay.portlet.PortletInstanceFactoryImpl.init(PortletInstanceFactoryImpl.java:216)
	at com.liferay.portlet.PortletInstanceFactoryImpl.create(PortletInstanceFactoryImpl.java:139)
	at com.liferay.portlet.PortletInstanceFactoryUtil.create(PortletInstanceFactoryUtil.java:40)
	at com.liferay.portlet.PortletBagFactory.create(PortletBagFactory.java:287)
	at com.liferay.portal.deploy.hot.PortletHotDeployListener.initPortlet(PortletHotDeployListener.java:458)
	at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy(PortletHotDeployListener.java:255)
	at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:103)
	at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._doFireDeployEvent(HotDeployUtil.java:106)
	at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._fireDeployEvent(HotDeployUtil.java:151)
	at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:33)
	at com.liferay.portal.kernel.servlet.PortletContextListener.portalInit(PortletContextListener.java:102)
	at com.liferay.portal.kernel.util.PortalInitableUtil.init(PortalInitableUtil.java:37)
	at com.liferay.portal.kernel.servlet.PortletContextListener.contextInitialized(PortletContextListener.java:98)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
	at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1244)
	at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1342)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
	at java.lang.Thread.run(Thread.java:595)
16:55:28,937 INFO  [PortletHotDeployListener:371] 1 portlet for jsf2-portlet is available for use


How can i find the problem?
thumbnail
Neil Griffin, módosítva 13 év-val korábban

RE: The JSF 2.0 portlet always waiting on loading!

Liferay Legend Bejegyzések: 2655 Csatlakozás dátuma: 2005.07.27. Legújabb bejegyzések
My best guess would be the infinite loop bug found here:
http://www.liferay.com/community/forums/-/message_boards/message/13289195

The bug never manifested itself during testing with Chrome. Are you using FireFox, Safari, IE, or Opera? Please try Chrome and see if that works. Otherwise, we'll have a patch in SVN soon and release another Alpha in the coming weeks.
arron wu, módosítva 13 év-val korábban

RE: The JSF 2.0 portlet always waiting on loading!

New Member Bejegyzések: 16 Csatlakozás dátuma: 2010.07.06. Legújabb bejegyzések
I;m using firefox 3.6.7,and plugin firebug!

I add a param:

<init-param>
			<name>javax.portlet.faces.BridgeImplClass</name>
			<value>BridgeImpl.java</value>
		</init-param>


in the portlet.xml. but it also waiting on loading! maybe the bug that you guess!
thks!

change to chrome, also can't work well!
thumbnail
Neil Griffin, módosítva 13 év-val korábban

RE: The JSF 2.0 portlet always waiting on loading!

Liferay Legend Bejegyzések: 2655 Csatlakozás dátuma: 2005.07.27. Legújabb bejegyzések
Liferay 6.0.3 was released a couple of days after version 2.0.0-ALPHA3 of the bridge. We've seen some incompatibilities with Liferay 6.0.3, so please use 6.0.2 for now.

The infinite recursion bug in RequestHeaderValuesMap.java has been fixed in the source repository, revision 70.

We'll release another Alpha in the coming weeks with that fix, as well as compatibility with Liferay 6.0.3.