Forums de discussion

Liferay 7.x not working with Vaadin 7.6.6

Jarryd Green, modifié il y a 7 années.

Liferay 7.x not working with Vaadin 7.6.6

New Member Envoyer: 1 Date d'inscription: 07/06/16 Publications récentes
Hello.

I've created an environment for Liferay 7.x within eclipse with IDE 3.0.0.

The issue that I am having is the Vaadin portlets which I create, also from eclipse, do not work on the Liferay 7.x site.
The portlet builds correctly and I can add it to a page, however when I refresh the page it gives me a browser error stating that is unable to load the vaadinBootstrap.js

When I create the exact same project but set it for Liferay 6.2.5, everything works perfectly and the bootstrap works fine.
So Vaadin 7.6.6 works with Liferay 6.2.5.

I create the portlet via the New-> Liferay Plugin Project and select Vaadin framework on the second page of the wizard.

What information do I need to provide for assistance with this issue?
I would like to use Liferay 7 as it looks better.

I am a little confused as well with the Liferay updates as 7.0 seems to be last updated in 2014 and 6.2.5 updated this year.
Is Liferay 7 not recommended?

Kind regards
Jarryd
thumbnail
Andy Wu, modifié il y a 7 années.

RE: Liferay 7.x not working with Vaadin 7.6.6

Regular Member Publications: 195 Date d'inscription: 05/05/15 Publications récentes
hey Jarryd , I don't know much about vaadin and I just have the following link for your reference:
https://web.liferay.com/web/sampsa.sohlman/blog/-/blogs/double-seven-vaadin-7-with-liferay-2
https://github.com/sammso/liferay-vaadin7-osgi
thumbnail
Dennis Mandel, modifié il y a 7 années.

RE: Liferay 7.x not working with Vaadin 7.6.6

New Member Publications: 2 Date d'inscription: 07/08/15 Publications récentes
I have tried the double 7 Version from this article, but it doesn't work.
I got the same problems ("vaadinBootstrap.js" not found)

There is also a Project, which tries to give liferay a "Vaadin compatibility pack", but it also does not work for me.

I am happy, if someone can post a solution for this problem or even give a hint where the problem can be!

PS: I also opened a stackoverflow question
thumbnail
Sampsa Sohlman, modifié il y a 7 années.

RE: Liferay 7.x not working with Vaadin 7.6.6

Regular Member Publications: 230 Date d'inscription: 27/09/07 Publications récentes
Hi Dennis,

I'm currently ( I mean just now emoticon ) working Liferay Vaadin support.

To make it work latest latest. You need to build:

https://github.com/sammso/vaadin/tree/manifest-fix

Then you need to build :

https://github.com/sammso/com.vaadin.liferay

You can also try older version https://github.com/sammso/com.vaadin.liferay/tree/7.6.7 that is still with old package paths etc.
thumbnail
Sampsa Sohlman, modifié il y a 7 années.

RE: Liferay 7.x not working with Vaadin 7.6.6

Regular Member Publications: 230 Date d'inscription: 27/09/07 Publications récentes
Updating here.

https://github.com/sammso/vaadin/tree/manifest-fix is now at https://github.com/vaadin/vaadin and will be released on next version.
thumbnail
Dennis Mandel, modifié il y a 7 années.

RE: Liferay 7.x not working with Vaadin 7.6.6

New Member Publications: 2 Date d'inscription: 07/08/15 Publications récentes
HiSampsa,

thank you soooo much!
This is the first time i can deploy my application to liferay 7. emoticon
Spyros Spyros, modifié il y a 7 années.

RE: Liferay 7.x not working with Vaadin 7.6.6

New Member Publications: 4 Date d'inscription: 15/05/13 Publications récentes
Hello Sampsa!
Thanks for your work and contribution.
I have downloaded the project ( github.com/sammso/com.vaadin.liferay) from github the project and I try to build it.
It did not build out of the box and as I am using liferay-ce-portal-7.0-ga2 I changed my Liferay version to 7.0.0-GA2.

One of the issues is that the pom.xml tries to find portal-service.7.0.0-M6 and after I changed the liferay version to 7.0.0-GA2 it tried to find portal-service7.0.0-GA2.jar.

None of the above jars is available in maven central. I am not sure if the portal-service should be a dependency . I had the impression that it had been replaced by portal-kernel. See https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/whats-changed-and-what-hasnt

Actually searching in the maven central I can only find one v7.0 portal service, which seems old. This is portal-service.7.0.0-nightly (from 08-Oct-2014) there is no version portal-service.7.0.0-m6.jar or portal-service.7.0.0-ga2.jar.

Is there something I need to change? Is this example still valid?
thumbnail
Juan Gonzalez, modifié il y a 7 années.

RE: Liferay 7.x not working with Vaadin 7.6.6

Liferay Legend Publications: 3089 Date d'inscription: 28/10/08 Publications récentes
portal-service changed to portal-kernel:

http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.liferay.portal%22%20AND%20a%3A%22com.liferay.portal.kernel%22

Don't know if that dependency should be changed in Sampsa Vaading project, or in yours...
Spyros Spyros, modifié il y a 7 années.

RE: Liferay 7.x not working with Vaadin 7.6.6

New Member Publications: 4 Date d'inscription: 15/05/13 Publications récentes
Thank you for your answer. That would be the same project, Sampsa project actually, I just downloaded the project from github and it does not build. As -among others- Sampsa project POM.xml references portal-services7.0.0-M6.jar. I identified a blog post from Sampsa saying that he had used Milestone 6 Vaadin 7. (https://web.liferay.com/web/sampsa.sohlman/blog/-/blogs/double-seven-vaadin-7-with-liferay-2).

I will try to make some changes trying to fix this example, however I wanted to know if I should invest time trying to fix this project. (Is it actually buildable? Could anyone actually built it as is? Is it outdated?) Or should I try something different instead.
Spyros Spyros, modifié il y a 7 années.

RE: Liferay 7.x not working with Vaadin 7.6.6

New Member Publications: 4 Date d'inscription: 15/05/13 Publications récentes
Changing the following dependency:
<dependency>
<groupId>com.liferay.portal</groupId>
<artifactId>portal-service</artifactId>
<version>${liferay.version}</version>
<scope>provided</scope>
</dependency>
to the next, would suffice to build the project.
<dependency>
<groupId>com.liferay.portal</groupId>
<artifactId>com.liferay.portal.kernel</artifactId>
<version>2.7.0</version>
<scope>provided</scope>
</dependency>
thumbnail
Juan Gonzalez, modifié il y a 7 années.

RE: Liferay 7.x not working with Vaadin 7.6.6

Liferay Legend Publications: 3089 Date d'inscription: 28/10/08 Publications récentes
Ok, so that was expected and the easiest fix.

Would be great if you could send a pull request to Sampsa ;-).
Spyros Spyros, modifié il y a 7 années.

RE: Liferay 7.x not working with Vaadin 7.6.6

New Member Publications: 4 Date d'inscription: 15/05/13 Publications récentes
I will try to do so, however the fix only makes the project build OK. It cannot be deployed. I get the following error:

12:12:19,139 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:252] Processing com.liferay.vaadin7.distribution-7.5.4-SNAPSHOT.lpkg
12:12:26,694 ERROR [fileinstall-C:/Program Files Standalone/Liferay/liferay-ce-portal-tomcat-7.0-ga2-20160610113014153/liferay-ce-portal-7.0-ga2/osgi/marketplace][org_apache_felix_fileinstall:97] Failed to install artifact: C:\Program Files Standalone\Liferay\liferay-ce-portal-tomcat-7.0-ga2-20160610113014153\liferay-ce-portal-7.0-ga2\osgi\marketplace\com.liferay.vaadin7.distribution-7.5.4-SNAPSHOT.lpkg
java.lang.NullPointerException
at com.liferay.marketplace.deployer.LPKGArtifactInstaller.install(LPKGArtifactInstaller.java:64)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:936)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:870)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:485)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:313)
12:13:37,308 WARN [http-nio-8080-exec-3][code_jsp:181] {code="404", msg="/favicon.ico", uri=/favicon.ico}
12:13:37,328 WARN [http-nio-8080-exec-2][code_jsp:181] {code="404", msg="/favicon.ico", uri=/favicon.ico}
12:13:37,328 WARN [http-nio-8080-exec-5][code_jsp:181] {code="404", msg="/favicon.ico", uri=/favicon.ico}
Damien Guillermet, modifié il y a 7 années.

RE: Liferay 7.x not working with Vaadin 7.6.6

Junior Member Publications: 44 Date d'inscription: 09/07/15 Publications récentes
Hello everybody,

does someone can provide a full example of a portlet Vaadin 7 based?
I succeed to deploy the distrubution package as following https://github.com/sammso/com.vaadin.liferay steps but i'm not familiar with Vaadin so if someone has a hello world portlet it will help emoticon

Thanks.
Ricardo Legorreta, modifié il y a 7 années.

RE: Liferay 7.x not working with Vaadin 7.6.6

New Member Publications: 9 Date d'inscription: 03/12/15 Publications récentes
Hello everybody,

I tried with https://github.com/sammso/liferay-vaadin7-osgi and didn't work because old liferay version. I tried older version (i.e., com.vaadin.liferay-7.6.7) with no success and finally with the https://github.com/sammso/com.vaadin.liferay and sent me an error "failed to load widgetset /o/vaadin7.7.0/VAADIN.

I got in many maven problems (change of repository and liferay version) plus several Samms different examples and versions. Can somebody help just to test a Vaadin 7 OSGi example, please.

Thanks.
thumbnail
Sampsa Sohlman, modifié il y a 7 années.

RE: Liferay 7.x not working with Vaadin 7.6.6

Regular Member Publications: 230 Date d'inscription: 27/09/07 Publications récentes
Hi Ricardo,

The 7.7.0 branch should be around about good.

There is also other example which should work with it.:

https://github.com/sammso/org.liferay.vaadin7.chat

I'm currently working with this. I let you now of the progress, through this forum.

During the Christmas my plan is also to migrate this to https://github.com/vaadin-osgi
Ricardo Legorreta, modifié il y a 7 années.

RE: Liferay 7.x not working with Vaadin 7.6.6

New Member Publications: 9 Date d'inscription: 03/12/15 Publications récentes
Hi Sampsa,

Thanks for your response. Maybe I´m doing something really stupid but I have tried a lot and I´m stuck:

I downloaded your https://github.com/sammso/org.liferay.vaadin7.chat example (before I installed your https://github.com/sammso/org.liferay.vaadin7.compatibilitypack to my Liferay 7.0-ga3) no problem. When I compile your chat it gives me this maven error:

[ERROR] Failed to execute goal on project org.liferay.vaadin7.chat.portlet: Could not resolve dependencies for project org.liferay.vaadin7.chat:org.liferay.vaadin7.chat.portlet:jar:0.0.1-SNAPSHOT: Failure to find org.liferay.vaadin7.compatibilitypack:org.liferay.vaadin7.compatibilitypack.webresources:jar:7.6.1 in https://repository.liferay.com/nexus/content/groups/liferay-ce/ was cached in the local repository, resolution will not be reattempted until the update interval of liferay-ce has elapsed or updates are forced
Ricardo Legorreta, modifié il y a 7 années.

RE: Liferay 7.x not working with Vaadin 7.6.6

New Member Publications: 9 Date d'inscription: 03/12/15 Publications récentes
Me again,
I comment the maven dependency and it compiled. So installed it in Liferay (i.e., uncompress de lkpg and copy the jars file inside the /deploy Liferay directory). When I tryied to run it, the app did not found the widget set:

Failed to load the widgetset: /o/vaadin7.7.0/VAADIN/widgetsets/com.vaadin.portal.gwt.DefaultWidgetSet/com.vaadin.portal.gwt.DefaultWidgetSet.nocache.js?

And also sent these messages to the console:

ERROR [http-nio-7007-exec-9][VaadinChatUI:37] init
INFO [http-nio-7007-exec-9][VaadinChatUI:57] addingService
ERROR [http-nio-7007-exec-9][TableViewFactory:128] setChatService : true
ERROR [http-nio-7007-exec-9][TableViewFactory:139] setPortal : true
ERROR [http-nio-7007-exec-9][TableViewFactory:117] setUserLocalService : true
INFO [http-nio-7007-exec-9][TableViewFactory:54] createView()

Any idea what I´m doing wrong

Thanks,
Ricardo Legorreta, modifié il y a 7 années.

RE: Liferay 7.x not working with Vaadin 7.6.6

New Member Publications: 9 Date d'inscription: 03/12/15 Publications récentes
Hi Sampsa,

Happy new year!! Any idea what I´m doing wrong. I algo checked the portal-ext.properties file for the
vaadin.resource.path=/o/vaadin7.7.0

and still fail to load the widgetset.

Any idea? Need your help.
Marco Núñez Arrieta, modifié il y a 7 années.

RE: Liferay 7.x not working with Vaadin 7.6.6

New Member Publications: 10 Date d'inscription: 03/09/12 Publications récentes
Hi people!

First of all, Happy New Year!!

I was following this threat and I am getting the following error after reloading a web page with a vaadin portlet on it:

localhost:8080 says:
Failed to load the bootstrap javascript: /html/VAADIN/vaadinBootstrap.js?v=7.7.0

Searching my local installation, I didn't find any VAADIN directory inside the Liferay bundle (but it is inside the vaadin-server-7.7.0.jar file as part of the /osgi/modules directory)... so I don't know if I am missing something...

Any ideas?

Thanks!
Ricardo Legorreta, modifié il y a 7 années.

RE: Liferay 7.x not working with Vaadin 7.6.6

New Member Publications: 9 Date d'inscription: 03/12/15 Publications récentes
You need to install first the Vaadin compatibility pack:

- Install https://github.com/sammso/org.liferay.vaadin7.compatibilitypack to your Liferay 7
Marco Núñez Arrieta, modifié il y a 7 années.

RE: Liferay 7.x not working with Vaadin 7.6.6

New Member Publications: 10 Date d'inscription: 03/09/12 Publications récentes
I have already done that...

I put the contents of the file vaadin-server-7.7.0.jar (which includes the VAADIN folder) on /ROOT/html, and when I loaded the page once more, I get the following error:

Faild to load the widgetset: /html/VAADIN/widgetsets/com.vaadin.DefaultWidgetSet/com.vaadin.DefaultWidgetSet.nocache.js?1483991341522


So.... anyone with a clue?

Thanks!
Ricardo Legorreta, modifié il y a 7 années.

RE: Liferay 7.x not working with Vaadin 7.6.6

New Member Publications: 9 Date d'inscription: 03/12/15 Publications récentes
I´m stuck in the same problem !!. I´ve tried in many ways: different Vaadin version, use MVC portlets, tried several examples : chat, address book etc. No success.

I know it works (see https://www.youtube.com/watch?v=30QbzWMXclw)

Please, need help.
Andrew Brock, modifié il y a 7 années.

RE: Liferay 7.x not working with Vaadin 7.6.6

New Member Publications: 6 Date d'inscription: 27/05/16 Publications récentes
You can find the default widgetsets in vaadin-client-compiled-7.7.6.jar which you can then extract to html/VAADIN/
Themes are similarly in vaadin-themes-7.7.6.jar
Marco Núñez Arrieta, modifié il y a 7 années.

RE: Liferay 7.x not working with Vaadin 7.6.6

New Member Publications: 10 Date d'inscription: 03/09/12 Publications récentes
Thank You!

It works!

Now I can see vaadin components in my portlet.

Now, I want to use the Charts Add-On... I followed the charts instructions but at the end, I am getting the following error at the portlet window (See attach for that)

Any one working with Vaadin Charts?

Thanks!

Pièces jointes:

Andrew Brock, modifié il y a 7 années.

RE: Liferay 7.x not working with Vaadin 7.6.6

New Member Publications: 6 Date d'inscription: 27/05/16 Publications récentes
I don't know anything about Vaadin charts, but if it comes with its own widgetset you'll have to put it in html/VAADIN/widgetsets too
Ricardo Legorreta, modifié il y a 7 années.

RE: Liferay 7.x not working with Vaadin 7.6.6

New Member Publications: 9 Date d'inscription: 03/12/15 Publications récentes
In my case it does not work since the error is searching for the DefaultwidgetSet in:

com.vaadin.portal.gwt.DefaultWidgetSet

And vaadin-client-compiled-7.7.6.jar has the widget set in com.vaadin.DefaultWidgetSet.

Any idea how can I fix this problem?
Ricardo Legorreta, modifié il y a 7 années.

RE: Liferay 7.x not working with Vaadin 7.6.6

New Member Publications: 9 Date d'inscription: 03/12/15 Publications récentes
Finally I resolved the problem!!: it was in the portal-ext-properties file. I need to change the vaadin.widgetset property.

note : A little strange is the vaadin.resource.path does not work for the file portal-ext-properties file. Instead it uses the one defined in the VaadinWebResource class (i.e. the java.portlet.init-param.vaadin.resources.path") that is is declared in the compatibility pack.
oguzhan yilmaz, modifié il y a 6 années.

RE: Liferay 7.x not working with Vaadin 7.6.6

New Member Publications: 5 Date d'inscription: 13/07/16 Publications récentes
vaadin.resource.path does not work in the file portal-ext-properties for me, too. Does anybody know how to change vaadin folder location?