Strange java.lang.ArrayIndexOutOfBoundsException thrown on jetty startup

For your 2 errors .. javax.servlet.ServletException: jersey-serlvet This means you have a typo in your WEB-INF/web.xml As for this one .. java.lang.ArrayIndexOutOfBoundsException: 6241 at org.objectweb.asm.ClassReader.<init>(Unknown Source) I’ve seen similar ones when using an old version of asm.jar with newer compiled Java bytecode. For Java 15 bytecode, use asm 7.3.1+ For Java 14 bytecode, use asm … Read more

How to control VM arguments for maven-jetty-plugin?

The enviroment variable MAVEN_OPTS is the answer. The string content of MAVEN_OPTS is passed to JVM (java.exe). Linux: in shell type export MAVEN_OPTS=…. Windows: in shell (cmd.exe) type set MAVEN_OPTS=… For example: on Windows set MAVEN_OPTS=”-Xmx1024m” sets the heap size of the Maven process to 1024mb. Update (01.04.2013): Pass it directly to Jetty. Matthew Farwell … Read more