jetty

HTTP/2 priority & dependency test with Jetty

六月ゝ 毕业季﹏ 提交于 2019-12-11 11:33:31
问题 Priority & Dependency: Here I made I simple test. But the result seems not so good. I tried to make 100 request in a for loop in the same connection(the request url is the same, I am wondering whether this part influence the results). If the index is i, then my request stream_id is i while the dependent stream_id is 100+i. If our assumption is right, the request can never get response because there is no stream_id from 101 to 200. But the results shows there is no difference for setting the

Handshaker.algorithmConstraints

旧时模样 提交于 2019-12-11 11:31:51
问题 I am running the code Jetty provided for HTTP/2 client https://github.com/eclipse/jetty.project/blob/master/jetty-http2/http2-client/src/test/java/org/eclipse/jetty/http2/client/Client.java And I come across such a problem INFO::main: Logging initialized @166ms 2015-09-04 22:48:46.253:WARN:oejut.QueuedThreadPool:qtp1342443276-11: java.lang.IllegalAccessError: tried to access field sun.security.ssl.Handshaker.algorithmConstraints from class sun.security.ssl.ClientHandshaker at sun.security.ssl

Change Solr base context path

时光毁灭记忆、已成空白 提交于 2019-12-11 10:47:02
问题 I've installed a Solr (5.3.1 and 5.5.0) in a Ubuntu machine. With apache I've made a ProxyPass /MySolr http://{url}:8984/solr ProxyPassReverse /MySolr http://{url}:8984/solr So, when I load {url}/MySolr the Dashboard doesn't load because one json. http://{url}/solr/admin/cores?wt=json&indexInfo=false&_=... That's normal because the correct URL to load would be: http://{url}/MySolr/admin/cores?wt=json&indexInfo=false&_=... When i see the other resouces, solr get the correct URL like: http://

Keycloak with spring boot NoSuchMethodError org.eclipse.jetty.server.Request.getSessionManager()Lorg/eclipse/jetty/server/SessionManager

烂漫一生 提交于 2019-12-11 10:38:22
问题 I'm currently trying to get Keycloak bearer only to work with a spring boot application. I've followed the docs but I continue to get a NoSuchMethodError when I try to hit any of my endpoints. It seems similar to this keycloak issue. Based on that it looks like it should be working in all of the latest builds. I've followed this tutorial for the most part. I have the project here for reference. (POM, KeycloakConfiguration) Starting the app using mvn spring-boot:run When hitting any route (in

Is it possible to define jetty server in eclipse runtime environment?

自闭症网瘾萝莉.ら 提交于 2019-12-11 10:36:47
问题 I have created a REST WS application using eclipse WTP. So far, I was using Tomcat 7 to deploy my application. I could define Tomcat into Server runtime environments. Now i want to use jetty for to deploy that application, I downloaded jetty 8 and I have eclipse Indigo .. tried to define jetty the way i did for Tomcat but it did not work because the available adapter is for jetty6 and when I try to run my application using this adapter, I get a message saying the server does not suport

Spark Framework: Listen for server stop

北战南征 提交于 2019-12-11 10:02:11
问题 Is there a way to listen for when Spark framework is shutting down, to run some cleanup? For example, I want to close out my ElasticSearch client. 回答1: One approach is to use Runtime.getRuntime().addShutdownHook() . This is a general Java mechanism for running code when the program exits. Since a Spark Framework web application is just a normal web application, this will work. See the Java documentation. However, this hook will not be run if the VM process is aborted using the SIGKILL signal

Jetty service Thread crashes and uses 100% CPU

五迷三道 提交于 2019-12-11 09:51:26
问题 I have a strange problem with Jetty. After a while, serving requests, the CPU usage goes to 100%. I have found the thread responsible, and here are a few samples of its stack trace taken in eclipse: SocketInputStream.read(byte[], int, int) line: 113 ByteArrayBuffer.readFrom(InputStream, int) line: 388 SocketConnector$ConnectorEndPoint(StreamEndPoint).fill(Buffer) line: 132 SocketConnector$ConnectorEndPoint.fill(Buffer) line: 209 HttpParser.parseNext() line: 289 HttpParser.parseAvailable()

ActiveWeb web application does not run under Jetty

醉酒当歌 提交于 2019-12-11 09:36:28
问题 I have created sample web application, packaged it into WAR , then put it into webapps folder into jetty. And it does not work. Proof, windows from top to bottom: 1) The content of GreetingController.java 2) The compiled file is present inside WAR file in appropriate place 3) The web application is working, it's name is recognized (folder content displayed) 4) Controller is not working and it's name is not recognized What else to check? UPDATE My WAR file: https://www.sendspace.com/file

Jetty 9 “--module” instead of “OPTIONS”

前提是你 提交于 2019-12-11 09:28:00
问题 I am trying to switch Jetty from 7.6 to 9.2. I read and understood that "OPTION" will no more work. So I changed my command from java -jar start.jar --ini **OPTIONS**=server,jmx,resources,websocket,ext,plus,jsp,annotations /u/khandela/project/base//etc/config/cometd/cometd_jetty_config.xml to start.jar --ini **--module**=server,jmx,resources,websocket,ext,plus,jsp,annotations /u/khandela/project/base//etc/config/cometd/cometd_jetty_config.xml But I got below warning: WARNING: ** Unable to

Execute JSP with Jetty 7.3 without javac

久未见 提交于 2019-12-11 09:27:07
问题 The problem: I have a web application which is served by Jetty webserver v 7.3. I have a JSP page in the application. When I run the Jetty on system which has JDK(has javac) installed everything works fine. I want to port this to a system which has JRE(does not have javac). When I run the Jetty I get an error. The solution: Pre-compile the JSP into Servlet. Generate application war file which includes this servlet. Let jetty execute the Servlet in place of compiling and executing JSP at