embedded-jetty

Jetty Web Server unable to start “java.io.IOException: cannot read file:..”

柔情痞子 提交于 2019-12-13 17:30:22
问题 015-04-08 12:56:30 Commons Daemon procrun stderr initialized java.io.IOException: Cannot read file: C:\Streem\web\modules\annotations.mod at org.eclipse.jetty.start.Modules.registerModule(Modules.java:549) at org.eclipse.jetty.start.Modules.registerAll(Modules.java:486) at org.eclipse.jetty.start.Main.processCommandLine(Main.java:608) at org.eclipse.jetty.start.Main.main(Main.java:111) I checked that installed Java version 1.7.0_25 and npn-1.7.0_25.mod do exist under web\modules\protonego

Can't make my spring boot application work with jsp

佐手、 提交于 2019-12-13 16:13:33
问题 I have problem with my spring boot web app. It uses embedded jetty (it must be jetty - not tomcat) and it uses jsp views. But seems like there is no way to make embedded jetty work with jsp views. Actually at the moment when I run mu app server starts successfully but when I try to access any url of my web app - I get error: org.apache.jasper.JasperException: java.lang.IllegalStateException: No Java compiler available at org.apache.jasper.servlet.JspServletWrapper.handleJspException

Jetty 8.1 flooding the log file with “Dispatched Failed” messages

南楼画角 提交于 2019-12-13 14:46:46
问题 We are using Jetty 8.1 as an embedded HTTP server. Under overload conditions the server sometimes starts flooding the log file with these messages: warn: java.util.concurrent.RejectedExecutionException warn: Dispatched Failed! SCEP@76107610{l(...)<->r(...),d=false,open=true,ishut=false,oshut=false,rb=false,wb=false,w=true,i=1r}... The same message is repeated thousands of times, and the amount of logging appears to slow down the whole system. The messages itself are fine, our request handler

How can I programmatically start a jetty server with multiple configuration files?

陌路散爱 提交于 2019-12-13 06:13:22
问题 In other words, what is this equivalent to: java -jar start.jar etc/jetty.xml jetty-plus.xml I'm using Jetty 6. 回答1: This is possible with Jetty 7, Jetty 8, and Jetty 9. Can you upgrade? Note: Jetty 6 was end of life'd back in 2010. package jetty; import java.io.File; import java.net.URL; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.xml.XmlConfiguration; public class

how to invalidate sessions in jetty Hazelcast?

不羁的心 提交于 2019-12-13 03:56:00
问题 I am using hazelcast 3.6.3 in jetty 9.4.8 for session replication and we would like to invalidate multiple sessions based on a separate JMS message. the hazelcast config is (using zookeeper for peer discovery) Config config = new Config(); config.setInstanceName(HAZELCAST_INSTANCE_NAME); // logger config config.setProperty("hazelcast.logging.type", "slf4j"); // config for session map MapConfig sessionMapConfig = new MapConfig(); sessionMapConfig.setName(SESSION_MAP_NAME) .setBackupCount(2);

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

How to deploy an embedded server to Elastic-Beanstalk?

China☆狼群 提交于 2019-12-12 15:38:31
问题 We have developed multiple micro-services using DropWirzard to have embedded jetty servers for each micro-service. Has anyone had experience with deploying an embedded server to elastic-beanstalk for auto-scaling? -Thanks for your time 回答1: Did you consider deploying each micro service on a separate docker container and deploying these containers on AWS Elastic Beanstalk? http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_docker.html 回答2: As of September 2015, Elastic

Reverse Proxy Java

扶醉桌前 提交于 2019-12-12 10:06:40
问题 I am working with a Java web application and I would like to have a reverse proxy masking some of my internal endpoints. Requirements 1. The reverse proxy maps need to be modifiable at runtime e.g if we move some components to another server we should be able to modify the mapping such that new requests are routed to this endpoint. 2. This must be embeddable to a standard servlet container like Jetty. Most of the Java Reverse Proxies out there such as J2EP require mapping information

What Connection is this?

♀尐吖头ヾ 提交于 2019-12-12 05:17:56
问题 So I'm following tutorial of Face detection using HTML5, javascript, webrtc, websockets, Jetty and OpenCV. Not exactly like that, but more or less like that (Like, I don't use the face detection thingy). I use Eclipse to implement it. There's these parts (I simplified it) private Connection connection; public void onOpen(Connection connection) { this.connection = connection; this.connection.setMaxBinaryMessageSize(1024 * 512); } public void onMessage(byte[] data, int offset, int length) { try

ShutdownHandler is giving 400 in Embedded Jetty

。_饼干妹妹 提交于 2019-12-12 04:31:54
问题 these versions of libraries are used <java.version>1.8</java.version> <javax.websockets.version>1.1</javax.websockets.version> <jetty.version>9.3.8.v20160314</jetty.version> <jersey.version>2.22.2</jersey.version> <jgit.version>4.3.0.201604071810-r</jgit.version> <json.version>20160212</json.version> <junit.version>4.12</junit.version> <slf4j.version>1.7.12</slf4j.version> <maven.shade.version>2.4.1</maven.shade.version> embedded Jetty is used like that Server server = new Server(Settings