jetty

Jetty/winstone connector configuration in Jenkins

◇◆丶佛笑我妖孽 提交于 2020-01-15 03:33:08
问题 I am experiencing slow download times over WAN links from JENKINS. Not going into details of the problem i would like to configure Jetty apparently used by Jenkins to add the following connector: <New class="org.eclipse.jetty.server.nio.SelectChannelConnector"> <Set name="host"><Property name="application-host"/></Set> <Set name="port"><Property name="application-port"/></Set> <Set name="forwarded">true</Set> <Set name="responseBufferSize">16777216</Set> <Set name="responseHeaderSize">1048576

Receiving “InvalidStateError: DOM Exception 11” during websocket.send

╄→尐↘猪︶ㄣ 提交于 2020-01-15 03:20:26
问题 I am getting this error: DOM Invalidate exception 11 From following code but I cannot find the cause. /*This is little bit pseudo stylish coded so might have some syntax errors */ var socket; var client = { connect: function(){ socket = new WebSocket(mylocation); socket.onopen = this.open; socket.send = this.send; }, open: function(){ this.send("Sent from socket open function"); //works socket.send("Sent from socket open function"); //works }, _send: function(){ socket.send("Sent from send

BufferedReader ready method

时光怂恿深爱的人放手 提交于 2020-01-15 01:04:38
问题 I am observing a strange behaviour with the java.io.BufferedReader's ready method which returns false inside Tomcat while it returns true when the same servlet is run within Jetty. BufferedReader bufferedReader = httpRequest.getReader(); System.out.println(bufferedReader.ready()); /** Perform some read operation */ Output: true //Jetty false //Tomcat I understand that the BufferedReader#ready method only indicates if the next read is not going to blocked for the input(true) or not(false), but

Problem setting up GzipFilter in Jetty

荒凉一梦 提交于 2020-01-14 18:51:50
问题 I'm trying to setup Jetty to serve compressed html content. In web.xml I setup GzipFilter and mapped it to /* but this doesn't seem to work. Here's the filter configuration: <filter> <filter-name>GZipFilter</filter-name> <display-name>Jetty's GZip Filter</display-name> <description>Filter that zips all the content on-the-fly</description> <filter-class>org.mortbay.servlet.GzipFilter</filter-class> <init-param> <param-name>mimeTypes</param-name> <param-value>text/html</param-value> </init

How to properly set the JVM options in a flexible GAE application

£可爱£侵袭症+ 提交于 2020-01-14 10:33:12
问题 the following is my app.yaml file for a GAE flexible Java 8 / Jetty application. runtime: java env: flex manual_scaling: instances: 1 runtime_config: # Optional jdk: openjdk8 server: jetty9 resources: cpu: 2 memory_gb: 4.0 env_variables: JAVA_HEAP_OPTS: -Xms3072M -Xmx3072M health_check: enable_health_check: False handlers: - url: /.* script: this field is required, but ignored For some reason the JAVA_HEAP_OPTS value is not used when deploying the app. A least I don't think it's used, because

jetty 9: setting up the most basic SSL / https

流过昼夜 提交于 2020-01-14 09:36:19
问题 NOTE: If you want to see the behaviour of this demo app, just go to www.collaborativepowernowinternational.us. Here, select the testssl.PersonController, and you may create a person. Then go and edit the person, where the SSL channel is designated, which will give a redirect loop. It seems like with Jetty 9 more configuration items went into the start.ini file, I have version 9.05. In order to test the most basic SSL/https, I am uncommenting the following lines in start.ini: #================

Maven doesn't compile webapp

北慕城南 提交于 2020-01-14 05:53:27
问题 Before I made a simple dynamic web project with websockets and without maven, it works fine. Now I try to use maven. But when I'm compiling my project with mvn compile jetty:run it doesn't build with javax.servlet.UnavailableException: Servlet class com.example.testbattle.ServerSide is not a javax.servlet.Servlet exception. It requires to implement Servlet interface. Why didn't I need it with simple dynamic web project. How could I avoid this problem? UPDATE : I have found out the problem it

Can CKAN support Solr 7.0?

﹥>﹥吖頭↗ 提交于 2020-01-13 19:26:50
问题 I am trying to install Solr 7.0 and CKAN 2.7.2 in Ubuntu 16.04. However, I got the following errors : From Solr admin website: ckan: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load conf for core ckan: Can't load schema /var/solr/data/ckan/conf/schema.xml: Setting defaultSearchField in schema not supported since Solr 7 From CKAN installation when initiating Database: Solr responded with an error (HTTP 404): [Reason: Error 404 Not Found] So I wonder

Can CKAN support Solr 7.0?

我与影子孤独终老i 提交于 2020-01-13 19:26:28
问题 I am trying to install Solr 7.0 and CKAN 2.7.2 in Ubuntu 16.04. However, I got the following errors : From Solr admin website: ckan: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load conf for core ckan: Can't load schema /var/solr/data/ckan/conf/schema.xml: Setting defaultSearchField in schema not supported since Solr 7 From CKAN installation when initiating Database: Solr responded with an error (HTTP 404): [Reason: Error 404 Not Found] So I wonder

Running jetty from eclipse

南笙酒味 提交于 2020-01-13 10:14:45
问题 Please let me know how can I configure jetty server to run from eclipse IDE? Also, suggest me some good plugins for the same. I downloaded jetty launcher but not able create new configuration with it. Please help. 回答1: The best way I found to run Jetty from eclipse (and debug, etc.) was this : http://neelzone.wordpress.com/2007/06/18/jetty-and-eclipse-integration/ Basically, you create a java project, put jetty's code in it, create a context file in jetty/contexts that points to your web