Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] How to set Context

Hi All, 

I have a Java application that I'd like to have communicate with the Browser using Websockets. Jetty seems like a perfect fit, because of its small footprint. I was able to embed the jar file jetty-all-9.3.3.*-uber.jar as a library in my application and launch the server but when I open the browser I get the error below. How do I set the Context in this arrangement to serve the files from a specific local directory?

Any pointers would be greatly appreciated.

Thanks much,
-Ayman

HTTP ERROR: 404

Problem accessing /. Reason:

    Not Found


Back to the top