Questions tagged [maven-jetty-plugin]

maven-jetty-plugin is a Maven plug-in which embeds the Jetty webserver within a Maven build. It is configured in the Maven POM file. It is extremely useful for Rapid Application Development.

You may encounter issues understanding which Jetty Maven Plugin to use due to its recent history of moves between one project owner to another (more recently from codehaus.org to eclipse.org) and its different groupIds (org.mortbay.jetty vs org.eclipse.jetty).

Depending on the version of Jetty to use, you should know that:

  • Jetty up to version 6 is no longer supported by codehaus.org;
  • Jetty from version 7 to 8 are EOL (End Of Life), see Jetty Maven plugin.
  • Jetty version 9 is currently hosted by eclipse.org, see Jetty Maven Plugin

This tag should be used for questions on versions (and group ids) mentioned above. However, it is recommended to use org.eclipse.jetty as latest groupId and well maintained version.

398 questions
14
votes
3 answers

Jetty Maven Plugin is ignoring custom webdefault.xml

I'm trying to get around the common issue of Jetty locking static files on Windows with the technique of setting useFileMappedBuffer to false in webdefault.xml. Unfortunately, every time Jetty is not picking up my customized webdefault.xml. I'm…
mckamey
  • 17,359
  • 16
  • 83
  • 116
14
votes
4 answers

Strange java.lang.ArrayIndexOutOfBoundsException thrown on jetty startup

Whenever I deploy jetty application I hit this issue. Looks like some jar or class is broken. Colleagues compiling exactly same code, doesn't hit the issue. Even if the deploy to the same computer. (we use git and maven) Deleting local maven…
Jakozaur
  • 1,957
  • 3
  • 18
  • 20
13
votes
4 answers

How to: Run maven integration tests against a test environment (database)

I'm using maven and the maven-failsafe-plugin to start up jetty during the integration-test lifecycle phase. I then execute a number of (*IT.java) junit tests against my running webapp. This is working as expected. However, I would like to…
13
votes
1 answer

jetty:run causes class not found exception for org.mortbay.jetty.webapp.WebAppContext

Hi i have the following configuration. org.mortbay.jetty jetty-maven-plugin 8.1.3.v20120416 and in my jetty-env.xml I have
Chun ping Wang
  • 3,879
  • 12
  • 42
  • 53
12
votes
4 answers

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

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…
Mitesh
  • 378
  • 1
  • 6
  • 19
11
votes
3 answers

Set the permgen size for the Child JVM processes that Maven will spin off

I am building a Maven Java app on a Jenkins build server. I am running into java.lang.OutOfMemoryError: PermGen space many times during the build on Jenkins (but never on my localhost) and hence it fails my build. I have already tried setting…
ecbrodie
  • 11,246
  • 21
  • 71
  • 120
11
votes
4 answers

How to override jetty.xml with jetty.port

I'm using maven-jetty-plugin and trying to override my jetty.xml setting with the -Djetty.port=8090 but it's not working. Only when I remove the connector part from the jetty.xml file I get the port to be 8090. So: mvn jetty:run…
Gonzalo
  • 1,126
  • 2
  • 12
  • 21
10
votes
2 answers

Free heap size does not increase in Maven

When I run maven-jetty-plugin, I run next command: mvn -DMAVEN_OPTS="-Xmx1024m -Xms512m" -Djetty.port=8080 jetty:run but when I try to output free heap size with Long heapFreeSize = Runtime.getRuntime().freeMemory(); It always outputs something…
gennad
  • 5,335
  • 12
  • 44
  • 47
10
votes
1 answer

limit jetty scanning in maven plugin

I'm having problems getting a webapp to start quickly in using the maven jetty plugin in eclipse. I'm using the jetty:run goal. After turning on the logging the problem seems to be that jetty scans all the jars in my webapp for web app…
ljgw
  • 2,751
  • 1
  • 20
  • 39
10
votes
1 answer

Jetty startup delay due to scanning

Context and setup information: Jetty 9 with the eclipse jetty plugin Spring 4.1.1.RELEASE with Spring Security 3.2.3 Spring Java Configuration (no web.xml) Problem description Starting jetty 9 is very slow in a project where Spring's JavaConfig is…
10
votes
2 answers

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

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,…
Salah Eddine Taouririt
  • 24,925
  • 20
  • 60
  • 96
10
votes
4 answers

java.lang.ClassNotFoundException: org.apache.jasper.runtime.JspApplicationContextImpl | jetty:run

I am getting java.lang.ClassNotFoundException: org.apache.jasper.runtime.JspApplicationContextImpl while using jetty:run plugin on a web project. The issue is occurring only on some machines while working on some ! Java Version Used : 7 Maven…
Kumar Sambhav
  • 7,503
  • 15
  • 63
  • 86
10
votes
3 answers

Maven+Selenium+Jetty - ClassNotFoundException when Jetty is Shutting Down

I am running an Integration test with Maven, Selenium and Jetty. The tests are executed OK, but when the server are shutting down then the Jetty server throws a java.lang.ClassNotFoundException: org.codehaus.groovy.runtime.dgm$371. Here's the…
Joe Almore
  • 4,036
  • 9
  • 52
  • 77
9
votes
2 answers

Exception using weld CDI with Jetty: Singleton not set for STATIC_INSTANCE

I am trying to configure Jetty with JSF and Weld CDI. After following this manual, I stumble upon the following stacktrace: Caused by: java.lang.IllegalStateException: Singleton not set for STATIC_INSTANCE => [] at…
9
votes
3 answers

Maven jetty plugin - automatic reload using a multi-module project

I am developing a Java web application, using a multi-module maven project. The project setup is the following: pom.xml Main maven project, that includes the following modules: persistence: Entity classes and DAOs business: Service definition and…
Gaste
  • 315
  • 7
  • 15
1
2
3
26 27