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
0
votes
0 answers

Configure Jetty with maven-plugin (goal run-forked) override resourceBases

I'm trying to execute Jetty(9.2.4.v20141103) trough maven-plugin, with multiple resourceBases. I have debugged de code, and seems that QuickConfiguration class overrides the configured resourceBases with this code: public void…
flushaaas
  • 159
  • 1
  • 1
  • 8
0
votes
1 answer

Jetty warning "No resourceBase or war set for context" with Maven plugin

I use the jetty-maven-plugin with the following configuration: org.eclipse.jetty jetty-maven-plugin 9.4.1.v20170120
ipolevoy
  • 5,432
  • 2
  • 31
  • 46
0
votes
1 answer

Share Classloader between multiple in Jetty Maven Plugin

I'm try to configure maven jetty plugin to start my war application, but it has some complications like as follow descriptions: 1º - It has dependencies with a ejb jar; 2º - It has dependencies with war (tag jstl:import context="nscl"); 3º - The…
0
votes
0 answers

How to set up JDBC Connection Poll to mySql on Jetty server in IntelliJ Vaadin Project

Pls explain me this like i am a retard kid. I am stuck at this point for three days. There so so much documentation for multiple use of JDBC, but when i do it one it won't work for me. So I build project whit maven vaadin build: . Now I need to…
0
votes
1 answer

Override security constraint in Jetty 9

We are forcing redirect from http to https using security constraint policy set to CONFIDENTIAL. Although in local development we want to remove the constraint. With Jetty 7 we were using override-web.xml that was reassigning transport security from…
zaynetro
  • 2,298
  • 20
  • 28
0
votes
1 answer

jetty-maven-plugin closes websocket with CloseReason[1006,WebSocket Read EOF] on any message send to client

I've got java server application which uses jetty-maven-plugin in its pom.xml org.eclipse.jetty jetty-maven-plugin 9.3.14.v20161028
Mark Vilkel
  • 55
  • 1
  • 5
0
votes
0 answers

NullPointerException HttpOutput.write with jetty http/2 server

I compile my jetty project with http/2 When i try to access it's returns this: java.io.IOException: java.lang.NullPointerException at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:229) at…
0
votes
0 answers

Jetty 6 Maven Plugin fails to start on Intellij

I'm moving from Eclipse to Intellij, and switching from Tomcat to Jetty in the dev environment. My Tomcat plugin works fine, but when I start Jetty it outputs the following error: Failed to execute goal org.mortbay.jetty:maven-jetty-plugin:6.1.2:run…
Marcelo Abiarraj
  • 199
  • 3
  • 18
0
votes
1 answer

Jetty Error: No plugin found for prefix 'jetty'

I make this tutorial from cloud.google, there i should use but the command prompt says: [ERROR] No plugin found for prefix 'jetty' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the…
FoldFence
  • 2,674
  • 4
  • 33
  • 57
0
votes
0 answers

jetty maven plugin in multi-module maven app

I have the maven spring application with such structure: root -core -ws -endpoints -webapp Core module contains business logic Endpoints module contains classes @WebService Webapp module contains web.xml Endpoins module has…
kosbr
  • 388
  • 2
  • 11
0
votes
0 answers

Spring MVC Content Encoding Error after adding gzip filter

I have configured a GzipFilter in my custom WebApplicationInitializer and when I try to access the website. It shows me, Content Encoding Error The page you are trying to view cannot be shown because it uses an invalid or unsupported form of…
Lucky
  • 16,787
  • 19
  • 117
  • 151
0
votes
1 answer

maven jetty plug in mvn:jetty ServletContext.getRealPath("") and ServletRequest.getRealPath("") to point to target _instead_ of source folders?

SUMMARY: The goal is to find the path to the WEB-INF folder in the target folder for maven-jetty-plugin that is compatible with other servers as well. The ServletContext.getRealPath("") works beautifully for, e.g., Tomcat, or mvn jetty:run-war.…
Миша Кошелев
  • 1,483
  • 1
  • 24
  • 41
0
votes
1 answer

maven jetty plugin - remove localhost/server name from url

i am running my web application using maven jetty plugin. I can access my web application either through localhost, ip or server name. But let say i want to access my application using application…
Ankur Singhal
  • 26,012
  • 16
  • 82
  • 116
0
votes
1 answer

Using Jetty as a Java EE application server

I'm currently experiencing a problem at work I've been bashing my head against for a fair while and was hoping someone here might be able to provide some help. I'd like to point out this is my first question here, so I apologise if it could be…
0
votes
2 answers

How does one set a custom WebAppClassLoader in Jetty through config?

I am trying to configure a Jetty (6.x) WebAppContext with a custom subclass of WebAppClassLoader. In code (Scala), it's simply this: val context = new WebAppContext() val cwacl = new CustomWebAppClassLoader(context) …
overthink
  • 23,985
  • 4
  • 69
  • 69