Hey, short update on that one…

In fact, I quickly went through it and I didn’t get much out of it (in fact, I 
didn’t even get it to run).
But what there is now, is this vaadin example for OSGi which is not that great… 
I think.
Its located here:

https://github.com/vaadin/base-starter-flow-osgi/commit/47aac30104092a15c2744e39e6ed10a79d11ea12

(this is the last version for the vaadin 13.x.x release).

I get it to start its own felix distro and show the site.
Is there an ‘easy’ trick to get all necessary parts out of it for a karaf 
feature?
I didn’t get it straightforward as it brings its own jetty and stuff which 
leads then to some NPEs in my karaf setup.

Any help is appreciated!
Julian

On 2019/09/16 16:33:15, Jean-Baptiste Onofré 
<[email protected]<mailto:[email protected]>> wrote:
> Hi Julian,>
>
> I don't have personal experience but I helped some guys on Vaadin.>
>
> IMHO, Vaadin should provide a clean features XML.>
>
> This is one that I created for Vaadin 7:>
>
> <?xml version="1.0" encoding="UTF-8"?>>
> <features 
> xmlns="http://karaf.apache.org/xmlns/features/v1.0.0";<http://karaf.apache.org/xmlns/features/v1.0.0%22>>
>     
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";<http://www.w3.org/2001/XMLSchema-instance%22>>
>     xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.0.0>
> http://karaf.apache.org/xmlns/features/v1.0.0";<http://karaf.apache.org/xmlns/features/v1.0.0%22>>
>     name="vaadin7-feature">>
>
>     <feature install="true" name="vaadin7-feature" version="1.0.0-SNAPSHOT">>
>         <feature>vaadin7-common</feature>>
>         <bundle>mvn:com.vaadin/vaadin-themes/7.3.0</bundle>>
>         <bundle>mvn:com.vaadin/vaadin-shared/7.3.0</bundle>>
>         <bundle>mvn:com.vaadin/vaadin-server/7.3.0</bundle>>
>         <bundle>mvn:com.vaadin/vaadin-client/7.3.0</bundle>>
>         <bundle>mvn:com.vaadin/vaadin-client-compiled/7.3.0</bundle>>
>         <bundle>mvn:com.vaadin/vaadin-push/7.3.0</bundle>>
>         <bundle>mvn:com.vaadin/vaadin-sass-compiler/0.9.2</bundle>>
>     </feature>>
>
>     <feature name="vaadin7-common" version="1.0.0-SNAPSHOT">>
>
> <bundle>mvn:com.vaadin.external.google/android-json/0.0.20131108.vaadin1</bundle>>
>
> <bundle>mvn:org.jbundle.util.osgi.wrapped/org.jbundle.util.osgi.wrapped.c3p0/0.9.1.2</bundle>>
>         <bundle>mvn:org.quartz-scheduler/quartz/2.2.1</bundle>>
>         <bundle>mvn:joda-time/joda-time/2.4</bundle>>
>
> <bundle>wrap:mvn:org.springframework/spring-core/3.2.6.RELEASE$Bundle-SymbolicName=Spring-Framework&amp;Bundle-Version=3.2.6.RELEASE</bundle>>
>
> <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xpp3/1.1.4c_7</bundle>>
>         <bundle>mvn:com.google.guava/guava/16.0.1</bundle>>
>         <bundle>mvn:io.netty/netty/3.9.0.Final</bundle>>
>         <bundle>mvn:org.apache.commons/commons-lang3/3.3.2</bundle>>
>
>         <bundle>mvn:com.vaadin.external.flute/flute/1.3.0.gg2</bundle>>
>
> <bundle>mvn:com.vaadin.external.streamhtmlparser/streamhtmlparser-jsilver/0.0.10.vaadin1</bundle>>
>         <bundle>mvn:com.vaadin.external.google/guava/16.0.1.vaadin1</bundle>>
>
>
> <bundle>mvn:org.eclipse.jetty.orbit/javax.servlet/3.0.0.v201112011016</bundle>>
>
> <bundle>wrap:mvn:org.w3c.css/sac/1.3$Bundle-SymbolicName=org-w3c-css-sac&amp;Bundle-Version=1.3</bundle>>
>         <bundle>mvn:org.jsoup/jsoup/1.6.3</bundle>>
>
> <bundle>mvn:com.vaadin.external.slf4j/vaadin-slf4j-jdk14/1.6.1</bundle>>
>
> <bundle>mvn:com.vaadin.external.atmosphere/atmosphere-runtime/2.1.2.vaadin3</bundle>>
>
> <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.gwt-dev/2.4.0_1</bundle>>
>         <bundle>mvn:org.apache.commons/commons-jexl/2.1.1</bundle>>
>         <bundle>mvn:com.vaadin.external.json/json/0.0.20080701</bundle>>
>
> <bundle>wrap:mvn:javax.validation/validation-api/1.0.0.GA$Bundle-SymbolicName=validation-api&amp;Bundle-Version=1.0.0.GA</bundle>>
>
> <bundle>wrap:mvn:net.sourceforge.cssparser/cssparser/0.9.11$Bundle-SymbolicName=cssparser&amp;Bundle-Version=0.9.11</bundle>>
>     </feature>>
> </features>>
>
> It's not up to date, but could be a good starting point to update ;)>
>
> I would propose a updated features XML as Vaadin PR.>
>
> Regards>
> JB>
>
> On 16/09/2019 18:27, Julian Feinauer wrote:>
> > Hi all,>
> > >
> >  >
> > >
> > we use the Vaadin Framework [1] in multiple projects as Frontend 
> > technology.>
> > >
> > As I just recently started with Karaf I wanted to build a small example>
> > app based on Vaadin and OSGI.>
> > >
> > Although Vaadin claims to have OSGi support [2], it really doesn’t feel>
> > well documented, properly tested and up to date. And it is lacking a>
> > good Karaf integration like a feature or so.>
> > >
> > An Example project is shown here [3] but its very implicit (uses>
> > embedded Felix and tons of maven shenanigans as it looks).>
> > >
> >  >
> > >
> > Does anyone here have experience with Vaadin or an idea on how one would>
> > approach a Vaadin-OSGi Application?>
> > >
> >  >
> > >
> > Thanks!>
> > >
> > Julian>
> > >
> >  >
> > >
> > [1] https://vaadin.com/>
> > >
> > [2] https://vaadin.com/docs/v14/flow/osgi/tutorial-osgi-basic.html>
> > >
> > [3] https://github.com/vaadin/base-starter-flow-osgi>
> > >
>
> -- >
> Jean-Baptiste Onofré>
> [email protected]<mailto:[email protected]>>
> http://blog.nanthrax.net>
> Talend - http://www.talend.com>
>

Reply via email to