embedded-jetty

Jetty and/or Servlet-api in JavaFX breaks deployment

旧巷老猫 提交于 2019-12-08 13:22:58
问题 I try to embed (use) Jetty into my JavaFX 2.2 applet (which runs in a browser). My problem is that, to host servlets I need to include the servlet-api-3.0.jar also (for javax.servlet namespaces) besides jetty-server.jar, jetty-servlet.jar and jetty-util.jar. If I include the servlet-api.jar, my project compiles, but when I run it inside the browser, the deployment fails with the "JavaFX application could not launch due to system configuration (show error details). See java.com/javafx for

Embedding jetty server into android applications

╄→гoц情女王★ 提交于 2019-12-08 13:20:43
问题 So far i am trying making sample android applications to embedded android jetty web server enables to run samples hello-3.1.war from Google code. While i run hello-3.1 in eclipse then null pointer exception has been occur. HTTP ERROR 500 Problem accessing /hello-3.1/sayit. Reason: INTERNAL_SERVER_ERROR Caused by: java.lang.NullPointerException at org.mortbay.ijetty.hello.HelloWorld.init(HelloWorld.java:29) at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440) at org

“Unable to start embedded container” after switch from tomcat to jetty,Spring boot

陌路散爱 提交于 2019-12-08 11:21:07
问题 I have a demo spring boot application following the guide https://spring.io/guides/gs/rest-service/ But I hope to use jetty container rather than tomcat , so I use the following pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>cn.webank</groupId>

Chrome under Windows 7 and 8 cannot connect to embedded Jetty 9.2.x over HTTPS

[亡魂溺海] 提交于 2019-12-08 09:54:18
问题 We're using Jetty 9.2.x in the embedded mode in conjunction with Restlet 2.3.1 to develop our application sever. Recently we've enabled support for HTTPS, which utilises a certificated signed by a self-established CA. Everything seemed to be working correctly when connecting to this server from various web browsers under Linux and Mac operating systems. However, when we expended out testing to machines running Windows 7 and 8 (all machines are on the same LAN), we've discovered that the

Jetty embed in Processing.org, static assets + POST

给你一囗甜甜゛ 提交于 2019-12-08 09:16:42
问题 I'm trying to embed Jetty in a Processing Sketch. So far I made it working to serve static files (a html directory in the Sketch folder). I want to react to one POST with a user input from one of the static pages. As I have no knowledge on Jetty and coming from a PHP & Ruby (RoR) web programing background I am very confused with the way things go in Jetty. I simply want something similar to routes where everything except e.g. "localhost:8080/post?string=whatever" is a static file. The post

Container-Agnostic Websocket throws NPE with Embedded Jetty

瘦欲@ 提交于 2019-12-08 07:02:32
问题 I'm writing a container-agnostic Websocket server. My development environment uses IntelliJ IDEA with an embedded Jetty version 9.3.11.v20160721 (embed code below). My code, however, uses the Tomcat Websocket libraries, tomcat-websocket-api and tomcat-websocket , version 8.5.4 . I want to register the Websocket EndPoint with a ServletContextListener . Following some examples from the Tyrus project, as well as some answers on SO and in the Jetty mailing list by Joakim Erdfelt (@joakim-erdfelt)

embedded jetty forward from servlet to jsp

点点圈 提交于 2019-12-08 04:53:19
问题 Im try to get my embedded jetty servlet to do some processing and then pass control over to a JSP which will generate a result page. The servlet gets mapped and called correctly however it fails to find the JSP. Since Im using embedded jetty I don't have a web.xml nor do I have a war. Maybe this means jetty doesn't know where to look for my JSP or something. If this is the case how can I tell eclipse/jetty where to find this or is there something Im missing with how I am calling the forward.

Embedded Jetty WebAppContext FilePermission issue

寵の児 提交于 2019-12-08 04:40:50
问题 I need to limit file permissions for "plug-in" WAR files containing servlets in an embedded Jetty. To test the file permissions, I created a WAR containing this servlet that tries to write to a file outside of the webapps folder: public class Test extends HttpServlet { protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { FileWriter outFile = new FileWriter("C:\\temp\\test.txt"); PrintWriter out = new PrintWriter(outFile);

Keycloak logout does not end session

≡放荡痞女 提交于 2019-12-08 02:58:12
问题 I am using Keycloak 3.4 in a Java Application using Spring Framework and Jetty 8.1 with Keycloak Jetty-81-Adapter 3.4. According to the Keycloak documentation I should be able to use the HttpServletRequest in a Java EE application to logout from Keycloak. However, this does not work in my case, even though Jetty supports HttpServletRequests. You can log out of a web application in multiple ways. For Java EE servlet containers, you can call HttpServletRequest.logout().. If I try to logout this

Understanding Jetty's “Closed while Pending/Unready” warning

可紊 提交于 2019-12-07 23:53:09
问题 We have an asynchronous servlet which produces the following warning log from Jetty: java.io.IOException: Closed while Pending/Unready After enabling debug logs I got the following stacktrace: WARN [jetty-25948] (HttpOutput.java:278) - java.io.IOException: Closed while Pending/Unready DEBUG [jetty-25948] (HttpOutput.java:279) - java.io.IOException: Closed while Pending/Unready at org.eclipse.jetty.server.HttpOutput.close(HttpOutput.java:277) ~[jetty-server.jar:9.4.8.v20171121] at org.eclipse