-
Notifications
You must be signed in to change notification settings - Fork 728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing OSGi Portlets on Liferay CE 7.3.6 GA7 or later #12504
Comments
Thanks for the effort of extensive testing. This is a good starting point. Did you observe any notable errors or warnings logged in server log? |
Sorry, forgot to mention this in the original post. I think the 404 error was the only one I got. Such as: In addition, with Vaadin 8.14.3 using jsoup-1.14.3 there was a bit strange behaviour when deploying jar-files: I expected the order of deployment to be:
After deploying jsoup:
However after deploying vaadin-server:
So I removed jsoup: And re-deployed jsoup:
This did not happen with Vaadin-releases using jsoup-1.11.2. |
We tried to investigate commit history of Liferay (which is by the way hard) to find anything that would fit, but so-far we did not find anything yet. |
FYI, attached bundle information for vaadin-shared and vaadin-server. LR7.3.5 (works), LR7.3.6 (does not work). For LR7.3.6 vaadin-server (does not work) |
I was now able to replicate the issue with Liferay Docker (liferay/portal:7.3.6-ga7) and vaadin-archetype-liferay-portlet. I got the similar error as you: Failed to load the bootstrap javascript: /o/vaadin-8.14.3/VAADIN/vaadinBootstrap.js?v=8.14.3 This took a while since our documentation was already outdated regarding blade client etc.
|
Tested this out now with liferay/portal:7.3.6-ga7 and locally built Vaadin 8.16.0. I had some troubles with jsoup-1.14.3.jar bundle: it was importing 1.10.2 version of itself. Got that resolved by modifying its MANIFEST_MF locally: removed all jsoup related Import-Packages. In addition I had to install following additional bundles: shi-core-6.1.4.jar, jna-5.10.0.jar, and jna-platform-5.10.0.jar. Before vaadin-server bundle was able to start. Unfortunately Vaadin portlet still fails when added to a page: same Failed to load the bootstrap alert. I'll try next few newer Liferay images |
I was able to get this working with Portal 7.3.7 CE GA8. It still shows the alert right after adding the portlet to page, but portlet works after publish. |
I did some testing with OSGi Portlets on Liferay 7.
For some reason Liferay CE 7.3.6 GA7 or later failed with error
Failed to load the bootstrap javascript: /o/vaadin-x.y.z/VAADIN/vaadinBootstrap.js?v=x.y.z
where x.y.z was the Vaadin version in use.
The test portlet was the basic Hello World portlet using Maven vaadin-archetype-liferay-portlet archetype.
Browser cache/history was cleared between each test.
Passed tests:
Liferay CE 7.3.3 GA4, Vaadin 8.10-8.14
Liferay CE 7.3.4 GA5, Vaadin 8.10-8.14
Liferay CE 7.3.5 GA6, Vaadin 8.10-8.14
Failed tests:
Liferay CE 7.3.6 GA7, Vaadin 8.10-8.14
Liferay CE 7.3.7 GA8, Vaadin 8.10-8.14
Liferay CE 7.4.0 GA1, Vaadin 8.13, 8.14
Liferay CE 7.4.1 GA2, Vaadin 8.13, 8.14
Liferay CE 7.4.2 GA3, Vaadin 8.14
Liferay CE 7.4.3.4 GA4, Vaadin 8.14
Setup:
Debian GNU/Linux 10 (buster)
OpenJDK 11
Firefox 78.15.0esr
Standard Liferay Docker images
The text was updated successfully, but these errors were encountered: