jetty

maven jetty embedded (fat jar) - src/main/webapp missing in jar

女生的网名这么多〃 提交于 2019-12-13 22:06:33
问题 I am trying to built a embedded jetty in one fat jar. I built the app using a tuto for jetty-embedded offering rest service, which I also need in my application. Now I am trying to add/include a jsf based context. Everything works fine in Eclipse, but as soon as deploy using maven clean install and I try to execute the jar somewhere esle, I get the following error: Exception in thread "main" java.lang.IllegalArgumentException: file:///home/debbie/src/main/webapp is not an existing directory.

Is it bad to have two webapps on a machine each on different servlet container than both on same?

痴心易碎 提交于 2019-12-13 20:00:23
问题 I need to run two webapps on a ubuntu VPS but one(my own webapp) prefers to run in Tomcat & other(Solr webservice) is preferable in Jetty. But I think running a separate server for each webapp would be consuming more resources (like memory consumption would be higher) than both the webapps running on same server, isn't it ? What may be the other bad if I run both Tomcat & Jetty on a single machine for production use? 回答1: A couple of things I can think of, some of which you've mentioned: more

create executable war maven jetty

血红的双手。 提交于 2019-12-13 19:18:58
问题 I want to create an executable war using maven jetty ,I have followed this tutorial created a main class with default package and added maven-war-plugin , maven-antrun-plugin , maven-dependency-plugin in pom.xml main class Server server = new Server(); SelectChannelConnector connector = new SelectChannelConnector(); connector.setPort(8080); server.addConnector(connector); ProtectionDomain domain = StartAppDCA.class.getProtectionDomain(); URL location = domain.getCodeSource().getLocation();

java.lang.NoSuchMethodError: org.eclipse.jetty.server.Request.getUri()Lorg/eclipse/jetty/http/HttpURI [duplicate]

百般思念 提交于 2019-12-13 17:56:41
问题 This question already has answers here : NoSuchMethodError: org.eclipse.jetty.websocket.server.WebSocketServerFactory.<init>(Ljavax/servlet/ServletContext;)V (2 answers) Closed 2 years ago . I have this exception when launching my application via eclipse plugin: "Run as" > "GWT Development Mode with jetty" Environment: - GWT SDK 2.8 - spring-boot 1.5.3.RELEASE - jetty 9.4.4 - GWT Eclipse Plugin 3.0.0 Stack trace : 11:50:51,971 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction -

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

configure jetty ssl in heroku

家住魔仙堡 提交于 2019-12-13 17:19:40
问题 I have a standalone launcher for jetty inside server directory. I have some jeytty configuration code there. I need to configure jetty to work with http and https connectors. As I understand heroku supplies custom port to launch jetty on. It's not clear what port can i use to configure SSL connector. Also it's unclear should I provide any certificate for jetty if I use piggyback addon. 回答1: You shouldn't need to configure Jetty for SSL at all. Heroku will terminate the SSL endpoint at the

Disable OPTIONS Method Jetty Server

不想你离开。 提交于 2019-12-13 16:28:38
问题 I have developed a web application which has set of GET and Post calls. I want to block my Jetty webserver for OPTIONS call. Currently I get something like this in response. HTTP/1.1 200 OK Date: Tue, 28 Apr 2015 07:41:50 GMT Server: Apache Allow: GET,HEAD,POST,OPTIONS Cache-Control: max-age=0 Expires: Tue, 28 Apr 2015 07:41:50 GMT Content-Length: 0 Connection: close Content-Type: httpd/unix-directory I dont want to ALLOW - Options method type. Can someone tell me how can I disable it from

Jetty Server not starting: Unable to establish loopback connection

前提是你 提交于 2019-12-13 16:23:18
问题 so I am trying to setup an embedded jetty 9 server. However when I try: mvn clean compile exec:java The execution halts at : INFO:oejs.Server:com.main.SimpleServer.main(): jetty-9.0.0.RC2 After a while I get exceptions like: WARN:oejuc.AbstractLifeCycle:com.main.SimpleServer.main(): FAILED org.eclipse.jetty.io.SelectorManager$ManagedSelector@45a0110e keys=-1 selected=-1: java.io.IOException: Unable to establish loopback connection java.io.IOException: Unable to establish loopback connection

How do I deploy a JSP file in the Jetty webserver?

心已入冬 提交于 2019-12-13 15:46:57
问题 I have created a simple JSP file that I want to deploy in Jetty 7.2. Jetty is running and I can see the default web page at http://localhost:8080/ . I started Jetty with the java -jar start.jar command. I saved my simple JSP file jsp_test.jsp at <my_jetty_directory>/webapps/jsp_test.jsp and then I tried to access that file on http://localhost:8080/jsp_test.jsp and http://localhost:8080/webapps/jsp_test.jsp but none of them works. Is there something more I have to do? Where in the Jetty file

How to multithread Jetty RESTful service on Heroku?

强颜欢笑 提交于 2019-12-13 15:16:03
问题 I was getting started with the JAX-RS tutorial on Heroku's site-> http://arcane-chamber-8582.herokuapp.com/ The main method looks like this: package com.example; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.webapp.WebAppContext; /** * * This class launches the web application in an embedded Jetty container. * This is the entry point to your application. The Java command that is used for * launching should fire this main method. * */ public class Main { /** * @param args */