You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by jimmy <ji...@inovelan.fr> on 2014/07/07 14:42:01 UTC
WebSocket
Hi, how to install jetty 9 in karaf.
in the original repo-feature, when installing pax-jetty the jetty version is
8.1.14.v20131031
In fact, i get a problem because i'd like to use websocket protocol using
the annotation
*@ServerEndpoint("/websocket")*
but when i deploy my bundle, this annotation isn't detected and i get an
http 404 when i try to access to /websocket.
It is working in a glassfish environnement but not in karaf. So i think
switching to jetty 9 is better for JSR356
I've tested also to add jetty-websocket bundle, but it doesn't resolve the
issue.
install -s mvn:org.eclipse.jetty/jetty-websocket/8.1.14.v20131031
Plz help.
Thanks in advance.
--
View this message in context: http://karaf.922171.n3.nabble.com/WebSocket-tp4034012.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: WebSocket
Posted by jimmy <ji...@inovelan.fr>.
AH ah ah !!!
this is because there is a redirection to https from http
org.ops4j.pax.url.mvn.repositories= \
http://repository.apache.org/content/groups/snapshots-group@id=apache@snapshots@noreleases,
\
http://oss.sonatype.org/content/repositories/snapshots@id=sonatype.snapshots.deploy@snapshots@norelease,
\
http://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.sonatype.snapshots.deploy@snapshots@noreleases,
\
http://repo1.maven.org/maven2@id=central, \
http://repository.springsource.com/maven/bundles/release@id=spring.ebr.release,
\
http://repository.springsource.com/maven/bundles/external@id=spring.ebr.external,
\
file:${karaf.home}/${[hidden email]
<http://karaf.922171.n3.nabble.com/user/SendEmail.jtp?type=node&node=4034023&i=0>,
\
file:${[hidden email]
<http://karaf.922171.n3.nabble.com/user/SendEmail.jtp?type=node&node=4034023&i=1>
must becomes
org.ops4j.pax.url.mvn.repositories= \
http*s*://repository.apache.org/content/groups/snapshots-group@id=apache@snapshots@noreleases,
\
http*s*
://oss.sonatype.org/content/repositories/snapshots@id=sonatype.snapshots.deploy@snapshots@norelease,
\
http*s*://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.sonatype.snapshots.deploy@snapshots@noreleases,
\
http://repo1.maven.org/maven2@id=central, \
http://repository.springsource.com/maven/bundles/release@id=spring.ebr.release,
\
http://repository.springsource.com/maven/bundles/external@id=spring.ebr.external,
\
file:${karaf.home}/${[hidden email]
<http://karaf.922171.n3.nabble.com/user/SendEmail.jtp?type=node&node=4034023&i=0>,
\
file:${[hidden email]
<http://karaf.922171.n3.nabble.com/user/SendEmail.jtp?type=node&node=4034023&i=1>
Le 07/07/2014 17:11, jimmy [via Karaf] a écrit :
> Which version of maven are you using ?
> My version is 3.2.2
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the
> discussion below:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034031.html
> To unsubscribe from WebSocket, click here
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4034012&code=amltbXkucGFubmllckBpbm92ZWxhbi5mcnw0MDM0MDEyfC01NTUxNDMzNzU=>.
> NAML
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
*Jimmy PANNIER*
Ingénieur de développement
Pôle Édition
169, Rue Sadi Carnot
59350 Saint André-Lez-Lille
03.20.06.16.17
logo_inovelan_mini.png (6K) <http://karaf.922171.n3.nabble.com/attachment/4034032/0/logo_inovelan_mini.png>
--
View this message in context: http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034032.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: WebSocket
Posted by jimmy <ji...@inovelan.fr>.
My problem now is that i'm always get a 404 error even on static files.
i get no error when deploying the bundle, i get my traces in activator.
Everything is ok,
Are required manifest for webbundle are filled
Web-ContextPath=/cloud-websocket
Bundle-ClassPath=WEB-INF/classes
Have you set something special in your jetty.xml (handler)?
Le 08/07/2014 13:46, Achim Nierbeck [via Karaf] a écrit :
> Just use your regular github account, that's all to access ops4j.
> And if you wish I'd give you direct access to the ops4j repo.
>
> regards, Achim
>
>
> 2014-07-08 12:26 GMT+02:00 jimmy <[hidden email]
> </user/SendEmail.jtp?type=node&node=4034057&i=0>>:
>
> Ok, i'll share it when it works.
> Is there a special git account for push or i have to share it via
> a zip
> file..
>
> regards, Jimmy
>
> Le 08/07/2014 11:51, Achim Nierbeck [via Karaf] a écrit :
> > One more ...
> > if you have a simple Websocket sample that could be used as
> sample for
> > Pax Web [1]
> > I would be more than happy to add it to the samples and integration
> > tests for it :)
> >
> > regards, Achim
> >
> > [1] - https://github.com/ops4j/org.ops4j.pax.web/tree/master/samples
> >
> >
> > 2014-07-08 11:49 GMT+02:00 Achim Nierbeck <[hidden email]
> > </user/SendEmail.jtp?type=node&node=4034052&i=0>>:
> >
> > Ok, you cleaned the Karaf. But that doesn't clean such files, so
> > you most likely still got the
> > "old" jetty.xml for Jetty8.
> > The feauture deployer doesn't override config files cause they
> > might be altered.
> >
> > regards, Achim
> >
> >
> > 2014-07-08 11:44 GMT+02:00 jimmy <[hidden email]
> > </user/SendEmail.jtp?type=node&node=4034052&i=1>>:
> >
> > Sorry,
> >
> > in fact The default jetty.xml content does'nt match with
> jetty
> > 9 default
> > configuration.
> >
> > i replace the content of jetty.xml with
> >
> > <Call name="addConnector">
> > <Arg>
> > <New class="org.eclipse.jetty.server.ServerConnector">
> > <Arg name="server"><Ref refid="Server" /></Arg>
> > <Arg name="factories">
> > <Array
> > type="org.eclipse.jetty.server.ConnectionFactory">
> > <Item>
> > <New
> > class="org.eclipse.jetty.server.HttpConnectionFactory">
> > <Arg name="config"><Ref refid="httpConfig"
> > /></Arg>
> > </New>
> > </Item>
> > </Array>
> > </Arg>
> > <Set name="host"><Property name="jetty.host"
> /></Set>
> > <Set name="port"><Property name="jetty.port"
> > default="80" /></Set>
> > <Set name="idleTimeout"><Property
> name="http.timeout"
> > default="30000"/></Set>
> > <Set name="soLingerTime"><Property
> > name="http.soLingerTime"
> > default="-1"/></Set>
> > </New>
> > </Arg>
> > </Call>
> >
> >
> >
> > I don't have any error but the application is now not
> deployed....
> > I'm searching...
> >
> > I'll keep you posted
> >
> > Thank you Achim
> >
> >
> >
> >
> > --
> > View this message in context:
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034050.html
> > Sent from the Karaf - User mailing list archive at
> Nabble.com.
> >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > Committer & Project Lead
> > blog <http://notizblog.nierbeck.de/>
> >
> > Software Architect / Project Manager / Scrum Master
> >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > Committer & Project Lead
> > blog <http://notizblog.nierbeck.de/>
> >
> > Software Architect / Project Manager / Scrum Master
> >
> >
> >
> >
> ------------------------------------------------------------------------
> > If you reply to this email, your message will be added to the
> > discussion below:
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034052.html
> > To unsubscribe from WebSocket, click here
> > <> NAML
> >
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> >
>
> --
>
> *Jimmy PANNIER*
> Ingénieur de développement
> Pôle Édition
>
> 169, Rue Sadi Carnot
> 59350 Saint André-Lez-Lille
> 03.20.06.16.17
>
>
>
>
>
> logo_inovelan_mini.png (6K)
> <http://karaf.922171.n3.nabble.com/attachment/4034055/0/logo_inovelan_mini.png>
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034055.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer & Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the
> discussion below:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034057.html
> To unsubscribe from WebSocket, click here
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4034012&code=amltbXkucGFubmllckBpbm92ZWxhbi5mcnw0MDM0MDEyfC01NTUxNDMzNzU=>.
> NAML
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
*Jimmy PANNIER*
Ingénieur de développement
Pôle Édition
169, Rue Sadi Carnot
59350 Saint André-Lez-Lille
03.20.06.16.17
logo_inovelan_mini.png (6K) <http://karaf.922171.n3.nabble.com/attachment/4034058/0/logo_inovelan_mini.png>
--
View this message in context: http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034058.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: WebSocket
Posted by Achim Nierbeck <bc...@googlemail.com>.
Added you to the team.
welcome aboard :D
regards, Achim
2014-07-11 9:29 GMT+02:00 jimmy <ji...@inovelan.fr>:
> My username is jimmyjim on github
>
> Le 10/07/2014 22:01, Achim Nierbeck [via Karaf] a écrit :
> > You need an account at github to be added to the github team for ops4j :)
> >
> > regards, Achim
> > q
> >
> > 2014-07-10 9:29 GMT+02:00 jimmy <[hidden email]
> > </user/SendEmail.jtp?type=node&node=4034141&i=0>>:
> >
> > [hidden email] </user/SendEmail.jtp?type=node&node=4034141&i=1>
> >
> > Le 10/07/2014 09:16, Achim Nierbeck [via Karaf] a écrit :
> > > That would be awesome :)
> > > just give me your github ID and I'll add you to the pax web team.
> > > So you can add it as a sample if you want :)
> > >
> > > regards, Achim
> > >
> > >
> > > 2014-07-10 9:07 GMT+02:00 jimmy <[hidden email]
> > > </user/SendEmail.jtp?type=node&node=4034117&i=0>>:
> > >
> > > I have a working project if you want...
> > >
> > > Le 09/07/2014 21:20, Achim Nierbeck [via Karaf] a écrit :
> > > > I tried with the jetty websocket test app [1].
> > > > But failed with it. I'll try with a simple sample.
> > > >
> > > > regards, Achim
> > > >
> > > > [1]
> > >
> > -https://github.com/jetty-project/jetty-autobahn-websocket-webapp
> > > >
> > > >
> > > > 2014-07-09 15:54 GMT+02:00 jimmy <[hidden email]
> > > > </user/SendEmail.jtp?type=node&node=4034106&i=0>>:
> > > >
> > > > Achim,
> > > >
> > > > Could you give an access to your sample, I'll push a
> > project
> > > with
> > > > websocket and hazelcast features.
> > > >
> > > >
> > > > Here How does it work :
> > > >
> > > > - the activator create a new instance of hazelcast with a
> > > new topic,
> > > > - each websocket connection register to the activator
> > > > - each time a message is send by client websocket, the
> > > message is
> > > > published to the topic hazelcast
> > > > - in activator, there is a listener to the topic
> hazelcast
> > > so when a
> > > > message comes it's pushed to all registered clients
> > websocket !
> > > >
> > > > With hazelcast, you can have an horizontal architecture
> if
> > > you add
> > > > more
> > > > machines in your cluster.
> > > >
> > > >
> > > > Le 09/07/2014 01:05, Achim Nierbeck [via Karaf] a écrit :
> > > > > I tried to run the autobahn-websocket test sample
> > [1] from
> > > the jetty
> > > > > sources, but either my client was wrong or it didn't
> > work :/
> > > > > I will investigate this more, though I've seen reports
> > > where it did
> > > > > work right away so I'm not sure if this is really
> > something
> > > > needed to
> > > > > be done with Pax Web. I'll keep investigating.
> > > > >
> > > > > regards, Achim
> > > > >
> > > > > [1] -
> > > >
> > https://github.com/jetty-project/jetty-autobahn-websocket-webapp
> > > > >
> > > > >
> > > > >
> > > > > 2014-07-08 18:12 GMT+02:00 Achim Nierbeck <[hidden
> > email]
> > > > > </user/SendEmail.jtp?type=node&node=4034077&i=0>>:
> > > > >
> > > > > After giving it a quick glance, it seems like
> > this can
> > > easily be
> > > > > configured using the Jetty.xml
> > > > > I'm gonna investigate this a bit more.
> > > > >
> > > > > regards, Achim
> > > > >
> > > > >
> > > > > 2014-07-08 18:06 GMT+02:00 Achim Nierbeck
> > <[hidden email]
> > > > > </user/SendEmail.jtp?type=node&node=4034077&i=1>>:
> > > > >
> > > > > Hi,
> > > > >
> > > > > ok, I'm gonna give it a try, it very well needs
> > > some special
> > > > > handling in Pax Web.
> > > > >
> > > > > regards, Achim
> > > > >
> > > > >
> > > > > 2014-07-08 17:39 GMT+02:00 jimmy <[hidden
> email]
> > > > > </user/SendEmail.jtp?type=node&node=4034077&i=2>>:
> > > > >
> > > > > I've all deleted, and redownloaded the
> > apache
> > > karaf....
> > > > > Now, i don't have the problem of 404 of
> > static
> > > files
> > > > > anymore...
> > > > >
> > > > > But !
> > > > > The websocket doesn't work !!!!
> > > > >
> > > > > Maybe there is something to do in pax-web ?
> > > > >
> > > > > In a standalone jetty (without osgi),
> > there is a
> > > > > *WebSocketServerContainerInitializer*
> > > > >
> > > > >
> > > > >
> > > > > Server server = new Server();
> > > > > ServerConnector connector = new
> > > > ServerConnector(server);
> > > > > connector.setPort(8081);
> > > > > server.addConnector(connector);
> > > > >
> > > > > // Setup the basic application
> > "context"
> > > for this
> > > > > application at "/"
> > > > > // This is also known as the
> > handler tree
> > > (in jetty
> > > > > speak)
> > > > > ServletContextHandler context = new
> > > > > ServletContextHandler(ServletContextHandler.SESSIONS);
> > > > > context.setContextPath("/cloud-websocket");
> > > > >
> > > > > // server.setHandler(context);
> > > > >
> > > > > ResourceHandler resource_handler = new
> > > > ResourceHandler();
> > > > > resource_handler.setDirectoriesListed(true);
> > > > > resource_handler.setWelcomeFiles(new String[]
> > > > {"index.jsp"});
> > > > >
> > > > > resource_handler.setResourceBase(".");
> > > > >
> > > > > HandlerList handlers = new
> > HandlerList();
> > > > > handlers.setHandlers(new Handler[]
> > > > {resource_handler,
> > > > > context});
> > > > > server.setHandler(handlers);
> > > > >
> > > > > try {
> > > > > WebSocketActivator.init(); // WebSocketActivator
> > > > > contains the
> > > > > @ServerEndpoint
> > > > >
> > > > > // Initialize javax.websocket layer
> > > > > * ServerContainer wscontainer =
> > > > >
> > > WebSocketServerContainerInitializer.configureContext(context);*
> > > > >
> > > > > // Add WebSocket endpoint to
> > > javax.websocket
> > > > layer
> > > > > wscontainer.addEndpoint(WebSocketActivator.class);
> > > > >
> > > > > server.start();
> > > > > server.dump(System.err);
> > > > > // server.join();
> > > > > }
> > > > > catch (Throwable t) {
> > > > > t.printStackTrace(System.err);
> > > > > }
> > > > >
> > > > >
> > > > >
> > > > > i've found the example at
> > > > >
> > > >
> > >
> >
> https://github.com/jetty-project/embedded-jetty-websocket-examples/blob/master/javax.websocket-example/src/main/java/org/eclipse/jetty/demo/EventServer.java
> > > > >
> > > > >
> > > > >
> > > > > Le 08/07/2014 13:46, Achim Nierbeck [via
> > Karaf] a
> > > > écrit :
> > > > > > Just use your regular github account,
> > that's
> > > all to
> > > > > access ops4j.
> > > > > > And if you wish I'd give you direct
> access
> > > to the
> > > > ops4j
> > > > > repo.
> > > > > >
> > > > > > regards, Achim
> > > > > >
> > > > > >
> > > > > > 2014-07-08 12:26 GMT+02:00 jimmy
> > <[hidden email]
> > > > > >
> > > </user/SendEmail.jtp?type=node&node=4034057&i=0>>:
> > > > > >
> > > > > > Ok, i'll share it when it works.
> > > > > > Is there a special git account for
> > push or i
> > > > have to
> > > > > share it via
> > > > > > a zip
> > > > > > file..
> > > > > >
> > > > > > regards, Jimmy
> > > > > >
> > > > > > Le 08/07/2014 11:51, Achim
> > Nierbeck [via
> > > Karaf] a
> > > > > écrit :
> > > > > > > One more ...
> > > > > > > if you have a simple Websocket
> > sample
> > > that could
> > > > > be used as
> > > > > > sample for
> > > > > > > Pax Web [1]
> > > > > > > I would be more than happy to add
> it
> > > to the
> > > > > samples and integration
> > > > > > > tests for it :)
> > > > > > >
> > > > > > > regards, Achim
> > > > > > >
> > > > > > > [1] -
> > > > >
> > https://github.com/ops4j/org.ops4j.pax.web/tree/master/samples
> > > > > > >
> > > > > > >
> > > > > > > 2014-07-08 11:49 GMT+02:00 Achim
> > Nierbeck
> > > > <[hidden
> > > > > email]
> > > > > > >
> > > > </user/SendEmail.jtp?type=node&node=4034052&i=0>>:
> > > > > > >
> > > > > > > Ok, you cleaned the Karaf. But
> > > that doesn't
> > > > > clean such files, so
> > > > > > > you most likely still got the
> > > > > > > "old" jetty.xml for Jetty8.
> > > > > > > The feauture deployer
> > doesn't override
> > > > config
> > > > > files cause they
> > > > > > > might be altered.
> > > > > > >
> > > > > > > regards, Achim
> > > > > > >
> > > > > > >
> > > > > > > 2014-07-08 11:44 GMT+02:00 jimmy
> > > > <[hidden email]
> > > > > > >
> > > > </user/SendEmail.jtp?type=node&node=4034052&i=1>>:
> > > > > > >
> > > > > > > Sorry,
> > > > > > >
> > > > > > > in fact The default jetty.xml
> > > content
> > > > > does'nt match with
> > > > > > jetty
> > > > > > > 9 default
> > > > > > > configuration.
> > > > > > >
> > > > > > > i replace the content of
> > > jetty.xml with
> > > > > > >
> > > > > > > <Call name="addConnector">
> > > > > > > <Arg>
> > > > > > > <New
> > > > > class="org.eclipse.jetty.server.ServerConnector">
> > > > > > > <Arg name="server"><Ref
> > refid="Server"
> > > /></Arg>
> > > > > > > <Arg name="factories">
> > > > > > > <Array
> > > > > > >
> > > > type="org.eclipse.jetty.server.ConnectionFactory">
> > > > > > > <Item>
> > > > > > > <New
> > > > > > >
> > > > > class="org.eclipse.jetty.server.HttpConnectionFactory">
> > > > > > > <Arg name="config"><Ref
> > > refid="httpConfig"
> > > > > > > /></Arg>
> > > > > > > </New>
> > > > > > > </Item>
> > > > > > > </Array>
> > > > > > > </Arg>
> > > > > > > <Set name="host"><Property
> > > name="jetty.host"
> > > > > > /></Set>
> > > > > > > <Set name="port"><Property
> > > name="jetty.port"
> > > > > > > default="80" /></Set>
> > > > > > > <Set name="idleTimeout"><Property
> > > > > > name="http.timeout"
> > > > > > > default="30000"/></Set>
> > > > > > > <Set name="soLingerTime"><Property
> > > > > > > name="http.soLingerTime"
> > > > > > > default="-1"/></Set>
> > > > > > > </New>
> > > > > > > </Arg>
> > > > > > > </Call>
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > I don't have any error but the
> > > > application
> > > > > is now not
> > > > > > deployed....
> > > > > > > I'm searching...
> > > > > > >
> > > > > > > I'll keep you posted
> > > > > > >
> > > > > > > Thank you Achim
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > View this message in context:
> > > > > > >
> > > > >
> > > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034050.html
> > > > > > > Sent from the Karaf - User
> > > mailing list
> > > > > archive at
> > > > > > Nabble.com.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > >
> > > > > > > Apache Member
> > > > > > > Apache Karaf
> > > <http://karaf.apache.org/>
> > > > > Committer & PMC
> > > > > > > OPS4J Pax Web
> > > > >
> > <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > > > > > Committer & Project Lead
> > > > > > > blog <
> http://notizblog.nierbeck.de/>
> > > > > > >
> > > > > > > Software Architect / Project
> > > Manager / Scrum
> > > > > Master
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > >
> > > > > > > Apache Member
> > > > > > > Apache Karaf
> > <http://karaf.apache.org/>
> > > > Committer
> > > > > & PMC
> > > > > > > OPS4J Pax Web
> > > > >
> > <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > > > > > Committer & Project Lead
> > > > > > > blog <
> http://notizblog.nierbeck.de/>
> > > > > > >
> > > > > > > Software Architect / Project
> > Manager /
> > > Scrum
> > > > Master
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> ------------------------------------------------------------------------
> > > > > > > If you reply to this email, your
> > > message will be
> > > > > added to the
> > > > > > > discussion below:
> > > > > > >
> > > > >
> > > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034052.html
> > > > > > > To unsubscribe from WebSocket,
> > click here
> > > > > > > <> NAML
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> > > > > > >
> > > > > >
> > > > > > --
> > > > > >
> > > > > > *Jimmy PANNIER*
> > > > > > Ingénieur de développement
> > > > > > Pôle Édition
> > > > > >
> > > > > > 169, Rue Sadi Carnot
> > > > > > 59350 Saint André-Lez-Lille
> > > > > > 03.20.06.16.17
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > logo_inovelan_mini.png (6K)
> > > > > >
> > > > >
> > > >
> > >
> > <
> http://karaf.922171.n3.nabble.com/attachment/4034055/0/logo_inovelan_mini.png
> >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > View this message in context:
> > > > > >
> > > > >
> > > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034055.html
> > > > > > Sent from the Karaf - User mailing
> > list
> > > archive at
> > > > > Nabble.com.
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > >
> > > > > > Apache Member
> > > > > > Apache Karaf <http://karaf.apache.org/>
> > > Committer
> > > > & PMC
> > > > > > OPS4J Pax Web
> > > > >
> > <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > > > > Committer & Project Lead
> > > > > > blog <http://notizblog.nierbeck.de/>
> > > > > >
> > > > > > Software Architect / Project Manager /
> > Scrum
> > > Master
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> ------------------------------------------------------------------------
> > > > > > If you reply to this email, your message
> > > will be added
> > > > > to the
> > > > > > discussion below:
> > > > > >
> > > > >
> > > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034057.html
> > > > > > To unsubscribe from WebSocket, click here
> > > > > > <> NAML
> > > > > >
> > > > >
> > > >
> > >
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> > > > > >
> > > > >
> > > > > --
> > > > >
> > > > > *Jimmy PANNIER*
> > > > > Ingénieur de développement
> > > > > Pôle Édition
> > > > >
> > > > > 169, Rue Sadi Carnot
> > > > > 59350 Saint André-Lez-Lille
> > > > > 03.20.06.16.17
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > logo_inovelan_mini.png (6K)
> > > > >
> > > >
> > >
> > <
> http://karaf.922171.n3.nabble.com/attachment/4034059/0/logo_inovelan_mini.png
> >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > View this message in context:
> > > > >
> > > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034059.html
> > > > > Sent from the Karaf - User mailing list
> > archive at
> > > > Nabble.com.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > Apache Member
> > > > > Apache Karaf <http://karaf.apache.org/>
> > Committer
> > > & PMC
> > > > > OPS4J Pax Web
> > > > <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > > > Committer & Project Lead
> > > > > blog <http://notizblog.nierbeck.de/>
> > > > >
> > > > > Software Architect / Project Manager / Scrum
> > Master
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > Apache Member
> > > > > Apache Karaf <http://karaf.apache.org/>
> > Committer & PMC
> > > > > OPS4J Pax Web
> > > <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > > > Committer & Project Lead
> > > > > blog <http://notizblog.nierbeck.de/>
> > > > >
> > > > > Software Architect / Project Manager / Scrum Master
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > Apache Member
> > > > > Apache Karaf <http://karaf.apache.org/> Committer &
> PMC
> > > > > OPS4J Pax Web
> > <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > > > Committer & Project Lead
> > > > > blog <http://notizblog.nierbeck.de/>
> > > > >
> > > > > Software Architect / Project Manager / Scrum Master
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> ------------------------------------------------------------------------
> > > > > If you reply to this email, your message will be
> > added to the
> > > > > discussion below:
> > > > >
> > > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034077.html
> > > > > To unsubscribe from WebSocket, click here
> > > > > <> NAML
> > > > >
> > > >
> > >
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> > > > >
> > > >
> > > > --
> > > >
> > > > *Jimmy PANNIER*
> > > > Ingénieur de développement
> > > > Pôle Édition
> > > >
> > > > 169, Rue Sadi Carnot
> > > > 59350 Saint André-Lez-Lille
> > > > 03.20.06.16.17
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > logo_inovelan_mini.png (6K)
> > > >
> > >
> > <
> http://karaf.922171.n3.nabble.com/attachment/4034091/0/logo_inovelan_mini.png
> >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > View this message in context:
> > > >
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034091.html
> > > > Sent from the Karaf - User mailing list archive at
> > Nabble.com.
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Apache Member
> > > > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > > > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/
> >
> > > > Committer & Project Lead
> > > > blog <http://notizblog.nierbeck.de/>
> > > >
> > > > Software Architect / Project Manager / Scrum Master
> > > >
> > > >
> > > >
> > > >
> > >
> >
> ------------------------------------------------------------------------
> > > > If you reply to this email, your message will be added to the
> > > > discussion below:
> > > >
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034106.html
> > > > To unsubscribe from WebSocket, click here
> > > > <> NAML
> > > >
> > >
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> > > >
> > >
> > > --
> > >
> > > *Jimmy PANNIER*
> > > Ingénieur de développement
> > > Pôle Édition
> > >
> > > 169, Rue Sadi Carnot
> > > 59350 Saint André-Lez-Lille
> > > 03.20.06.16.17
> > >
> > >
> > >
> > >
> > >
> > > logo_inovelan_mini.png (6K)
> > >
> > <
> http://karaf.922171.n3.nabble.com/attachment/4034115/0/logo_inovelan_mini.png
> >
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034115.html
> > > Sent from the Karaf - User mailing list archive at Nabble.com.
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Apache Member
> > > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > Committer & Project Lead
> > > blog <http://notizblog.nierbeck.de/>
> > >
> > > Software Architect / Project Manager / Scrum Master
> > >
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------
> > > If you reply to this email, your message will be added to the
> > > discussion below:
> > > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034117.html
> > > To unsubscribe from WebSocket, click here
> > > <> NAML
> > >
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> > >
> >
> > --
> >
> > *Jimmy PANNIER*
> > Ingénieur de développement
> > Pôle Édition
> >
> > 169, Rue Sadi Carnot
> > 59350 Saint André-Lez-Lille
> > 03.20.06.16.17
> >
> >
> >
> >
> >
> > logo_inovelan_mini.png (6K)
> > <
> http://karaf.922171.n3.nabble.com/attachment/4034118/0/logo_inovelan_mini.png
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034118.html
> > Sent from the Karaf - User mailing list archive at Nabble.com.
> >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > Committer & Project Lead
> > blog <http://notizblog.nierbeck.de/>
> >
> > Software Architect / Project Manager / Scrum Master
> >
> >
> >
> > ------------------------------------------------------------------------
> > If you reply to this email, your message will be added to the
> > discussion below:
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034141.html
> > To unsubscribe from WebSocket, click here
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4034012&code=amltbXkucGFubmllckBpbm92ZWxhbi5mcnw0MDM0MDEyfC01NTUxNDMzNzU=
> >.
> > NAML
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
> --
>
> *Jimmy PANNIER*
> Ingénieur de développement
> Pôle Édition
>
> 169, Rue Sadi Carnot
> 59350 Saint André-Lez-Lille
> 03.20.06.16.17
>
>
>
>
>
> logo_inovelan_mini.png (6K) <
> http://karaf.922171.n3.nabble.com/attachment/4034151/0/logo_inovelan_mini.png
> >
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034151.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Software Architect / Project Manager / Scrum Master
Re: WebSocket
Posted by jimmy <ji...@inovelan.fr>.
My username is jimmyjim on github
Le 10/07/2014 22:01, Achim Nierbeck [via Karaf] a écrit :
> You need an account at github to be added to the github team for ops4j :)
>
> regards, Achim
> q
>
> 2014-07-10 9:29 GMT+02:00 jimmy <[hidden email]
> </user/SendEmail.jtp?type=node&node=4034141&i=0>>:
>
> [hidden email] </user/SendEmail.jtp?type=node&node=4034141&i=1>
>
> Le 10/07/2014 09:16, Achim Nierbeck [via Karaf] a écrit :
> > That would be awesome :)
> > just give me your github ID and I'll add you to the pax web team.
> > So you can add it as a sample if you want :)
> >
> > regards, Achim
> >
> >
> > 2014-07-10 9:07 GMT+02:00 jimmy <[hidden email]
> > </user/SendEmail.jtp?type=node&node=4034117&i=0>>:
> >
> > I have a working project if you want...
> >
> > Le 09/07/2014 21:20, Achim Nierbeck [via Karaf] a écrit :
> > > I tried with the jetty websocket test app [1].
> > > But failed with it. I'll try with a simple sample.
> > >
> > > regards, Achim
> > >
> > > [1]
> >
> -https://github.com/jetty-project/jetty-autobahn-websocket-webapp
> > >
> > >
> > > 2014-07-09 15:54 GMT+02:00 jimmy <[hidden email]
> > > </user/SendEmail.jtp?type=node&node=4034106&i=0>>:
> > >
> > > Achim,
> > >
> > > Could you give an access to your sample, I'll push a
> project
> > with
> > > websocket and hazelcast features.
> > >
> > >
> > > Here How does it work :
> > >
> > > - the activator create a new instance of hazelcast with a
> > new topic,
> > > - each websocket connection register to the activator
> > > - each time a message is send by client websocket, the
> > message is
> > > published to the topic hazelcast
> > > - in activator, there is a listener to the topic hazelcast
> > so when a
> > > message comes it's pushed to all registered clients
> websocket !
> > >
> > > With hazelcast, you can have an horizontal architecture if
> > you add
> > > more
> > > machines in your cluster.
> > >
> > >
> > > Le 09/07/2014 01:05, Achim Nierbeck [via Karaf] a écrit :
> > > > I tried to run the autobahn-websocket test sample
> [1] from
> > the jetty
> > > > sources, but either my client was wrong or it didn't
> work :/
> > > > I will investigate this more, though I've seen reports
> > where it did
> > > > work right away so I'm not sure if this is really
> something
> > > needed to
> > > > be done with Pax Web. I'll keep investigating.
> > > >
> > > > regards, Achim
> > > >
> > > > [1] -
> > >
> https://github.com/jetty-project/jetty-autobahn-websocket-webapp
> > > >
> > > >
> > > >
> > > > 2014-07-08 18:12 GMT+02:00 Achim Nierbeck <[hidden
> email]
> > > > </user/SendEmail.jtp?type=node&node=4034077&i=0>>:
> > > >
> > > > After giving it a quick glance, it seems like
> this can
> > easily be
> > > > configured using the Jetty.xml
> > > > I'm gonna investigate this a bit more.
> > > >
> > > > regards, Achim
> > > >
> > > >
> > > > 2014-07-08 18:06 GMT+02:00 Achim Nierbeck
> <[hidden email]
> > > > </user/SendEmail.jtp?type=node&node=4034077&i=1>>:
> > > >
> > > > Hi,
> > > >
> > > > ok, I'm gonna give it a try, it very well needs
> > some special
> > > > handling in Pax Web.
> > > >
> > > > regards, Achim
> > > >
> > > >
> > > > 2014-07-08 17:39 GMT+02:00 jimmy <[hidden email]
> > > > </user/SendEmail.jtp?type=node&node=4034077&i=2>>:
> > > >
> > > > I've all deleted, and redownloaded the
> apache
> > karaf....
> > > > Now, i don't have the problem of 404 of
> static
> > files
> > > > anymore...
> > > >
> > > > But !
> > > > The websocket doesn't work !!!!
> > > >
> > > > Maybe there is something to do in pax-web ?
> > > >
> > > > In a standalone jetty (without osgi),
> there is a
> > > > *WebSocketServerContainerInitializer*
> > > >
> > > >
> > > >
> > > > Server server = new Server();
> > > > ServerConnector connector = new
> > > ServerConnector(server);
> > > > connector.setPort(8081);
> > > > server.addConnector(connector);
> > > >
> > > > // Setup the basic application
> "context"
> > for this
> > > > application at "/"
> > > > // This is also known as the
> handler tree
> > (in jetty
> > > > speak)
> > > > ServletContextHandler context = new
> > > > ServletContextHandler(ServletContextHandler.SESSIONS);
> > > > context.setContextPath("/cloud-websocket");
> > > >
> > > > // server.setHandler(context);
> > > >
> > > > ResourceHandler resource_handler = new
> > > ResourceHandler();
> > > > resource_handler.setDirectoriesListed(true);
> > > > resource_handler.setWelcomeFiles(new String[]
> > > {"index.jsp"});
> > > >
> > > > resource_handler.setResourceBase(".");
> > > >
> > > > HandlerList handlers = new
> HandlerList();
> > > > handlers.setHandlers(new Handler[]
> > > {resource_handler,
> > > > context});
> > > > server.setHandler(handlers);
> > > >
> > > > try {
> > > > WebSocketActivator.init(); // WebSocketActivator
> > > > contains the
> > > > @ServerEndpoint
> > > >
> > > > // Initialize javax.websocket layer
> > > > * ServerContainer wscontainer =
> > > >
> > WebSocketServerContainerInitializer.configureContext(context);*
> > > >
> > > > // Add WebSocket endpoint to
> > javax.websocket
> > > layer
> > > > wscontainer.addEndpoint(WebSocketActivator.class);
> > > >
> > > > server.start();
> > > > server.dump(System.err);
> > > > // server.join();
> > > > }
> > > > catch (Throwable t) {
> > > > t.printStackTrace(System.err);
> > > > }
> > > >
> > > >
> > > >
> > > > i've found the example at
> > > >
> > >
> >
> https://github.com/jetty-project/embedded-jetty-websocket-examples/blob/master/javax.websocket-example/src/main/java/org/eclipse/jetty/demo/EventServer.java
> > > >
> > > >
> > > >
> > > > Le 08/07/2014 13:46, Achim Nierbeck [via
> Karaf] a
> > > écrit :
> > > > > Just use your regular github account,
> that's
> > all to
> > > > access ops4j.
> > > > > And if you wish I'd give you direct access
> > to the
> > > ops4j
> > > > repo.
> > > > >
> > > > > regards, Achim
> > > > >
> > > > >
> > > > > 2014-07-08 12:26 GMT+02:00 jimmy
> <[hidden email]
> > > > >
> > </user/SendEmail.jtp?type=node&node=4034057&i=0>>:
> > > > >
> > > > > Ok, i'll share it when it works.
> > > > > Is there a special git account for
> push or i
> > > have to
> > > > share it via
> > > > > a zip
> > > > > file..
> > > > >
> > > > > regards, Jimmy
> > > > >
> > > > > Le 08/07/2014 11:51, Achim
> Nierbeck [via
> > Karaf] a
> > > > écrit :
> > > > > > One more ...
> > > > > > if you have a simple Websocket
> sample
> > that could
> > > > be used as
> > > > > sample for
> > > > > > Pax Web [1]
> > > > > > I would be more than happy to add it
> > to the
> > > > samples and integration
> > > > > > tests for it :)
> > > > > >
> > > > > > regards, Achim
> > > > > >
> > > > > > [1] -
> > > >
> https://github.com/ops4j/org.ops4j.pax.web/tree/master/samples
> > > > > >
> > > > > >
> > > > > > 2014-07-08 11:49 GMT+02:00 Achim
> Nierbeck
> > > <[hidden
> > > > email]
> > > > > >
> > > </user/SendEmail.jtp?type=node&node=4034052&i=0>>:
> > > > > >
> > > > > > Ok, you cleaned the Karaf. But
> > that doesn't
> > > > clean such files, so
> > > > > > you most likely still got the
> > > > > > "old" jetty.xml for Jetty8.
> > > > > > The feauture deployer
> doesn't override
> > > config
> > > > files cause they
> > > > > > might be altered.
> > > > > >
> > > > > > regards, Achim
> > > > > >
> > > > > >
> > > > > > 2014-07-08 11:44 GMT+02:00 jimmy
> > > <[hidden email]
> > > > > >
> > > </user/SendEmail.jtp?type=node&node=4034052&i=1>>:
> > > > > >
> > > > > > Sorry,
> > > > > >
> > > > > > in fact The default jetty.xml
> > content
> > > > does'nt match with
> > > > > jetty
> > > > > > 9 default
> > > > > > configuration.
> > > > > >
> > > > > > i replace the content of
> > jetty.xml with
> > > > > >
> > > > > > <Call name="addConnector">
> > > > > > <Arg>
> > > > > > <New
> > > > class="org.eclipse.jetty.server.ServerConnector">
> > > > > > <Arg name="server"><Ref
> refid="Server"
> > /></Arg>
> > > > > > <Arg name="factories">
> > > > > > <Array
> > > > > >
> > > type="org.eclipse.jetty.server.ConnectionFactory">
> > > > > > <Item>
> > > > > > <New
> > > > > >
> > > > class="org.eclipse.jetty.server.HttpConnectionFactory">
> > > > > > <Arg name="config"><Ref
> > refid="httpConfig"
> > > > > > /></Arg>
> > > > > > </New>
> > > > > > </Item>
> > > > > > </Array>
> > > > > > </Arg>
> > > > > > <Set name="host"><Property
> > name="jetty.host"
> > > > > /></Set>
> > > > > > <Set name="port"><Property
> > name="jetty.port"
> > > > > > default="80" /></Set>
> > > > > > <Set name="idleTimeout"><Property
> > > > > name="http.timeout"
> > > > > > default="30000"/></Set>
> > > > > > <Set name="soLingerTime"><Property
> > > > > > name="http.soLingerTime"
> > > > > > default="-1"/></Set>
> > > > > > </New>
> > > > > > </Arg>
> > > > > > </Call>
> > > > > >
> > > > > >
> > > > > >
> > > > > > I don't have any error but the
> > > application
> > > > is now not
> > > > > deployed....
> > > > > > I'm searching...
> > > > > >
> > > > > > I'll keep you posted
> > > > > >
> > > > > > Thank you Achim
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > View this message in context:
> > > > > >
> > > >
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034050.html
> > > > > > Sent from the Karaf - User
> > mailing list
> > > > archive at
> > > > > Nabble.com.
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > >
> > > > > > Apache Member
> > > > > > Apache Karaf
> > <http://karaf.apache.org/>
> > > > Committer & PMC
> > > > > > OPS4J Pax Web
> > > >
> <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > > > > Committer & Project Lead
> > > > > > blog <http://notizblog.nierbeck.de/>
> > > > > >
> > > > > > Software Architect / Project
> > Manager / Scrum
> > > > Master
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > >
> > > > > > Apache Member
> > > > > > Apache Karaf
> <http://karaf.apache.org/>
> > > Committer
> > > > & PMC
> > > > > > OPS4J Pax Web
> > > >
> <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > > > > Committer & Project Lead
> > > > > > blog <http://notizblog.nierbeck.de/>
> > > > > >
> > > > > > Software Architect / Project
> Manager /
> > Scrum
> > > Master
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> ------------------------------------------------------------------------
> > > > > > If you reply to this email, your
> > message will be
> > > > added to the
> > > > > > discussion below:
> > > > > >
> > > >
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034052.html
> > > > > > To unsubscribe from WebSocket,
> click here
> > > > > > <> NAML
> > > > > >
> > > > >
> > > >
> > >
> >
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> > > > > >
> > > > >
> > > > > --
> > > > >
> > > > > *Jimmy PANNIER*
> > > > > Ingénieur de développement
> > > > > Pôle Édition
> > > > >
> > > > > 169, Rue Sadi Carnot
> > > > > 59350 Saint André-Lez-Lille
> > > > > 03.20.06.16.17
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > logo_inovelan_mini.png (6K)
> > > > >
> > > >
> > >
> >
> <http://karaf.922171.n3.nabble.com/attachment/4034055/0/logo_inovelan_mini.png>
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > View this message in context:
> > > > >
> > > >
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034055.html
> > > > > Sent from the Karaf - User mailing
> list
> > archive at
> > > > Nabble.com.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > Apache Member
> > > > > Apache Karaf <http://karaf.apache.org/>
> > Committer
> > > & PMC
> > > > > OPS4J Pax Web
> > > >
> <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > > > Committer & Project Lead
> > > > > blog <http://notizblog.nierbeck.de/>
> > > > >
> > > > > Software Architect / Project Manager /
> Scrum
> > Master
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> ------------------------------------------------------------------------
> > > > > If you reply to this email, your message
> > will be added
> > > > to the
> > > > > discussion below:
> > > > >
> > > >
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034057.html
> > > > > To unsubscribe from WebSocket, click here
> > > > > <> NAML
> > > > >
> > > >
> > >
> >
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> > > > >
> > > >
> > > > --
> > > >
> > > > *Jimmy PANNIER*
> > > > Ingénieur de développement
> > > > Pôle Édition
> > > >
> > > > 169, Rue Sadi Carnot
> > > > 59350 Saint André-Lez-Lille
> > > > 03.20.06.16.17
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > logo_inovelan_mini.png (6K)
> > > >
> > >
> >
> <http://karaf.922171.n3.nabble.com/attachment/4034059/0/logo_inovelan_mini.png>
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > View this message in context:
> > > >
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034059.html
> > > > Sent from the Karaf - User mailing list
> archive at
> > > Nabble.com.
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Apache Member
> > > > Apache Karaf <http://karaf.apache.org/>
> Committer
> > & PMC
> > > > OPS4J Pax Web
> > > <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > > Committer & Project Lead
> > > > blog <http://notizblog.nierbeck.de/>
> > > >
> > > > Software Architect / Project Manager / Scrum
> Master
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Apache Member
> > > > Apache Karaf <http://karaf.apache.org/>
> Committer & PMC
> > > > OPS4J Pax Web
> > <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > > Committer & Project Lead
> > > > blog <http://notizblog.nierbeck.de/>
> > > >
> > > > Software Architect / Project Manager / Scrum Master
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Apache Member
> > > > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > > > OPS4J Pax Web
> <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > > Committer & Project Lead
> > > > blog <http://notizblog.nierbeck.de/>
> > > >
> > > > Software Architect / Project Manager / Scrum Master
> > > >
> > > >
> > > >
> > > >
> > >
> >
> ------------------------------------------------------------------------
> > > > If you reply to this email, your message will be
> added to the
> > > > discussion below:
> > > >
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034077.html
> > > > To unsubscribe from WebSocket, click here
> > > > <> NAML
> > > >
> > >
> >
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> > > >
> > >
> > > --
> > >
> > > *Jimmy PANNIER*
> > > Ingénieur de développement
> > > Pôle Édition
> > >
> > > 169, Rue Sadi Carnot
> > > 59350 Saint André-Lez-Lille
> > > 03.20.06.16.17
> > >
> > >
> > >
> > >
> > >
> > > logo_inovelan_mini.png (6K)
> > >
> >
> <http://karaf.922171.n3.nabble.com/attachment/4034091/0/logo_inovelan_mini.png>
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034091.html
> > > Sent from the Karaf - User mailing list archive at
> Nabble.com.
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Apache Member
> > > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > Committer & Project Lead
> > > blog <http://notizblog.nierbeck.de/>
> > >
> > > Software Architect / Project Manager / Scrum Master
> > >
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------
> > > If you reply to this email, your message will be added to the
> > > discussion below:
> > >
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034106.html
> > > To unsubscribe from WebSocket, click here
> > > <> NAML
> > >
> >
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> > >
> >
> > --
> >
> > *Jimmy PANNIER*
> > Ingénieur de développement
> > Pôle Édition
> >
> > 169, Rue Sadi Carnot
> > 59350 Saint André-Lez-Lille
> > 03.20.06.16.17
> >
> >
> >
> >
> >
> > logo_inovelan_mini.png (6K)
> >
> <http://karaf.922171.n3.nabble.com/attachment/4034115/0/logo_inovelan_mini.png>
> >
> >
> >
> >
> > --
> > View this message in context:
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034115.html
> > Sent from the Karaf - User mailing list archive at Nabble.com.
> >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > Committer & Project Lead
> > blog <http://notizblog.nierbeck.de/>
> >
> > Software Architect / Project Manager / Scrum Master
> >
> >
> >
> >
> ------------------------------------------------------------------------
> > If you reply to this email, your message will be added to the
> > discussion below:
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034117.html
> > To unsubscribe from WebSocket, click here
> > <> NAML
> >
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> >
>
> --
>
> *Jimmy PANNIER*
> Ingénieur de développement
> Pôle Édition
>
> 169, Rue Sadi Carnot
> 59350 Saint André-Lez-Lille
> 03.20.06.16.17
>
>
>
>
>
> logo_inovelan_mini.png (6K)
> <http://karaf.922171.n3.nabble.com/attachment/4034118/0/logo_inovelan_mini.png>
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034118.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer & Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the
> discussion below:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034141.html
> To unsubscribe from WebSocket, click here
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4034012&code=amltbXkucGFubmllckBpbm92ZWxhbi5mcnw0MDM0MDEyfC01NTUxNDMzNzU=>.
> NAML
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
*Jimmy PANNIER*
Ingénieur de développement
Pôle Édition
169, Rue Sadi Carnot
59350 Saint André-Lez-Lille
03.20.06.16.17
logo_inovelan_mini.png (6K) <http://karaf.922171.n3.nabble.com/attachment/4034151/0/logo_inovelan_mini.png>
--
View this message in context: http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034151.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: WebSocket
Posted by Achim Nierbeck <bc...@googlemail.com>.
You need an account at github to be added to the github team for ops4j :)
regards, Achim
2014-07-10 9:29 GMT+02:00 jimmy <ji...@inovelan.fr>:
> jimmy.pannier@inovelan.fr
>
> Le 10/07/2014 09:16, Achim Nierbeck [via Karaf] a écrit :
> > That would be awesome :)
> > just give me your github ID and I'll add you to the pax web team.
> > So you can add it as a sample if you want :)
> >
> > regards, Achim
> >
> >
> > 2014-07-10 9:07 GMT+02:00 jimmy <[hidden email]
> > </user/SendEmail.jtp?type=node&node=4034117&i=0>>:
> >
> > I have a working project if you want...
> >
> > Le 09/07/2014 21:20, Achim Nierbeck [via Karaf] a écrit :
> > > I tried with the jetty websocket test app [1].
> > > But failed with it. I'll try with a simple sample.
> > >
> > > regards, Achim
> > >
> > > [1]
> > -https://github.com/jetty-project/jetty-autobahn-websocket-webapp
> > >
> > >
> > > 2014-07-09 15:54 GMT+02:00 jimmy <[hidden email]
> > > </user/SendEmail.jtp?type=node&node=4034106&i=0>>:
> > >
> > > Achim,
> > >
> > > Could you give an access to your sample, I'll push a project
> > with
> > > websocket and hazelcast features.
> > >
> > >
> > > Here How does it work :
> > >
> > > - the activator create a new instance of hazelcast with a
> > new topic,
> > > - each websocket connection register to the activator
> > > - each time a message is send by client websocket, the
> > message is
> > > published to the topic hazelcast
> > > - in activator, there is a listener to the topic hazelcast
> > so when a
> > > message comes it's pushed to all registered clients websocket !
> > >
> > > With hazelcast, you can have an horizontal architecture if
> > you add
> > > more
> > > machines in your cluster.
> > >
> > >
> > > Le 09/07/2014 01:05, Achim Nierbeck [via Karaf] a écrit :
> > > > I tried to run the autobahn-websocket test sample [1] from
> > the jetty
> > > > sources, but either my client was wrong or it didn't work :/
> > > > I will investigate this more, though I've seen reports
> > where it did
> > > > work right away so I'm not sure if this is really something
> > > needed to
> > > > be done with Pax Web. I'll keep investigating.
> > > >
> > > > regards, Achim
> > > >
> > > > [1] -
> > > https://github.com/jetty-project/jetty-autobahn-websocket-webapp
> > > >
> > > >
> > > >
> > > > 2014-07-08 18:12 GMT+02:00 Achim Nierbeck <[hidden email]
> > > > </user/SendEmail.jtp?type=node&node=4034077&i=0>>:
> > > >
> > > > After giving it a quick glance, it seems like this can
> > easily be
> > > > configured using the Jetty.xml
> > > > I'm gonna investigate this a bit more.
> > > >
> > > > regards, Achim
> > > >
> > > >
> > > > 2014-07-08 18:06 GMT+02:00 Achim Nierbeck <[hidden email]
> > > > </user/SendEmail.jtp?type=node&node=4034077&i=1>>:
> > > >
> > > > Hi,
> > > >
> > > > ok, I'm gonna give it a try, it very well needs
> > some special
> > > > handling in Pax Web.
> > > >
> > > > regards, Achim
> > > >
> > > >
> > > > 2014-07-08 17:39 GMT+02:00 jimmy <[hidden email]
> > > > </user/SendEmail.jtp?type=node&node=4034077&i=2>>:
> > > >
> > > > I've all deleted, and redownloaded the apache
> > karaf....
> > > > Now, i don't have the problem of 404 of static
> > files
> > > > anymore...
> > > >
> > > > But !
> > > > The websocket doesn't work !!!!
> > > >
> > > > Maybe there is something to do in pax-web ?
> > > >
> > > > In a standalone jetty (without osgi), there is a
> > > > *WebSocketServerContainerInitializer*
> > > >
> > > >
> > > >
> > > > Server server = new Server();
> > > > ServerConnector connector = new
> > > ServerConnector(server);
> > > > connector.setPort(8081);
> > > > server.addConnector(connector);
> > > >
> > > > // Setup the basic application "context"
> > for this
> > > > application at "/"
> > > > // This is also known as the handler tree
> > (in jetty
> > > > speak)
> > > > ServletContextHandler context = new
> > > > ServletContextHandler(ServletContextHandler.SESSIONS);
> > > > context.setContextPath("/cloud-websocket");
> > > >
> > > > // server.setHandler(context);
> > > >
> > > > ResourceHandler resource_handler = new
> > > ResourceHandler();
> > > > resource_handler.setDirectoriesListed(true);
> > > > resource_handler.setWelcomeFiles(new String[]
> > > {"index.jsp"});
> > > >
> > > > resource_handler.setResourceBase(".");
> > > >
> > > > HandlerList handlers = new HandlerList();
> > > > handlers.setHandlers(new Handler[]
> > > {resource_handler,
> > > > context});
> > > > server.setHandler(handlers);
> > > >
> > > > try {
> > > > WebSocketActivator.init(); // WebSocketActivator
> > > > contains the
> > > > @ServerEndpoint
> > > >
> > > > // Initialize javax.websocket layer
> > > > * ServerContainer wscontainer =
> > > >
> > WebSocketServerContainerInitializer.configureContext(context);*
> > > >
> > > > // Add WebSocket endpoint to
> > javax.websocket
> > > layer
> > > > wscontainer.addEndpoint(WebSocketActivator.class);
> > > >
> > > > server.start();
> > > > server.dump(System.err);
> > > > // server.join();
> > > > }
> > > > catch (Throwable t) {
> > > > t.printStackTrace(System.err);
> > > > }
> > > >
> > > >
> > > >
> > > > i've found the example at
> > > >
> > >
> >
> https://github.com/jetty-project/embedded-jetty-websocket-examples/blob/master/javax.websocket-example/src/main/java/org/eclipse/jetty/demo/EventServer.java
> > > >
> > > >
> > > >
> > > > Le 08/07/2014 13:46, Achim Nierbeck [via Karaf] a
> > > écrit :
> > > > > Just use your regular github account, that's
> > all to
> > > > access ops4j.
> > > > > And if you wish I'd give you direct access
> > to the
> > > ops4j
> > > > repo.
> > > > >
> > > > > regards, Achim
> > > > >
> > > > >
> > > > > 2014-07-08 12:26 GMT+02:00 jimmy <[hidden
> email]
> > > > >
> > </user/SendEmail.jtp?type=node&node=4034057&i=0>>:
> > > > >
> > > > > Ok, i'll share it when it works.
> > > > > Is there a special git account for push or
> i
> > > have to
> > > > share it via
> > > > > a zip
> > > > > file..
> > > > >
> > > > > regards, Jimmy
> > > > >
> > > > > Le 08/07/2014 11:51, Achim Nierbeck [via
> > Karaf] a
> > > > écrit :
> > > > > > One more ...
> > > > > > if you have a simple Websocket sample
> > that could
> > > > be used as
> > > > > sample for
> > > > > > Pax Web [1]
> > > > > > I would be more than happy to add it
> > to the
> > > > samples and integration
> > > > > > tests for it :)
> > > > > >
> > > > > > regards, Achim
> > > > > >
> > > > > > [1] -
> > > >
> https://github.com/ops4j/org.ops4j.pax.web/tree/master/samples
> > > > > >
> > > > > >
> > > > > > 2014-07-08 11:49 GMT+02:00 Achim Nierbeck
> > > <[hidden
> > > > email]
> > > > > >
> > > </user/SendEmail.jtp?type=node&node=4034052&i=0>>:
> > > > > >
> > > > > > Ok, you cleaned the Karaf. But
> > that doesn't
> > > > clean such files, so
> > > > > > you most likely still got the
> > > > > > "old" jetty.xml for Jetty8.
> > > > > > The feauture deployer doesn't
> override
> > > config
> > > > files cause they
> > > > > > might be altered.
> > > > > >
> > > > > > regards, Achim
> > > > > >
> > > > > >
> > > > > > 2014-07-08 11:44 GMT+02:00 jimmy
> > > <[hidden email]
> > > > > >
> > > </user/SendEmail.jtp?type=node&node=4034052&i=1>>:
> > > > > >
> > > > > > Sorry,
> > > > > >
> > > > > > in fact The default jetty.xml
> > content
> > > > does'nt match with
> > > > > jetty
> > > > > > 9 default
> > > > > > configuration.
> > > > > >
> > > > > > i replace the content of
> > jetty.xml with
> > > > > >
> > > > > > <Call name="addConnector">
> > > > > > <Arg>
> > > > > > <New
> > > > class="org.eclipse.jetty.server.ServerConnector">
> > > > > > <Arg name="server"><Ref refid="Server"
> > /></Arg>
> > > > > > <Arg name="factories">
> > > > > > <Array
> > > > > >
> > > type="org.eclipse.jetty.server.ConnectionFactory">
> > > > > > <Item>
> > > > > > <New
> > > > > >
> > > > class="org.eclipse.jetty.server.HttpConnectionFactory">
> > > > > > <Arg name="config"><Ref
> > refid="httpConfig"
> > > > > > /></Arg>
> > > > > > </New>
> > > > > > </Item>
> > > > > > </Array>
> > > > > > </Arg>
> > > > > > <Set name="host"><Property
> > name="jetty.host"
> > > > > /></Set>
> > > > > > <Set name="port"><Property
> > name="jetty.port"
> > > > > > default="80" /></Set>
> > > > > > <Set name="idleTimeout"><Property
> > > > > name="http.timeout"
> > > > > > default="30000"/></Set>
> > > > > > <Set name="soLingerTime"><Property
> > > > > > name="http.soLingerTime"
> > > > > > default="-1"/></Set>
> > > > > > </New>
> > > > > > </Arg>
> > > > > > </Call>
> > > > > >
> > > > > >
> > > > > >
> > > > > > I don't have any error but the
> > > application
> > > > is now not
> > > > > deployed....
> > > > > > I'm searching...
> > > > > >
> > > > > > I'll keep you posted
> > > > > >
> > > > > > Thank you Achim
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > View this message in context:
> > > > > >
> > > >
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034050.html
> > > > > > Sent from the Karaf - User
> > mailing list
> > > > archive at
> > > > > Nabble.com.
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > >
> > > > > > Apache Member
> > > > > > Apache Karaf
> > <http://karaf.apache.org/>
> > > > Committer & PMC
> > > > > > OPS4J Pax Web
> > > > <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > > > > Committer & Project Lead
> > > > > > blog <http://notizblog.nierbeck.de/>
> > > > > >
> > > > > > Software Architect / Project
> > Manager / Scrum
> > > > Master
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > >
> > > > > > Apache Member
> > > > > > Apache Karaf <http://karaf.apache.org/>
> > > Committer
> > > > & PMC
> > > > > > OPS4J Pax Web
> > > > <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > > > > Committer & Project Lead
> > > > > > blog <http://notizblog.nierbeck.de/>
> > > > > >
> > > > > > Software Architect / Project Manager /
> > Scrum
> > > Master
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> ------------------------------------------------------------------------
> > > > > > If you reply to this email, your
> > message will be
> > > > added to the
> > > > > > discussion below:
> > > > > >
> > > >
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034052.html
> > > > > > To unsubscribe from WebSocket, click here
> > > > > > <> NAML
> > > > > >
> > > > >
> > > >
> > >
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> > > > > >
> > > > >
> > > > > --
> > > > >
> > > > > *Jimmy PANNIER*
> > > > > Ingénieur de développement
> > > > > Pôle Édition
> > > > >
> > > > > 169, Rue Sadi Carnot
> > > > > 59350 Saint André-Lez-Lille
> > > > > 03.20.06.16.17
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > logo_inovelan_mini.png (6K)
> > > > >
> > > >
> > >
> > <
> http://karaf.922171.n3.nabble.com/attachment/4034055/0/logo_inovelan_mini.png
> >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > View this message in context:
> > > > >
> > > >
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034055.html
> > > > > Sent from the Karaf - User mailing list
> > archive at
> > > > Nabble.com.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > Apache Member
> > > > > Apache Karaf <http://karaf.apache.org/>
> > Committer
> > > & PMC
> > > > > OPS4J Pax Web
> > > > <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > > > Committer & Project Lead
> > > > > blog <http://notizblog.nierbeck.de/>
> > > > >
> > > > > Software Architect / Project Manager / Scrum
> > Master
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> ------------------------------------------------------------------------
> > > > > If you reply to this email, your message
> > will be added
> > > > to the
> > > > > discussion below:
> > > > >
> > > >
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034057.html
> > > > > To unsubscribe from WebSocket, click here
> > > > > <> NAML
> > > > >
> > > >
> > >
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> > > > >
> > > >
> > > > --
> > > >
> > > > *Jimmy PANNIER*
> > > > Ingénieur de développement
> > > > Pôle Édition
> > > >
> > > > 169, Rue Sadi Carnot
> > > > 59350 Saint André-Lez-Lille
> > > > 03.20.06.16.17
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > logo_inovelan_mini.png (6K)
> > > >
> > >
> > <
> http://karaf.922171.n3.nabble.com/attachment/4034059/0/logo_inovelan_mini.png
> >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > View this message in context:
> > > >
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034059.html
> > > > Sent from the Karaf - User mailing list archive
> at
> > > Nabble.com.
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Apache Member
> > > > Apache Karaf <http://karaf.apache.org/> Committer
> > & PMC
> > > > OPS4J Pax Web
> > > <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > > Committer & Project Lead
> > > > blog <http://notizblog.nierbeck.de/>
> > > >
> > > > Software Architect / Project Manager / Scrum Master
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Apache Member
> > > > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > > > OPS4J Pax Web
> > <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > > Committer & Project Lead
> > > > blog <http://notizblog.nierbeck.de/>
> > > >
> > > > Software Architect / Project Manager / Scrum Master
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Apache Member
> > > > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > > > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/
> >
> > > > Committer & Project Lead
> > > > blog <http://notizblog.nierbeck.de/>
> > > >
> > > > Software Architect / Project Manager / Scrum Master
> > > >
> > > >
> > > >
> > > >
> > >
> >
> ------------------------------------------------------------------------
> > > > If you reply to this email, your message will be added to the
> > > > discussion below:
> > > >
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034077.html
> > > > To unsubscribe from WebSocket, click here
> > > > <> NAML
> > > >
> > >
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> > > >
> > >
> > > --
> > >
> > > *Jimmy PANNIER*
> > > Ingénieur de développement
> > > Pôle Édition
> > >
> > > 169, Rue Sadi Carnot
> > > 59350 Saint André-Lez-Lille
> > > 03.20.06.16.17
> > >
> > >
> > >
> > >
> > >
> > > logo_inovelan_mini.png (6K)
> > >
> > <
> http://karaf.922171.n3.nabble.com/attachment/4034091/0/logo_inovelan_mini.png
> >
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034091.html
> > > Sent from the Karaf - User mailing list archive at Nabble.com.
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Apache Member
> > > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > Committer & Project Lead
> > > blog <http://notizblog.nierbeck.de/>
> > >
> > > Software Architect / Project Manager / Scrum Master
> > >
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------
> > > If you reply to this email, your message will be added to the
> > > discussion below:
> > > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034106.html
> > > To unsubscribe from WebSocket, click here
> > > <> NAML
> > >
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> > >
> >
> > --
> >
> > *Jimmy PANNIER*
> > Ingénieur de développement
> > Pôle Édition
> >
> > 169, Rue Sadi Carnot
> > 59350 Saint André-Lez-Lille
> > 03.20.06.16.17
> >
> >
> >
> >
> >
> > logo_inovelan_mini.png (6K)
> > <
> http://karaf.922171.n3.nabble.com/attachment/4034115/0/logo_inovelan_mini.png
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034115.html
> > Sent from the Karaf - User mailing list archive at Nabble.com.
> >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > Committer & Project Lead
> > blog <http://notizblog.nierbeck.de/>
> >
> > Software Architect / Project Manager / Scrum Master
> >
> >
> >
> > ------------------------------------------------------------------------
> > If you reply to this email, your message will be added to the
> > discussion below:
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034117.html
> > To unsubscribe from WebSocket, click here
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4034012&code=amltbXkucGFubmllckBpbm92ZWxhbi5mcnw0MDM0MDEyfC01NTUxNDMzNzU=
> >.
> > NAML
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
> --
>
> *Jimmy PANNIER*
> Ingénieur de développement
> Pôle Édition
>
> 169, Rue Sadi Carnot
> 59350 Saint André-Lez-Lille
> 03.20.06.16.17
>
>
>
>
>
> logo_inovelan_mini.png (6K) <
> http://karaf.922171.n3.nabble.com/attachment/4034118/0/logo_inovelan_mini.png
> >
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034118.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Software Architect / Project Manager / Scrum Master
Re: WebSocket
Posted by jimmy <ji...@inovelan.fr>.
jimmy.pannier@inovelan.fr
Le 10/07/2014 09:16, Achim Nierbeck [via Karaf] a écrit :
> That would be awesome :)
> just give me your github ID and I'll add you to the pax web team.
> So you can add it as a sample if you want :)
>
> regards, Achim
>
>
> 2014-07-10 9:07 GMT+02:00 jimmy <[hidden email]
> </user/SendEmail.jtp?type=node&node=4034117&i=0>>:
>
> I have a working project if you want...
>
> Le 09/07/2014 21:20, Achim Nierbeck [via Karaf] a écrit :
> > I tried with the jetty websocket test app [1].
> > But failed with it. I'll try with a simple sample.
> >
> > regards, Achim
> >
> > [1]
> -https://github.com/jetty-project/jetty-autobahn-websocket-webapp
> >
> >
> > 2014-07-09 15:54 GMT+02:00 jimmy <[hidden email]
> > </user/SendEmail.jtp?type=node&node=4034106&i=0>>:
> >
> > Achim,
> >
> > Could you give an access to your sample, I'll push a project
> with
> > websocket and hazelcast features.
> >
> >
> > Here How does it work :
> >
> > - the activator create a new instance of hazelcast with a
> new topic,
> > - each websocket connection register to the activator
> > - each time a message is send by client websocket, the
> message is
> > published to the topic hazelcast
> > - in activator, there is a listener to the topic hazelcast
> so when a
> > message comes it's pushed to all registered clients websocket !
> >
> > With hazelcast, you can have an horizontal architecture if
> you add
> > more
> > machines in your cluster.
> >
> >
> > Le 09/07/2014 01:05, Achim Nierbeck [via Karaf] a écrit :
> > > I tried to run the autobahn-websocket test sample [1] from
> the jetty
> > > sources, but either my client was wrong or it didn't work :/
> > > I will investigate this more, though I've seen reports
> where it did
> > > work right away so I'm not sure if this is really something
> > needed to
> > > be done with Pax Web. I'll keep investigating.
> > >
> > > regards, Achim
> > >
> > > [1] -
> > https://github.com/jetty-project/jetty-autobahn-websocket-webapp
> > >
> > >
> > >
> > > 2014-07-08 18:12 GMT+02:00 Achim Nierbeck <[hidden email]
> > > </user/SendEmail.jtp?type=node&node=4034077&i=0>>:
> > >
> > > After giving it a quick glance, it seems like this can
> easily be
> > > configured using the Jetty.xml
> > > I'm gonna investigate this a bit more.
> > >
> > > regards, Achim
> > >
> > >
> > > 2014-07-08 18:06 GMT+02:00 Achim Nierbeck <[hidden email]
> > > </user/SendEmail.jtp?type=node&node=4034077&i=1>>:
> > >
> > > Hi,
> > >
> > > ok, I'm gonna give it a try, it very well needs
> some special
> > > handling in Pax Web.
> > >
> > > regards, Achim
> > >
> > >
> > > 2014-07-08 17:39 GMT+02:00 jimmy <[hidden email]
> > > </user/SendEmail.jtp?type=node&node=4034077&i=2>>:
> > >
> > > I've all deleted, and redownloaded the apache
> karaf....
> > > Now, i don't have the problem of 404 of static
> files
> > > anymore...
> > >
> > > But !
> > > The websocket doesn't work !!!!
> > >
> > > Maybe there is something to do in pax-web ?
> > >
> > > In a standalone jetty (without osgi), there is a
> > > *WebSocketServerContainerInitializer*
> > >
> > >
> > >
> > > Server server = new Server();
> > > ServerConnector connector = new
> > ServerConnector(server);
> > > connector.setPort(8081);
> > > server.addConnector(connector);
> > >
> > > // Setup the basic application "context"
> for this
> > > application at "/"
> > > // This is also known as the handler tree
> (in jetty
> > > speak)
> > > ServletContextHandler context = new
> > > ServletContextHandler(ServletContextHandler.SESSIONS);
> > > context.setContextPath("/cloud-websocket");
> > >
> > > // server.setHandler(context);
> > >
> > > ResourceHandler resource_handler = new
> > ResourceHandler();
> > > resource_handler.setDirectoriesListed(true);
> > > resource_handler.setWelcomeFiles(new String[]
> > {"index.jsp"});
> > >
> > > resource_handler.setResourceBase(".");
> > >
> > > HandlerList handlers = new HandlerList();
> > > handlers.setHandlers(new Handler[]
> > {resource_handler,
> > > context});
> > > server.setHandler(handlers);
> > >
> > > try {
> > > WebSocketActivator.init(); // WebSocketActivator
> > > contains the
> > > @ServerEndpoint
> > >
> > > // Initialize javax.websocket layer
> > > * ServerContainer wscontainer =
> > >
> WebSocketServerContainerInitializer.configureContext(context);*
> > >
> > > // Add WebSocket endpoint to
> javax.websocket
> > layer
> > > wscontainer.addEndpoint(WebSocketActivator.class);
> > >
> > > server.start();
> > > server.dump(System.err);
> > > // server.join();
> > > }
> > > catch (Throwable t) {
> > > t.printStackTrace(System.err);
> > > }
> > >
> > >
> > >
> > > i've found the example at
> > >
> >
> https://github.com/jetty-project/embedded-jetty-websocket-examples/blob/master/javax.websocket-example/src/main/java/org/eclipse/jetty/demo/EventServer.java
> > >
> > >
> > >
> > > Le 08/07/2014 13:46, Achim Nierbeck [via Karaf] a
> > écrit :
> > > > Just use your regular github account, that's
> all to
> > > access ops4j.
> > > > And if you wish I'd give you direct access
> to the
> > ops4j
> > > repo.
> > > >
> > > > regards, Achim
> > > >
> > > >
> > > > 2014-07-08 12:26 GMT+02:00 jimmy <[hidden email]
> > > >
> </user/SendEmail.jtp?type=node&node=4034057&i=0>>:
> > > >
> > > > Ok, i'll share it when it works.
> > > > Is there a special git account for push or i
> > have to
> > > share it via
> > > > a zip
> > > > file..
> > > >
> > > > regards, Jimmy
> > > >
> > > > Le 08/07/2014 11:51, Achim Nierbeck [via
> Karaf] a
> > > écrit :
> > > > > One more ...
> > > > > if you have a simple Websocket sample
> that could
> > > be used as
> > > > sample for
> > > > > Pax Web [1]
> > > > > I would be more than happy to add it
> to the
> > > samples and integration
> > > > > tests for it :)
> > > > >
> > > > > regards, Achim
> > > > >
> > > > > [1] -
> > > https://github.com/ops4j/org.ops4j.pax.web/tree/master/samples
> > > > >
> > > > >
> > > > > 2014-07-08 11:49 GMT+02:00 Achim Nierbeck
> > <[hidden
> > > email]
> > > > >
> > </user/SendEmail.jtp?type=node&node=4034052&i=0>>:
> > > > >
> > > > > Ok, you cleaned the Karaf. But
> that doesn't
> > > clean such files, so
> > > > > you most likely still got the
> > > > > "old" jetty.xml for Jetty8.
> > > > > The feauture deployer doesn't override
> > config
> > > files cause they
> > > > > might be altered.
> > > > >
> > > > > regards, Achim
> > > > >
> > > > >
> > > > > 2014-07-08 11:44 GMT+02:00 jimmy
> > <[hidden email]
> > > > >
> > </user/SendEmail.jtp?type=node&node=4034052&i=1>>:
> > > > >
> > > > > Sorry,
> > > > >
> > > > > in fact The default jetty.xml
> content
> > > does'nt match with
> > > > jetty
> > > > > 9 default
> > > > > configuration.
> > > > >
> > > > > i replace the content of
> jetty.xml with
> > > > >
> > > > > <Call name="addConnector">
> > > > > <Arg>
> > > > > <New
> > > class="org.eclipse.jetty.server.ServerConnector">
> > > > > <Arg name="server"><Ref refid="Server"
> /></Arg>
> > > > > <Arg name="factories">
> > > > > <Array
> > > > >
> > type="org.eclipse.jetty.server.ConnectionFactory">
> > > > > <Item>
> > > > > <New
> > > > >
> > > class="org.eclipse.jetty.server.HttpConnectionFactory">
> > > > > <Arg name="config"><Ref
> refid="httpConfig"
> > > > > /></Arg>
> > > > > </New>
> > > > > </Item>
> > > > > </Array>
> > > > > </Arg>
> > > > > <Set name="host"><Property
> name="jetty.host"
> > > > /></Set>
> > > > > <Set name="port"><Property
> name="jetty.port"
> > > > > default="80" /></Set>
> > > > > <Set name="idleTimeout"><Property
> > > > name="http.timeout"
> > > > > default="30000"/></Set>
> > > > > <Set name="soLingerTime"><Property
> > > > > name="http.soLingerTime"
> > > > > default="-1"/></Set>
> > > > > </New>
> > > > > </Arg>
> > > > > </Call>
> > > > >
> > > > >
> > > > >
> > > > > I don't have any error but the
> > application
> > > is now not
> > > > deployed....
> > > > > I'm searching...
> > > > >
> > > > > I'll keep you posted
> > > > >
> > > > > Thank you Achim
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > View this message in context:
> > > > >
> > >
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034050.html
> > > > > Sent from the Karaf - User
> mailing list
> > > archive at
> > > > Nabble.com.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > Apache Member
> > > > > Apache Karaf
> <http://karaf.apache.org/>
> > > Committer & PMC
> > > > > OPS4J Pax Web
> > > <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > > > Committer & Project Lead
> > > > > blog <http://notizblog.nierbeck.de/>
> > > > >
> > > > > Software Architect / Project
> Manager / Scrum
> > > Master
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > Apache Member
> > > > > Apache Karaf <http://karaf.apache.org/>
> > Committer
> > > & PMC
> > > > > OPS4J Pax Web
> > > <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > > > Committer & Project Lead
> > > > > blog <http://notizblog.nierbeck.de/>
> > > > >
> > > > > Software Architect / Project Manager /
> Scrum
> > Master
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> ------------------------------------------------------------------------
> > > > > If you reply to this email, your
> message will be
> > > added to the
> > > > > discussion below:
> > > > >
> > >
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034052.html
> > > > > To unsubscribe from WebSocket, click here
> > > > > <> NAML
> > > > >
> > > >
> > >
> >
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> > > > >
> > > >
> > > > --
> > > >
> > > > *Jimmy PANNIER*
> > > > Ingénieur de développement
> > > > Pôle Édition
> > > >
> > > > 169, Rue Sadi Carnot
> > > > 59350 Saint André-Lez-Lille
> > > > 03.20.06.16.17
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > logo_inovelan_mini.png (6K)
> > > >
> > >
> >
> <http://karaf.922171.n3.nabble.com/attachment/4034055/0/logo_inovelan_mini.png>
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > View this message in context:
> > > >
> > >
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034055.html
> > > > Sent from the Karaf - User mailing list
> archive at
> > > Nabble.com.
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Apache Member
> > > > Apache Karaf <http://karaf.apache.org/>
> Committer
> > & PMC
> > > > OPS4J Pax Web
> > > <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > > Committer & Project Lead
> > > > blog <http://notizblog.nierbeck.de/>
> > > >
> > > > Software Architect / Project Manager / Scrum
> Master
> > > >
> > > >
> > > >
> > > >
> > >
> >
> ------------------------------------------------------------------------
> > > > If you reply to this email, your message
> will be added
> > > to the
> > > > discussion below:
> > > >
> > >
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034057.html
> > > > To unsubscribe from WebSocket, click here
> > > > <> NAML
> > > >
> > >
> >
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> > > >
> > >
> > > --
> > >
> > > *Jimmy PANNIER*
> > > Ingénieur de développement
> > > Pôle Édition
> > >
> > > 169, Rue Sadi Carnot
> > > 59350 Saint André-Lez-Lille
> > > 03.20.06.16.17
> > >
> > >
> > >
> > >
> > >
> > > logo_inovelan_mini.png (6K)
> > >
> >
> <http://karaf.922171.n3.nabble.com/attachment/4034059/0/logo_inovelan_mini.png>
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034059.html
> > > Sent from the Karaf - User mailing list archive at
> > Nabble.com.
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Apache Member
> > > Apache Karaf <http://karaf.apache.org/> Committer
> & PMC
> > > OPS4J Pax Web
> > <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > Committer & Project Lead
> > > blog <http://notizblog.nierbeck.de/>
> > >
> > > Software Architect / Project Manager / Scrum Master
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Apache Member
> > > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > > OPS4J Pax Web
> <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > Committer & Project Lead
> > > blog <http://notizblog.nierbeck.de/>
> > >
> > > Software Architect / Project Manager / Scrum Master
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Apache Member
> > > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > Committer & Project Lead
> > > blog <http://notizblog.nierbeck.de/>
> > >
> > > Software Architect / Project Manager / Scrum Master
> > >
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------
> > > If you reply to this email, your message will be added to the
> > > discussion below:
> > >
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034077.html
> > > To unsubscribe from WebSocket, click here
> > > <> NAML
> > >
> >
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> > >
> >
> > --
> >
> > *Jimmy PANNIER*
> > Ingénieur de développement
> > Pôle Édition
> >
> > 169, Rue Sadi Carnot
> > 59350 Saint André-Lez-Lille
> > 03.20.06.16.17
> >
> >
> >
> >
> >
> > logo_inovelan_mini.png (6K)
> >
> <http://karaf.922171.n3.nabble.com/attachment/4034091/0/logo_inovelan_mini.png>
> >
> >
> >
> >
> > --
> > View this message in context:
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034091.html
> > Sent from the Karaf - User mailing list archive at Nabble.com.
> >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > Committer & Project Lead
> > blog <http://notizblog.nierbeck.de/>
> >
> > Software Architect / Project Manager / Scrum Master
> >
> >
> >
> >
> ------------------------------------------------------------------------
> > If you reply to this email, your message will be added to the
> > discussion below:
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034106.html
> > To unsubscribe from WebSocket, click here
> > <> NAML
> >
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> >
>
> --
>
> *Jimmy PANNIER*
> Ingénieur de développement
> Pôle Édition
>
> 169, Rue Sadi Carnot
> 59350 Saint André-Lez-Lille
> 03.20.06.16.17
>
>
>
>
>
> logo_inovelan_mini.png (6K)
> <http://karaf.922171.n3.nabble.com/attachment/4034115/0/logo_inovelan_mini.png>
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034115.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer & Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the
> discussion below:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034117.html
> To unsubscribe from WebSocket, click here
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4034012&code=amltbXkucGFubmllckBpbm92ZWxhbi5mcnw0MDM0MDEyfC01NTUxNDMzNzU=>.
> NAML
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
*Jimmy PANNIER*
Ingénieur de développement
Pôle Édition
169, Rue Sadi Carnot
59350 Saint André-Lez-Lille
03.20.06.16.17
logo_inovelan_mini.png (6K) <http://karaf.922171.n3.nabble.com/attachment/4034118/0/logo_inovelan_mini.png>
--
View this message in context: http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034118.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: WebSocket
Posted by Achim Nierbeck <bc...@googlemail.com>.
That would be awesome :)
just give me your github ID and I'll add you to the pax web team.
So you can add it as a sample if you want :)
regards, Achim
2014-07-10 9:07 GMT+02:00 jimmy <ji...@inovelan.fr>:
> I have a working project if you want...
>
> Le 09/07/2014 21:20, Achim Nierbeck [via Karaf] a écrit :
> > I tried with the jetty websocket test app [1].
> > But failed with it. I'll try with a simple sample.
> >
> > regards, Achim
> >
> > [1] -https://github.com/jetty-project/jetty-autobahn-websocket-webapp
> >
> >
> > 2014-07-09 15:54 GMT+02:00 jimmy <[hidden email]
> > </user/SendEmail.jtp?type=node&node=4034106&i=0>>:
> >
> > Achim,
> >
> > Could you give an access to your sample, I'll push a project with
> > websocket and hazelcast features.
> >
> >
> > Here How does it work :
> >
> > - the activator create a new instance of hazelcast with a new topic,
> > - each websocket connection register to the activator
> > - each time a message is send by client websocket, the message is
> > published to the topic hazelcast
> > - in activator, there is a listener to the topic hazelcast so when a
> > message comes it's pushed to all registered clients websocket !
> >
> > With hazelcast, you can have an horizontal architecture if you add
> > more
> > machines in your cluster.
> >
> >
> > Le 09/07/2014 01:05, Achim Nierbeck [via Karaf] a écrit :
> > > I tried to run the autobahn-websocket test sample [1] from the
> jetty
> > > sources, but either my client was wrong or it didn't work :/
> > > I will investigate this more, though I've seen reports where it did
> > > work right away so I'm not sure if this is really something
> > needed to
> > > be done with Pax Web. I'll keep investigating.
> > >
> > > regards, Achim
> > >
> > > [1] -
> > https://github.com/jetty-project/jetty-autobahn-websocket-webapp
> > >
> > >
> > >
> > > 2014-07-08 18:12 GMT+02:00 Achim Nierbeck <[hidden email]
> > > </user/SendEmail.jtp?type=node&node=4034077&i=0>>:
> > >
> > > After giving it a quick glance, it seems like this can easily
> be
> > > configured using the Jetty.xml
> > > I'm gonna investigate this a bit more.
> > >
> > > regards, Achim
> > >
> > >
> > > 2014-07-08 18:06 GMT+02:00 Achim Nierbeck <[hidden email]
> > > </user/SendEmail.jtp?type=node&node=4034077&i=1>>:
> > >
> > > Hi,
> > >
> > > ok, I'm gonna give it a try, it very well needs some
> special
> > > handling in Pax Web.
> > >
> > > regards, Achim
> > >
> > >
> > > 2014-07-08 17:39 GMT+02:00 jimmy <[hidden email]
> > > </user/SendEmail.jtp?type=node&node=4034077&i=2>>:
> > >
> > > I've all deleted, and redownloaded the apache karaf....
> > > Now, i don't have the problem of 404 of static files
> > > anymore...
> > >
> > > But !
> > > The websocket doesn't work !!!!
> > >
> > > Maybe there is something to do in pax-web ?
> > >
> > > In a standalone jetty (without osgi), there is a
> > > *WebSocketServerContainerInitializer*
> > >
> > >
> > >
> > > Server server = new Server();
> > > ServerConnector connector = new
> > ServerConnector(server);
> > > connector.setPort(8081);
> > > server.addConnector(connector);
> > >
> > > // Setup the basic application "context" for this
> > > application at "/"
> > > // This is also known as the handler tree (in
> jetty
> > > speak)
> > > ServletContextHandler context = new
> > > ServletContextHandler(ServletContextHandler.SESSIONS);
> > > context.setContextPath("/cloud-websocket");
> > >
> > > // server.setHandler(context);
> > >
> > > ResourceHandler resource_handler = new
> > ResourceHandler();
> > > resource_handler.setDirectoriesListed(true);
> > > resource_handler.setWelcomeFiles(new String[]
> > {"index.jsp"});
> > >
> > > resource_handler.setResourceBase(".");
> > >
> > > HandlerList handlers = new HandlerList();
> > > handlers.setHandlers(new Handler[]
> > {resource_handler,
> > > context});
> > > server.setHandler(handlers);
> > >
> > > try {
> > > WebSocketActivator.init(); // WebSocketActivator
> > > contains the
> > > @ServerEndpoint
> > >
> > > // Initialize javax.websocket layer
> > > * ServerContainer wscontainer =
> > > WebSocketServerContainerInitializer.configureContext(context);*
> > >
> > > // Add WebSocket endpoint to javax.websocket
> > layer
> > > wscontainer.addEndpoint(WebSocketActivator.class);
> > >
> > > server.start();
> > > server.dump(System.err);
> > > // server.join();
> > > }
> > > catch (Throwable t) {
> > > t.printStackTrace(System.err);
> > > }
> > >
> > >
> > >
> > > i've found the example at
> > >
> >
> https://github.com/jetty-project/embedded-jetty-websocket-examples/blob/master/javax.websocket-example/src/main/java/org/eclipse/jetty/demo/EventServer.java
> > >
> > >
> > >
> > > Le 08/07/2014 13:46, Achim Nierbeck [via Karaf] a
> > écrit :
> > > > Just use your regular github account, that's all to
> > > access ops4j.
> > > > And if you wish I'd give you direct access to the
> > ops4j
> > > repo.
> > > >
> > > > regards, Achim
> > > >
> > > >
> > > > 2014-07-08 12:26 GMT+02:00 jimmy <[hidden email]
> > > > </user/SendEmail.jtp?type=node&node=4034057&i=0>>:
> > > >
> > > > Ok, i'll share it when it works.
> > > > Is there a special git account for push or i
> > have to
> > > share it via
> > > > a zip
> > > > file..
> > > >
> > > > regards, Jimmy
> > > >
> > > > Le 08/07/2014 11:51, Achim Nierbeck [via Karaf] a
> > > écrit :
> > > > > One more ...
> > > > > if you have a simple Websocket sample that
> could
> > > be used as
> > > > sample for
> > > > > Pax Web [1]
> > > > > I would be more than happy to add it to the
> > > samples and integration
> > > > > tests for it :)
> > > > >
> > > > > regards, Achim
> > > > >
> > > > > [1] -
> > > https://github.com/ops4j/org.ops4j.pax.web/tree/master/samples
> > > > >
> > > > >
> > > > > 2014-07-08 11:49 GMT+02:00 Achim Nierbeck
> > <[hidden
> > > email]
> > > > >
> > </user/SendEmail.jtp?type=node&node=4034052&i=0>>:
> > > > >
> > > > > Ok, you cleaned the Karaf. But that doesn't
> > > clean such files, so
> > > > > you most likely still got the
> > > > > "old" jetty.xml for Jetty8.
> > > > > The feauture deployer doesn't override
> > config
> > > files cause they
> > > > > might be altered.
> > > > >
> > > > > regards, Achim
> > > > >
> > > > >
> > > > > 2014-07-08 11:44 GMT+02:00 jimmy
> > <[hidden email]
> > > > >
> > </user/SendEmail.jtp?type=node&node=4034052&i=1>>:
> > > > >
> > > > > Sorry,
> > > > >
> > > > > in fact The default jetty.xml content
> > > does'nt match with
> > > > jetty
> > > > > 9 default
> > > > > configuration.
> > > > >
> > > > > i replace the content of jetty.xml with
> > > > >
> > > > > <Call name="addConnector">
> > > > > <Arg>
> > > > > <New
> > > class="org.eclipse.jetty.server.ServerConnector">
> > > > > <Arg name="server"><Ref refid="Server" /></Arg>
> > > > > <Arg name="factories">
> > > > > <Array
> > > > >
> > type="org.eclipse.jetty.server.ConnectionFactory">
> > > > > <Item>
> > > > > <New
> > > > >
> > > class="org.eclipse.jetty.server.HttpConnectionFactory">
> > > > > <Arg name="config"><Ref refid="httpConfig"
> > > > > /></Arg>
> > > > > </New>
> > > > > </Item>
> > > > > </Array>
> > > > > </Arg>
> > > > > <Set name="host"><Property name="jetty.host"
> > > > /></Set>
> > > > > <Set name="port"><Property name="jetty.port"
> > > > > default="80" /></Set>
> > > > > <Set name="idleTimeout"><Property
> > > > name="http.timeout"
> > > > > default="30000"/></Set>
> > > > > <Set name="soLingerTime"><Property
> > > > > name="http.soLingerTime"
> > > > > default="-1"/></Set>
> > > > > </New>
> > > > > </Arg>
> > > > > </Call>
> > > > >
> > > > >
> > > > >
> > > > > I don't have any error but the
> > application
> > > is now not
> > > > deployed....
> > > > > I'm searching...
> > > > >
> > > > > I'll keep you posted
> > > > >
> > > > > Thank you Achim
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > View this message in context:
> > > > >
> > > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034050.html
> > > > > Sent from the Karaf - User mailing list
> > > archive at
> > > > Nabble.com.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > Apache Member
> > > > > Apache Karaf <http://karaf.apache.org/>
> > > Committer & PMC
> > > > > OPS4J Pax Web
> > > <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > > > Committer & Project Lead
> > > > > blog <http://notizblog.nierbeck.de/>
> > > > >
> > > > > Software Architect / Project Manager /
> Scrum
> > > Master
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > Apache Member
> > > > > Apache Karaf <http://karaf.apache.org/>
> > Committer
> > > & PMC
> > > > > OPS4J Pax Web
> > > <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > > > Committer & Project Lead
> > > > > blog <http://notizblog.nierbeck.de/>
> > > > >
> > > > > Software Architect / Project Manager / Scrum
> > Master
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> ------------------------------------------------------------------------
> > > > > If you reply to this email, your message will
> be
> > > added to the
> > > > > discussion below:
> > > > >
> > > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034052.html
> > > > > To unsubscribe from WebSocket, click here
> > > > > <> NAML
> > > > >
> > > >
> > >
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> > > > >
> > > >
> > > > --
> > > >
> > > > *Jimmy PANNIER*
> > > > Ingénieur de développement
> > > > Pôle Édition
> > > >
> > > > 169, Rue Sadi Carnot
> > > > 59350 Saint André-Lez-Lille
> > > > 03.20.06.16.17
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > logo_inovelan_mini.png (6K)
> > > >
> > >
> > <
> http://karaf.922171.n3.nabble.com/attachment/4034055/0/logo_inovelan_mini.png
> >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > View this message in context:
> > > >
> > > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034055.html
> > > > Sent from the Karaf - User mailing list archive
> at
> > > Nabble.com.
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Apache Member
> > > > Apache Karaf <http://karaf.apache.org/> Committer
> > & PMC
> > > > OPS4J Pax Web
> > > <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > > Committer & Project Lead
> > > > blog <http://notizblog.nierbeck.de/>
> > > >
> > > > Software Architect / Project Manager / Scrum Master
> > > >
> > > >
> > > >
> > > >
> > >
> >
> ------------------------------------------------------------------------
> > > > If you reply to this email, your message will be
> added
> > > to the
> > > > discussion below:
> > > >
> > > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034057.html
> > > > To unsubscribe from WebSocket, click here
> > > > <> NAML
> > > >
> > >
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> > > >
> > >
> > > --
> > >
> > > *Jimmy PANNIER*
> > > Ingénieur de développement
> > > Pôle Édition
> > >
> > > 169, Rue Sadi Carnot
> > > 59350 Saint André-Lez-Lille
> > > 03.20.06.16.17
> > >
> > >
> > >
> > >
> > >
> > > logo_inovelan_mini.png (6K)
> > >
> > <
> http://karaf.922171.n3.nabble.com/attachment/4034059/0/logo_inovelan_mini.png
> >
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034059.html
> > > Sent from the Karaf - User mailing list archive at
> > Nabble.com.
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Apache Member
> > > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > > OPS4J Pax Web
> > <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > Committer & Project Lead
> > > blog <http://notizblog.nierbeck.de/>
> > >
> > > Software Architect / Project Manager / Scrum Master
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Apache Member
> > > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > Committer & Project Lead
> > > blog <http://notizblog.nierbeck.de/>
> > >
> > > Software Architect / Project Manager / Scrum Master
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Apache Member
> > > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > Committer & Project Lead
> > > blog <http://notizblog.nierbeck.de/>
> > >
> > > Software Architect / Project Manager / Scrum Master
> > >
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------
> > > If you reply to this email, your message will be added to the
> > > discussion below:
> > > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034077.html
> > > To unsubscribe from WebSocket, click here
> > > <> NAML
> > >
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> > >
> >
> > --
> >
> > *Jimmy PANNIER*
> > Ingénieur de développement
> > Pôle Édition
> >
> > 169, Rue Sadi Carnot
> > 59350 Saint André-Lez-Lille
> > 03.20.06.16.17
> >
> >
> >
> >
> >
> > logo_inovelan_mini.png (6K)
> > <
> http://karaf.922171.n3.nabble.com/attachment/4034091/0/logo_inovelan_mini.png
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034091.html
> > Sent from the Karaf - User mailing list archive at Nabble.com.
> >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > Committer & Project Lead
> > blog <http://notizblog.nierbeck.de/>
> >
> > Software Architect / Project Manager / Scrum Master
> >
> >
> >
> > ------------------------------------------------------------------------
> > If you reply to this email, your message will be added to the
> > discussion below:
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034106.html
> > To unsubscribe from WebSocket, click here
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4034012&code=amltbXkucGFubmllckBpbm92ZWxhbi5mcnw0MDM0MDEyfC01NTUxNDMzNzU=
> >.
> > NAML
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
> --
>
> *Jimmy PANNIER*
> Ingénieur de développement
> Pôle Édition
>
> 169, Rue Sadi Carnot
> 59350 Saint André-Lez-Lille
> 03.20.06.16.17
>
>
>
>
>
> logo_inovelan_mini.png (6K) <
> http://karaf.922171.n3.nabble.com/attachment/4034115/0/logo_inovelan_mini.png
> >
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034115.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Software Architect / Project Manager / Scrum Master
Re: WebSocket
Posted by jimmy <ji...@inovelan.fr>.
I have a working project if you want...
Le 09/07/2014 21:20, Achim Nierbeck [via Karaf] a écrit :
> I tried with the jetty websocket test app [1].
> But failed with it. I'll try with a simple sample.
>
> regards, Achim
>
> [1] -https://github.com/jetty-project/jetty-autobahn-websocket-webapp
>
>
> 2014-07-09 15:54 GMT+02:00 jimmy <[hidden email]
> </user/SendEmail.jtp?type=node&node=4034106&i=0>>:
>
> Achim,
>
> Could you give an access to your sample, I'll push a project with
> websocket and hazelcast features.
>
>
> Here How does it work :
>
> - the activator create a new instance of hazelcast with a new topic,
> - each websocket connection register to the activator
> - each time a message is send by client websocket, the message is
> published to the topic hazelcast
> - in activator, there is a listener to the topic hazelcast so when a
> message comes it's pushed to all registered clients websocket !
>
> With hazelcast, you can have an horizontal architecture if you add
> more
> machines in your cluster.
>
>
> Le 09/07/2014 01:05, Achim Nierbeck [via Karaf] a écrit :
> > I tried to run the autobahn-websocket test sample [1] from the jetty
> > sources, but either my client was wrong or it didn't work :/
> > I will investigate this more, though I've seen reports where it did
> > work right away so I'm not sure if this is really something
> needed to
> > be done with Pax Web. I'll keep investigating.
> >
> > regards, Achim
> >
> > [1] -
> https://github.com/jetty-project/jetty-autobahn-websocket-webapp
> >
> >
> >
> > 2014-07-08 18:12 GMT+02:00 Achim Nierbeck <[hidden email]
> > </user/SendEmail.jtp?type=node&node=4034077&i=0>>:
> >
> > After giving it a quick glance, it seems like this can easily be
> > configured using the Jetty.xml
> > I'm gonna investigate this a bit more.
> >
> > regards, Achim
> >
> >
> > 2014-07-08 18:06 GMT+02:00 Achim Nierbeck <[hidden email]
> > </user/SendEmail.jtp?type=node&node=4034077&i=1>>:
> >
> > Hi,
> >
> > ok, I'm gonna give it a try, it very well needs some special
> > handling in Pax Web.
> >
> > regards, Achim
> >
> >
> > 2014-07-08 17:39 GMT+02:00 jimmy <[hidden email]
> > </user/SendEmail.jtp?type=node&node=4034077&i=2>>:
> >
> > I've all deleted, and redownloaded the apache karaf....
> > Now, i don't have the problem of 404 of static files
> > anymore...
> >
> > But !
> > The websocket doesn't work !!!!
> >
> > Maybe there is something to do in pax-web ?
> >
> > In a standalone jetty (without osgi), there is a
> > *WebSocketServerContainerInitializer*
> >
> >
> >
> > Server server = new Server();
> > ServerConnector connector = new
> ServerConnector(server);
> > connector.setPort(8081);
> > server.addConnector(connector);
> >
> > // Setup the basic application "context" for this
> > application at "/"
> > // This is also known as the handler tree (in jetty
> > speak)
> > ServletContextHandler context = new
> > ServletContextHandler(ServletContextHandler.SESSIONS);
> > context.setContextPath("/cloud-websocket");
> >
> > // server.setHandler(context);
> >
> > ResourceHandler resource_handler = new
> ResourceHandler();
> > resource_handler.setDirectoriesListed(true);
> > resource_handler.setWelcomeFiles(new String[]
> {"index.jsp"});
> >
> > resource_handler.setResourceBase(".");
> >
> > HandlerList handlers = new HandlerList();
> > handlers.setHandlers(new Handler[]
> {resource_handler,
> > context});
> > server.setHandler(handlers);
> >
> > try {
> > WebSocketActivator.init(); // WebSocketActivator
> > contains the
> > @ServerEndpoint
> >
> > // Initialize javax.websocket layer
> > * ServerContainer wscontainer =
> > WebSocketServerContainerInitializer.configureContext(context);*
> >
> > // Add WebSocket endpoint to javax.websocket
> layer
> > wscontainer.addEndpoint(WebSocketActivator.class);
> >
> > server.start();
> > server.dump(System.err);
> > // server.join();
> > }
> > catch (Throwable t) {
> > t.printStackTrace(System.err);
> > }
> >
> >
> >
> > i've found the example at
> >
> https://github.com/jetty-project/embedded-jetty-websocket-examples/blob/master/javax.websocket-example/src/main/java/org/eclipse/jetty/demo/EventServer.java
> >
> >
> >
> > Le 08/07/2014 13:46, Achim Nierbeck [via Karaf] a
> écrit :
> > > Just use your regular github account, that's all to
> > access ops4j.
> > > And if you wish I'd give you direct access to the
> ops4j
> > repo.
> > >
> > > regards, Achim
> > >
> > >
> > > 2014-07-08 12:26 GMT+02:00 jimmy <[hidden email]
> > > </user/SendEmail.jtp?type=node&node=4034057&i=0>>:
> > >
> > > Ok, i'll share it when it works.
> > > Is there a special git account for push or i
> have to
> > share it via
> > > a zip
> > > file..
> > >
> > > regards, Jimmy
> > >
> > > Le 08/07/2014 11:51, Achim Nierbeck [via Karaf] a
> > écrit :
> > > > One more ...
> > > > if you have a simple Websocket sample that could
> > be used as
> > > sample for
> > > > Pax Web [1]
> > > > I would be more than happy to add it to the
> > samples and integration
> > > > tests for it :)
> > > >
> > > > regards, Achim
> > > >
> > > > [1] -
> > https://github.com/ops4j/org.ops4j.pax.web/tree/master/samples
> > > >
> > > >
> > > > 2014-07-08 11:49 GMT+02:00 Achim Nierbeck
> <[hidden
> > email]
> > > >
> </user/SendEmail.jtp?type=node&node=4034052&i=0>>:
> > > >
> > > > Ok, you cleaned the Karaf. But that doesn't
> > clean such files, so
> > > > you most likely still got the
> > > > "old" jetty.xml for Jetty8.
> > > > The feauture deployer doesn't override
> config
> > files cause they
> > > > might be altered.
> > > >
> > > > regards, Achim
> > > >
> > > >
> > > > 2014-07-08 11:44 GMT+02:00 jimmy
> <[hidden email]
> > > >
> </user/SendEmail.jtp?type=node&node=4034052&i=1>>:
> > > >
> > > > Sorry,
> > > >
> > > > in fact The default jetty.xml content
> > does'nt match with
> > > jetty
> > > > 9 default
> > > > configuration.
> > > >
> > > > i replace the content of jetty.xml with
> > > >
> > > > <Call name="addConnector">
> > > > <Arg>
> > > > <New
> > class="org.eclipse.jetty.server.ServerConnector">
> > > > <Arg name="server"><Ref refid="Server" /></Arg>
> > > > <Arg name="factories">
> > > > <Array
> > > >
> type="org.eclipse.jetty.server.ConnectionFactory">
> > > > <Item>
> > > > <New
> > > >
> > class="org.eclipse.jetty.server.HttpConnectionFactory">
> > > > <Arg name="config"><Ref refid="httpConfig"
> > > > /></Arg>
> > > > </New>
> > > > </Item>
> > > > </Array>
> > > > </Arg>
> > > > <Set name="host"><Property name="jetty.host"
> > > /></Set>
> > > > <Set name="port"><Property name="jetty.port"
> > > > default="80" /></Set>
> > > > <Set name="idleTimeout"><Property
> > > name="http.timeout"
> > > > default="30000"/></Set>
> > > > <Set name="soLingerTime"><Property
> > > > name="http.soLingerTime"
> > > > default="-1"/></Set>
> > > > </New>
> > > > </Arg>
> > > > </Call>
> > > >
> > > >
> > > >
> > > > I don't have any error but the
> application
> > is now not
> > > deployed....
> > > > I'm searching...
> > > >
> > > > I'll keep you posted
> > > >
> > > > Thank you Achim
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > View this message in context:
> > > >
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034050.html
> > > > Sent from the Karaf - User mailing list
> > archive at
> > > Nabble.com.
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Apache Member
> > > > Apache Karaf <http://karaf.apache.org/>
> > Committer & PMC
> > > > OPS4J Pax Web
> > <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > > Committer & Project Lead
> > > > blog <http://notizblog.nierbeck.de/>
> > > >
> > > > Software Architect / Project Manager / Scrum
> > Master
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Apache Member
> > > > Apache Karaf <http://karaf.apache.org/>
> Committer
> > & PMC
> > > > OPS4J Pax Web
> > <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > > Committer & Project Lead
> > > > blog <http://notizblog.nierbeck.de/>
> > > >
> > > > Software Architect / Project Manager / Scrum
> Master
> > > >
> > > >
> > > >
> > > >
> > >
> >
> ------------------------------------------------------------------------
> > > > If you reply to this email, your message will be
> > added to the
> > > > discussion below:
> > > >
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034052.html
> > > > To unsubscribe from WebSocket, click here
> > > > <> NAML
> > > >
> > >
> >
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> > > >
> > >
> > > --
> > >
> > > *Jimmy PANNIER*
> > > Ingénieur de développement
> > > Pôle Édition
> > >
> > > 169, Rue Sadi Carnot
> > > 59350 Saint André-Lez-Lille
> > > 03.20.06.16.17
> > >
> > >
> > >
> > >
> > >
> > > logo_inovelan_mini.png (6K)
> > >
> >
> <http://karaf.922171.n3.nabble.com/attachment/4034055/0/logo_inovelan_mini.png>
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034055.html
> > > Sent from the Karaf - User mailing list archive at
> > Nabble.com.
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Apache Member
> > > Apache Karaf <http://karaf.apache.org/> Committer
> & PMC
> > > OPS4J Pax Web
> > <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > Committer & Project Lead
> > > blog <http://notizblog.nierbeck.de/>
> > >
> > > Software Architect / Project Manager / Scrum Master
> > >
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------
> > > If you reply to this email, your message will be added
> > to the
> > > discussion below:
> > >
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034057.html
> > > To unsubscribe from WebSocket, click here
> > > <> NAML
> > >
> >
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> > >
> >
> > --
> >
> > *Jimmy PANNIER*
> > Ingénieur de développement
> > Pôle Édition
> >
> > 169, Rue Sadi Carnot
> > 59350 Saint André-Lez-Lille
> > 03.20.06.16.17
> >
> >
> >
> >
> >
> > logo_inovelan_mini.png (6K)
> >
> <http://karaf.922171.n3.nabble.com/attachment/4034059/0/logo_inovelan_mini.png>
> >
> >
> >
> >
> > --
> > View this message in context:
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034059.html
> > Sent from the Karaf - User mailing list archive at
> Nabble.com.
> >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web
> <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > Committer & Project Lead
> > blog <http://notizblog.nierbeck.de/>
> >
> > Software Architect / Project Manager / Scrum Master
> >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > Committer & Project Lead
> > blog <http://notizblog.nierbeck.de/>
> >
> > Software Architect / Project Manager / Scrum Master
> >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > Committer & Project Lead
> > blog <http://notizblog.nierbeck.de/>
> >
> > Software Architect / Project Manager / Scrum Master
> >
> >
> >
> >
> ------------------------------------------------------------------------
> > If you reply to this email, your message will be added to the
> > discussion below:
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034077.html
> > To unsubscribe from WebSocket, click here
> > <> NAML
> >
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> >
>
> --
>
> *Jimmy PANNIER*
> Ingénieur de développement
> Pôle Édition
>
> 169, Rue Sadi Carnot
> 59350 Saint André-Lez-Lille
> 03.20.06.16.17
>
>
>
>
>
> logo_inovelan_mini.png (6K)
> <http://karaf.922171.n3.nabble.com/attachment/4034091/0/logo_inovelan_mini.png>
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034091.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer & Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the
> discussion below:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034106.html
> To unsubscribe from WebSocket, click here
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4034012&code=amltbXkucGFubmllckBpbm92ZWxhbi5mcnw0MDM0MDEyfC01NTUxNDMzNzU=>.
> NAML
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
*Jimmy PANNIER*
Ingénieur de développement
Pôle Édition
169, Rue Sadi Carnot
59350 Saint André-Lez-Lille
03.20.06.16.17
logo_inovelan_mini.png (6K) <http://karaf.922171.n3.nabble.com/attachment/4034115/0/logo_inovelan_mini.png>
--
View this message in context: http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034115.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: WebSocket
Posted by Achim Nierbeck <bc...@googlemail.com>.
I tried with the jetty websocket test app [1].
But failed with it. I'll try with a simple sample.
regards, Achim
[1] -https://github.com/jetty-project/jetty-autobahn-websocket-webapp
2014-07-09 15:54 GMT+02:00 jimmy <ji...@inovelan.fr>:
> Achim,
>
> Could you give an access to your sample, I'll push a project with
> websocket and hazelcast features.
>
>
> Here How does it work :
>
> - the activator create a new instance of hazelcast with a new topic,
> - each websocket connection register to the activator
> - each time a message is send by client websocket, the message is
> published to the topic hazelcast
> - in activator, there is a listener to the topic hazelcast so when a
> message comes it's pushed to all registered clients websocket !
>
> With hazelcast, you can have an horizontal architecture if you add more
> machines in your cluster.
>
>
> Le 09/07/2014 01:05, Achim Nierbeck [via Karaf] a écrit :
> > I tried to run the autobahn-websocket test sample [1] from the jetty
> > sources, but either my client was wrong or it didn't work :/
> > I will investigate this more, though I've seen reports where it did
> > work right away so I'm not sure if this is really something needed to
> > be done with Pax Web. I'll keep investigating.
> >
> > regards, Achim
> >
> > [1] - https://github.com/jetty-project/jetty-autobahn-websocket-webapp
> >
> >
> >
> > 2014-07-08 18:12 GMT+02:00 Achim Nierbeck <[hidden email]
> > </user/SendEmail.jtp?type=node&node=4034077&i=0>>:
> >
> > After giving it a quick glance, it seems like this can easily be
> > configured using the Jetty.xml
> > I'm gonna investigate this a bit more.
> >
> > regards, Achim
> >
> >
> > 2014-07-08 18:06 GMT+02:00 Achim Nierbeck <[hidden email]
> > </user/SendEmail.jtp?type=node&node=4034077&i=1>>:
> >
> > Hi,
> >
> > ok, I'm gonna give it a try, it very well needs some special
> > handling in Pax Web.
> >
> > regards, Achim
> >
> >
> > 2014-07-08 17:39 GMT+02:00 jimmy <[hidden email]
> > </user/SendEmail.jtp?type=node&node=4034077&i=2>>:
> >
> > I've all deleted, and redownloaded the apache karaf....
> > Now, i don't have the problem of 404 of static files
> > anymore...
> >
> > But !
> > The websocket doesn't work !!!!
> >
> > Maybe there is something to do in pax-web ?
> >
> > In a standalone jetty (without osgi), there is a
> > *WebSocketServerContainerInitializer*
> >
> >
> >
> > Server server = new Server();
> > ServerConnector connector = new ServerConnector(server);
> > connector.setPort(8081);
> > server.addConnector(connector);
> >
> > // Setup the basic application "context" for this
> > application at "/"
> > // This is also known as the handler tree (in jetty
> > speak)
> > ServletContextHandler context = new
> > ServletContextHandler(ServletContextHandler.SESSIONS);
> > context.setContextPath("/cloud-websocket");
> >
> > // server.setHandler(context);
> >
> > ResourceHandler resource_handler = new
> ResourceHandler();
> > resource_handler.setDirectoriesListed(true);
> > resource_handler.setWelcomeFiles(new String[]
> {"index.jsp"});
> >
> > resource_handler.setResourceBase(".");
> >
> > HandlerList handlers = new HandlerList();
> > handlers.setHandlers(new Handler[] {resource_handler,
> > context});
> > server.setHandler(handlers);
> >
> > try {
> > WebSocketActivator.init(); // WebSocketActivator
> > contains the
> > @ServerEndpoint
> >
> > // Initialize javax.websocket layer
> > * ServerContainer wscontainer =
> >
> WebSocketServerContainerInitializer.configureContext(context);*
> >
> > // Add WebSocket endpoint to javax.websocket layer
> > wscontainer.addEndpoint(WebSocketActivator.class);
> >
> > server.start();
> > server.dump(System.err);
> > // server.join();
> > }
> > catch (Throwable t) {
> > t.printStackTrace(System.err);
> > }
> >
> >
> >
> > i've found the example at
> >
> https://github.com/jetty-project/embedded-jetty-websocket-examples/blob/master/javax.websocket-example/src/main/java/org/eclipse/jetty/demo/EventServer.java
> >
> >
> >
> > Le 08/07/2014 13:46, Achim Nierbeck [via Karaf] a écrit :
> > > Just use your regular github account, that's all to
> > access ops4j.
> > > And if you wish I'd give you direct access to the ops4j
> > repo.
> > >
> > > regards, Achim
> > >
> > >
> > > 2014-07-08 12:26 GMT+02:00 jimmy <[hidden email]
> > > </user/SendEmail.jtp?type=node&node=4034057&i=0>>:
> > >
> > > Ok, i'll share it when it works.
> > > Is there a special git account for push or i have to
> > share it via
> > > a zip
> > > file..
> > >
> > > regards, Jimmy
> > >
> > > Le 08/07/2014 11:51, Achim Nierbeck [via Karaf] a
> > écrit :
> > > > One more ...
> > > > if you have a simple Websocket sample that could
> > be used as
> > > sample for
> > > > Pax Web [1]
> > > > I would be more than happy to add it to the
> > samples and integration
> > > > tests for it :)
> > > >
> > > > regards, Achim
> > > >
> > > > [1] -
> >
> https://github.com/ops4j/org.ops4j.pax.web/tree/master/samples
> > > >
> > > >
> > > > 2014-07-08 11:49 GMT+02:00 Achim Nierbeck <[hidden
> > email]
> > > > </user/SendEmail.jtp?type=node&node=4034052&i=0>>:
> > > >
> > > > Ok, you cleaned the Karaf. But that doesn't
> > clean such files, so
> > > > you most likely still got the
> > > > "old" jetty.xml for Jetty8.
> > > > The feauture deployer doesn't override config
> > files cause they
> > > > might be altered.
> > > >
> > > > regards, Achim
> > > >
> > > >
> > > > 2014-07-08 11:44 GMT+02:00 jimmy <[hidden email]
> > > > </user/SendEmail.jtp?type=node&node=4034052&i=1>>:
> > > >
> > > > Sorry,
> > > >
> > > > in fact The default jetty.xml content
> > does'nt match with
> > > jetty
> > > > 9 default
> > > > configuration.
> > > >
> > > > i replace the content of jetty.xml with
> > > >
> > > > <Call name="addConnector">
> > > > <Arg>
> > > > <New
> > class="org.eclipse.jetty.server.ServerConnector">
> > > > <Arg name="server"><Ref refid="Server" /></Arg>
> > > > <Arg name="factories">
> > > > <Array
> > > > type="org.eclipse.jetty.server.ConnectionFactory">
> > > > <Item>
> > > > <New
> > > >
> > class="org.eclipse.jetty.server.HttpConnectionFactory">
> > > > <Arg name="config"><Ref refid="httpConfig"
> > > > /></Arg>
> > > > </New>
> > > > </Item>
> > > > </Array>
> > > > </Arg>
> > > > <Set name="host"><Property name="jetty.host"
> > > /></Set>
> > > > <Set name="port"><Property name="jetty.port"
> > > > default="80" /></Set>
> > > > <Set name="idleTimeout"><Property
> > > name="http.timeout"
> > > > default="30000"/></Set>
> > > > <Set name="soLingerTime"><Property
> > > > name="http.soLingerTime"
> > > > default="-1"/></Set>
> > > > </New>
> > > > </Arg>
> > > > </Call>
> > > >
> > > >
> > > >
> > > > I don't have any error but the application
> > is now not
> > > deployed....
> > > > I'm searching...
> > > >
> > > > I'll keep you posted
> > > >
> > > > Thank you Achim
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > View this message in context:
> > > >
> >
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034050.html
> > > > Sent from the Karaf - User mailing list
> > archive at
> > > Nabble.com.
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Apache Member
> > > > Apache Karaf <http://karaf.apache.org/>
> > Committer & PMC
> > > > OPS4J Pax Web
> > <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > > Committer & Project Lead
> > > > blog <http://notizblog.nierbeck.de/>
> > > >
> > > > Software Architect / Project Manager / Scrum
> > Master
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Apache Member
> > > > Apache Karaf <http://karaf.apache.org/> Committer
> > & PMC
> > > > OPS4J Pax Web
> > <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > > Committer & Project Lead
> > > > blog <http://notizblog.nierbeck.de/>
> > > >
> > > > Software Architect / Project Manager / Scrum Master
> > > >
> > > >
> > > >
> > > >
> > >
> >
> ------------------------------------------------------------------------
> > > > If you reply to this email, your message will be
> > added to the
> > > > discussion below:
> > > >
> >
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034052.html
> > > > To unsubscribe from WebSocket, click here
> > > > <> NAML
> > > >
> > >
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> > > >
> > >
> > > --
> > >
> > > *Jimmy PANNIER*
> > > Ingénieur de développement
> > > Pôle Édition
> > >
> > > 169, Rue Sadi Carnot
> > > 59350 Saint André-Lez-Lille
> > > 03.20.06.16.17
> > >
> > >
> > >
> > >
> > >
> > > logo_inovelan_mini.png (6K)
> > >
> > <
> http://karaf.922171.n3.nabble.com/attachment/4034055/0/logo_inovelan_mini.png
> >
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034055.html
> > > Sent from the Karaf - User mailing list archive at
> > Nabble.com.
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Apache Member
> > > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > > OPS4J Pax Web
> > <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > Committer & Project Lead
> > > blog <http://notizblog.nierbeck.de/>
> > >
> > > Software Architect / Project Manager / Scrum Master
> > >
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------
> > > If you reply to this email, your message will be added
> > to the
> > > discussion below:
> > >
> >
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034057.html
> > > To unsubscribe from WebSocket, click here
> > > <> NAML
> > >
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> > >
> >
> > --
> >
> > *Jimmy PANNIER*
> > Ingénieur de développement
> > Pôle Édition
> >
> > 169, Rue Sadi Carnot
> > 59350 Saint André-Lez-Lille
> > 03.20.06.16.17
> >
> >
> >
> >
> >
> > logo_inovelan_mini.png (6K)
> > <
> http://karaf.922171.n3.nabble.com/attachment/4034059/0/logo_inovelan_mini.png
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034059.html
> > Sent from the Karaf - User mailing list archive at
> Nabble.com.
> >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > Committer & Project Lead
> > blog <http://notizblog.nierbeck.de/>
> >
> > Software Architect / Project Manager / Scrum Master
> >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > Committer & Project Lead
> > blog <http://notizblog.nierbeck.de/>
> >
> > Software Architect / Project Manager / Scrum Master
> >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > Committer & Project Lead
> > blog <http://notizblog.nierbeck.de/>
> >
> > Software Architect / Project Manager / Scrum Master
> >
> >
> >
> > ------------------------------------------------------------------------
> > If you reply to this email, your message will be added to the
> > discussion below:
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034077.html
> > To unsubscribe from WebSocket, click here
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4034012&code=amltbXkucGFubmllckBpbm92ZWxhbi5mcnw0MDM0MDEyfC01NTUxNDMzNzU=
> >.
> > NAML
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
> --
>
> *Jimmy PANNIER*
> Ingénieur de développement
> Pôle Édition
>
> 169, Rue Sadi Carnot
> 59350 Saint André-Lez-Lille
> 03.20.06.16.17
>
>
>
>
>
> logo_inovelan_mini.png (6K) <
> http://karaf.922171.n3.nabble.com/attachment/4034091/0/logo_inovelan_mini.png
> >
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034091.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Software Architect / Project Manager / Scrum Master
Re: WebSocket
Posted by jimmy <ji...@inovelan.fr>.
Achim,
Could you give an access to your sample, I'll push a project with
websocket and hazelcast features.
Here How does it work :
- the activator create a new instance of hazelcast with a new topic,
- each websocket connection register to the activator
- each time a message is send by client websocket, the message is
published to the topic hazelcast
- in activator, there is a listener to the topic hazelcast so when a
message comes it's pushed to all registered clients websocket !
With hazelcast, you can have an horizontal architecture if you add more
machines in your cluster.
Le 09/07/2014 01:05, Achim Nierbeck [via Karaf] a écrit :
> I tried to run the autobahn-websocket test sample [1] from the jetty
> sources, but either my client was wrong or it didn't work :/
> I will investigate this more, though I've seen reports where it did
> work right away so I'm not sure if this is really something needed to
> be done with Pax Web. I'll keep investigating.
>
> regards, Achim
>
> [1] - https://github.com/jetty-project/jetty-autobahn-websocket-webapp
>
>
>
> 2014-07-08 18:12 GMT+02:00 Achim Nierbeck <[hidden email]
> </user/SendEmail.jtp?type=node&node=4034077&i=0>>:
>
> After giving it a quick glance, it seems like this can easily be
> configured using the Jetty.xml
> I'm gonna investigate this a bit more.
>
> regards, Achim
>
>
> 2014-07-08 18:06 GMT+02:00 Achim Nierbeck <[hidden email]
> </user/SendEmail.jtp?type=node&node=4034077&i=1>>:
>
> Hi,
>
> ok, I'm gonna give it a try, it very well needs some special
> handling in Pax Web.
>
> regards, Achim
>
>
> 2014-07-08 17:39 GMT+02:00 jimmy <[hidden email]
> </user/SendEmail.jtp?type=node&node=4034077&i=2>>:
>
> I've all deleted, and redownloaded the apache karaf....
> Now, i don't have the problem of 404 of static files
> anymore...
>
> But !
> The websocket doesn't work !!!!
>
> Maybe there is something to do in pax-web ?
>
> In a standalone jetty (without osgi), there is a
> *WebSocketServerContainerInitializer*
>
>
>
> Server server = new Server();
> ServerConnector connector = new ServerConnector(server);
> connector.setPort(8081);
> server.addConnector(connector);
>
> // Setup the basic application "context" for this
> application at "/"
> // This is also known as the handler tree (in jetty
> speak)
> ServletContextHandler context = new
> ServletContextHandler(ServletContextHandler.SESSIONS);
> context.setContextPath("/cloud-websocket");
>
> // server.setHandler(context);
>
> ResourceHandler resource_handler = new ResourceHandler();
> resource_handler.setDirectoriesListed(true);
> resource_handler.setWelcomeFiles(new String[] {"index.jsp"});
>
> resource_handler.setResourceBase(".");
>
> HandlerList handlers = new HandlerList();
> handlers.setHandlers(new Handler[] {resource_handler,
> context});
> server.setHandler(handlers);
>
> try {
> WebSocketActivator.init(); // WebSocketActivator
> contains the
> @ServerEndpoint
>
> // Initialize javax.websocket layer
> * ServerContainer wscontainer =
> WebSocketServerContainerInitializer.configureContext(context);*
>
> // Add WebSocket endpoint to javax.websocket layer
> wscontainer.addEndpoint(WebSocketActivator.class);
>
> server.start();
> server.dump(System.err);
> // server.join();
> }
> catch (Throwable t) {
> t.printStackTrace(System.err);
> }
>
>
>
> i've found the example at
> https://github.com/jetty-project/embedded-jetty-websocket-examples/blob/master/javax.websocket-example/src/main/java/org/eclipse/jetty/demo/EventServer.java
>
>
>
> Le 08/07/2014 13:46, Achim Nierbeck [via Karaf] a écrit :
> > Just use your regular github account, that's all to
> access ops4j.
> > And if you wish I'd give you direct access to the ops4j
> repo.
> >
> > regards, Achim
> >
> >
> > 2014-07-08 12:26 GMT+02:00 jimmy <[hidden email]
> > </user/SendEmail.jtp?type=node&node=4034057&i=0>>:
> >
> > Ok, i'll share it when it works.
> > Is there a special git account for push or i have to
> share it via
> > a zip
> > file..
> >
> > regards, Jimmy
> >
> > Le 08/07/2014 11:51, Achim Nierbeck [via Karaf] a
> écrit :
> > > One more ...
> > > if you have a simple Websocket sample that could
> be used as
> > sample for
> > > Pax Web [1]
> > > I would be more than happy to add it to the
> samples and integration
> > > tests for it :)
> > >
> > > regards, Achim
> > >
> > > [1] -
> https://github.com/ops4j/org.ops4j.pax.web/tree/master/samples
> > >
> > >
> > > 2014-07-08 11:49 GMT+02:00 Achim Nierbeck <[hidden
> email]
> > > </user/SendEmail.jtp?type=node&node=4034052&i=0>>:
> > >
> > > Ok, you cleaned the Karaf. But that doesn't
> clean such files, so
> > > you most likely still got the
> > > "old" jetty.xml for Jetty8.
> > > The feauture deployer doesn't override config
> files cause they
> > > might be altered.
> > >
> > > regards, Achim
> > >
> > >
> > > 2014-07-08 11:44 GMT+02:00 jimmy <[hidden email]
> > > </user/SendEmail.jtp?type=node&node=4034052&i=1>>:
> > >
> > > Sorry,
> > >
> > > in fact The default jetty.xml content
> does'nt match with
> > jetty
> > > 9 default
> > > configuration.
> > >
> > > i replace the content of jetty.xml with
> > >
> > > <Call name="addConnector">
> > > <Arg>
> > > <New
> class="org.eclipse.jetty.server.ServerConnector">
> > > <Arg name="server"><Ref refid="Server" /></Arg>
> > > <Arg name="factories">
> > > <Array
> > > type="org.eclipse.jetty.server.ConnectionFactory">
> > > <Item>
> > > <New
> > >
> class="org.eclipse.jetty.server.HttpConnectionFactory">
> > > <Arg name="config"><Ref refid="httpConfig"
> > > /></Arg>
> > > </New>
> > > </Item>
> > > </Array>
> > > </Arg>
> > > <Set name="host"><Property name="jetty.host"
> > /></Set>
> > > <Set name="port"><Property name="jetty.port"
> > > default="80" /></Set>
> > > <Set name="idleTimeout"><Property
> > name="http.timeout"
> > > default="30000"/></Set>
> > > <Set name="soLingerTime"><Property
> > > name="http.soLingerTime"
> > > default="-1"/></Set>
> > > </New>
> > > </Arg>
> > > </Call>
> > >
> > >
> > >
> > > I don't have any error but the application
> is now not
> > deployed....
> > > I'm searching...
> > >
> > > I'll keep you posted
> > >
> > > Thank you Achim
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034050.html
> > > Sent from the Karaf - User mailing list
> archive at
> > Nabble.com.
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Apache Member
> > > Apache Karaf <http://karaf.apache.org/>
> Committer & PMC
> > > OPS4J Pax Web
> <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > Committer & Project Lead
> > > blog <http://notizblog.nierbeck.de/>
> > >
> > > Software Architect / Project Manager / Scrum
> Master
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Apache Member
> > > Apache Karaf <http://karaf.apache.org/> Committer
> & PMC
> > > OPS4J Pax Web
> <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > Committer & Project Lead
> > > blog <http://notizblog.nierbeck.de/>
> > >
> > > Software Architect / Project Manager / Scrum Master
> > >
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------
> > > If you reply to this email, your message will be
> added to the
> > > discussion below:
> > >
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034052.html
> > > To unsubscribe from WebSocket, click here
> > > <> NAML
> > >
> >
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> > >
> >
> > --
> >
> > *Jimmy PANNIER*
> > Ingénieur de développement
> > Pôle Édition
> >
> > 169, Rue Sadi Carnot
> > 59350 Saint André-Lez-Lille
> > 03.20.06.16.17
> >
> >
> >
> >
> >
> > logo_inovelan_mini.png (6K)
> >
> <http://karaf.922171.n3.nabble.com/attachment/4034055/0/logo_inovelan_mini.png>
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034055.html
> > Sent from the Karaf - User mailing list archive at
> Nabble.com.
> >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web
> <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > Committer & Project Lead
> > blog <http://notizblog.nierbeck.de/>
> >
> > Software Architect / Project Manager / Scrum Master
> >
> >
> >
> >
> ------------------------------------------------------------------------
> > If you reply to this email, your message will be added
> to the
> > discussion below:
> >
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034057.html
> > To unsubscribe from WebSocket, click here
> > <> NAML
> >
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> >
>
> --
>
> *Jimmy PANNIER*
> Ingénieur de développement
> Pôle Édition
>
> 169, Rue Sadi Carnot
> 59350 Saint André-Lez-Lille
> 03.20.06.16.17
>
>
>
>
>
> logo_inovelan_mini.png (6K)
> <http://karaf.922171.n3.nabble.com/attachment/4034059/0/logo_inovelan_mini.png>
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034059.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer & Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer & Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer & Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the
> discussion below:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034077.html
> To unsubscribe from WebSocket, click here
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4034012&code=amltbXkucGFubmllckBpbm92ZWxhbi5mcnw0MDM0MDEyfC01NTUxNDMzNzU=>.
> NAML
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
*Jimmy PANNIER*
Ingénieur de développement
Pôle Édition
169, Rue Sadi Carnot
59350 Saint André-Lez-Lille
03.20.06.16.17
logo_inovelan_mini.png (6K) <http://karaf.922171.n3.nabble.com/attachment/4034091/0/logo_inovelan_mini.png>
--
View this message in context: http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034091.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: WebSocket
Posted by jimmy <ji...@inovelan.fr>.
Ohhh, i got it working using the jetty libraries class
In fact, it doesn't work if you only use
javax.websocket.server.ServerEndpoint annotation... Instead in a jetty
environnement you have to use
org.eclipse.jetty.websocket.api.annotations.WebSocket [1] with
javax.servlet.annotation.WebServlet[2]
[1]
http://www.eclipse.org/jetty/documentation/current/jetty-websocket-api-annotations.html#d0e21747
[2]
http://www.eclipse.org/jetty/documentation/current/jetty-websocket-server-api.html#d0e21967
I'll create a clean project to share it.
Thanks a lot Achim for you precious help
Le 09/07/2014 01:05, Achim Nierbeck [via Karaf] a écrit :
> I tried to run the autobahn-websocket test sample [1] from the jetty
> sources, but either my client was wrong or it didn't work :/
> I will investigate this more, though I've seen reports where it did
> work right away so I'm not sure if this is really something needed to
> be done with Pax Web. I'll keep investigating.
>
> regards, Achim
>
> [1] - https://github.com/jetty-project/jetty-autobahn-websocket-webapp
>
>
>
> 2014-07-08 18:12 GMT+02:00 Achim Nierbeck <[hidden email]
> </user/SendEmail.jtp?type=node&node=4034077&i=0>>:
>
> After giving it a quick glance, it seems like this can easily be
> configured using the Jetty.xml
> I'm gonna investigate this a bit more.
>
> regards, Achim
>
>
> 2014-07-08 18:06 GMT+02:00 Achim Nierbeck <[hidden email]
> </user/SendEmail.jtp?type=node&node=4034077&i=1>>:
>
> Hi,
>
> ok, I'm gonna give it a try, it very well needs some special
> handling in Pax Web.
>
> regards, Achim
>
>
> 2014-07-08 17:39 GMT+02:00 jimmy <[hidden email]
> </user/SendEmail.jtp?type=node&node=4034077&i=2>>:
>
> I've all deleted, and redownloaded the apache karaf....
> Now, i don't have the problem of 404 of static files
> anymore...
>
> But !
> The websocket doesn't work !!!!
>
> Maybe there is something to do in pax-web ?
>
> In a standalone jetty (without osgi), there is a
> *WebSocketServerContainerInitializer*
>
>
>
> Server server = new Server();
> ServerConnector connector = new ServerConnector(server);
> connector.setPort(8081);
> server.addConnector(connector);
>
> // Setup the basic application "context" for this
> application at "/"
> // This is also known as the handler tree (in jetty
> speak)
> ServletContextHandler context = new
> ServletContextHandler(ServletContextHandler.SESSIONS);
> context.setContextPath("/cloud-websocket");
>
> // server.setHandler(context);
>
> ResourceHandler resource_handler = new ResourceHandler();
> resource_handler.setDirectoriesListed(true);
> resource_handler.setWelcomeFiles(new String[] {"index.jsp"});
>
> resource_handler.setResourceBase(".");
>
> HandlerList handlers = new HandlerList();
> handlers.setHandlers(new Handler[] {resource_handler,
> context});
> server.setHandler(handlers);
>
> try {
> WebSocketActivator.init(); // WebSocketActivator
> contains the
> @ServerEndpoint
>
> // Initialize javax.websocket layer
> * ServerContainer wscontainer =
> WebSocketServerContainerInitializer.configureContext(context);*
>
> // Add WebSocket endpoint to javax.websocket layer
> wscontainer.addEndpoint(WebSocketActivator.class);
>
> server.start();
> server.dump(System.err);
> // server.join();
> }
> catch (Throwable t) {
> t.printStackTrace(System.err);
> }
>
>
>
> i've found the example at
> https://github.com/jetty-project/embedded-jetty-websocket-examples/blob/master/javax.websocket-example/src/main/java/org/eclipse/jetty/demo/EventServer.java
>
>
>
> Le 08/07/2014 13:46, Achim Nierbeck [via Karaf] a écrit :
> > Just use your regular github account, that's all to
> access ops4j.
> > And if you wish I'd give you direct access to the ops4j
> repo.
> >
> > regards, Achim
> >
> >
> > 2014-07-08 12:26 GMT+02:00 jimmy <[hidden email]
> > </user/SendEmail.jtp?type=node&node=4034057&i=0>>:
> >
> > Ok, i'll share it when it works.
> > Is there a special git account for push or i have to
> share it via
> > a zip
> > file..
> >
> > regards, Jimmy
> >
> > Le 08/07/2014 11:51, Achim Nierbeck [via Karaf] a
> écrit :
> > > One more ...
> > > if you have a simple Websocket sample that could
> be used as
> > sample for
> > > Pax Web [1]
> > > I would be more than happy to add it to the
> samples and integration
> > > tests for it :)
> > >
> > > regards, Achim
> > >
> > > [1] -
> https://github.com/ops4j/org.ops4j.pax.web/tree/master/samples
> > >
> > >
> > > 2014-07-08 11:49 GMT+02:00 Achim Nierbeck <[hidden
> email]
> > > </user/SendEmail.jtp?type=node&node=4034052&i=0>>:
> > >
> > > Ok, you cleaned the Karaf. But that doesn't
> clean such files, so
> > > you most likely still got the
> > > "old" jetty.xml for Jetty8.
> > > The feauture deployer doesn't override config
> files cause they
> > > might be altered.
> > >
> > > regards, Achim
> > >
> > >
> > > 2014-07-08 11:44 GMT+02:00 jimmy <[hidden email]
> > > </user/SendEmail.jtp?type=node&node=4034052&i=1>>:
> > >
> > > Sorry,
> > >
> > > in fact The default jetty.xml content
> does'nt match with
> > jetty
> > > 9 default
> > > configuration.
> > >
> > > i replace the content of jetty.xml with
> > >
> > > <Call name="addConnector">
> > > <Arg>
> > > <New
> class="org.eclipse.jetty.server.ServerConnector">
> > > <Arg name="server"><Ref refid="Server" /></Arg>
> > > <Arg name="factories">
> > > <Array
> > > type="org.eclipse.jetty.server.ConnectionFactory">
> > > <Item>
> > > <New
> > >
> class="org.eclipse.jetty.server.HttpConnectionFactory">
> > > <Arg name="config"><Ref refid="httpConfig"
> > > /></Arg>
> > > </New>
> > > </Item>
> > > </Array>
> > > </Arg>
> > > <Set name="host"><Property name="jetty.host"
> > /></Set>
> > > <Set name="port"><Property name="jetty.port"
> > > default="80" /></Set>
> > > <Set name="idleTimeout"><Property
> > name="http.timeout"
> > > default="30000"/></Set>
> > > <Set name="soLingerTime"><Property
> > > name="http.soLingerTime"
> > > default="-1"/></Set>
> > > </New>
> > > </Arg>
> > > </Call>
> > >
> > >
> > >
> > > I don't have any error but the application
> is now not
> > deployed....
> > > I'm searching...
> > >
> > > I'll keep you posted
> > >
> > > Thank you Achim
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034050.html
> > > Sent from the Karaf - User mailing list
> archive at
> > Nabble.com.
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Apache Member
> > > Apache Karaf <http://karaf.apache.org/>
> Committer & PMC
> > > OPS4J Pax Web
> <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > Committer & Project Lead
> > > blog <http://notizblog.nierbeck.de/>
> > >
> > > Software Architect / Project Manager / Scrum
> Master
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Apache Member
> > > Apache Karaf <http://karaf.apache.org/> Committer
> & PMC
> > > OPS4J Pax Web
> <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > Committer & Project Lead
> > > blog <http://notizblog.nierbeck.de/>
> > >
> > > Software Architect / Project Manager / Scrum Master
> > >
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------
> > > If you reply to this email, your message will be
> added to the
> > > discussion below:
> > >
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034052.html
> > > To unsubscribe from WebSocket, click here
> > > <> NAML
> > >
> >
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> > >
> >
> > --
> >
> > *Jimmy PANNIER*
> > Ingénieur de développement
> > Pôle Édition
> >
> > 169, Rue Sadi Carnot
> > 59350 Saint André-Lez-Lille
> > 03.20.06.16.17
> >
> >
> >
> >
> >
> > logo_inovelan_mini.png (6K)
> >
> <http://karaf.922171.n3.nabble.com/attachment/4034055/0/logo_inovelan_mini.png>
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034055.html
> > Sent from the Karaf - User mailing list archive at
> Nabble.com.
> >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web
> <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > Committer & Project Lead
> > blog <http://notizblog.nierbeck.de/>
> >
> > Software Architect / Project Manager / Scrum Master
> >
> >
> >
> >
> ------------------------------------------------------------------------
> > If you reply to this email, your message will be added
> to the
> > discussion below:
> >
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034057.html
> > To unsubscribe from WebSocket, click here
> > <> NAML
> >
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> >
>
> --
>
> *Jimmy PANNIER*
> Ingénieur de développement
> Pôle Édition
>
> 169, Rue Sadi Carnot
> 59350 Saint André-Lez-Lille
> 03.20.06.16.17
>
>
>
>
>
> logo_inovelan_mini.png (6K)
> <http://karaf.922171.n3.nabble.com/attachment/4034059/0/logo_inovelan_mini.png>
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034059.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer & Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer & Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer & Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the
> discussion below:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034077.html
> To unsubscribe from WebSocket, click here
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4034012&code=amltbXkucGFubmllckBpbm92ZWxhbi5mcnw0MDM0MDEyfC01NTUxNDMzNzU=>.
> NAML
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
*Jimmy PANNIER*
Ingénieur de développement
Pôle Édition
169, Rue Sadi Carnot
59350 Saint André-Lez-Lille
03.20.06.16.17
logo_inovelan_mini.png (6K) <http://karaf.922171.n3.nabble.com/attachment/4034086/0/logo_inovelan_mini.png>
--
View this message in context: http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034086.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: WebSocket
Posted by Achim Nierbeck <bc...@googlemail.com>.
I tried to run the autobahn-websocket test sample [1] from the jetty
sources, but either my client was wrong or it didn't work :/
I will investigate this more, though I've seen reports where it did work
right away so I'm not sure if this is really something needed to be done
with Pax Web. I'll keep investigating.
regards, Achim
[1] - https://github.com/jetty-project/jetty-autobahn-websocket-webapp
2014-07-08 18:12 GMT+02:00 Achim Nierbeck <bc...@googlemail.com>:
> After giving it a quick glance, it seems like this can easily be
> configured using the Jetty.xml
> I'm gonna investigate this a bit more.
>
> regards, Achim
>
>
> 2014-07-08 18:06 GMT+02:00 Achim Nierbeck <bc...@googlemail.com>:
>
> Hi,
>>
>> ok, I'm gonna give it a try, it very well needs some special handling in
>> Pax Web.
>>
>> regards, Achim
>>
>>
>> 2014-07-08 17:39 GMT+02:00 jimmy <ji...@inovelan.fr>:
>>
>> I've all deleted, and redownloaded the apache karaf....
>>> Now, i don't have the problem of 404 of static files anymore...
>>>
>>> But !
>>> The websocket doesn't work !!!!
>>>
>>> Maybe there is something to do in pax-web ?
>>>
>>> In a standalone jetty (without osgi), there is a
>>> *WebSocketServerContainerInitializer*
>>>
>>>
>>>
>>> Server server = new Server();
>>> ServerConnector connector = new ServerConnector(server);
>>> connector.setPort(8081);
>>> server.addConnector(connector);
>>>
>>> // Setup the basic application "context" for this application at "/"
>>> // This is also known as the handler tree (in jetty speak)
>>> ServletContextHandler context = new
>>> ServletContextHandler(ServletContextHandler.SESSIONS);
>>> context.setContextPath("/cloud-websocket");
>>>
>>> // server.setHandler(context);
>>>
>>> ResourceHandler resource_handler = new ResourceHandler();
>>> resource_handler.setDirectoriesListed(true);
>>> resource_handler.setWelcomeFiles(new String[] {"index.jsp"});
>>>
>>> resource_handler.setResourceBase(".");
>>>
>>> HandlerList handlers = new HandlerList();
>>> handlers.setHandlers(new Handler[] {resource_handler, context});
>>> server.setHandler(handlers);
>>>
>>> try {
>>> WebSocketActivator.init(); // WebSocketActivator contains the
>>> @ServerEndpoint
>>>
>>> // Initialize javax.websocket layer
>>> * ServerContainer wscontainer =
>>> WebSocketServerContainerInitializer.configureContext(context);*
>>>
>>> // Add WebSocket endpoint to javax.websocket layer
>>> wscontainer.addEndpoint(WebSocketActivator.class);
>>>
>>> server.start();
>>> server.dump(System.err);
>>> // server.join();
>>> }
>>> catch (Throwable t) {
>>> t.printStackTrace(System.err);
>>> }
>>>
>>>
>>>
>>> i've found the example at
>>>
>>> https://github.com/jetty-project/embedded-jetty-websocket-examples/blob/master/javax.websocket-example/src/main/java/org/eclipse/jetty/demo/EventServer.java
>>>
>>>
>>>
>>> Le 08/07/2014 13:46, Achim Nierbeck [via Karaf] a écrit :
>>> > Just use your regular github account, that's all to access ops4j.
>>> > And if you wish I'd give you direct access to the ops4j repo.
>>> >
>>> > regards, Achim
>>> >
>>> >
>>> > 2014-07-08 12:26 GMT+02:00 jimmy <[hidden email]
>>> > </user/SendEmail.jtp?type=node&node=4034057&i=0>>:
>>> >
>>> > Ok, i'll share it when it works.
>>> > Is there a special git account for push or i have to share it via
>>> > a zip
>>> > file..
>>> >
>>> > regards, Jimmy
>>> >
>>> > Le 08/07/2014 11:51, Achim Nierbeck [via Karaf] a écrit :
>>> > > One more ...
>>> > > if you have a simple Websocket sample that could be used as
>>> > sample for
>>> > > Pax Web [1]
>>> > > I would be more than happy to add it to the samples and
>>> integration
>>> > > tests for it :)
>>> > >
>>> > > regards, Achim
>>> > >
>>> > > [1] -
>>> https://github.com/ops4j/org.ops4j.pax.web/tree/master/samples
>>> > >
>>> > >
>>> > > 2014-07-08 11:49 GMT+02:00 Achim Nierbeck <[hidden email]
>>> > > </user/SendEmail.jtp?type=node&node=4034052&i=0>>:
>>> > >
>>> > > Ok, you cleaned the Karaf. But that doesn't clean such
>>> files, so
>>> > > you most likely still got the
>>> > > "old" jetty.xml for Jetty8.
>>> > > The feauture deployer doesn't override config files cause
>>> they
>>> > > might be altered.
>>> > >
>>> > > regards, Achim
>>> > >
>>> > >
>>> > > 2014-07-08 11:44 GMT+02:00 jimmy <[hidden email]
>>> > > </user/SendEmail.jtp?type=node&node=4034052&i=1>>:
>>> > >
>>> > > Sorry,
>>> > >
>>> > > in fact The default jetty.xml content does'nt match with
>>> > jetty
>>> > > 9 default
>>> > > configuration.
>>> > >
>>> > > i replace the content of jetty.xml with
>>> > >
>>> > > <Call name="addConnector">
>>> > > <Arg>
>>> > > <New
>>> class="org.eclipse.jetty.server.ServerConnector">
>>> > > <Arg name="server"><Ref refid="Server" /></Arg>
>>> > > <Arg name="factories">
>>> > > <Array
>>> > > type="org.eclipse.jetty.server.ConnectionFactory">
>>> > > <Item>
>>> > > <New
>>> > > class="org.eclipse.jetty.server.HttpConnectionFactory">
>>> > > <Arg name="config"><Ref
>>> refid="httpConfig"
>>> > > /></Arg>
>>> > > </New>
>>> > > </Item>
>>> > > </Array>
>>> > > </Arg>
>>> > > <Set name="host"><Property name="jetty.host"
>>> > /></Set>
>>> > > <Set name="port"><Property name="jetty.port"
>>> > > default="80" /></Set>
>>> > > <Set name="idleTimeout"><Property
>>> > name="http.timeout"
>>> > > default="30000"/></Set>
>>> > > <Set name="soLingerTime"><Property
>>> > > name="http.soLingerTime"
>>> > > default="-1"/></Set>
>>> > > </New>
>>> > > </Arg>
>>> > > </Call>
>>> > >
>>> > >
>>> > >
>>> > > I don't have any error but the application is now not
>>> > deployed....
>>> > > I'm searching...
>>> > >
>>> > > I'll keep you posted
>>> > >
>>> > > Thank you Achim
>>> > >
>>> > >
>>> > >
>>> > >
>>> > > --
>>> > > View this message in context:
>>> > >
>>> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034050.html
>>> > > Sent from the Karaf - User mailing list archive at
>>> > Nabble.com.
>>> > >
>>> > >
>>> > >
>>> > >
>>> > > --
>>> > >
>>> > > Apache Member
>>> > > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>> > > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/
>>> >
>>> > > Committer & Project Lead
>>> > > blog <http://notizblog.nierbeck.de/>
>>> > >
>>> > > Software Architect / Project Manager / Scrum Master
>>> > >
>>> > >
>>> > >
>>> > >
>>> > > --
>>> > >
>>> > > Apache Member
>>> > > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>> > > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>> > > Committer & Project Lead
>>> > > blog <http://notizblog.nierbeck.de/>
>>> > >
>>> > > Software Architect / Project Manager / Scrum Master
>>> > >
>>> > >
>>> > >
>>> > >
>>> >
>>> ------------------------------------------------------------------------
>>> > > If you reply to this email, your message will be added to the
>>> > > discussion below:
>>> > >
>>> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034052.html
>>> > > To unsubscribe from WebSocket, click here
>>> > > <> NAML
>>> > >
>>> > <
>>> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
>>> >
>>> > >
>>> >
>>> > --
>>> >
>>> > *Jimmy PANNIER*
>>> > Ingénieur de développement
>>> > Pôle Édition
>>> >
>>> > 169, Rue Sadi Carnot
>>> > 59350 Saint André-Lez-Lille
>>> > 03.20.06.16.17
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > logo_inovelan_mini.png (6K)
>>> > <
>>> http://karaf.922171.n3.nabble.com/attachment/4034055/0/logo_inovelan_mini.png
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> > View this message in context:
>>> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034055.html
>>> > Sent from the Karaf - User mailing list archive at Nabble.com.
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> >
>>> > Apache Member
>>> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>> > Committer & Project Lead
>>> > blog <http://notizblog.nierbeck.de/>
>>> >
>>> > Software Architect / Project Manager / Scrum Master
>>> >
>>> >
>>> >
>>> >
>>> ------------------------------------------------------------------------
>>> > If you reply to this email, your message will be added to the
>>> > discussion below:
>>> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034057.html
>>> > To unsubscribe from WebSocket, click here
>>> > <
>>> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4034012&code=amltbXkucGFubmllckBpbm92ZWxhbi5mcnw0MDM0MDEyfC01NTUxNDMzNzU=
>>> >.
>>> > NAML
>>> > <
>>> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
>>> >
>>> >
>>>
>>> --
>>>
>>> *Jimmy PANNIER*
>>> Ingénieur de développement
>>> Pôle Édition
>>>
>>> 169, Rue Sadi Carnot
>>> 59350 Saint André-Lez-Lille
>>> 03.20.06.16.17
>>>
>>>
>>>
>>>
>>>
>>> logo_inovelan_mini.png (6K) <
>>> http://karaf.922171.n3.nabble.com/attachment/4034059/0/logo_inovelan_mini.png
>>> >
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034059.html
>>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>>
>>
>>
>>
>> --
>>
>> Apache Member
>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>> & Project Lead
>> blog <http://notizblog.nierbeck.de/>
>>
>> Software Architect / Project Manager / Scrum Master
>>
>>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>
>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Software Architect / Project Manager / Scrum Master
Re: WebSocket
Posted by Achim Nierbeck <bc...@googlemail.com>.
After giving it a quick glance, it seems like this can easily be configured
using the Jetty.xml
I'm gonna investigate this a bit more.
regards, Achim
2014-07-08 18:06 GMT+02:00 Achim Nierbeck <bc...@googlemail.com>:
> Hi,
>
> ok, I'm gonna give it a try, it very well needs some special handling in
> Pax Web.
>
> regards, Achim
>
>
> 2014-07-08 17:39 GMT+02:00 jimmy <ji...@inovelan.fr>:
>
> I've all deleted, and redownloaded the apache karaf....
>> Now, i don't have the problem of 404 of static files anymore...
>>
>> But !
>> The websocket doesn't work !!!!
>>
>> Maybe there is something to do in pax-web ?
>>
>> In a standalone jetty (without osgi), there is a
>> *WebSocketServerContainerInitializer*
>>
>>
>>
>> Server server = new Server();
>> ServerConnector connector = new ServerConnector(server);
>> connector.setPort(8081);
>> server.addConnector(connector);
>>
>> // Setup the basic application "context" for this application at "/"
>> // This is also known as the handler tree (in jetty speak)
>> ServletContextHandler context = new
>> ServletContextHandler(ServletContextHandler.SESSIONS);
>> context.setContextPath("/cloud-websocket");
>>
>> // server.setHandler(context);
>>
>> ResourceHandler resource_handler = new ResourceHandler();
>> resource_handler.setDirectoriesListed(true);
>> resource_handler.setWelcomeFiles(new String[] {"index.jsp"});
>>
>> resource_handler.setResourceBase(".");
>>
>> HandlerList handlers = new HandlerList();
>> handlers.setHandlers(new Handler[] {resource_handler, context});
>> server.setHandler(handlers);
>>
>> try {
>> WebSocketActivator.init(); // WebSocketActivator contains the
>> @ServerEndpoint
>>
>> // Initialize javax.websocket layer
>> * ServerContainer wscontainer =
>> WebSocketServerContainerInitializer.configureContext(context);*
>>
>> // Add WebSocket endpoint to javax.websocket layer
>> wscontainer.addEndpoint(WebSocketActivator.class);
>>
>> server.start();
>> server.dump(System.err);
>> // server.join();
>> }
>> catch (Throwable t) {
>> t.printStackTrace(System.err);
>> }
>>
>>
>>
>> i've found the example at
>>
>> https://github.com/jetty-project/embedded-jetty-websocket-examples/blob/master/javax.websocket-example/src/main/java/org/eclipse/jetty/demo/EventServer.java
>>
>>
>>
>> Le 08/07/2014 13:46, Achim Nierbeck [via Karaf] a écrit :
>> > Just use your regular github account, that's all to access ops4j.
>> > And if you wish I'd give you direct access to the ops4j repo.
>> >
>> > regards, Achim
>> >
>> >
>> > 2014-07-08 12:26 GMT+02:00 jimmy <[hidden email]
>> > </user/SendEmail.jtp?type=node&node=4034057&i=0>>:
>> >
>> > Ok, i'll share it when it works.
>> > Is there a special git account for push or i have to share it via
>> > a zip
>> > file..
>> >
>> > regards, Jimmy
>> >
>> > Le 08/07/2014 11:51, Achim Nierbeck [via Karaf] a écrit :
>> > > One more ...
>> > > if you have a simple Websocket sample that could be used as
>> > sample for
>> > > Pax Web [1]
>> > > I would be more than happy to add it to the samples and
>> integration
>> > > tests for it :)
>> > >
>> > > regards, Achim
>> > >
>> > > [1] -
>> https://github.com/ops4j/org.ops4j.pax.web/tree/master/samples
>> > >
>> > >
>> > > 2014-07-08 11:49 GMT+02:00 Achim Nierbeck <[hidden email]
>> > > </user/SendEmail.jtp?type=node&node=4034052&i=0>>:
>> > >
>> > > Ok, you cleaned the Karaf. But that doesn't clean such files,
>> so
>> > > you most likely still got the
>> > > "old" jetty.xml for Jetty8.
>> > > The feauture deployer doesn't override config files cause they
>> > > might be altered.
>> > >
>> > > regards, Achim
>> > >
>> > >
>> > > 2014-07-08 11:44 GMT+02:00 jimmy <[hidden email]
>> > > </user/SendEmail.jtp?type=node&node=4034052&i=1>>:
>> > >
>> > > Sorry,
>> > >
>> > > in fact The default jetty.xml content does'nt match with
>> > jetty
>> > > 9 default
>> > > configuration.
>> > >
>> > > i replace the content of jetty.xml with
>> > >
>> > > <Call name="addConnector">
>> > > <Arg>
>> > > <New
>> class="org.eclipse.jetty.server.ServerConnector">
>> > > <Arg name="server"><Ref refid="Server" /></Arg>
>> > > <Arg name="factories">
>> > > <Array
>> > > type="org.eclipse.jetty.server.ConnectionFactory">
>> > > <Item>
>> > > <New
>> > > class="org.eclipse.jetty.server.HttpConnectionFactory">
>> > > <Arg name="config"><Ref refid="httpConfig"
>> > > /></Arg>
>> > > </New>
>> > > </Item>
>> > > </Array>
>> > > </Arg>
>> > > <Set name="host"><Property name="jetty.host"
>> > /></Set>
>> > > <Set name="port"><Property name="jetty.port"
>> > > default="80" /></Set>
>> > > <Set name="idleTimeout"><Property
>> > name="http.timeout"
>> > > default="30000"/></Set>
>> > > <Set name="soLingerTime"><Property
>> > > name="http.soLingerTime"
>> > > default="-1"/></Set>
>> > > </New>
>> > > </Arg>
>> > > </Call>
>> > >
>> > >
>> > >
>> > > I don't have any error but the application is now not
>> > deployed....
>> > > I'm searching...
>> > >
>> > > I'll keep you posted
>> > >
>> > > Thank you Achim
>> > >
>> > >
>> > >
>> > >
>> > > --
>> > > View this message in context:
>> > >
>> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034050.html
>> > > Sent from the Karaf - User mailing list archive at
>> > Nabble.com.
>> > >
>> > >
>> > >
>> > >
>> > > --
>> > >
>> > > Apache Member
>> > > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> > > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>> > > Committer & Project Lead
>> > > blog <http://notizblog.nierbeck.de/>
>> > >
>> > > Software Architect / Project Manager / Scrum Master
>> > >
>> > >
>> > >
>> > >
>> > > --
>> > >
>> > > Apache Member
>> > > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> > > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>> > > Committer & Project Lead
>> > > blog <http://notizblog.nierbeck.de/>
>> > >
>> > > Software Architect / Project Manager / Scrum Master
>> > >
>> > >
>> > >
>> > >
>> >
>> ------------------------------------------------------------------------
>> > > If you reply to this email, your message will be added to the
>> > > discussion below:
>> > >
>> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034052.html
>> > > To unsubscribe from WebSocket, click here
>> > > <> NAML
>> > >
>> > <
>> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
>> >
>> > >
>> >
>> > --
>> >
>> > *Jimmy PANNIER*
>> > Ingénieur de développement
>> > Pôle Édition
>> >
>> > 169, Rue Sadi Carnot
>> > 59350 Saint André-Lez-Lille
>> > 03.20.06.16.17
>> >
>> >
>> >
>> >
>> >
>> > logo_inovelan_mini.png (6K)
>> > <
>> http://karaf.922171.n3.nabble.com/attachment/4034055/0/logo_inovelan_mini.png
>> >
>> >
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034055.html
>> > Sent from the Karaf - User mailing list archive at Nabble.com.
>> >
>> >
>> >
>> >
>> > --
>> >
>> > Apache Member
>> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>> > Committer & Project Lead
>> > blog <http://notizblog.nierbeck.de/>
>> >
>> > Software Architect / Project Manager / Scrum Master
>> >
>> >
>> >
>> > ------------------------------------------------------------------------
>> > If you reply to this email, your message will be added to the
>> > discussion below:
>> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034057.html
>> > To unsubscribe from WebSocket, click here
>> > <
>> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4034012&code=amltbXkucGFubmllckBpbm92ZWxhbi5mcnw0MDM0MDEyfC01NTUxNDMzNzU=
>> >.
>> > NAML
>> > <
>> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
>> >
>> >
>>
>> --
>>
>> *Jimmy PANNIER*
>> Ingénieur de développement
>> Pôle Édition
>>
>> 169, Rue Sadi Carnot
>> 59350 Saint André-Lez-Lille
>> 03.20.06.16.17
>>
>>
>>
>>
>>
>> logo_inovelan_mini.png (6K) <
>> http://karaf.922171.n3.nabble.com/attachment/4034059/0/logo_inovelan_mini.png
>> >
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034059.html
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>
>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Software Architect / Project Manager / Scrum Master
Re: WebSocket
Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi,
ok, I'm gonna give it a try, it very well needs some special handling in
Pax Web.
regards, Achim
2014-07-08 17:39 GMT+02:00 jimmy <ji...@inovelan.fr>:
> I've all deleted, and redownloaded the apache karaf....
> Now, i don't have the problem of 404 of static files anymore...
>
> But !
> The websocket doesn't work !!!!
>
> Maybe there is something to do in pax-web ?
>
> In a standalone jetty (without osgi), there is a
> *WebSocketServerContainerInitializer*
>
>
>
> Server server = new Server();
> ServerConnector connector = new ServerConnector(server);
> connector.setPort(8081);
> server.addConnector(connector);
>
> // Setup the basic application "context" for this application at "/"
> // This is also known as the handler tree (in jetty speak)
> ServletContextHandler context = new
> ServletContextHandler(ServletContextHandler.SESSIONS);
> context.setContextPath("/cloud-websocket");
>
> // server.setHandler(context);
>
> ResourceHandler resource_handler = new ResourceHandler();
> resource_handler.setDirectoriesListed(true);
> resource_handler.setWelcomeFiles(new String[] {"index.jsp"});
>
> resource_handler.setResourceBase(".");
>
> HandlerList handlers = new HandlerList();
> handlers.setHandlers(new Handler[] {resource_handler, context});
> server.setHandler(handlers);
>
> try {
> WebSocketActivator.init(); // WebSocketActivator contains the
> @ServerEndpoint
>
> // Initialize javax.websocket layer
> * ServerContainer wscontainer =
> WebSocketServerContainerInitializer.configureContext(context);*
>
> // Add WebSocket endpoint to javax.websocket layer
> wscontainer.addEndpoint(WebSocketActivator.class);
>
> server.start();
> server.dump(System.err);
> // server.join();
> }
> catch (Throwable t) {
> t.printStackTrace(System.err);
> }
>
>
>
> i've found the example at
>
> https://github.com/jetty-project/embedded-jetty-websocket-examples/blob/master/javax.websocket-example/src/main/java/org/eclipse/jetty/demo/EventServer.java
>
>
>
> Le 08/07/2014 13:46, Achim Nierbeck [via Karaf] a écrit :
> > Just use your regular github account, that's all to access ops4j.
> > And if you wish I'd give you direct access to the ops4j repo.
> >
> > regards, Achim
> >
> >
> > 2014-07-08 12:26 GMT+02:00 jimmy <[hidden email]
> > </user/SendEmail.jtp?type=node&node=4034057&i=0>>:
> >
> > Ok, i'll share it when it works.
> > Is there a special git account for push or i have to share it via
> > a zip
> > file..
> >
> > regards, Jimmy
> >
> > Le 08/07/2014 11:51, Achim Nierbeck [via Karaf] a écrit :
> > > One more ...
> > > if you have a simple Websocket sample that could be used as
> > sample for
> > > Pax Web [1]
> > > I would be more than happy to add it to the samples and integration
> > > tests for it :)
> > >
> > > regards, Achim
> > >
> > > [1] -
> https://github.com/ops4j/org.ops4j.pax.web/tree/master/samples
> > >
> > >
> > > 2014-07-08 11:49 GMT+02:00 Achim Nierbeck <[hidden email]
> > > </user/SendEmail.jtp?type=node&node=4034052&i=0>>:
> > >
> > > Ok, you cleaned the Karaf. But that doesn't clean such files,
> so
> > > you most likely still got the
> > > "old" jetty.xml for Jetty8.
> > > The feauture deployer doesn't override config files cause they
> > > might be altered.
> > >
> > > regards, Achim
> > >
> > >
> > > 2014-07-08 11:44 GMT+02:00 jimmy <[hidden email]
> > > </user/SendEmail.jtp?type=node&node=4034052&i=1>>:
> > >
> > > Sorry,
> > >
> > > in fact The default jetty.xml content does'nt match with
> > jetty
> > > 9 default
> > > configuration.
> > >
> > > i replace the content of jetty.xml with
> > >
> > > <Call name="addConnector">
> > > <Arg>
> > > <New
> class="org.eclipse.jetty.server.ServerConnector">
> > > <Arg name="server"><Ref refid="Server" /></Arg>
> > > <Arg name="factories">
> > > <Array
> > > type="org.eclipse.jetty.server.ConnectionFactory">
> > > <Item>
> > > <New
> > > class="org.eclipse.jetty.server.HttpConnectionFactory">
> > > <Arg name="config"><Ref refid="httpConfig"
> > > /></Arg>
> > > </New>
> > > </Item>
> > > </Array>
> > > </Arg>
> > > <Set name="host"><Property name="jetty.host"
> > /></Set>
> > > <Set name="port"><Property name="jetty.port"
> > > default="80" /></Set>
> > > <Set name="idleTimeout"><Property
> > name="http.timeout"
> > > default="30000"/></Set>
> > > <Set name="soLingerTime"><Property
> > > name="http.soLingerTime"
> > > default="-1"/></Set>
> > > </New>
> > > </Arg>
> > > </Call>
> > >
> > >
> > >
> > > I don't have any error but the application is now not
> > deployed....
> > > I'm searching...
> > >
> > > I'll keep you posted
> > >
> > > Thank you Achim
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034050.html
> > > Sent from the Karaf - User mailing list archive at
> > Nabble.com.
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Apache Member
> > > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > Committer & Project Lead
> > > blog <http://notizblog.nierbeck.de/>
> > >
> > > Software Architect / Project Manager / Scrum Master
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Apache Member
> > > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > Committer & Project Lead
> > > blog <http://notizblog.nierbeck.de/>
> > >
> > > Software Architect / Project Manager / Scrum Master
> > >
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------
> > > If you reply to this email, your message will be added to the
> > > discussion below:
> > > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034052.html
> > > To unsubscribe from WebSocket, click here
> > > <> NAML
> > >
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> > >
> >
> > --
> >
> > *Jimmy PANNIER*
> > Ingénieur de développement
> > Pôle Édition
> >
> > 169, Rue Sadi Carnot
> > 59350 Saint André-Lez-Lille
> > 03.20.06.16.17
> >
> >
> >
> >
> >
> > logo_inovelan_mini.png (6K)
> > <
> http://karaf.922171.n3.nabble.com/attachment/4034055/0/logo_inovelan_mini.png
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034055.html
> > Sent from the Karaf - User mailing list archive at Nabble.com.
> >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > Committer & Project Lead
> > blog <http://notizblog.nierbeck.de/>
> >
> > Software Architect / Project Manager / Scrum Master
> >
> >
> >
> > ------------------------------------------------------------------------
> > If you reply to this email, your message will be added to the
> > discussion below:
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034057.html
> > To unsubscribe from WebSocket, click here
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4034012&code=amltbXkucGFubmllckBpbm92ZWxhbi5mcnw0MDM0MDEyfC01NTUxNDMzNzU=
> >.
> > NAML
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
> --
>
> *Jimmy PANNIER*
> Ingénieur de développement
> Pôle Édition
>
> 169, Rue Sadi Carnot
> 59350 Saint André-Lez-Lille
> 03.20.06.16.17
>
>
>
>
>
> logo_inovelan_mini.png (6K) <
> http://karaf.922171.n3.nabble.com/attachment/4034059/0/logo_inovelan_mini.png
> >
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034059.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Software Architect / Project Manager / Scrum Master
Re: WebSocket
Posted by jimmy <ji...@inovelan.fr>.
I've all deleted, and redownloaded the apache karaf....
Now, i don't have the problem of 404 of static files anymore...
But !
The websocket doesn't work !!!!
Maybe there is something to do in pax-web ?
In a standalone jetty (without osgi), there is a
*WebSocketServerContainerInitializer*
Server server = new Server();
ServerConnector connector = new ServerConnector(server);
connector.setPort(8081);
server.addConnector(connector);
// Setup the basic application "context" for this application at "/"
// This is also known as the handler tree (in jetty speak)
ServletContextHandler context = new
ServletContextHandler(ServletContextHandler.SESSIONS);
context.setContextPath("/cloud-websocket");
// server.setHandler(context);
ResourceHandler resource_handler = new ResourceHandler();
resource_handler.setDirectoriesListed(true);
resource_handler.setWelcomeFiles(new String[] {"index.jsp"});
resource_handler.setResourceBase(".");
HandlerList handlers = new HandlerList();
handlers.setHandlers(new Handler[] {resource_handler, context});
server.setHandler(handlers);
try {
WebSocketActivator.init(); // WebSocketActivator contains the
@ServerEndpoint
// Initialize javax.websocket layer
* ServerContainer wscontainer =
WebSocketServerContainerInitializer.configureContext(context);*
// Add WebSocket endpoint to javax.websocket layer
wscontainer.addEndpoint(WebSocketActivator.class);
server.start();
server.dump(System.err);
// server.join();
}
catch (Throwable t) {
t.printStackTrace(System.err);
}
i've found the example at
https://github.com/jetty-project/embedded-jetty-websocket-examples/blob/master/javax.websocket-example/src/main/java/org/eclipse/jetty/demo/EventServer.java
Le 08/07/2014 13:46, Achim Nierbeck [via Karaf] a écrit :
> Just use your regular github account, that's all to access ops4j.
> And if you wish I'd give you direct access to the ops4j repo.
>
> regards, Achim
>
>
> 2014-07-08 12:26 GMT+02:00 jimmy <[hidden email]
> </user/SendEmail.jtp?type=node&node=4034057&i=0>>:
>
> Ok, i'll share it when it works.
> Is there a special git account for push or i have to share it via
> a zip
> file..
>
> regards, Jimmy
>
> Le 08/07/2014 11:51, Achim Nierbeck [via Karaf] a écrit :
> > One more ...
> > if you have a simple Websocket sample that could be used as
> sample for
> > Pax Web [1]
> > I would be more than happy to add it to the samples and integration
> > tests for it :)
> >
> > regards, Achim
> >
> > [1] - https://github.com/ops4j/org.ops4j.pax.web/tree/master/samples
> >
> >
> > 2014-07-08 11:49 GMT+02:00 Achim Nierbeck <[hidden email]
> > </user/SendEmail.jtp?type=node&node=4034052&i=0>>:
> >
> > Ok, you cleaned the Karaf. But that doesn't clean such files, so
> > you most likely still got the
> > "old" jetty.xml for Jetty8.
> > The feauture deployer doesn't override config files cause they
> > might be altered.
> >
> > regards, Achim
> >
> >
> > 2014-07-08 11:44 GMT+02:00 jimmy <[hidden email]
> > </user/SendEmail.jtp?type=node&node=4034052&i=1>>:
> >
> > Sorry,
> >
> > in fact The default jetty.xml content does'nt match with
> jetty
> > 9 default
> > configuration.
> >
> > i replace the content of jetty.xml with
> >
> > <Call name="addConnector">
> > <Arg>
> > <New class="org.eclipse.jetty.server.ServerConnector">
> > <Arg name="server"><Ref refid="Server" /></Arg>
> > <Arg name="factories">
> > <Array
> > type="org.eclipse.jetty.server.ConnectionFactory">
> > <Item>
> > <New
> > class="org.eclipse.jetty.server.HttpConnectionFactory">
> > <Arg name="config"><Ref refid="httpConfig"
> > /></Arg>
> > </New>
> > </Item>
> > </Array>
> > </Arg>
> > <Set name="host"><Property name="jetty.host"
> /></Set>
> > <Set name="port"><Property name="jetty.port"
> > default="80" /></Set>
> > <Set name="idleTimeout"><Property
> name="http.timeout"
> > default="30000"/></Set>
> > <Set name="soLingerTime"><Property
> > name="http.soLingerTime"
> > default="-1"/></Set>
> > </New>
> > </Arg>
> > </Call>
> >
> >
> >
> > I don't have any error but the application is now not
> deployed....
> > I'm searching...
> >
> > I'll keep you posted
> >
> > Thank you Achim
> >
> >
> >
> >
> > --
> > View this message in context:
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034050.html
> > Sent from the Karaf - User mailing list archive at
> Nabble.com.
> >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > Committer & Project Lead
> > blog <http://notizblog.nierbeck.de/>
> >
> > Software Architect / Project Manager / Scrum Master
> >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > Committer & Project Lead
> > blog <http://notizblog.nierbeck.de/>
> >
> > Software Architect / Project Manager / Scrum Master
> >
> >
> >
> >
> ------------------------------------------------------------------------
> > If you reply to this email, your message will be added to the
> > discussion below:
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034052.html
> > To unsubscribe from WebSocket, click here
> > <> NAML
> >
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> >
>
> --
>
> *Jimmy PANNIER*
> Ingénieur de développement
> Pôle Édition
>
> 169, Rue Sadi Carnot
> 59350 Saint André-Lez-Lille
> 03.20.06.16.17
>
>
>
>
>
> logo_inovelan_mini.png (6K)
> <http://karaf.922171.n3.nabble.com/attachment/4034055/0/logo_inovelan_mini.png>
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034055.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer & Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the
> discussion below:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034057.html
> To unsubscribe from WebSocket, click here
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4034012&code=amltbXkucGFubmllckBpbm92ZWxhbi5mcnw0MDM0MDEyfC01NTUxNDMzNzU=>.
> NAML
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
*Jimmy PANNIER*
Ingénieur de développement
Pôle Édition
169, Rue Sadi Carnot
59350 Saint André-Lez-Lille
03.20.06.16.17
logo_inovelan_mini.png (6K) <http://karaf.922171.n3.nabble.com/attachment/4034059/0/logo_inovelan_mini.png>
--
View this message in context: http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034059.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: WebSocket
Posted by Achim Nierbeck <bc...@googlemail.com>.
Just use your regular github account, that's all to access ops4j.
And if you wish I'd give you direct access to the ops4j repo.
regards, Achim
2014-07-08 12:26 GMT+02:00 jimmy <ji...@inovelan.fr>:
> Ok, i'll share it when it works.
> Is there a special git account for push or i have to share it via a zip
> file..
>
> regards, Jimmy
>
> Le 08/07/2014 11:51, Achim Nierbeck [via Karaf] a écrit :
> > One more ...
> > if you have a simple Websocket sample that could be used as sample for
> > Pax Web [1]
> > I would be more than happy to add it to the samples and integration
> > tests for it :)
> >
> > regards, Achim
> >
> > [1] - https://github.com/ops4j/org.ops4j.pax.web/tree/master/samples
> >
> >
> > 2014-07-08 11:49 GMT+02:00 Achim Nierbeck <[hidden email]
> > </user/SendEmail.jtp?type=node&node=4034052&i=0>>:
> >
> > Ok, you cleaned the Karaf. But that doesn't clean such files, so
> > you most likely still got the
> > "old" jetty.xml for Jetty8.
> > The feauture deployer doesn't override config files cause they
> > might be altered.
> >
> > regards, Achim
> >
> >
> > 2014-07-08 11:44 GMT+02:00 jimmy <[hidden email]
> > </user/SendEmail.jtp?type=node&node=4034052&i=1>>:
> >
> > Sorry,
> >
> > in fact The default jetty.xml content does'nt match with jetty
> > 9 default
> > configuration.
> >
> > i replace the content of jetty.xml with
> >
> > <Call name="addConnector">
> > <Arg>
> > <New class="org.eclipse.jetty.server.ServerConnector">
> > <Arg name="server"><Ref refid="Server" /></Arg>
> > <Arg name="factories">
> > <Array
> > type="org.eclipse.jetty.server.ConnectionFactory">
> > <Item>
> > <New
> > class="org.eclipse.jetty.server.HttpConnectionFactory">
> > <Arg name="config"><Ref refid="httpConfig"
> > /></Arg>
> > </New>
> > </Item>
> > </Array>
> > </Arg>
> > <Set name="host"><Property name="jetty.host" /></Set>
> > <Set name="port"><Property name="jetty.port"
> > default="80" /></Set>
> > <Set name="idleTimeout"><Property name="http.timeout"
> > default="30000"/></Set>
> > <Set name="soLingerTime"><Property
> > name="http.soLingerTime"
> > default="-1"/></Set>
> > </New>
> > </Arg>
> > </Call>
> >
> >
> >
> > I don't have any error but the application is now not
> deployed....
> > I'm searching...
> >
> > I'll keep you posted
> >
> > Thank you Achim
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034050.html
> > Sent from the Karaf - User mailing list archive at Nabble.com.
> >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > Committer & Project Lead
> > blog <http://notizblog.nierbeck.de/>
> >
> > Software Architect / Project Manager / Scrum Master
> >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > Committer & Project Lead
> > blog <http://notizblog.nierbeck.de/>
> >
> > Software Architect / Project Manager / Scrum Master
> >
> >
> >
> > ------------------------------------------------------------------------
> > If you reply to this email, your message will be added to the
> > discussion below:
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034052.html
> > To unsubscribe from WebSocket, click here
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4034012&code=amltbXkucGFubmllckBpbm92ZWxhbi5mcnw0MDM0MDEyfC01NTUxNDMzNzU=
> >.
> > NAML
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
> --
>
> *Jimmy PANNIER*
> Ingénieur de développement
> Pôle Édition
>
> 169, Rue Sadi Carnot
> 59350 Saint André-Lez-Lille
> 03.20.06.16.17
>
>
>
>
>
> logo_inovelan_mini.png (6K) <
> http://karaf.922171.n3.nabble.com/attachment/4034055/0/logo_inovelan_mini.png
> >
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034055.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Software Architect / Project Manager / Scrum Master
Re: WebSocket
Posted by jimmy <ji...@inovelan.fr>.
Ok, i'll share it when it works.
Is there a special git account for push or i have to share it via a zip
file..
regards, Jimmy
Le 08/07/2014 11:51, Achim Nierbeck [via Karaf] a écrit :
> One more ...
> if you have a simple Websocket sample that could be used as sample for
> Pax Web [1]
> I would be more than happy to add it to the samples and integration
> tests for it :)
>
> regards, Achim
>
> [1] - https://github.com/ops4j/org.ops4j.pax.web/tree/master/samples
>
>
> 2014-07-08 11:49 GMT+02:00 Achim Nierbeck <[hidden email]
> </user/SendEmail.jtp?type=node&node=4034052&i=0>>:
>
> Ok, you cleaned the Karaf. But that doesn't clean such files, so
> you most likely still got the
> "old" jetty.xml for Jetty8.
> The feauture deployer doesn't override config files cause they
> might be altered.
>
> regards, Achim
>
>
> 2014-07-08 11:44 GMT+02:00 jimmy <[hidden email]
> </user/SendEmail.jtp?type=node&node=4034052&i=1>>:
>
> Sorry,
>
> in fact The default jetty.xml content does'nt match with jetty
> 9 default
> configuration.
>
> i replace the content of jetty.xml with
>
> <Call name="addConnector">
> <Arg>
> <New class="org.eclipse.jetty.server.ServerConnector">
> <Arg name="server"><Ref refid="Server" /></Arg>
> <Arg name="factories">
> <Array
> type="org.eclipse.jetty.server.ConnectionFactory">
> <Item>
> <New
> class="org.eclipse.jetty.server.HttpConnectionFactory">
> <Arg name="config"><Ref refid="httpConfig"
> /></Arg>
> </New>
> </Item>
> </Array>
> </Arg>
> <Set name="host"><Property name="jetty.host" /></Set>
> <Set name="port"><Property name="jetty.port"
> default="80" /></Set>
> <Set name="idleTimeout"><Property name="http.timeout"
> default="30000"/></Set>
> <Set name="soLingerTime"><Property
> name="http.soLingerTime"
> default="-1"/></Set>
> </New>
> </Arg>
> </Call>
>
>
>
> I don't have any error but the application is now not deployed....
> I'm searching...
>
> I'll keep you posted
>
> Thank you Achim
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034050.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer & Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer & Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the
> discussion below:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034052.html
> To unsubscribe from WebSocket, click here
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4034012&code=amltbXkucGFubmllckBpbm92ZWxhbi5mcnw0MDM0MDEyfC01NTUxNDMzNzU=>.
> NAML
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
*Jimmy PANNIER*
Ingénieur de développement
Pôle Édition
169, Rue Sadi Carnot
59350 Saint André-Lez-Lille
03.20.06.16.17
logo_inovelan_mini.png (6K) <http://karaf.922171.n3.nabble.com/attachment/4034055/0/logo_inovelan_mini.png>
--
View this message in context: http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034055.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: WebSocket
Posted by Achim Nierbeck <bc...@googlemail.com>.
One more ...
if you have a simple Websocket sample that could be used as sample for Pax
Web [1]
I would be more than happy to add it to the samples and integration tests
for it :)
regards, Achim
[1] - https://github.com/ops4j/org.ops4j.pax.web/tree/master/samples
2014-07-08 11:49 GMT+02:00 Achim Nierbeck <bc...@googlemail.com>:
> Ok, you cleaned the Karaf. But that doesn't clean such files, so you most
> likely still got the
> "old" jetty.xml for Jetty8.
> The feauture deployer doesn't override config files cause they might be
> altered.
>
> regards, Achim
>
>
> 2014-07-08 11:44 GMT+02:00 jimmy <ji...@inovelan.fr>:
>
> Sorry,
>>
>> in fact The default jetty.xml content does'nt match with jetty 9 default
>> configuration.
>>
>> i replace the content of jetty.xml with
>>
>> <Call name="addConnector">
>> <Arg>
>> <New class="org.eclipse.jetty.server.ServerConnector">
>> <Arg name="server"><Ref refid="Server" /></Arg>
>> <Arg name="factories">
>> <Array type="org.eclipse.jetty.server.ConnectionFactory">
>> <Item>
>> <New class="org.eclipse.jetty.server.HttpConnectionFactory">
>> <Arg name="config"><Ref refid="httpConfig" /></Arg>
>> </New>
>> </Item>
>> </Array>
>> </Arg>
>> <Set name="host"><Property name="jetty.host" /></Set>
>> <Set name="port"><Property name="jetty.port" default="80" /></Set>
>> <Set name="idleTimeout"><Property name="http.timeout"
>> default="30000"/></Set>
>> <Set name="soLingerTime"><Property name="http.soLingerTime"
>> default="-1"/></Set>
>> </New>
>> </Arg>
>> </Call>
>>
>>
>>
>> I don't have any error but the application is now not deployed....
>> I'm searching...
>>
>> I'll keep you posted
>>
>> Thank you Achim
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034050.html
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>
>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Software Architect / Project Manager / Scrum Master
Re: WebSocket
Posted by Achim Nierbeck <bc...@googlemail.com>.
Ok, you cleaned the Karaf. But that doesn't clean such files, so you most
likely still got the
"old" jetty.xml for Jetty8.
The feauture deployer doesn't override config files cause they might be
altered.
regards, Achim
2014-07-08 11:44 GMT+02:00 jimmy <ji...@inovelan.fr>:
> Sorry,
>
> in fact The default jetty.xml content does'nt match with jetty 9 default
> configuration.
>
> i replace the content of jetty.xml with
>
> <Call name="addConnector">
> <Arg>
> <New class="org.eclipse.jetty.server.ServerConnector">
> <Arg name="server"><Ref refid="Server" /></Arg>
> <Arg name="factories">
> <Array type="org.eclipse.jetty.server.ConnectionFactory">
> <Item>
> <New class="org.eclipse.jetty.server.HttpConnectionFactory">
> <Arg name="config"><Ref refid="httpConfig" /></Arg>
> </New>
> </Item>
> </Array>
> </Arg>
> <Set name="host"><Property name="jetty.host" /></Set>
> <Set name="port"><Property name="jetty.port" default="80" /></Set>
> <Set name="idleTimeout"><Property name="http.timeout"
> default="30000"/></Set>
> <Set name="soLingerTime"><Property name="http.soLingerTime"
> default="-1"/></Set>
> </New>
> </Arg>
> </Call>
>
>
>
> I don't have any error but the application is now not deployed....
> I'm searching...
>
> I'll keep you posted
>
> Thank you Achim
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034050.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Software Architect / Project Manager / Scrum Master
Re: WebSocket
Posted by jimmy <ji...@inovelan.fr>.
Sorry,
in fact The default jetty.xml content does'nt match with jetty 9 default
configuration.
i replace the content of jetty.xml with
<Call name="addConnector">
<Arg>
<New class="org.eclipse.jetty.server.ServerConnector">
<Arg name="server"><Ref refid="Server" /></Arg>
<Arg name="factories">
<Array type="org.eclipse.jetty.server.ConnectionFactory">
<Item>
<New class="org.eclipse.jetty.server.HttpConnectionFactory">
<Arg name="config"><Ref refid="httpConfig" /></Arg>
</New>
</Item>
</Array>
</Arg>
<Set name="host"><Property name="jetty.host" /></Set>
<Set name="port"><Property name="jetty.port" default="80" /></Set>
<Set name="idleTimeout"><Property name="http.timeout"
default="30000"/></Set>
<Set name="soLingerTime"><Property name="http.soLingerTime"
default="-1"/></Set>
</New>
</Arg>
</Call>
I don't have any error but the application is now not deployed....
I'm searching...
I'll keep you posted
Thank you Achim
--
View this message in context: http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034050.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: WebSocket
Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi,
I will test this, later this evening.
Right now I don't have my machine for the OSS development available.
I'll get back to you ASAP.
regards, Achim
2014-07-08 10:55 GMT+02:00 jimmy <ji...@inovelan.fr>:
> Strange....
>
> I'm using karaf 3.0.1
> *
> org.ops4j.pax.url.mvn.cfg file ends with*
>
> org.ops4j.pax.url.mvn.repositories= \
>
> https://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.sonatype.snapshots.deploy@snapshots@noreleases
> ,
> \
> http://repo1.maven.org/maven2@id=central, \
>
> http://repository.springsource.com/maven/bundles/release@id=spring.ebr.release
> ,
> \
>
> http://repository.springsource.com/maven/bundles/external@id=spring.ebr.external
> ,
> \
> file:${karaf.home}/${karaf.default.repository}@id=system.repository, \
> file:${karaf.data}/kar@id=kar.repository@multi
>
> *karaf_home/bin/karaf clean
> **feature:repo-add
> mvn:org.ops4j.pax.web/pax-web-features/4.0.0-SNAPSHOT/xml/features*
> *feature:install pax-http *
>
>
> and you get
>
> 2014-07-08 04:46:53,376 | ERROR | pool-9-thread-1 |
> Activator | 112 -
> org.ops4j.pax.web.pax-web-runtime - 4.0.0.SNAPSHOT | Unable to start pax
> web server: Exception while starting Jetty
> java.lang.RuntimeException: Exception while starting Jetty
> at
>
> org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.start(JettyServerImpl.java:163)[113:org.ops4j.pax.web.pax-web-jetty:4.0.0.SNAPSHOT]
> at
>
> org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Stopped.start(ServerControllerImpl.java:415)[113:org.ops4j.pax.web.pax-web-jetty:4.0.0.SNAPSHOT]
> at
>
> org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.start(ServerControllerImpl.java:71)[113:org.ops4j.pax.web.pax-web-jetty:4.0.0.SNAPSHOT]
> at
>
> org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Unconfigured.configure(ServerControllerImpl.java:736)[113:org.ops4j.pax.web.pax-web-jetty:4.0.0.SNAPSHOT]
> at
>
> org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.configure(ServerControllerImpl.java:87)[113:org.ops4j.pax.web.pax-web-jetty:4.0.0.SNAPSHOT]
> at
>
> org.ops4j.pax.web.service.internal.Activator.updateController(Activator.java:349)[112:org.ops4j.pax.web.pax-web-runtime:4.0.0.SNAPSHOT]
> at
>
> org.ops4j.pax.web.service.internal.Activator$3.run(Activator.java:291)[112:org.ops4j.pax.web.pax-web-runtime:4.0.0.SNAPSHOT]
> at
>
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_60]
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_60]
> at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_60]
> at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_60]
> at java.lang.Thread.run(Thread.java:745)[:1.7.0_60]
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)[:1.7.0_60]
> at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_60]
> at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_60]
> at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_60]
> at
>
> org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.start(JettyServerImpl.java:127)[113:org.ops4j.pax.web.pax-web-jetty:4.0.0.SNAPSHOT]
> ... 11 more
> Caused by: java.lang.ClassNotFoundException:
> org.eclipse.jetty.server.nio.SelectChannelConnector not found by
> org.eclipse.jetty.server [95]
> at
>
> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532)
> at
>
> org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
> at
>
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)[:1.7.0_60]
> at
>
> org.apache.felix.framework.BundleWiringImpl.getClassByDelegation(BundleWiringImpl.java:1374)
> at
>
> org.apache.felix.framework.BundleWiringImpl.searchDynamicImports(BundleWiringImpl.java:1630)
> at
>
> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1511)
> at
>
> org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
> at
>
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)[:1.7.0_60]
> at org.eclipse.jetty.util.Loader.loadClass(Loader.java:100)
> at
>
> org.eclipse.jetty.xml.XmlCfeature:listonfiguration$JettyXmlConfiguration.nodeClass(XmlConfiguration.java:364)
> at
>
> org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:754)
> at
>
> org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1125)
> at
>
> org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:1030)
> at
>
> org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:721)
> at
>
> org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:417)
> at
>
> org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:298)
> at
> org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:248)
>
>
> There is no "old" feature
> *feature:list*
>
> feature:list
> Name | Version | Installed |
> Repository | Description
>
> ----------------------------------------------------------------------------------------------------------------------------------------------------
> framework-security | 3.0.1 | |
> standard-3.0.1 | OSGi Security for Karaf
> standard | 3.0.1 | x |
> standard-3.0.1 | Karaf standard feature
> aries-annotation | 3.0.1 | |
> standard-3.0.1 | Aries Annotations
> wrapper | 3.0.1 | |
> standard-3.0.1 | Provide OS integration
> service-wrapper | 3.0.1 | |
> standard-3.0.1 | Provide OS integration (alias to
> wrapper feature)
> obr | 3.0.1 | |
> standard-3.0.1 | Provide OSGi Bundle Repository (OBR)
> support
> config | 3.0.1 | x |
> standard-3.0.1 | Provide OSGi ConfigAdmin support
> region | 3.0.1 | x |
> standard-3.0.1 | Provide Region Support
> package | 3.0.1 | x |
> standard-3.0.1 | Package commands and mbeans
> http | 3.0.1 | |
> standard-3.0.1 | Implementation of the OSGI HTTP Service
> http-whiteboard | 3.0.1 | |
> standard-3.0.1 | Provide HTTP Whiteboard pattern support
> war | 3.0.1 | |
> standard-3.0.1 | Turn Karaf as a full WebContainer
> jetty | 8.1.9.v20130131 | |
> standard-3.0.1 |
> kar | 3.0.1 | x |
> standard-3.0.1 | Provide KAR (KARaf archive) support
> webconsole | 3.0.1 | |
> standard-3.0.1 | Base support of the Karaf WebConsole
> ssh | 3.0.1 | x |
> standard-3.0.1 | Provide a SSHd server on Karaf
> management | 3.0.1 | x |
> standard-3.0.1 | Provide a JMX MBeanServer and a set
> of MBeans in K
> scheduler | 3.0.1 | |
> standard-3.0.1 | Provide a scheduler service in Karaf
> to fire event
> eventadmin | 3.0.1 | |
> standard-3.0.1 | OSGi Event Admin service
> specification for event-b
> jasypt-encryption | 3.0.1 | |
> standard-3.0.1 | Advanced encryption support for Karaf
> security
> scr | 3.0.1 | |
> standard-3.0.1 | Declarative Service support
> blueprint-web | 3.0.1 | |
> standard-3.0.1 | Provides an OSGI-aware Servlet
> ContextListener for
> pax-jetty | 9.0.7.v20131107 | x |
> org.ops4j.pax.web-4.0.0-SNAPSHOT | Provide Jetty engine support
> pax-http | 4.0.0-SNAPSHOT | x |
> org.ops4j.pax.web-4.0.0-SNAPSHOT | Implementation of the OSGI HTTP Service
> pax-http-whiteboard | 4.0.0-SNAPSHOT | |
> org.ops4j.pax.web-4.0.0-SNAPSHOT | Provide HTTP Whiteboard pattern support
> pax-war | 4.0.0-SNAPSHOT | |
> org.ops4j.pax.web-4.0.0-SNAPSHOT | Provide support of a full WebContainer
> pax-war-tomcat | 4.0.0-SNAPSHOT | |
> org.ops4j.pax.web-4.0.0-SNAPSHOT | Provide support of a full WebContainer
> transaction | 1.0.1 | |
> enterprise-3.0.1 | OSGi Transaction Manager
> jpa | 1.0.1 | |
> enterprise-3.0.1 | OSGi Persistence Container
> openjpa | 2.2.2 | |
> enterprise-3.0.1 | Apache OpenJPA 2.2.x persistence
> engine support
> openjpa | 2.3.0 | |
> enterprise-3.0.1 | Apache OpenJPA 2.3.x persistence
> engine support
> hibernate | 3.3.2.GA | |
> enterprise-3.0.1 | Hibernate 3.x JPA persistence engine
> support
> hibernate | 4.2.7.Final | |
> enterprise-3.0.1 | Hibernate 4.2.x JPA persistence
> engine support
> hibernate-envers | 4.2.7.Final | |
> enterprise-3.0.1 | Hibernate Envers 4.2.x
> hibernate | 4.3.1.Final | |
> enterprise-3.0.1 | Hibernate 4.3.x JPA persistence
> engine support
> hibernate-envers | 4.3.1.Final | |
> enterprise-3.0.1 | Hibernate Envers 4.3.x
> hibernate-validator | 5.0.3.Final | |
> enterprise-3.0.1 | Hibernate Validator support
> jndi | 3.0.1 | |
> enterprise-3.0.1 | OSGi Service Registry JNDI access
> jdbc | 3.0.1 | |
> enterprise-3.0.1 | JDBC service and commands
> jms | 3.0.1 | |
> enterprise-3.0.1 | JMS service and commands
> openwebbeans | 1.2.1 | |
> enterprise-3.0.1 | Apache OpenWebBeans CDI container
> support
> weld | 2.1.1.Final | |
> enterprise-3.0.1 | JBoss Weld CDI container support
> application-without-isolation | 1.0.0 | |
> enterprise-3.0.1 | Provide EBA archive support
> pax-jetty | 8.1.14.v20131031 | |
> org.ops4j.pax.web-3.1.0 | Provide Jetty engine support
> pax-tomcat | 7.0.27.1 | |
> org.ops4j.pax.web-3.1.0 | Provide Tomcat engine support
> pax-http | 3.1.0 | |
> org.ops4j.pax.web-3.1.0 | Implementation of the OSGI HTTP Service
> pax-http-whiteboard | 3.1.0 | |
> org.ops4j.pax.web-3.1.0 | Provide HTTP Whiteboard pattern support
> pax-war | 3.1.0 | |
> org.ops4j.pax.web-3.1.0 | Provide support of a full WebContainer
> pax-cdi | 0.7.0 | |
> org.ops4j.pax.cdi-0.7.0 | Provide CDI support
> pax-cdi-1.1 | 0.7.0 | |
> org.ops4j.pax.cdi-0.7.0 | Provide CDI 1.1 support
> pax-cdi-weld | 0.7.0 | |
> org.ops4j.pax.cdi-0.7.0 | Weld CDI support
> pax-cdi-1.1-weld | 0.7.0 | |
> org.ops4j.pax.cdi-0.7.0 | Weld CDI 1.1 support
> pax-cdi-openwebbeans | 0.7.0 | |
> org.ops4j.pax.cdi-0.7.0 | OpenWebBeans CDI support
> pax-cdi-web | 0.7.0 | |
> org.ops4j.pax.cdi-0.7.0 | Web CDI support
> pax-cdi-1.1-web | 0.7.0 | |
> org.ops4j.pax.cdi-0.7.0 | Web CDI 1.1 support
> pax-cdi-web-weld | 0.7.0 | |
> org.ops4j.pax.cdi-0.7.0 | Weld Web CDI support
> pax-cdi-1.1-web-weld | 0.7.0 | |
> org.ops4j.pax.cdi-0.7.0 | Weld Web CDI 1.1 support
> pax-cdi-web-openwebbeans | 0.7.0 | |
> org.ops4j.pax.cdi-0.7.0 | OpenWebBeans Web CDI support
> pax-cdi-deltaspike-core | >0.5 | |
> org.ops4j.pax.cdi-0.7.0 | Apache Deltaspike core support
> pax-cdi-deltaspike-jpa | 0.5 | |
> org.ops4j.pax.cdi-0.7.0 | Apche Deltaspike jpa support
> spring-dm | 1.2.1 | |
> spring-3.0.1 | Spring DM support
> spring-dm-web | 1.2.1 | |
> spring-3.0.1 | Spring DM Web support
> spring | 3.1.4.RELEASE | |
> spring-3.0.1 | Spring 3.1.x support
> spring-aspects | 3.1.4.RELEASE | |
> spring-3.0.1 | Spring 3.1.x AOP support
> spring-instrument | 3.1.4.RELEASE | |
> spring-3.0.1 | Spring 3.1.x Instrument support
> spring-jdbc | 3.1.4.RELEASE | |
> spring-3.0.1 | Spring 3.1.x JDBC support
> spring-jms | 3.1.4.RELEASE | |
> spring-3.0.1 | Spring 3.1.x JMS support
> spring-struts | 3.1.4.RELEASE | |
> spring-3.0.1 | Spring 3.1.x Struts support
> spring-test | 3.1.4.RELEASE | |
> spring-3.0.1 | Spring 3.1.x Test support
> spring-orm | 3.1.4.RELEASE | |
> spring-3.0.1 | Spring 3.1.x ORM support
> spring-oxm | 3.1.4.RELEASE | |
> spring-3.0.1 | Spring 3.1.x OXM support
> spring-tx | 3.1.4.RELEASE | |
> spring-3.0.1 | Spring 3.1.x Transaction (TX) support
> spring-web | 3.1.4.RELEASE | |
> spring-3.0.1 | Spring 3.1.x Web support
> spring-web-portlet | 3.1.4.RELEASE | |
> spring-3.0.1 | Spring 3.1.x Web Portlet support
> spring | 3.2.4.RELEASE | |
> spring-3.0.1 | Spring 3.2.x support
> spring-aspects | 3.2.4.RELEASE | |
> spring-3.0.1 | Spring 3.2.x AOP support
> spring-instrument | 3.2.4.RELEASE | |
> spring-3.0.1 | Spring 3.2.x Instrument support
> spring-jdbc | 3.2.4.RELEASE | |
> spring-3.0.1 | Spring 3.2.x JDBC support
> spring-jms | 3.2.4.RELEASE | |
> spring-3.0.1 | Spring 3.2.x JMS support
> spring-struts | 3.2.4.RELEASE | |
> spring-3.0.1 | Spring 3.2.x Struts support
> spring-test | 3.2.4.RELEASE | |
> spring-3.0.1 | Spring 3.2.x Test support
> spring-orm | 3.2.4.RELEASE | |
> spring-3.0.1 | Spring 3.2.x ORM support
> spring-oxm | 3.2.4.RELEASE | |
> spring-3.0.1 | Spring 3.2.x OXM support
> spring-tx | 3.2.4.RELEASE | |
> spring-3.0.1 | Spring 3.2.x Transaction (TX) support
> spring-web | 3.2.4.RELEASE | |
> spring-3.0.1 | Spring 3.2.x Web support
> spring-web-portlet | 3.2.4.RELEASE | |
> spring-3.0.1 | Spring 3.2.x Web Portlet support
> spring | 4.0.2.RELEASE_1 | |
> spring-3.0.1 | Spring 4.0.x support
> spring-aspects | 4.0.2.RELEASE_1 | |
> spring-3.0.1 | Spring 4.0.x AOP support
> spring-instrument | 4.0.2.RELEASE_1 | |
> spring-3.0.1 | Spring 4.0.x Instrument support
> spring-jdbc | 4.0.2.RELEASE_1 | |
> spring-3.0.1 | Spring 4.0.x JDBC support
> spring-jms | 4.0.2.RELEASE_1 | |
> spring-3.0.1 | Spring 4.0.x JMS support
> spring-test | 4.0.2.RELEASE_1 | |
> spring-3.0.1 | Spring 4.0.x Test support
> spring-orm | 4.0.2.RELEASE_1 | |
> spring-3.0.1 | Spring 4.0.x ORM support
> spring-oxm | 4.0.2.RELEASE_1 | |
> spring-3.0.1 | Spring 4.0.x OXM support
> spring-tx | 4.0.2.RELEASE_1 | |
> spring-3.0.1 | Spring 4.0.x Transaction (TX) support
> spring-web | 4.0.2.RELEASE_1 | |
> spring-3.0.1 | Spring 4.0.x Web support
> spring-web-portlet | 4.0.2.RELEASE_1 | |
> spring-3.0.1 | Spring 4.0.x Web Portlet support
> spring-websocket | 4.0.2.RELEASE_1 | |
> spring-3.0.1 | Spring 4.0.x WebSocket support
> spring-security | 3.1.4.RELEASE | |
> spring-3.0.1 | Spring Security 3.1.x support
> gemini-blueprint | 1.0.0.RELEASE | |
> spring-3.0.1 | Gemini Blueprint Extender
>
>
>
>
>
> Le 08/07/2014 10:00, Achim Nierbeck [via Karaf] a écrit :
> > This is rather strange, cause the Integration tests work fine [1].
> > Could you check that you didn't install parts of Pax Web 3 and 4
> > and/or the corresponding Jetty versions?
> >
> > regards, Achim
> >
> > [1] -
> >
> http://ci.ops4j.org/jenkins/job/org.ops4j.pax.web/571/org.ops4j.pax.web.itest$pax-web-itest-karaf/
> >
> >
> > 2014-07-08 9:40 GMT+02:00 jimmy <[hidden email]
> > </user/SendEmail.jtp?type=node&node=4034045&i=0>>:
> >
> > here is the result of
> >
> >
> > *find-class SelectChannelConnector*
> >
> > Jetty :: Server Core (95)
> >
> org/eclipse/jetty/server/nio/NetworkTrafficSelectChannelConnector.class
> >
> > OPS4J Pax Web - Jetty (113)
> >
> org/eclipse/jetty/server/nio/NetworkTrafficSelectChannelConnector.class
> >
> >
> >
> >
> > --
> > View this message in context:
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034044.html
> > Sent from the Karaf - User mailing list archive at Nabble.com.
> >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > Committer & Project Lead
> > blog <http://notizblog.nierbeck.de/>
> >
> > Software Architect / Project Manager / Scrum Master
> >
> >
> >
> > ------------------------------------------------------------------------
> > If you reply to this email, your message will be added to the
> > discussion below:
> > http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034045.html
> > To unsubscribe from WebSocket, click here
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4034012&code=amltbXkucGFubmllckBpbm92ZWxhbi5mcnw0MDM0MDEyfC01NTUxNDMzNzU=
> >.
> > NAML
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
> --
>
> *Jimmy PANNIER*
> Ingénieur de développement
> Pôle Édition
>
> 169, Rue Sadi Carnot
> 59350 Saint André-Lez-Lille
> 03.20.06.16.17
>
>
>
>
>
> logo_inovelan_mini.png (6K) <
> http://karaf.922171.n3.nabble.com/attachment/4034048/0/logo_inovelan_mini.png
> >
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034048.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Software Architect / Project Manager / Scrum Master
Re: WebSocket
Posted by jimmy <ji...@inovelan.fr>.
Strange....
I'm using karaf 3.0.1
*
org.ops4j.pax.url.mvn.cfg file ends with*
org.ops4j.pax.url.mvn.repositories= \
https://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.sonatype.snapshots.deploy@snapshots@noreleases,
\
http://repo1.maven.org/maven2@id=central, \
http://repository.springsource.com/maven/bundles/release@id=spring.ebr.release,
\
http://repository.springsource.com/maven/bundles/external@id=spring.ebr.external,
\
file:${karaf.home}/${karaf.default.repository}@id=system.repository, \
file:${karaf.data}/kar@id=kar.repository@multi
*karaf_home/bin/karaf clean
**feature:repo-add
mvn:org.ops4j.pax.web/pax-web-features/4.0.0-SNAPSHOT/xml/features*
*feature:install pax-http *
and you get
2014-07-08 04:46:53,376 | ERROR | pool-9-thread-1 |
Activator | 112 -
org.ops4j.pax.web.pax-web-runtime - 4.0.0.SNAPSHOT | Unable to start pax
web server: Exception while starting Jetty
java.lang.RuntimeException: Exception while starting Jetty
at
org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.start(JettyServerImpl.java:163)[113:org.ops4j.pax.web.pax-web-jetty:4.0.0.SNAPSHOT]
at
org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Stopped.start(ServerControllerImpl.java:415)[113:org.ops4j.pax.web.pax-web-jetty:4.0.0.SNAPSHOT]
at
org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.start(ServerControllerImpl.java:71)[113:org.ops4j.pax.web.pax-web-jetty:4.0.0.SNAPSHOT]
at
org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Unconfigured.configure(ServerControllerImpl.java:736)[113:org.ops4j.pax.web.pax-web-jetty:4.0.0.SNAPSHOT]
at
org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.configure(ServerControllerImpl.java:87)[113:org.ops4j.pax.web.pax-web-jetty:4.0.0.SNAPSHOT]
at
org.ops4j.pax.web.service.internal.Activator.updateController(Activator.java:349)[112:org.ops4j.pax.web.pax-web-runtime:4.0.0.SNAPSHOT]
at
org.ops4j.pax.web.service.internal.Activator$3.run(Activator.java:291)[112:org.ops4j.pax.web.pax-web-runtime:4.0.0.SNAPSHOT]
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_60]
at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_60]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_60]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_60]
at java.lang.Thread.run(Thread.java:745)[:1.7.0_60]
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)[:1.7.0_60]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_60]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_60]
at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_60]
at
org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.start(JettyServerImpl.java:127)[113:org.ops4j.pax.web.pax-web-jetty:4.0.0.SNAPSHOT]
... 11 more
Caused by: java.lang.ClassNotFoundException:
org.eclipse.jetty.server.nio.SelectChannelConnector not found by
org.eclipse.jetty.server [95]
at
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532)
at
org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)[:1.7.0_60]
at
org.apache.felix.framework.BundleWiringImpl.getClassByDelegation(BundleWiringImpl.java:1374)
at
org.apache.felix.framework.BundleWiringImpl.searchDynamicImports(BundleWiringImpl.java:1630)
at
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1511)
at
org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)[:1.7.0_60]
at org.eclipse.jetty.util.Loader.loadClass(Loader.java:100)
at
org.eclipse.jetty.xml.XmlCfeature:listonfiguration$JettyXmlConfiguration.nodeClass(XmlConfiguration.java:364)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:754)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1125)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:1030)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:721)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:417)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:298)
at
org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:248)
There is no "old" feature
*feature:list*
feature:list
Name | Version | Installed |
Repository | Description
----------------------------------------------------------------------------------------------------------------------------------------------------
framework-security | 3.0.1 | |
standard-3.0.1 | OSGi Security for Karaf
standard | 3.0.1 | x |
standard-3.0.1 | Karaf standard feature
aries-annotation | 3.0.1 | |
standard-3.0.1 | Aries Annotations
wrapper | 3.0.1 | |
standard-3.0.1 | Provide OS integration
service-wrapper | 3.0.1 | |
standard-3.0.1 | Provide OS integration (alias to
wrapper feature)
obr | 3.0.1 | |
standard-3.0.1 | Provide OSGi Bundle Repository (OBR)
support
config | 3.0.1 | x |
standard-3.0.1 | Provide OSGi ConfigAdmin support
region | 3.0.1 | x |
standard-3.0.1 | Provide Region Support
package | 3.0.1 | x |
standard-3.0.1 | Package commands and mbeans
http | 3.0.1 | |
standard-3.0.1 | Implementation of the OSGI HTTP Service
http-whiteboard | 3.0.1 | |
standard-3.0.1 | Provide HTTP Whiteboard pattern support
war | 3.0.1 | |
standard-3.0.1 | Turn Karaf as a full WebContainer
jetty | 8.1.9.v20130131 | |
standard-3.0.1 |
kar | 3.0.1 | x |
standard-3.0.1 | Provide KAR (KARaf archive) support
webconsole | 3.0.1 | |
standard-3.0.1 | Base support of the Karaf WebConsole
ssh | 3.0.1 | x |
standard-3.0.1 | Provide a SSHd server on Karaf
management | 3.0.1 | x |
standard-3.0.1 | Provide a JMX MBeanServer and a set
of MBeans in K
scheduler | 3.0.1 | |
standard-3.0.1 | Provide a scheduler service in Karaf
to fire event
eventadmin | 3.0.1 | |
standard-3.0.1 | OSGi Event Admin service
specification for event-b
jasypt-encryption | 3.0.1 | |
standard-3.0.1 | Advanced encryption support for Karaf
security
scr | 3.0.1 | |
standard-3.0.1 | Declarative Service support
blueprint-web | 3.0.1 | |
standard-3.0.1 | Provides an OSGI-aware Servlet
ContextListener for
pax-jetty | 9.0.7.v20131107 | x |
org.ops4j.pax.web-4.0.0-SNAPSHOT | Provide Jetty engine support
pax-http | 4.0.0-SNAPSHOT | x |
org.ops4j.pax.web-4.0.0-SNAPSHOT | Implementation of the OSGI HTTP Service
pax-http-whiteboard | 4.0.0-SNAPSHOT | |
org.ops4j.pax.web-4.0.0-SNAPSHOT | Provide HTTP Whiteboard pattern support
pax-war | 4.0.0-SNAPSHOT | |
org.ops4j.pax.web-4.0.0-SNAPSHOT | Provide support of a full WebContainer
pax-war-tomcat | 4.0.0-SNAPSHOT | |
org.ops4j.pax.web-4.0.0-SNAPSHOT | Provide support of a full WebContainer
transaction | 1.0.1 | |
enterprise-3.0.1 | OSGi Transaction Manager
jpa | 1.0.1 | |
enterprise-3.0.1 | OSGi Persistence Container
openjpa | 2.2.2 | |
enterprise-3.0.1 | Apache OpenJPA 2.2.x persistence
engine support
openjpa | 2.3.0 | |
enterprise-3.0.1 | Apache OpenJPA 2.3.x persistence
engine support
hibernate | 3.3.2.GA | |
enterprise-3.0.1 | Hibernate 3.x JPA persistence engine
support
hibernate | 4.2.7.Final | |
enterprise-3.0.1 | Hibernate 4.2.x JPA persistence
engine support
hibernate-envers | 4.2.7.Final | |
enterprise-3.0.1 | Hibernate Envers 4.2.x
hibernate | 4.3.1.Final | |
enterprise-3.0.1 | Hibernate 4.3.x JPA persistence
engine support
hibernate-envers | 4.3.1.Final | |
enterprise-3.0.1 | Hibernate Envers 4.3.x
hibernate-validator | 5.0.3.Final | |
enterprise-3.0.1 | Hibernate Validator support
jndi | 3.0.1 | |
enterprise-3.0.1 | OSGi Service Registry JNDI access
jdbc | 3.0.1 | |
enterprise-3.0.1 | JDBC service and commands
jms | 3.0.1 | |
enterprise-3.0.1 | JMS service and commands
openwebbeans | 1.2.1 | |
enterprise-3.0.1 | Apache OpenWebBeans CDI container
support
weld | 2.1.1.Final | |
enterprise-3.0.1 | JBoss Weld CDI container support
application-without-isolation | 1.0.0 | |
enterprise-3.0.1 | Provide EBA archive support
pax-jetty | 8.1.14.v20131031 | |
org.ops4j.pax.web-3.1.0 | Provide Jetty engine support
pax-tomcat | 7.0.27.1 | |
org.ops4j.pax.web-3.1.0 | Provide Tomcat engine support
pax-http | 3.1.0 | |
org.ops4j.pax.web-3.1.0 | Implementation of the OSGI HTTP Service
pax-http-whiteboard | 3.1.0 | |
org.ops4j.pax.web-3.1.0 | Provide HTTP Whiteboard pattern support
pax-war | 3.1.0 | |
org.ops4j.pax.web-3.1.0 | Provide support of a full WebContainer
pax-cdi | 0.7.0 | |
org.ops4j.pax.cdi-0.7.0 | Provide CDI support
pax-cdi-1.1 | 0.7.0 | |
org.ops4j.pax.cdi-0.7.0 | Provide CDI 1.1 support
pax-cdi-weld | 0.7.0 | |
org.ops4j.pax.cdi-0.7.0 | Weld CDI support
pax-cdi-1.1-weld | 0.7.0 | |
org.ops4j.pax.cdi-0.7.0 | Weld CDI 1.1 support
pax-cdi-openwebbeans | 0.7.0 | |
org.ops4j.pax.cdi-0.7.0 | OpenWebBeans CDI support
pax-cdi-web | 0.7.0 | |
org.ops4j.pax.cdi-0.7.0 | Web CDI support
pax-cdi-1.1-web | 0.7.0 | |
org.ops4j.pax.cdi-0.7.0 | Web CDI 1.1 support
pax-cdi-web-weld | 0.7.0 | |
org.ops4j.pax.cdi-0.7.0 | Weld Web CDI support
pax-cdi-1.1-web-weld | 0.7.0 | |
org.ops4j.pax.cdi-0.7.0 | Weld Web CDI 1.1 support
pax-cdi-web-openwebbeans | 0.7.0 | |
org.ops4j.pax.cdi-0.7.0 | OpenWebBeans Web CDI support
pax-cdi-deltaspike-core | >0.5 | |
org.ops4j.pax.cdi-0.7.0 | Apache Deltaspike core support
pax-cdi-deltaspike-jpa | 0.5 | |
org.ops4j.pax.cdi-0.7.0 | Apche Deltaspike jpa support
spring-dm | 1.2.1 | |
spring-3.0.1 | Spring DM support
spring-dm-web | 1.2.1 | |
spring-3.0.1 | Spring DM Web support
spring | 3.1.4.RELEASE | |
spring-3.0.1 | Spring 3.1.x support
spring-aspects | 3.1.4.RELEASE | |
spring-3.0.1 | Spring 3.1.x AOP support
spring-instrument | 3.1.4.RELEASE | |
spring-3.0.1 | Spring 3.1.x Instrument support
spring-jdbc | 3.1.4.RELEASE | |
spring-3.0.1 | Spring 3.1.x JDBC support
spring-jms | 3.1.4.RELEASE | |
spring-3.0.1 | Spring 3.1.x JMS support
spring-struts | 3.1.4.RELEASE | |
spring-3.0.1 | Spring 3.1.x Struts support
spring-test | 3.1.4.RELEASE | |
spring-3.0.1 | Spring 3.1.x Test support
spring-orm | 3.1.4.RELEASE | |
spring-3.0.1 | Spring 3.1.x ORM support
spring-oxm | 3.1.4.RELEASE | |
spring-3.0.1 | Spring 3.1.x OXM support
spring-tx | 3.1.4.RELEASE | |
spring-3.0.1 | Spring 3.1.x Transaction (TX) support
spring-web | 3.1.4.RELEASE | |
spring-3.0.1 | Spring 3.1.x Web support
spring-web-portlet | 3.1.4.RELEASE | |
spring-3.0.1 | Spring 3.1.x Web Portlet support
spring | 3.2.4.RELEASE | |
spring-3.0.1 | Spring 3.2.x support
spring-aspects | 3.2.4.RELEASE | |
spring-3.0.1 | Spring 3.2.x AOP support
spring-instrument | 3.2.4.RELEASE | |
spring-3.0.1 | Spring 3.2.x Instrument support
spring-jdbc | 3.2.4.RELEASE | |
spring-3.0.1 | Spring 3.2.x JDBC support
spring-jms | 3.2.4.RELEASE | |
spring-3.0.1 | Spring 3.2.x JMS support
spring-struts | 3.2.4.RELEASE | |
spring-3.0.1 | Spring 3.2.x Struts support
spring-test | 3.2.4.RELEASE | |
spring-3.0.1 | Spring 3.2.x Test support
spring-orm | 3.2.4.RELEASE | |
spring-3.0.1 | Spring 3.2.x ORM support
spring-oxm | 3.2.4.RELEASE | |
spring-3.0.1 | Spring 3.2.x OXM support
spring-tx | 3.2.4.RELEASE | |
spring-3.0.1 | Spring 3.2.x Transaction (TX) support
spring-web | 3.2.4.RELEASE | |
spring-3.0.1 | Spring 3.2.x Web support
spring-web-portlet | 3.2.4.RELEASE | |
spring-3.0.1 | Spring 3.2.x Web Portlet support
spring | 4.0.2.RELEASE_1 | |
spring-3.0.1 | Spring 4.0.x support
spring-aspects | 4.0.2.RELEASE_1 | |
spring-3.0.1 | Spring 4.0.x AOP support
spring-instrument | 4.0.2.RELEASE_1 | |
spring-3.0.1 | Spring 4.0.x Instrument support
spring-jdbc | 4.0.2.RELEASE_1 | |
spring-3.0.1 | Spring 4.0.x JDBC support
spring-jms | 4.0.2.RELEASE_1 | |
spring-3.0.1 | Spring 4.0.x JMS support
spring-test | 4.0.2.RELEASE_1 | |
spring-3.0.1 | Spring 4.0.x Test support
spring-orm | 4.0.2.RELEASE_1 | |
spring-3.0.1 | Spring 4.0.x ORM support
spring-oxm | 4.0.2.RELEASE_1 | |
spring-3.0.1 | Spring 4.0.x OXM support
spring-tx | 4.0.2.RELEASE_1 | |
spring-3.0.1 | Spring 4.0.x Transaction (TX) support
spring-web | 4.0.2.RELEASE_1 | |
spring-3.0.1 | Spring 4.0.x Web support
spring-web-portlet | 4.0.2.RELEASE_1 | |
spring-3.0.1 | Spring 4.0.x Web Portlet support
spring-websocket | 4.0.2.RELEASE_1 | |
spring-3.0.1 | Spring 4.0.x WebSocket support
spring-security | 3.1.4.RELEASE | |
spring-3.0.1 | Spring Security 3.1.x support
gemini-blueprint | 1.0.0.RELEASE | |
spring-3.0.1 | Gemini Blueprint Extender
Le 08/07/2014 10:00, Achim Nierbeck [via Karaf] a écrit :
> This is rather strange, cause the Integration tests work fine [1].
> Could you check that you didn't install parts of Pax Web 3 and 4
> and/or the corresponding Jetty versions?
>
> regards, Achim
>
> [1] -
> http://ci.ops4j.org/jenkins/job/org.ops4j.pax.web/571/org.ops4j.pax.web.itest$pax-web-itest-karaf/
>
>
> 2014-07-08 9:40 GMT+02:00 jimmy <[hidden email]
> </user/SendEmail.jtp?type=node&node=4034045&i=0>>:
>
> here is the result of
>
>
> *find-class SelectChannelConnector*
>
> Jetty :: Server Core (95)
> org/eclipse/jetty/server/nio/NetworkTrafficSelectChannelConnector.class
>
> OPS4J Pax Web - Jetty (113)
> org/eclipse/jetty/server/nio/NetworkTrafficSelectChannelConnector.class
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034044.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer & Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the
> discussion below:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034045.html
> To unsubscribe from WebSocket, click here
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4034012&code=amltbXkucGFubmllckBpbm92ZWxhbi5mcnw0MDM0MDEyfC01NTUxNDMzNzU=>.
> NAML
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
*Jimmy PANNIER*
Ingénieur de développement
Pôle Édition
169, Rue Sadi Carnot
59350 Saint André-Lez-Lille
03.20.06.16.17
logo_inovelan_mini.png (6K) <http://karaf.922171.n3.nabble.com/attachment/4034048/0/logo_inovelan_mini.png>
--
View this message in context: http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034048.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: WebSocket
Posted by Achim Nierbeck <bc...@googlemail.com>.
This is rather strange, cause the Integration tests work fine [1].
Could you check that you didn't install parts of Pax Web 3 and 4 and/or the
corresponding Jetty versions?
regards, Achim
[1] -
http://ci.ops4j.org/jenkins/job/org.ops4j.pax.web/571/org.ops4j.pax.web.itest$pax-web-itest-karaf/
2014-07-08 9:40 GMT+02:00 jimmy <ji...@inovelan.fr>:
> here is the result of
>
>
> *find-class SelectChannelConnector*
>
> Jetty :: Server Core (95)
> org/eclipse/jetty/server/nio/NetworkTrafficSelectChannelConnector.class
>
> OPS4J Pax Web - Jetty (113)
> org/eclipse/jetty/server/nio/NetworkTrafficSelectChannelConnector.class
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034044.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Software Architect / Project Manager / Scrum Master
Re: WebSocket
Posted by jimmy <ji...@inovelan.fr>.
here is the result of
*find-class SelectChannelConnector*
Jetty :: Server Core (95)
org/eclipse/jetty/server/nio/NetworkTrafficSelectChannelConnector.class
OPS4J Pax Web - Jetty (113)
org/eclipse/jetty/server/nio/NetworkTrafficSelectChannelConnector.class
--
View this message in context: http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034044.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: WebSocket
Posted by Ryan Moquin <fr...@gmail.com>.
Looks not all the classes are deployed... since it can't find one of the
eclipse classes....
On Jul 8, 2014 3:35 AM, "jimmy" <ji...@inovelan.fr> wrote:
> Ok,
>
> pax-jetty feature is installed but it does'nt start.
>
> 2014-07-08 03:30:11,251 | ERROR | pool-9-thread-1 | Activator
> | 112 - org.ops4j.pax.web.pax-web-runtime - 4.0.0.SNAPSHOT | Unable to
> start
> pax web server: Exception while starting Jetty
> java.lang.RuntimeException: Exception while starting Jetty
> at
>
> org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.start(JettyServerImpl.java:163)[113:org.ops4j.pax.web.pax-web-jetty:4.0.0.SNAPSHOT]
> at
>
> org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Stopped.start(ServerControllerImpl.java:415)[113:org.ops4j.pax.web.pax-web-jetty:4.0.0.SNAPSHOT]
> at
>
> org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.start(ServerControllerImpl.java:71)[113:org.ops4j.pax.web.pax-web-jetty:4.0.0.SNAPSHOT]
> at
>
> org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Unconfigured.configure(ServerControllerImpl.java:736)[113:org.ops4j.pax.web.pax-web-jetty:4.0.0.SNAPSHOT]
> at
>
> org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.configure(ServerControllerImpl.java:87)[113:org.ops4j.pax.web.pax-web-jetty:4.0.0.SNAPSHOT]
> at
>
> org.ops4j.pax.web.service.internal.Activator.updateController(Activator.java:349)[112:org.ops4j.pax.web.pax-web-runtime:4.0.0.SNAPSHOT]
> at
>
> org.ops4j.pax.web.service.internal.Activator$3.run(Activator.java:291)[112:org.ops4j.pax.web.pax-web-runtime:4.0.0.SNAPSHOT]
> at
>
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_60]
> at
> java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_60]
> at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_60]
> at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_60]
> at java.lang.Thread.run(Thread.java:745)[:1.7.0_60]
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)[:1.7.0_60]
> at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_60]
> at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_60]
> at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_60]
> at
>
> org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.start(JettyServerImpl.java:127)[113:org.ops4j.pax.web.pax-web-jetty:4.0.0.SNAPSHOT]
> ... 11 more
> Caused by: *java.lang.ClassNotFoundException:
> org.eclipse.jetty.server.nio.SelectChannelConnector not found* by
> org.eclipse.jetty.server [95]
> at
>
> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532)
> at
>
> org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
> at
>
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)[:1.7.0_60]
> at
>
> org.apache.felix.framework.BundleWiringImpl.getClassByDelegation(BundleWiringImpl.java:1374)
> at
>
> org.apache.felix.framework.BundleWiringImpl.searchDynamicImports(BundleWiringImpl.java:1630)
> at
>
> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1511)
> at
>
> org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
> at
>
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)[:1.7.0_60]
> at org.eclipse.jetty.util.Loader.loadClass(Loader.java:100)
> at
>
> org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.nodeClass(XmlConfiguration.java:364)
> at
>
> org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:754)
> at
>
> org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1125)
> at
>
> org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:1030)
> at
>
> org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:721)
> at
>
> org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:417)
> at
>
> org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:298)
> at
> org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:248)
> ... 16 more
>
> So i'm unable to test websocket.
>
> Sorry, i know that's a snapshot...
>
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034043.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
Re: WebSocket
Posted by jimmy <ji...@inovelan.fr>.
Ok,
pax-jetty feature is installed but it does'nt start.
2014-07-08 03:30:11,251 | ERROR | pool-9-thread-1 | Activator
| 112 - org.ops4j.pax.web.pax-web-runtime - 4.0.0.SNAPSHOT | Unable to start
pax web server: Exception while starting Jetty
java.lang.RuntimeException: Exception while starting Jetty
at
org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.start(JettyServerImpl.java:163)[113:org.ops4j.pax.web.pax-web-jetty:4.0.0.SNAPSHOT]
at
org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Stopped.start(ServerControllerImpl.java:415)[113:org.ops4j.pax.web.pax-web-jetty:4.0.0.SNAPSHOT]
at
org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.start(ServerControllerImpl.java:71)[113:org.ops4j.pax.web.pax-web-jetty:4.0.0.SNAPSHOT]
at
org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Unconfigured.configure(ServerControllerImpl.java:736)[113:org.ops4j.pax.web.pax-web-jetty:4.0.0.SNAPSHOT]
at
org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.configure(ServerControllerImpl.java:87)[113:org.ops4j.pax.web.pax-web-jetty:4.0.0.SNAPSHOT]
at
org.ops4j.pax.web.service.internal.Activator.updateController(Activator.java:349)[112:org.ops4j.pax.web.pax-web-runtime:4.0.0.SNAPSHOT]
at
org.ops4j.pax.web.service.internal.Activator$3.run(Activator.java:291)[112:org.ops4j.pax.web.pax-web-runtime:4.0.0.SNAPSHOT]
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_60]
at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_60]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_60]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_60]
at java.lang.Thread.run(Thread.java:745)[:1.7.0_60]
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_60]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_60]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_60]
at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_60]
at
org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.start(JettyServerImpl.java:127)[113:org.ops4j.pax.web.pax-web-jetty:4.0.0.SNAPSHOT]
... 11 more
Caused by: *java.lang.ClassNotFoundException:
org.eclipse.jetty.server.nio.SelectChannelConnector not found* by
org.eclipse.jetty.server [95]
at
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532)
at
org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)[:1.7.0_60]
at
org.apache.felix.framework.BundleWiringImpl.getClassByDelegation(BundleWiringImpl.java:1374)
at
org.apache.felix.framework.BundleWiringImpl.searchDynamicImports(BundleWiringImpl.java:1630)
at
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1511)
at
org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)[:1.7.0_60]
at org.eclipse.jetty.util.Loader.loadClass(Loader.java:100)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.nodeClass(XmlConfiguration.java:364)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:754)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1125)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:1030)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:721)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:417)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:298)
at
org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:248)
... 16 more
So i'm unable to test websocket.
Sorry, i know that's a snapshot...
--
View this message in context: http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034043.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: WebSocket
Posted by Achim Nierbeck <bc...@googlemail.com>.
I usually use maven 3.0.5 since we had some issues in the past with maven >
3.1.x
regards, Achim
2014-07-07 17:11 GMT+02:00 jimmy <ji...@inovelan.fr>:
> Which version of maven are you using ?
> My version is 3.2.2
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034031.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Software Architect / Project Manager / Scrum Master
Re: WebSocket
Posted by jimmy <ji...@inovelan.fr>.
Which version of maven are you using ?
My version is 3.2.2
--
View this message in context: http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034031.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: WebSocket
Posted by Achim Nierbeck <bc...@googlemail.com>.
Oh how nice,
looks like you have either a network issue or your nexus-proxy doesn't like
those artefacts.
Cause if I look at [1] for the asm-all artifact it's working nicely.
regards, Achim
[1] - http://search.maven.org/#browse%7C1328442904
2014-07-07 16:59 GMT+02:00 jimmy <ji...@inovelan.fr>:
> Mmmmm,
>
> a vi command of asm-all-5.0.2.jar
>
> gives
>
> <html>
> <head><title>301 Moved Permanently</title></head>
> <body bgcolor="white">
> <center>
> 301 Moved Permanently
> </center>
> <hr><center>nginx/1.4.1</center>
> </body>
> </html>
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034029.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Software Architect / Project Manager / Scrum Master
Re: WebSocket
Posted by jimmy <ji...@inovelan.fr>.
Mmmmm,
a vi command of asm-all-5.0.2.jar
gives
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center>
301 Moved Permanently
</center>
<hr><center>nginx/1.4.1</center>
</body>
</html>
--
View this message in context: http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034029.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: WebSocket
Posted by jimmy <ji...@inovelan.fr>.
In fact it seeems that bundles are corrupted :( .
when i explore my m2 repository, i cannot open the files
- org.ow2.asm/asm-all/5.0.2
- org.ops4j.pax.web/jetty-annotations/4.0.0-SNAPSHOT
- org.ops4j.pax.web/jetty-continuation/4.0.0-SNAPSHOT
- org.eclipse.jetty/jetty-http/9.0.7.v20131107
- org.eclipse.jetty/...
--
View this message in context: http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034028.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: WebSocket
Posted by Achim Nierbeck <bc...@googlemail.com>.
erf, not again.
Could you open an issue for the asm issue?
looks a lot like I need to rewrap that one again.
If you want to test it, check out the sources for Pax Web (from github) and
change the url of that bundle to:
wrap:mvn:org.ow2.asm/asm-all/5.0.2
this is due to an issue with the karaf feature installer, which dosn't like
manipulated zip files. Cause a regular bundled does contain the manifest as
first entry.
This is fixed with latest Karaf 3.0.2-SNAPSHOT and 4.0.0-SNAPSHOT
For your first issue, this is due to a bug in oss.sonatype which sends a
404 html page with a returncode of 200.
This way maven interpretes it as a valid response.
regards, Achim
2014-07-07 16:14 GMT+02:00 jimmy <ji...@inovelan.fr>:
> So i've added the repo throught http protocol directly
>
> *feature:repo-add
>
> https://oss.sonatype.org/service/local/repositories/ops4j-snapshots/content/org/ops4j/pax/web/pax-web-features/4.0.0-SNAPSHOT/pax-web-features-4.0.0-20140706.213330-201-features.xml*
>
> the repo is added but
> *feature:install pax-jetty*
>
> gives
>
> Error executing command: Manifest not present in the first entry of the zip
> mvn:org.ow2.asm/asm-all/5.0.2
>
>
>
>
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034024.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Software Architect / Project Manager / Scrum Master
Re: WebSocket
Posted by jimmy <ji...@inovelan.fr>.
So i've added the repo throught http protocol directly
*feature:repo-add
https://oss.sonatype.org/service/local/repositories/ops4j-snapshots/content/org/ops4j/pax/web/pax-web-features/4.0.0-SNAPSHOT/pax-web-features-4.0.0-20140706.213330-201-features.xml*
the repo is added but
*feature:install pax-jetty*
gives
Error executing command: Manifest not present in the first entry of the zip
mvn:org.ow2.asm/asm-all/5.0.2
--
View this message in context: http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034024.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: WebSocket
Posted by jimmy <ji...@inovelan.fr>.
Sorry but i'm unable to install it...
here a part of config file org.ops4j.pax.url.mvn.cfg in which i've
added the repository containing the snapshots
org.ops4j.pax.url.mvn.repositories= \
http://repository.apache.org/content/groups/snapshots-group@id=apache@snapshots@noreleases,
\
http://oss.sonatype.org/content/repositories/snapshots@id=sonatype.snapshots.deploy@snapshots@norelease,
\
http://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.sonatype.snapshots.deploy@snapshots@noreleases,
\
http://repo1.maven.org/maven2@id=central, \
http://repository.springsource.com/maven/bundles/release@id=spring.ebr.release,
\
http://repository.springsource.com/maven/bundles/external@id=spring.ebr.external,
\
file:${karaf.home}/${karaf.default.repository}@id=system.repository, \
file:${karaf.data}/kar@id=kar.repository@multi
feature:repo-add
mvn:org.ops4j.pax.web/pax-web-features/4.0.0-SNAPSHOT/xml/features
gives me
Error executing command: The element type "hr" must be terminated by the
matching end-tag "</hr>".
Le 07/07/2014 15:28, Achim Nierbeck [via Karaf] a écrit :
> It is available already and is deployed by the pax web integration
> build for every successful build [1].
>
> regards, Achim
>
> [1] -
> https://oss.sonatype.org/#nexus-search;gav~org.ops4j.pax.web~pax-web-features~~~~kw,versionexpand
> <https://oss.sonatype.org/#nexus-search;gav%7Eorg.ops4j.pax.web%7Epax-web-features%7E%7E%7E%7Ekw,versionexpand>
>
>
>
>
>
> 2014-07-07 15:17 GMT+02:00 Jean-Baptiste Onofré <[hidden email]
> </user/SendEmail.jtp?type=node&node=4034021&i=0>>:
>
> I will deploy a 4.0.0-SNAPSHOT asap.
>
> Regards
> JB
>
>
> On 07/07/2014 03:16 PM, jimmy wrote:
>
> In fact, there is no repository with this deployed version.
>
> I've found the source in github, i have to build and deploy it
> to my nexus
> repository
> https://github.com/ops4j/org.ops4j.pax.web
>
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034019.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
>
> --
> Jean-Baptiste Onofré
> [hidden email] </user/SendEmail.jtp?type=node&node=4034021&i=1>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer & Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the
> discussion below:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034021.html
> To unsubscribe from WebSocket, click here
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4034012&code=amltbXkucGFubmllckBpbm92ZWxhbi5mcnw0MDM0MDEyfC01NTUxNDMzNzU=>.
> NAML
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
*Jimmy PANNIER*
Ingénieur de développement
Pôle Édition
169, Rue Sadi Carnot
59350 Saint André-Lez-Lille
03.20.06.16.17
logo_inovelan_mini.png (6K) <http://karaf.922171.n3.nabble.com/attachment/4034023/0/logo_inovelan_mini.png>
--
View this message in context: http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034023.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: WebSocket
Posted by jimmy <ji...@inovelan.fr>.
Super,
Thanks, Jimmy
Le 07/07/2014 15:28, Achim Nierbeck [via Karaf] a écrit :
> It is available already and is deployed by the pax web integration
> build for every successful build [1].
>
> regards, Achim
>
> [1] -
> https://oss.sonatype.org/#nexus-search;gav~org.ops4j.pax.web~pax-web-features~~~~kw,versionexpand
> <https://oss.sonatype.org/#nexus-search;gav%7Eorg.ops4j.pax.web%7Epax-web-features%7E%7E%7E%7Ekw,versionexpand>
>
>
>
>
>
> 2014-07-07 15:17 GMT+02:00 Jean-Baptiste Onofré <[hidden email]
> </user/SendEmail.jtp?type=node&node=4034021&i=0>>:
>
> I will deploy a 4.0.0-SNAPSHOT asap.
>
> Regards
> JB
>
>
> On 07/07/2014 03:16 PM, jimmy wrote:
>
> In fact, there is no repository with this deployed version.
>
> I've found the source in github, i have to build and deploy it
> to my nexus
> repository
> https://github.com/ops4j/org.ops4j.pax.web
>
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034019.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
>
> --
> Jean-Baptiste Onofré
> [hidden email] </user/SendEmail.jtp?type=node&node=4034021&i=1>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer & Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the
> discussion below:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034021.html
> To unsubscribe from WebSocket, click here
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4034012&code=amltbXkucGFubmllckBpbm92ZWxhbi5mcnw0MDM0MDEyfC01NTUxNDMzNzU=>.
> NAML
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
*Jimmy PANNIER*
Ingénieur de développement
Pôle Édition
169, Rue Sadi Carnot
59350 Saint André-Lez-Lille
03.20.06.16.17
logo_inovelan_mini.png (6K) <http://karaf.922171.n3.nabble.com/attachment/4034022/0/logo_inovelan_mini.png>
--
View this message in context: http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034022.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: WebSocket
Posted by Achim Nierbeck <bc...@googlemail.com>.
It is available already and is deployed by the pax web integration build
for every successful build [1].
regards, Achim
[1] -
https://oss.sonatype.org/#nexus-search;gav~org.ops4j.pax.web~pax-web-features~~~~kw,versionexpand
2014-07-07 15:17 GMT+02:00 Jean-Baptiste Onofré <jb...@nanthrax.net>:
> I will deploy a 4.0.0-SNAPSHOT asap.
>
> Regards
> JB
>
>
> On 07/07/2014 03:16 PM, jimmy wrote:
>
>> In fact, there is no repository with this deployed version.
>>
>> I've found the source in github, i have to build and deploy it to my nexus
>> repository
>> https://github.com/ops4j/org.ops4j.pax.web
>>
>>
>>
>>
>>
>> --
>> View this message in context: http://karaf.922171.n3.nabble.
>> com/WebSocket-tp4034012p4034019.html
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Software Architect / Project Manager / Scrum Master
Re: WebSocket
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
I will deploy a 4.0.0-SNAPSHOT asap.
Regards
JB
On 07/07/2014 03:16 PM, jimmy wrote:
> In fact, there is no repository with this deployed version.
>
> I've found the source in github, i have to build and deploy it to my nexus
> repository
> https://github.com/ops4j/org.ops4j.pax.web
>
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034019.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: WebSocket
Posted by jimmy <ji...@inovelan.fr>.
In fact, there is no repository with this deployed version.
I've found the source in github, i have to build and deploy it to my nexus
repository
https://github.com/ops4j/org.ops4j.pax.web
--
View this message in context: http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034019.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: WebSocket
Posted by jimmy <ji...@inovelan.fr>.
Yes, i've seen that pax-web 4.0.0-snapshot include jetty 9.
https://ops4j1.jira.com/wiki/display/paxweb/Pax+Web
But i cannot download it, i'm searching for feature file but i don't find
it.
i've found the repo
https://oss.sonatype.org/content/repositories/snapshots@norelease/org/ops4j/pax/web/pax-web-spi/4.0.0-SNAPSHOT/
in the snapshot version of karaf but no success
--
View this message in context: http://karaf.922171.n3.nabble.com/WebSocket-tp4034012p4034018.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: WebSocket
Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi,
you'd need to switch to Pax Web 4.0.0-SNAPSHOT feature file, it also
contains a Jetty 9 bundle.
This should help, if not please file a issue at Pax Web so I can take a
closer look.
regards, Achim
2014-07-07 14:42 GMT+02:00 jimmy <ji...@inovelan.fr>:
> Hi, how to install jetty 9 in karaf.
>
> in the original repo-feature, when installing pax-jetty the jetty version
> is
> 8.1.14.v20131031
>
> In fact, i get a problem because i'd like to use websocket protocol using
> the annotation
>
> *@ServerEndpoint("/websocket")*
>
> but when i deploy my bundle, this annotation isn't detected and i get an
> http 404 when i try to access to /websocket.
>
> It is working in a glassfish environnement but not in karaf. So i think
> switching to jetty 9 is better for JSR356
>
> I've tested also to add jetty-websocket bundle, but it doesn't resolve the
> issue.
> install -s mvn:org.eclipse.jetty/jetty-websocket/8.1.14.v20131031
>
> Plz help.
> Thanks in advance.
>
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/WebSocket-tp4034012.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Software Architect / Project Manager / Scrum Master