jetty

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

Heroku unable to access jetty-runner jar file

大兔子大兔子 提交于 2019-12-13 14:19:14
问题 I'm deploying a Spring MVC app to Heroku using jetty-runner.jar, but I get an error in the deployment. The Heroku logs only show: Error: unable to access jarfile target/dependency/jetty-runner.jar State changed from starting to crashed Process exited with status 1 However, the app is working correctly if I run it locally using either: heroku local web -f Procfile.windows or java -jar target\dependency\jetty-runner.jar target\*.war The file under "target/dependency/jetty-runner.jar" is created

Maven running jetty on integration-test stage

馋奶兔 提交于 2019-12-13 13:35:47
问题 I use failsafe plugin. So when I type mvn failsafe:integration-test it stars my integration tests (which is great). But I want my jetty server starts on pre-integration stage then. What should I do? (I don't want launch mvn verify since it involves whole cycle running, but mvn failsafe:integration-test - it seems it's supposed to work that way) There are two plugins: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <!-- for starting jetty for

@Context injection not working in Jersey ContainerRequestFilter (Dropwizard)

ⅰ亾dé卋堺 提交于 2019-12-13 13:28:23
问题 @Context injection works with classes but not able to make it work with Objects. httpServletRequest in ContainerRequestFilter produces null pointer. Dropwizard Version:- 1.1.0 ContainerRequestFilter public class ApplicationIPAuthFilter implements ContainerRequestFilter { private static final Logger LOGGER = LoggerFactory.getLogger(ApplicationIPAuthFilter.class); private HerculesRestAccessor restAccessor; private String applicationName; @Context private HttpServletRequest httpServletRequest;

embedded jetty doesnt clear temporary directory completely (keeps lib/*.jar)

纵饮孤独 提交于 2019-12-13 13:21:20
问题 I hava an application that uses embedded jetty and works fine. I'm having a problem with the temporary directories generated by jetty. When an application is deployed it generates a temporary directory with the extracted war (jetty-0.0.0.0-8888-app.war-_app-any-4643933123854766078.dir), all good. But when i remove/replace this war with another version (same context), it create another temporary directory and the other one is not completely deleted. I see jetty removes all css, html files, but

Eclipse deployment descriptor not found

纵然是瞬间 提交于 2019-12-13 12:33:08
问题 I have a dynamic web project created in eclipse. I moved the location of the WebContent folder (to be located within the /src folder). However, the project still thinks that the directory is under /projectName/WEB-INF/ (I know this because when I try to open an element in the deployment descriptor it tells me that that path does not exist (it doesn't exist, but I need to have it point to the new location). How can I point the build to the new location of the WebContent folder (and WEB-INF etc

jquery cross domain authentication

大城市里の小女人 提交于 2019-12-13 12:04:51
问题 I configures my Jetty server to allow cross domain http requests (allowedOrigins = *) and also to allow cross domain authentication (allowCredentials=true) using its CrossOriginFilter. Cross domain http requests without authentication requirement work ok. Now when it comes to http calls that require authentication It doesn't work out using JQuery. I use the following code and followed this example: http://www.aswinanand.com/2009/01/http-basic-authentication-using-ajax/ function login(username

Running web app in both Jetty and Tomcat

自古美人都是妖i 提交于 2019-12-13 11:42:04
问题 I have a web app which in production I run on Tomcat. It uses the MySQL connector, however it is not bundled up with the war, rather it is included under Tomcat's common lib directory, so that I can access the data source through JNDI. I would like to do something similar with Jetty (while developing), and more precisely Jetty + Maven. Is there a way for me to include the mysql-connector jar in the classpath when running Jetty through Maven (i.e. not have it bundled in the war file)? Also I

Jetty Websockets: share connection among many tabs

社会主义新天地 提交于 2019-12-13 07:11:11
问题 What I have: I use Jetty Websockets and jquery + backbone.js on my client side. Each time user open a new tab, he get new websocket connection and must to log in again. What I want: I want user haven't to log in each time he open new tab. Instead if he's already logged in one tab, new tabs will automatically log in him and redirect him to the home page. Questions: What is better: share the same websocket connection between many tabs or store user credentials and automatically relogin on new

The calling class org.jboss.resteasy.cdi.CdiInjectorFactory is placed in multiple bean archives

天大地大妈咪最大 提交于 2019-12-13 06:31:09
问题 This question was asked before on stackoverflow but, was not appearing as the main question of the post. It was a secondary question. That's why I asked it on a new discussion. The aim is to have a better answer rate. I asked stackoverflow an advice before posting this question I try to run a deployment of an app with jetty 9.4.8. It is an angular java maven multi module app Here is my web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi=