Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConcurrentModificationException when using jetty-maven-plugin in Jetty 12 #11908

Closed
lachlan-roberts opened this issue Jun 11, 2024 · 3 comments
Closed
Labels
Bug For general bugs on Jetty side

Comments

@lachlan-roberts
Copy link
Contributor

Jetty version(s)
12.0.10

Jetty Environment
ee8, ee9, ee10

Java version/vendor (use: java -version)
OpenJDK Runtime Environment Temurin-21+35 (build 21+35-LTS)

Description

When using my project with the following configuration (this happens with any ee environment)

<plugin>
  <groupId>org.eclipse.jetty.ee8</groupId>
  <artifactId>jetty-ee8-maven-plugin</artifactId>
  <version>${jetty.version}</version>
  <configuration>
    <deployMode>EXTERNAL</deployMode>
    <jettyBase>${project.basedir}/jetty-base</jettyBase>
  </configuration>
</plugin>

I get the following exception:

java.util.ConcurrentModificationException
        at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1605)
        at java.base/java.util.HashMap$KeyIterator.next(HashMap.java:1628)
        at org.eclipse.jetty.start.Main.processCommandLine(Main.java:345)
        at org.eclipse.jetty.start.Main.main(Main.java:74)

the contents of jetty-base is:

jetty-base/
├── etc
│   ├── jetty-openid-baseloginservice.xml
│   └── realm.properties
├── resources
│   └── jetty-logging.properties
└── start.d
    ├── ee8-deploy.ini
    ├── ee8-openid.ini
    ├── ee8-webapp.ini
    ├── http.ini
    └── openid.ini
@lachlan-roberts lachlan-roberts added the Bug For general bugs on Jetty side label Jun 11, 2024
@janbartel
Copy link
Contributor

Which goal are you using? How is the plug-in executing, is it at the command line or bound to a build phase?

@lachlan-roberts
Copy link
Contributor Author

@janbartel I am using mvn jetty:run from the command line.

@janbartel
Copy link
Contributor

Fixed in issue #11909 via #11913

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For general bugs on Jetty side
Projects
None yet
Development

No branches or pull requests

2 participants