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

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

Open
nddipiazza opened this issue Feb 24, 2016 · 0 comments

Comments

@nddipiazza
Copy link

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.

@nddipiazza nddipiazza changed the title When running jetty program from debug... -classpath for jetty is getting truncated Jetty when launched from Eclipse when using "Use Jetty at Path" truncates the classpath of the JAR causing issues. Feb 24, 2016
@nddipiazza nddipiazza changed the title Jetty when launched from Eclipse when using "Use Jetty at Path" truncates the classpath of the JAR causing issues. Jetty when launched from Eclipse when using "Use Jetty at Path" truncates the --classpath arg of the JVM causing issues. Feb 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant