RE: Liferay Faces Bridge Ext not detect lf 7.1

Michele Stoduto, modified 7 Years ago. Junior Member Posts: 42 Join Date: 7/7/10 Recent Posts

I all, 

I've ported my jsf portlet for  lf 6.2 to lf7.0 and to lf 71.

With lf 7.1 i've a Bridge problem. The portlet work fine in lf 7.1 but i've  a error.

 

  950|Active     |    1|courses-portlet (1.0.0)
g! stop 950
g! start 950
14:57:28,401 INFO  [BridgeImpl:198] Initializing Liferay Faces Bridge Implementation 4.1.1 (May 1, 2018 AD) for courses-portlet:3
14:57:28,438 INFO  [BridgeImpl:198] Initializing Liferay Faces Bridge Implementation 4.1.1 (May 1, 2018 AD) for courses-portlet:2
14:57:28,446 INFO  [BridgeImpl:198] Initializing Liferay Faces Bridge Implementation 4.1.1 (May 1, 2018 AD) for courses-portlet:1
14:57:28,546 INFO  [BridgeSessionListener:78] Context initialized for contextPath=[/o/courses-portlet]
14:57:28,848 ERROR [BridgeDependencyVerifier:57] Liferay Faces Bridge Implementation 4.1.1 (May 1, 2018 AD) is designed to be used with Portlet 2.0 but detected 3.0
14:57:28,848 ERROR [BridgeExtDependencyVerifier:40] Liferay Faces Bridge Ext 5.0.2 (May 1, 2018 AD) is designed to be used with Liferay Portal 7.0 but detected 7.1

 

and 

 

2018-08-03 14:57:28.422 ERROR [Framework Event Dispatcher: Equinox Container: e0952ab7-1c97-0018-1264-9ccbd972e2bf][courses-portlet:97] FrameworkEvent ERROR 
java.io.IOException: Exception in opening zip file: D:\servers\liferay710_sito\osgi\state\org.eclipse.osgi\950\2\bundleFile
    at org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:305)
    at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.basicOpen(ZipBundleFile.java:85)
    at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.getZipFile(ZipBundleFile.java:98)
    at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.checkedOpen(ZipBundleFile.java:65)
    at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.getEntry(ZipBundleFile.java:232)
    at org.eclipse.osgi.storage.bundlefile.NestedDirBundleFile.getEntry(NestedDirBundleFile.java:52)
    at org.eclipse.osgi.storage.bundlefile.BundleFile.getResourceURL(BundleFile.java:136)
    at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findResourceImpl(ClasspathManager.java:420)
    at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalResourceImpl(ClasspathManager.java:367)
    at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalResource(ClasspathManager.java:353)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalResource(ModuleClassLoader.java:316)
    at org.eclipse.osgi.internal.loader.BundleLoader.findLocalResource(BundleLoader.java:804)
    at org.eclipse.osgi.internal.loader.BundleLoader.findResource(BundleLoader.java:588)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.getResource(ModuleClassLoader.java:201)
    at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1307)
    at com.liferay.portal.kernel.util.StringUtil.read(StringUtil.java:2278)
    at com.liferay.portal.kernel.util.StringUtil.read(StringUtil.java:2249)
    at com.liferay.portlet.internal.FriendlyURLMapperTrackerImpl.getContent(FriendlyURLMapperTrackerImpl.java:131)
    at com.liferay.portlet.internal.FriendlyURLMapperTrackerImpl$FriendlyURLMapperServiceTrackerCustomizer.doAddingService(FriendlyURLMapperTrackerImpl.java:206)
    at com.liferay.portlet.internal.FriendlyURLMapperTrackerImpl$FriendlyURLMapperServiceTrackerCustomizer.doAddingService(FriendlyURLMapperTrackerImpl.java:170)
    at com.liferay.registry.ServiceTrackerFieldUpdaterCustomizer.addingService(ServiceTrackerFieldUpdaterCustomizer.java:55)
    at com.liferay.registry.internal.ServiceTrackerCustomizerAdapter.addingService(ServiceTrackerCustomizerAdapter.java:35)
    at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
    at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:1)
    at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
    at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)
    at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318)
    at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261)
    at com.liferay.registry.internal.ServiceTrackerWrapper.open(ServiceTrackerWrapper.java:186)
    at com.liferay.portlet.internal.FriendlyURLMapperTrackerImpl.<init>(FriendlyURLMapperTrackerImpl.java:77)
    at com.liferay.portlet.PortletBagFactory._registerFriendlyURLMappers(PortletBagFactory.java:446)
    at com.liferay.portlet.PortletBagFactory.create(PortletBagFactory.java:138)
    at com.liferay.portlet.PortletBagFactory.create(PortletBagFactory.java:108)
    at com.liferay.portal.service.impl.PortletLocalServiceImpl.initWAR(PortletLocalServiceImpl.java:934)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:158)
    at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:145)
    at com.sun.proxy.$Proxy157.initWAR(Unknown Source)
    at com.liferay.portal.kernel.service.PortletLocalServiceUtil.initWAR(PortletLocalServiceUtil.java:406)
    at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy(PortletHotDeployListener.java:194)
    at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:101)
    at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:237)
    at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:104)
    at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:28)
    at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:182)
    at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:172)
    at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)
    at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:76)
    at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:59)
    at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:54)
    at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:134)
    at com.liferay.portal.osgi.web.wab.extender.internal.adapter.ServletContextListenerExceptionAdapter.contextInitialized(ServletContextListenerExceptionAdapter.java:51)
    at sun.reflect.GeneratedMethodAccessor514.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.eclipse.equinox.http.servlet.internal.registration.ListenerRegistration$EventListenerInvocationHandler.invoke(ListenerRegistration.java:145)
    at com.sun.proxy.$Proxy680.contextInitialized(Unknown Source)
......
    at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
    at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
    at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
    at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
    at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
    at org.eclipse.equinox.console.telnet.TelnetConnection.run(TelnetConnection.java:94)
Caused by: java.io.FileNotFoundException: D:\servers\liferay710_sito\osgi\state\org.eclipse.osgi\950\2\bundleFile (Impossibile trovare il file specificato)
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:225)
    at java.util.zip.ZipFile.<init>(ZipFile.java:155)
    at java.util.zip.ZipFile.<init>(ZipFile.java:169)
    at org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:288)
    ... 128 more
2018-08-03 14:57:28.529 INFO  [Thread-171][PortletHotDeployListener:303] 3 portlets for courses-portlet are available for use

 

In attached build.gradle file.

In maven repository the latest bridge ext. version is 5.0.2.

 

Where can i find the most update version of faces bridge?

 

 

 

thumbnail
Neil Griffin, modified 7 Years ago. Liferay Legend Posts: 2655 Join Date: 7/27/05 Recent Posts

Hi Michele,

 

Please accept my apology for the delay in answering your message. There was a problem with my forum email subscription and I didn't receive a message when you first created this forum post.

The Liferay Faces team is working on support for JSF portlets in Liferay Portal 7.1.

Our original goal was to release an implementation of JSR 378 (Portlet 3.0 Bridge for JSF 2.2), but that Spec is not scheduled to be complete in 2018.

While we still plan on releasing an implementation of JSR 378, we realize that developers need something sooner. As a result we will be releasing a Portlet 2.0 + JSF 2.2 version of Liferay Faces Bridge that works in Liferay Portal 7.1. That work is scheduled to be done September.

For now, you can ignore the BridgeDependencyVerifier and BridgeExtDependencyVerifier error messages. I don't know what is causing the IOException but if it is not interfering with development, then perhaps you can ignore it for now.

 

Kind Regards,

Neil

Michele Stoduto, modified 7 Years ago. Junior Member Posts: 42 Join Date: 7/7/10 Recent Posts

Thank you for your reply.

The project is released in the working environment at end of September first day of October.

I can Ignore the error,  I Don't know why, but portlet working fine. 

 

Kind Regards,

Michele Stoduto

 

thumbnail
Kyle Joseph Stiemann, modified 7 Years ago. Liferay Master Posts: 760 Join Date: 1/14/13 Recent Posts

Hi Michele, I am working on fixing the false Bridge*DependencyVerifier error messages. But I cannot reproduce the exception you posted with any of our demos. Can you post the shortest, simplest code and steps to reproduce that error so I can look into it?

- Kyle

thumbnail
Kyle Joseph Stiemann, modified 7 Years ago. Liferay Master Posts: 760 Join Date: 1/14/13 Recent Posts

Hi Michele, I was able to reproduce that exception. I've created LPS-84485 to track the issue. It seems to be benign though, so for now you can ignore it.

- Kyle

Michele Stoduto, modified 7 Years ago. Junior Member Posts: 42 Join Date: 7/7/10 Recent Posts

 

Hi Kyle, sorry and the delay in the reply. Thanks for the solution of the problem.

thumbnail
Neil Griffin, modified 7 Years ago. Liferay Legend Posts: 2655 Join Date: 7/27/05 Recent Posts

Just wanted to mention that we've experienced a delay -- the release testing and release procedure will resume on-or-about September 12.

Thanks for your patience everyone,

Neil

thumbnail
Kyle Joseph Stiemann, modified 7 Years ago. Liferay Master Posts: 760 Join Date: 1/14/13 Recent Posts

Hi Michele,
Thanks for your patience throughout this release process. I've just released Liferay Faces Portal 3.0.3, Bridge Impl 4.1.2, and Bridge Ext 5.0.3. These artifacts have been tested for compatibility with Liferay Portal 7.1. They should be available in Maven Central in the next few hours (I believe Bridge Ext 5.0.3 is already there). Here is the release announcement: https://community.liferay.com/blogs/-/blogs/liferay-faces-released-with-liferay-portal-7-1-support-

- Kyle

Michele Stoduto, modified 7 Years ago. Junior Member Posts: 42 Join Date: 7/7/10 Recent Posts

 

Thank you for your work.

thumbnail
Kyle Joseph Stiemann, modified 7 Years ago. Liferay Master Posts: 760 Join Date: 1/14/13 Recent Posts

Glad we could help! Thanks for using Liferay Faces, Michele!