jetty

Jetty setInitParameter is NOT initializing any parameter

做~自己de王妃 提交于 2019-12-22 05:35:10
问题 I've embedded Jetty, and I'm trying to set an initialization parameter. The main class Main creates a servlet of Cgi which extends CGI. Within Main , I have the following code: ServletContextHandler context2 = new ServletContextHandler(ServletContextHandler.SESSIONS); context2.setContextPath("/cgi"); context2.setResourceBase("./cgi-bin"); context2.setInitParameter("commandPrefix", "perl"); context2.addServlet(new ServletHolder(new Cgi()), "/"); server.setHandler(context2); Within Cgi , I

404 Not Found Error in a simple Jetty/Maven Hello World webapp

点点圈 提交于 2019-12-22 04:09:37
问题 I have followed the instructions to create a "Standard WebApp with Jetty and Maven" precisely as described on the eclipse wiki: http://wiki.eclipse.org/Jetty/Tutorial/Jetty_and_Maven_HelloWorld#Developing_a_Standard_WebApp_with_Jetty_and_Maven However when I run the webapp (mvn jetty:run) and go to localhost:8080/hello-world/hello I end up at a "HTTP ERROR 404 Problem accessing /hello-world/hello. Reason: Not Found". I have read through documentation, looked at the wiki page's history, poked

Jetty Classpath issues

懵懂的女人 提交于 2019-12-22 04:00:14
问题 I'm currently running Solr out of a Jetty container that it ships with. It runs correctly when run from the command line via: java -jar start.jar when I'm in the same directory as start.jar. Unfortunately I need to be able to launch jetty from any directory, not just the one that contains start.jar. I've tried many options, such as: java -Dsolr.solr.home=~/solr/ -Djetty.home=~/solr/ -Djetty.logs=~/solr/logs/ -cp ~/solr/start.jar:~/solr/lib/jetty-util-6.1.26-patched-JETTY-1340.jar:~/solr/lib

Jersey: ContainerRequestFilter does not get Context ServletRequest

只谈情不闲聊 提交于 2019-12-22 03:59:28
问题 To see the full code for this issue, please see this github https://github.com/mobiusinversion/web-application I also created this Jersey Jira https://java.net/jira/browse/JERSEY-2851 I am working on a ContainerRequestFilter using Jersey 2.15. This is an embedded Jetty app which is shaded into a single jar. In the Jetty starter (main class): public static void main(String[] args) throws Exception { ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS);

Embedding Jetty 9 - where is jetty-all.jar?

只愿长相守 提交于 2019-12-22 03:18:46
问题 I'm trying to embed Jetty 9 in my project, and the tutorial at http://www.eclipse.org/jetty/documentation/current/advanced-embedding.html#jetty-helloworld suggests I need a file called "jetty-all.jar", but I can't seem to find this in the download distribution. Where do I get it from? I'm not using maven. 回答1: I found it in maven repo with a different version: http://repo1.maven.org/maven2/org/eclipse/jetty/aggregate/jetty-all/9.0.4.v20130625/jetty-all-9.0.4.v20130625.jar The Search Engine

Jetty throws NoClassDefFoundError: org/eclipse/jetty/util/FutureCallback on shutdown

柔情痞子 提交于 2019-12-22 01:34:51
问题 Our maven build throws at the end of the build of the shutdown of jetty a NoClassDefFoundError that I do not understand. Does anyone have an idea where this is comming from and how to fix it? Here is are the dependencies from the pom file: <dependencies> <dependency> <groupId>com.restfuse</groupId> <artifactId>com.eclipsesource.restfuse</artifactId> <version>1.0.0</version> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.4</version> <

Where is Cargo generating context XML for Jetty 6.x?

若如初见. 提交于 2019-12-22 00:49:30
问题 I am trying to implement the solution mentioned in How to specify jetty-env.xml file for Maven Cargo plugin for Jetty? However I am facing something even more fundamental: My Cargo is simply not generating any context xml. <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.2.1</version> <configuration> <!-- Container configuration --> <container> <containerId>jetty6x</containerId> <type>embedded</type> </container> <!-- Configuration to use

How do you configure jetty to allow access from an external server?

我只是一个虾纸丫 提交于 2019-12-21 22:42:27
问题 I've seen this asked before, with no good answers, how do you configure jetty to allow access from an external server? I've just started messing around with solr and jetty and am using the example jetty instance that comes with solr. solr is running fine on localhost, and I can query it from sites on the same server. However, I can't access the solr instance from another server. I've googled and read quite a bit in the last few days, but have not been able to discover what's keeping jetty

Embedded Jetty 8 hot deploy classes (using Maven)

微笑、不失礼 提交于 2019-12-21 22:22:10
问题 I have a standard Maven webapp structure defined, and it uses Spring MVC. I am using an embedded Jetty server (java class) for testing the application in development. The code used to create the Jetty server is outlined below. If I make changes to any JSP files, the changes are immediately visible in the browser. However if I change any class files, e.g Controllers, the changes are not hot deployed? What do I have to do get this to work? I have searched this and I think I need to use the

Comet Jetty/Tomcat, having some browser issues with Firefox and Chrome

只愿长相守 提交于 2019-12-21 20:59:05
问题 I am exploring the use of Comet for a project I am working on. I tried creating a test application first using Tomcat6 and CometProcessor API and then with Jetty7 Continuations. The application is kind of working on both but I am having some issues with the actual display of messages. I used the technique of creating an XMLHttpRequest Connection and keeping it open all the time so the server can continuously push data to all the clients connected whenever it is available. My client side code