jetty

how to embed weld into jetty 9 to have cdi in my java maven project?

社会主义新天地 提交于 2019-12-11 00:35:20
问题 I have a JEE7 project using CDI. I want to test that project on Jetty 9, which implements Java EE 7 Web Profile. The following link indicate that we can plug Weld into Jetty, but how ? Thanks EDIT: And, how do that with jetty-maven-plugin ? Jetty and Java EE 7 Web Profile 回答1: I tried many things but this is what worked. http://docs.jboss.org/weld/reference/latest/en-US/html/environments.html#_embedded_jetty Just be sure to include the appropriate libraries like weld-servlet, cdi-api, el-api

Solr fails to serve JSPs, admin interface 404s

Deadly 提交于 2019-12-11 00:23:01
问题 I'm having trouble with solr. I'm running it on Ubuntu with OpenJDK: >> java -version java version "1.6.0_22" OpenJDK Runtime Environment (IcedTea6 1.10.2) (6b22-1.10.2-0ubuntu1~11.04.1) OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode) The admin interface should be served by Jetty 7, which is installed in the solr/example folder according to these instructions: http://wiki.apache.org/solr/SolrJetty#Update_Jetty On starting solr with 'start.jar' I see the following: >> java -jar 2012-05

Is there any easy way to run jetty 8 from gradle (like with jettyRun)?

余生颓废 提交于 2019-12-11 00:04:43
问题 Unlucky I need jetty 8 to work properly with spray/akka (it's scala project). With older version used by jettyRun I'm getting error like: java.lang.NoClassDefFoundError: org/eclipse/jetty/continuation/ContinuationListener Is it possible to create some simple task to do the job which jettyRun is doing but with jetty 8? In worst case I can use embedded version of jetty with war which I'm building, but I would be happy to see some simpler solution if there is any... 回答1: Pitor, why didn't you

Jetty locking static files in Windows

允我心安 提交于 2019-12-10 23:42:19
问题 I do not see, my changes of the static files. In the another resources recommending the following method: Include to the webdefault.xml <init-param> <param-name>useFileMappedBuffer</param-name> <param-value>true</param-value> <!-- change to false --> </init-param> But it not the working. Have any idea? Jetty version: 8.1.8.v20121106 回答1: The useFileMappedBuffer init-param is for file locking by the DefaultServlet. If you can change your static files with an editor and save, with no error,

CXF/Jetty equivalent of the following Jersey/Jetty code

廉价感情. 提交于 2019-12-10 23:39:19
问题 I've got some test code with Jersey (2.7) and Jetty (9.2.5.v2014112) that I'm trying to port to CXF (3.0.x) and Jetty (same version). There's one part that I can't figure out, the equivalent of the rc.register(resource) line below: ServletContextHandler sch = new ServletContextHandler(); sch.setContextPath("/xxx"); resource = new TheResource(); ResourceConfig rc = new ResourceConfig(); rc.register(resource); ServletContainer sc = new ServletContainer(rc); ServletHolder holder = new

Removing powered by Jetty

我只是一个虾纸丫 提交于 2019-12-10 23:02:34
问题 I am using Jetty server with embedded web app. However whenever I hit any resource which is not present in It serves a default page which shows a message "Powered by Jetty". This page is being served from DefaultHandler class of org.eclipse.jetty.server.handler and from handle methos implementation. I want write a custom handler for this however current while trying to register custom Handler in jetty.xml file, I am getting syntax exception and server not getting started. Can anybody please

add unique id to requests forwarded from nginx reverse proxy

情到浓时终转凉″ 提交于 2019-12-10 22:47:18
问题 We are running nginx as a reverse proxy that forwards requests to a Clojure application running Compojure, a library that wraps around Jetty and provides our application with the ability to service web requests. We currently capture logs generated by both nginx and the Clojure application (via log4j to syslog). We are unable, however, to match an entry in the nginx log to an entry in the syslog output of the Clojure application. We need to figure out a way to modify the request sent upstream

Jetty How to re-deploy war

断了今生、忘了曾经 提交于 2019-12-10 22:37:50
问题 Now I have read Jetty docs http://wiki.eclipse.org/Jetty/Tutorial/Embedding_Jetty#Setting_a_Web_Application_Context . But there are no info about how to make code with hot re-deploy of the war file with scanInterval. It must re-deploy war file if it changed. How to code this? 回答1: For hot deploy you need to deploy the webapp with the deployment manager and the webapp or context provider. http://wiki.eclipse.org/Jetty/Feature/Hot_Deployment the xml shown there (and in the distribution in the

security.AccessControlException Error

百般思念 提交于 2019-12-10 22:24:00
问题 When i used quartz trigger in backend java i am getting this error: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup") at java.security.AccessControlContext.checkPermission(AccessControlContext.java:382) at java.security.AccessController.checkPermission(AccessController.java:572) at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) at com.google.apphosting.runtime.security.CustomSecurityManager.checkPermission

Jetty IncompatibleClassChangeError: Implementing class

删除回忆录丶 提交于 2019-12-10 22:18:54
问题 I had an app that was running fine with app engine 1.7.1, but when I upgraded to 1.7.5 all my library dependencies were broken. So I think I got all the dependencies corrected, so at least I don't have any compile time errors, but when I try and run it I get the following error: Mar 15, 2013 11:09:34 AM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: failed Jersey Web Application: java.lang.IncompatibleClassChangeError: Implementing class Mar 15, 2013 11:09:34 AM com.google