jetty


How to change the temporary directory in jetty9?

巧了我就是萌 提交于 2020-01-17 09:01:48
问题 I want to make a temp directory for my jetty and change the default /tmp directory to mine temp directory, I tried this java -Djava.io.tmpdir=/home/jetty/temp When I want to start my jetty and it worked, but I'm looking for a way to change the temp directory once and for all. Is there any configuration or xml or something that I can change? 回答1: Are you wanting to change the working directory for your webapp? or the overall temp directory for all processes that might be running under Jetty?

maven-jetty-plugin question

家住魔仙堡 提交于 2020-01-17 01:21:41
问题 I need to start jetty before module tests. Example: <?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>jetty-test</groupId> <artifactId>jetty-test</artifactId> <version>1.0</version> <packaging>war</packaging> <build> <extensions> <extension> <groupId>org

Reset web interface password on Neo4j EC2 instance

那年仲夏 提交于 2020-01-16 13:23:45
问题 I set up Neo4j on an EC2 instance using this http://www.neo4j.org/develop/ec2 I have the SSH key so I can SSH into the instance, but I don't remember the password I set up for the web interface. I believe this is a Jetty basicauth equivalent, but I'm not sure, nor could I find the config files that might lead me to the right place. How can I reset this password? 回答1: `neo4j-server.properties´ has a setting for the auth-extension being used by the puppet script: org.neo4j.server.credentials=

Why is Rufus scheduling the job twice?

安稳与你 提交于 2020-01-15 09:53:21
问题 Steps to replicate: Create a new Rails project. (rails 3.2.22.5) Add dependencies (warbler, rake, rufus-scheduler) (/Gemfile) JRuby 9.1.7.0 Create new files. (/config/warble.rb) (/web.xml.erb) (/config/intializers/scheduler_rufus.rb) Create an executable war file with jetty webserver. (warble war RAILS_ENV=development) Launch the executable. (java -jar mywar.war) The scheduler runs the job 2 times. /Gemfile: source 'https://rubygems.org' gem 'rails', '3.2.22.5' # Bundle edge Rails instead: #

Why is Rufus scheduling the job twice?

给你一囗甜甜゛ 提交于 2020-01-15 09:52:08
问题 Steps to replicate: Create a new Rails project. (rails 3.2.22.5) Add dependencies (warbler, rake, rufus-scheduler) (/Gemfile) JRuby 9.1.7.0 Create new files. (/config/warble.rb) (/web.xml.erb) (/config/intializers/scheduler_rufus.rb) Create an executable war file with jetty webserver. (warble war RAILS_ENV=development) Launch the executable. (java -jar mywar.war) The scheduler runs the job 2 times. /Gemfile: source 'https://rubygems.org' gem 'rails', '3.2.22.5' # Bundle edge Rails instead: #

Jetty (mis)configuration: it wont respond from an external machine… why?

余生长醉 提交于 2020-01-15 06:51:49
问题 I installed jetty on an ubuntu 11 machine by sudo apt-get install jetty afterwards I configured the context, the war file and the NO_START variable. All works OK when I test it on the same machine, e.g. curl http://localhost:8080/ However, when I try to connect from an external machine, it just doesn't answer. I tried this both on a virtual machine on a Win 7 host, and on Amazon EC2. thanks, 回答1: Make sure this is not an firewall issue. Maybe 8080 port is closed by firewall. Also try add line

Dropwizard: How to fix 414 Request-URI Too Long

雨燕双飞 提交于 2020-01-15 06:44:28
问题 Request (GET) or (POST): http://localhost:8080/images?name=iVBORw0KGgoAAAANSUhEUgAAAAUA%20AAAFC...... Response: Status Code: 414 Request-URI Too Long Connection: close Content-Length: 0 How to increase the request size? 回答1: You have a Request URI that is over 8kb in size! Eeesh! Request-URI limits exist because of various vulnerabilities and bugs found in browsers, proxies, and networking hardware. While it is possible to increase the Request URI limit checks in Jetty, the values chosen for

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

工具导航Map