Giter Club home page Giter Club logo

Comments (6)

casualjim avatar casualjim commented on May 21, 2024

We can't use the sbt jetty-run task because of class loader issues which prevent socket.io from accessing jetty classes like HttpConnection.getCurrent (if that is null gives a good indication that you have duplicate jars or other class loader issues)

Will check the socket-io stuff for the newer jetty version.

from scalatra.

vvilhonen avatar vvilhonen commented on May 21, 2024

What is the exact issue? Duplicate jars? It's very annoying having to deploy the war to jetty all the time when developing socketio related stuff..

from scalatra.

casualjim avatar casualjim commented on May 21, 2024

you can also create an embedded jetty server and launch that then sbt doesn't come into play

we have a sbt task that runs such an embbedded server as run task

from scalatra.

rossabaker avatar rossabaker commented on May 21, 2024

Confirmed that this is still broken. It used to work with sbt jetty-run -- I've seen it work, and that's how I used to launch it. Log just says:

[warn] Error for /socket.io/socket.io.js

I tried upgrading to Jetty 8.0.0.M2 (socketio-java builds against this), and it says:

[warn] Error for /socket.io/websocket

There has been some action in the upstream library. May be worth merging that as a preliminary step.

from scalatra.

rossabaker avatar rossabaker commented on May 21, 2024

As of latest snapshot of socketio-java, example now works for me in Firefox 5.0/Linux using sbt. Fails in Chromium 12.0.742.112.

from scalatra.

rossabaker avatar rossabaker commented on May 21, 2024

There are wicked classloader issues with Jetty and SocketIO-java. Running it outside of sbt should work.

We are going to deprecate this module. Our recommendation will be to use Atmosphere as an alternative to SocketIO-Java. An example can be found at https://gist.github.com/913295.

from scalatra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.