eclipse-jetty / eclipse-jetty-plugin

Eclipse Jetty Plugin
https://eclipse-jetty.github.io/
47 stars 29 forks source link

Jetty when launched from Eclipse when using "Use Jetty at Path" truncates the --classpath arg of the JVM causing issues. #24

Open nddipiazza opened 8 years ago

nddipiazza commented 8 years ago

When I run jetty from Eclipse using eclipse-jetty-plugin on eclipse latest mars jetty version from the 9.2.11 I am experiencing issue with classpath on the jvm that is created.

I am using the "Use jetty at path" option where i use my own jetty home location.

Here is my JVM's --classpath when I run the the jetty java executable from eclipse. It gets truncated due to big length:

/home/ndipiazza/Downloads/eclipse/configuration/org.eclipse.osgi/555/0/.cp/lib/eclipse-jetty-starters-common.jar:/home/ndipiazza/Downloads/eclipse/configuration/org.eclipse.osgi/555/0/.cp/lib/eclipse-jetty-starters-util.jar:/home/ndipiazza/Downloads/eclipse/configuration/org.eclipse.osgi/555/0/.cp/lib/eclipse-jetty-starters-console.jar:/home/ndipiazza/Downloads/eclipse/configuration/org.eclipse.osgi/555/0/.cp/lib/eclipse-jetty-starters-jetty9.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/jetty-http-9.2.11.v20150529.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/jetty-proxy-9.2.11.v20150529.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/jetty-alpn-server-9.2.11.v20150529.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/jetty-plus-9.2.11.v20150529.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/jetty-client-9.2.11.v20150529.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/jetty-quickstart-9.2.11.v20150529.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/jetty-webapp-9.2.11.v20150529.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/jetty-server-9.2.11.v20150529.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/jsp/javax.servlet.jsp.jstl-1.2.2.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/jsp/org.eclipse.jdt.core-3.8.2.v20130121.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/jsp/javax.servlet.jsp-api-2.3.1.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/jsp/javax.servlet.jsp-2.3.2.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/jsp/jetty-jsp-9.2.11.v20150529.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/jsp/jetty-jsp-jdt-2.3.3.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/jsp/javax.el-3.0.0.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/jsp/org.eclipse.jetty.orbit.javax.servlet.jsp.jstl-1.2.0.v201105211821.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/annotations/javax.annotation-api-1.2.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/annotations/asm-commons-5.0.1.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/annotations/asm-5.0.1.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/jetty-schemas-3.1.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/jetty-rewrite-9.2.11.v20150529.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/jetty-jaspi-9.2.11.v20150529.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/jetty-io-9.2.11.v20150529.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/jetty-continuation-9.2.11.v20150529.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/jetty-jndi-9.2.11.v20150529.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/jetty-jaas-9.2.11.v20150529.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/jetty-xml-9.2.11.v20150529.jar:/home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/lib/je

Notice the end of that how the string is getting too long for it to handle.

1) I think the plugin should smart enough to grab jetty runner and use that instead of trying to make a huge classpath. i.e. -jar /home/ndipiazza/Downloads/jetty-distribution-9.2.11.v20150529/jetty-runner-9.2.11.v20150529.jar 2) Even if 1) is something you are not willing to do... Then the classpath should not be getting truncated on Linux systems. Windows yeah, but not linux or mac.

i will make my installation names shorter for now to get passed this bug.