Questions tagged [jetty]

Jetty is a widely used async java based http server and servlet engine supporting WebSockets and SPDY protocols.

Filter by
Sorted by
Tagged with
4 votes
1 answer
5k views

Jetty Service on Windows Server 2008 using Procrun: Missing service ImageFile

Xe want to run Jetty as a service on a Windows 2008 Server Virtual Machine. Therefore, I configured Jetty as a Windows Service using Apacke Procrun, following this short description: https://...
1 vote
1 answer
4k views

No protocol handler was valid for the URL /url. If you are using a DSO version of mod_proxy

Trying to set up a load balancer using Apache 2.4.x on Windows. Error: No protocol handler was valid for the URL /path/. If you are using a DSO version of mod_proxy, make sure the proxy submodules ...
2 votes
2 answers
7k views

Java crash due to native memory allocation map failure, despite n

A Java 11 application is crashing in a manner that from my understanding is impossible with the settings I have. The application in question runs on Amazon Linux 2, utilizing Java 11. The server is ...
0 votes
2 answers
2k views

Why can I not connect to jetty webserver on Ubuntu within AWS EC2 instance

Unable to connect from my webbrowser to my Jetty Server running on Ubuntu Linux SMP in Amazon Webservices EC2. I can connect using localhost whilst logged in from the machine itself i.e curl http://...
2 votes
1 answer
2k views

how to increase Apache mod_proxy Jetty 5minute timeout

we use Apache and Jetty to do install components behind a firewall. Some actions take a while ( 10-15 minutes ). Apache is the proxy and Jetty is the proxy target on some machines. Everything works ...
0 votes
1 answer
2k views

rewrite engine: How to test if URL on different server is reachable?

I am trying to use the rewrite engine of nginx to redirect requests. On the same machine I have a Jetty running on port 8080, which is delivering some content. I want to check if the content is ...
2 votes
1 answer
2k views

NullPointerException on jetty 7 startup with jetty deployment descriptor

I'm getting the following error when I start Jetty: 2010-03-01 12:30:19.328:WARN::Failed startup of context WebAppContext@15ddf5@15ddf5/webapp,null,/path/to/jetty-distribution-7.0.1.v20091125/webapps-...
1 vote
2 answers
3k views

jetty server executing php

I want to configure so that jetty runs PHP files, but have been unsuccessful so far. I have Jetty WTP tools installed in my Eclipse IDE. When I start up the Jetty server. I got the exception: java....
0 votes
2 answers
1k views

Problems hosting a Jetty application on the same server as IIS.

I am a .Net programmer, lately developing a website in Jsp, using Jetty. I use Eclipse and the Maven-Jetty plugin. I have a virtual private server, which has IIS installed and is serving .NET ...
2 votes
1 answer
2k views

Jetty 9 - redirect http to https

I'd like to force use of https in Jetty 9. Apparently: <Set name="confidentialPort">443</Set> no longer works in jetty 9. How should I do it properly?
0 votes
0 answers
967 views

Apache 2.4 MPM event module causing intermittent 502 errors and slow response times behind an AWS Application Load Balancer (ALB)

tldr; How do you configure the Apache MPM event module as a functional reverse proxy when running behind a high throughput AWS Application Load Balancer? Layout AWS Application Load Balancer -> ...
0 votes
1 answer
477 views

Java large heap in container environment

I'm trying to run a Jetty webserver on kubernetes, it needs an extremely huge amount of heap ~ 250 GB in our production environment, ~ 50 GB in our test environment. I'm using jetty:9.4-jdk11, I'm ...
0 votes
1 answer
728 views

How to access Jetty Server from outside LAN?

I originally posted this question on stackoveflow but was advised that it would be more suited to this site. I am trying to access a Jetty Server deployed on one machine from another machine outside ...
2 votes
2 answers
11k views

Apache reverse proxy not working and generates a 404 error

I have an installation of Shiboleth that runs on Jetty 9. Through Apache I have a reverse proxy to the 8080 port of Jetty which serves the Shiboleth instance. When I curl http://localhost:8080/idp/...
1 vote
1 answer
908 views

Change Console and repo browser certificate for Collabnet svnedge

I need to change ssl certificate for our collabnet svn edge console and repo browser. I came across few documentations for changing ssl on console by creating new svnedge.jks file and replacing it ...
0 votes
0 answers
2k views

Haproxy 2.1.4 too many SSL Handshake failures

Hi we are using haproxy 2.1.4 as SSL terminator between our own client and server machines(High load machines, always busy) and also requests will be a mix of http/1.1 and http/2.0. We are facing lots ...
1 vote
1 answer
824 views

How to redirect HTTP request based on URL parameter?

We are running two jetty containers in different host(Host-P, Host-Q). One of the container is deployed with few applications(App-A,App-B,App-C). Another container which is also having few ...
3 votes
1 answer
2k views

archiva/jetty with nginx ssl proxy: getting http responses

I've been banging my head against this for awhile now. I have an archiva repository server I'm trying to proxy through nginx with ssl offloading. archiva has a jetty server built in that is listening ...
1 vote
0 answers
514 views

host a java project (war) on IIS

I created a new site sample on IIS. I put in : C:\tools\jetty\webapps : the war sample.war C:\inetpub\wwwroot\sample the file web.config --> as result : navigate with http://localhost:1122/sample, ...
7 votes
2 answers
2k views

Jetty - Virtualhosting - SSL Certificates

I want to have different SSL certificates for different domains that I am hosting in a single Jetty instance. I do not want to front my Jetty application server with Apache. I am running Jetty 6.1....
16 votes
4 answers
36k views

How do we increase the maximum allowed HTTP GET query length in Jetty?

We are using Jetty to run an Apache Solr index. We've had some queries that have grown way beyond the previously expected maximum length, and are now having issues where most queries are not ...
3 votes
4 answers
8k views

Configuring Jetty as a service - how?

As I'm using Debian, and as the packages in the package manager aren't quite up-to-date, I'm forced to do a manual installation. I downloaded the latest version as a .tar.gz file, and extracted it to ...
3 votes
0 answers
671 views

Bad Gateway error after upgrading back-end from Jetty 8 to 9

Update: this seems to be due to an Apache bug: https://bz.apache.org/bugzilla/show_bug.cgi?id=60330 I have a Java application that runs Jetty 8 as an embedded HTTP server. This is a back-end service, ...
3 votes
2 answers
6k views

Redirecting nginx to another internal port not working

I have an nginx instance running on port 80 and another app (embedded jetty) running on the same machine on port 4567. I'm trying to redirect any request that includes /api/ in the URL, to the server ...
4 votes
2 answers
10k views

Jetty: How to redirect base url?

Scenario: I'm using a jetty server. I have a webapp running on: myip/myWebApp Question: How to redirect base url to base url/something ie. http://190.23.30.1/ --> http://190.23.30.1/mywebapp So ...
1 vote
0 answers
237 views

Can't find jetty config file on Fedora 28

I installed jetty8 on fedora 28, but I do not know where is the configuration file for the server. In Ubuntu the jetty8 configuration file is /etc/default/jetty8. To install jetty I've used: dnf ...
1 vote
1 answer
17k views

Can’t connect securely to this page

Facing an issue while checking my application compatibility with IE11 in windows10 but it is throwing the below exception while accessing the URL. Can’t connect securely to this page This might be ...
0 votes
1 answer
1k views

Shibboleth IdP won't start with Jetty 9.3

I've been following this guide to install Shibboleth Identity Provider 3.3.2 on Jetty 9.3.22 (Ubuntu Server 16.04 with Oracle JDK 8u151). At https://my.server.ip/idp I get a 503 error (Service ...
2 votes
1 answer
1k views

Password protect app in jetty

I am testing a webapp (.war) running in Jetty 7. For demo purposes I want to run this on a public URL, however I would like not to have the whole world (if they happen to come across the URL) be able ...
9 votes
2 answers
22k views

How can I enable GZIP compression in Jetty?

I have a Jetty server which does not have compression enabled (I tested this here). How can I enable compression?
95 votes
6 answers
480k views

Proxy Error 502 "Reason: Error reading from remote server" with Apache 2.2.3 (Debian) mod_proxy and Jetty 6.1.18

Apache is receiving requests at port :80 and proxying them to Jetty at port :8080 The proxy server received an invalid response from an upstream server The proxy server could not handle the request ...
1 vote
1 answer
1k views

Monit cannot connect to Solr/Jetty instance

I have my Solr/Jetty up and running well on Ubuntu 12.04. I am trying to hookup my monit conf to monitor it, but it is having trouble connecting to the service. I have Solr running on port 8983 and ...
0 votes
0 answers
238 views

Intermittent nginx timeouts having jetty as upstream server

We do have a weird production issue of nginx timeouts. The timeout says below : "upstream timed out(110: Connection timed out)" Here, the upstream server is jetty running on the same host where ...
0 votes
1 answer
321 views

How to make web applications running in jetty available as fast as possible after jetty restart?

If you have many applications in your jetty server instance, then restarting the server may take a couple of minutes. How can you make applications boot faster after jetty restart?
0 votes
1 answer
55 views

How to forbit apache httpd from adding headers to responses

I've a jetty server behind an apache httpd server. I properly handle headers to be returned to requests I receive at jetty level. But sometimes apache httpd add some headers (typically the Content-...
0 votes
1 answer
656 views

Preserve X509 client cert data from apache2 reverse proxy to jetty

I am not able to receive on jetty-9.3.14 the X509 client cert data which are submitted to apache2 and forwarded via ProxyPass directive. <Location /X509> SSLVerifyClient require ...
1 vote
0 answers
140 views

Jetty Crashes After Let's Encrypt Certificate Import

I'm using an application that comes bundled with Java 1.8.0_77-b03 and Jetty 9.3.3.v20150827. Everything works great until I import my Let's Encrypt certificate into the Jetty JKS. Once I do that, ...
0 votes
1 answer
528 views

Jetty web server is automatically shutting down on EC2

I have Jetty 8.1.14.v20131031 is running on EC2 Ubuntu 12.04. It shuts down automatically around in 3 HOURS after it is started. Just to confirm that it is not the issue of my code I removed war file ...
0 votes
1 answer
804 views

Jetty service fail on start in ubuntu 14

I install the solr-jetty package in a Ubuntu 14 container running in a cloud9 workspace. To install the package I run the following command: sudo apt-get install solr-jetty The installation doesn't ...
1 vote
0 answers
176 views

How best to secure a Java web service via Jetty that we are now making public-facing?

We have a web service that currently runs only internally within a network and there is no access outside the network. This web service is written in Java and runs through a Jetty servlet engine. It ...
0 votes
1 answer
2k views

Apache archiva returns http error 503

I am using apache Archiva v. 2.2.0 under Windows Server 2012 R2. With Java version 1.8.0_60 everything worked fine. After updating to 1.8.0_101_b13 I am getting an error message when going to archiva ...
1 vote
1 answer
3k views

nginx doesn't pass outer request to localhost

Jetty server runs on localhost:8080 and successfully responses when I make requests via curl (putty): curl -H "Content-Type: application/json" -X POST -d '{"message":"Hi"}' http://localhost:8080 I ...
10 votes
2 answers
672 views

Is this Kerberos/AD setup possible?

We have a slightly complicated IDAM setup: I.e. the end user's machine and browser sit in one network with the parent AD, and our Jetty-based application and the AD that it can talk to (local AD) sit ...
-1 votes
1 answer
360 views

Need to run httpd and jetty on the same centos7 server

I have a VPS with CentOS7 with httpd + php running on 80 port and let's say with domainOne.tld. All of the web files are in /var/www/html. Now I need to run a java application on jetty on another ...
0 votes
1 answer
323 views

Configuring Jetty for FastCGI has worked, but how to add virtual hosts?

On CentOS 7 Linux I have successfully followed the guide Configuring Jetty for FastCGI. However the $JETTY_BASE/webapps/jetty-wordpress.xml file in the guide serves a single Wordpress installation ...
1 vote
2 answers
6k views

Redirecting port 8080 to port 80 - how to add in /etc/sysconfig/iptables file?

On CentOS 7 Linux (acting as LAMP - and not "firewall/gateway") I have created a custom systemd service for running embedded Jetty at port 8080 as user nobody: [Unit] Description=WebSocket Handler ...
3 votes
2 answers
7k views

Securing Apache Solr in production

I am setting up Apache Solr 4.1 that will be used to index data for a web app. Only the web app should have access to the Solr. Users and other clients will not talk directly to Solr. What are some ...
1 vote
0 answers
274 views

Redirect jetty request to apache

I am centos 7. I have two servers running apache and jetty. Jetty at port 8080 and apache at 80. Now I have to redirect all request from jetty to apache home page like. if a user type http://my-ip:...
9 votes
2 answers
18k views

Apache ProxyPass ignore static files

Having an issue with Apache front server connecting to a Jetty application server. I thought that ProxyPass ! in a location block was supposed to NOT pass on processing to the application server, but ...
0 votes
1 answer
2k views

How to send a permanent (301) redirect from HTTP to HTTPS in Jetty 9

After following the suggestion on How to have Jetty redirect http to https, we were able to get our standalone Jetty deployment to redirect all HTTP requests to HTTPS. The redirect however is a 302. ...