jetty-9

Use Log4j with jetty-maven-plugin 9.x

百般思念 提交于 2019-12-24 00:23:30
问题 How can I enable Log4j for jetty-maven-plugin 9? I followed the Jetty documentation for standalone Jetty 9 and added JARs and property file. Jetty configuration: <plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>9.0.5.v20130815</version> <configuration> <webApp> <contextPath>/mywebapp</contextPath> <jettyEnvXml>jetty-env.xml</jettyEnvXml> </webApp> <systemProperties> <systemProperty> <name>log4j.configuration</name> <value>log4j-jetty

Jetty 9 + Java > 8u74 always allocates maximum (-Xmx) memory on Linux?

烈酒焚心 提交于 2019-12-23 16:32:55
问题 If I start a Java application using jre 8u74 on Linux using -Xmx512m the memory is not allocated immediately, the memory is allocated if Java needs it. So it can stay below the 512 MB limit if not necessary. This is what I would expect. On Java 8u111 I get another behavior, the 512 MB of memory is always allocated immediately to the process even if Java does not need it. This is annoying since this memory cannot be used by other processes, even if Java does not need it. I looked trhough the

Ordering of filters, servlets in Jetty-9.2.2

风流意气都作罢 提交于 2019-12-18 09:46:38
问题 I am deploying CometD-3.0.1 in jetty-9.2.2. I have my own filters which I want to call for every request. I have specified those filters in the web.xml in particular order. But with WebSocket, containers have to find a way to handle the upgrade request. In Jetty, this is done by a servlet filter that is always added as first filter by a ServletContainerInitializer. So in my case, a upgrade request will never hit my filter, because the WS filter that's in the front of the chain will do the

Websocket JSR-356 fail with Jetty 9.4.1

吃可爱长大的小学妹 提交于 2019-12-17 20:32:28
问题 My current web server is embedded Jetty 9.1.5. It works well with JSR-356 to create websocket. These days, I am trying to upgrade to Jetty 9.4.1. Everything works nicely except websocket. My code like below: Embedded Jetty and Websocket libs: <dependency> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-server</artifactId> <version>9.4.1.v20170120</version> </dependency> <dependency> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-webapp</artifactId> <version>9.4.1.v20170120<

EOF / Invalid function argument (errno:4022) with Jetty 9

旧城冷巷雨未停 提交于 2019-12-13 06:16:45
问题 Couldnt find whether there is any configuration for static content. Its not downloading the js file, I hope it because of larger in size when compare with others. Jetty version : 9.2.10 OS : HP Nonstop I can see the following errors in jetty debug DEBUG org.eclipse.jetty.io.WriteFlusher - write exception org.eclipse.jetty.io.EofException: null at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:192) ~[jetty-io-9.2.10.v20150310.jar:9.2.10.v20150310] at org.eclipse.jetty.io

Not able to run the project after upgrading to jetty to 9

隐身守侯 提交于 2019-12-13 01:24:48
问题 I upgraded to jetty 9 and getting the following error when I try to run the project. [WARNING] Error injecting: org.eclipse.jetty.maven.plugin.JettyRunMojo java.lang.TypeNotPresentException: Type org.eclipse.jetty.maven.plugin.JettyRunMojo not present at org.eclipse.sisu.space.URLClassSpace.loadClass(URLClassSpace.java:115) at org.eclipse.sisu.space.NamedClass.load(NamedClass.java:46) at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48) at com.google.inject

Jetty 9 HashLoginService

独自空忆成欢 提交于 2019-12-12 20:25:22
问题 My objective is to prompt user for a login into the website before displaying the first page. Page is served over HTTPS. Using Jetty 9.2 and below are the respective configurations done: web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"> <display-name>test

Can't use two connectors (http and https) in Jetty v.9.4.3

别来无恙 提交于 2019-12-12 19:06:49
问题 When I'm adding two connectors to embedded Jetty server I can't use neither HTTP nor HTTPS - browser/curl is simply stuck. The code I use to create embedded Jetty is approximately the following (it is based on this example - http://self-learning-java-tutorial.blogspot.de/2015/10/jetty-configuring-many-connectors.html): HttpConfiguration httpConfiguration = new HttpConfiguration(); httpConfiguration.setRequestHeaderSize(requestHeaderSize); ServerConnector httpConnector= new ServerConnector

Embedding Jetty 9.3 with modular XmlConfiguration

北战南征 提交于 2019-12-12 01:51:45
问题 I am migrating from Jetty 8.1.17 to Jetty 9.3.9. Our application embeds Jetty. Previously we had a single XML configuration file jetty.xml which contained everything we needed. I felt that with Jetty 9.3.9 it would be much nicer to use the modular approach that they suggest, so far I have jetty.xml , jetty-http.xml , jetty-https.xml and jetty-ssl.xml in my $JETTY_HOME/etc ; these are pretty much copies of those from the 9.3.9 distribution. This seems to work well when I use start.jar but not

Unable to Deploy Allure report on Jetty server

佐手、 提交于 2019-12-11 20:09:41
问题 I am trying to deploy allure report which was generated after "mvn clean test site". I have used mvn jetty:run and when I tried to open "http://localhost:8080", I got a "Directory:/" as a text in firefox browser instead of actual Allure report. Output of jetty server Error Section No Error pom.xml <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