maven-jetty-plugin

How to setup SSL with Eclipse's maven-jetty-plugin?

好久不见. 提交于 2019-12-07 14:22:52
问题 I would like to be able to launch Jetty with SSL using the latest Eclipse maven-jetty-plugin and the keytool-maven-plugin as seen here. However, those two plugins are now quite outdated. Could somebody please illustrate a working example of this using the latest versions of the plugins? Thanks! 回答1: These two plugin definitions should do it :- <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <version>6.1.26</version> <configuration> <jvmArgs>-Xmx2048m

How can i deliver jetty with many webapps via jnlp?

你离开我真会死。 提交于 2019-12-07 13:11:24
问题 i have a webapp (http://sourceforge.net/projects/sf-mvn-plugins/files/m2-repo/net/sf/maven/plugins/example-captaincasa-jnlp/0.1-SNAPSHOT/example-captaincasa-jnlp-0.1-SNAPSHOT.war/download) wich use jsf in a servlet container. This works fine with jetty-maven-plugin run-war target at my local pc. In the future i would like make more of this kind of weapps. Now i am looking for a way to deliver this webapps with jetty via jnlp. The end user should be have a zero installation but the webapps

Spring 3.1 - Servlet 3 code-based configuration using the Jetty Maven Plugin

眉间皱痕 提交于 2019-12-06 11:15:51
问题 I try to integrate the new features of spring 3.1 using annotations to specify the configuration information for the web application. I set up the maven-jetty-plugin version 8.0.4.v20111024 to run my app. While starting jetty using the mvn jetty:run command, everything seems to be ok and set up correctly. But when accessing the app through the browser, there is just the output of the default servlet. It seems to be a simular issue, that tomcat had in previous versions (<=7.0.14) https:/

How can i deliver jetty with many webapps via jnlp?

与世无争的帅哥 提交于 2019-12-06 03:46:43
i have a webapp ( http://sourceforge.net/projects/sf-mvn-plugins/files/m2-repo/net/sf/maven/plugins/example-captaincasa-jnlp/0.1-SNAPSHOT/example-captaincasa-jnlp-0.1-SNAPSHOT.war/download ) wich use jsf in a servlet container. This works fine with jetty-maven-plugin run-war target at my local pc. In the future i would like make more of this kind of weapps. Now i am looking for a way to deliver this webapps with jetty via jnlp. The end user should be have a zero installation but the webapps needs servlet container and my hoster does not support a servlet container or application server or so

logback logging with maven-jetty-plugin

て烟熏妆下的殇ゞ 提交于 2019-12-05 21:50:05
问题 I want to use logback logging with maven-jetty-plugin. Apparently, the system property logback.configurationFile is read after maven-jetty-plugin is started and has initialized slf4j, so the file ./src/test/resources/logback.xml isn't read by jetty. As a result, I get all log messages set to debug level and printed to console (a default logback configuration). Launching maven with -Dlogback.configurationFile=... resolves the problem. However, I'd prefer setting the property in the pom as it

Jetty JNDI error within Maven Jetty Plugin

落爺英雄遲暮 提交于 2019-12-05 20:00:31
I am trying to configure a JNDI data source that can be used from an invocation of the Maven Jetty Plugin. I am trying to do this external to the WAR file, so that anyone who might later deploy our webapp with Jetty will not have to edit a configuration file inside the WAR's WEB-INF directory. I created a jetty.xml file as follows: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> <Configure class="org.mortbay.jetty.webapp.WebAppContext"> <!-- Atomikos XA aware (but not XA capable) JDBC data

Jetty Annotation Timeout Reason

霸气de小男生 提交于 2019-12-04 08:55:33
问题 I am tying to run my web application with maven jetty plugin. But after some time at startup, it gives the error: [INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml [INFO] Web overrides = none 2014-08-10 17:39:45.840:INFO:oejs.Server:main: jetty-9.2.2.v20140723 2014-08-10 17:40:54.961:WARN:oejw.WebAppContext:main: Failed startup of context o.e.j.m.p.JettyWebAppContext@1e2c8{/asd,file:/C:/dev/project/hope/target/asd-1.0/,STARTING}{C:\dev\project\hope\target\asd-1.0.war} java.lang

Getting Error scanning file when running jetty 9 on java 8 using the maven jetty plugin [duplicate]

家住魔仙堡 提交于 2019-12-04 03:48:28
This question already has answers here : Closed 5 years ago . Spring AOP gives IllegalArgumentException with Java 8 (3 answers) I'm running a trivial Hello World web application using servlet-3.1 , jetty-9 running on jdk-8 and using the maven-jetty-plugin . public class HelloWorldServlet extends HttpServlet { @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) { try { String message = "Hello Jetty From the HelloWorldServlet"; OutputStream stream = response.getOutputStream(); stream.write(message.getBytes()); stream.flush(); } catch (IOException ex) { Logger

Jetty 8.1.1.v20120215 in Eclipse with webapp (JSF + Maven)

一笑奈何 提交于 2019-12-03 11:08:29
I am trying to run my webapp (using JSf) Jetty 8.1.1.v20120215 in Eclipse. I downloade Jettey Adaptor for Jetty and then added Jetty Server 8.1 in Eclipse. Then I stared my webapp under Jetty webserver. And got follwoing error. From statck trace it looks like Jetting is not getting some of the required jars. As have adde all those jar in my webapp in dependanceis as I am using maven. I can also see in eclipse those file listed in Eclipse under Refrenced Libaries. 2012-03-01 16:46:00.492:INFO:oejs.Server:jetty-8.1.1.v20120215 2012-03-01 16:46:00.515:INFO:oejdp.ScanningAppProvider:Deployment

Debug web app in IntelliJ, webapp built by maven, run by jetty

爷,独闯天下 提交于 2019-12-03 02:20:04
问题 I'm using s/o code, it's a java webapp built by maven. The webapp is run by maven script, like below, and the app is run on localhost:8080, : <build> <plugins> <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>8.1.8.v20121106</version> <configuration> <contextPath>/</contextPath> <connectors> <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector"> <!--<port>8085</port>--> <port>8080</port> <maxIdleTime>60000<