Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable JSR 356 #155

Closed
gaborbernat opened this issue Apr 2, 2015 · 7 comments
Closed

Enable JSR 356 #155

gaborbernat opened this issue Apr 2, 2015 · 7 comments
Assignees

Comments

@gaborbernat
Copy link

When developing a websocket at start I get:

Not running on Jetty, JSR-356 support unavailable

Adding a jetty-env.xml of:

<?xml version="1.0"?>
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
    <Call name="setAttribute">
        <Arg>org.eclipse.jetty.websocket.jsr356</Arg>
        <Arg type="Boolean">true</Arg>
    </Call>
</Configure>

I get the error:

java.lang.IllegalArgumentException: Object of class 'org.akhikhl.gretty.JettyWebAppContext' is not of type 'org.eclipse.jetty.webapp.WebAppContext'. Object Class and type Class are from different loaders.
@akhikhl
Copy link
Owner

akhikhl commented Apr 7, 2015

Can you provide an example to reproduce the problem?

@akhikhl
Copy link
Owner

akhikhl commented Apr 7, 2015

Please format XML snippets with triple backticks, as described here.

@gaborbernat
Copy link
Author

Updated :)

@akhikhl akhikhl self-assigned this Apr 7, 2015
@akhikhl
Copy link
Owner

akhikhl commented Apr 7, 2015

Can you provide a self-contained example program? Do you use spring-boot?

@gaborbernat
Copy link
Author

No sping bot, but I'll try to create an example tomorrow.

@akhikhl
Copy link
Owner

akhikhl commented Apr 9, 2015

gretty 1.2.1-SNAPSHOT brings out-of-the-box support of websocket and two new examples showing how to use websocket:

https://github.com/akhikhl/gretty/tree/master/examples/websocket

https://github.com/akhikhl/gretty/tree/master/examples/springBootWebSocket

Release 1.2.1 will contain all this.

@gaborbernat
Copy link
Author

I can confirm that my project too works with 1.2.1. This ticket may be closed.

@akhikhl akhikhl closed this as completed Apr 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants