guy-keller / jetty-runner Goto Github PK
View Code? Open in Web Editor NEWA plugin that allows you to run Jetty from IntelliJ
License: Other
A plugin that allows you to run Jetty from IntelliJ
License: Other
Hi,
I'm a complete newbie to intellij . I realised that it's tricky to deploy a project from intellij CE unlike how it was in eclipse.
I have a project that has few REST endpoints written using Jersey. I want to check if the response is getting generated in the correct way on local host. Can you please tell me how to do it in intellij CE using jetty.
I'm using intellij 14
JRE 8
My project is a multi-module project, with some of them being plugins of the main webapp. The webapp loads plugins based on the availability on the classpath.
It would be very nice to be able to unset some of the project modules from jetty runner webapp classpath so that I can make configuration with or without my webapp plugins.
For now, I just delete or add modules in the project depending of what I need to test, but it's not very convenient.
Hello there,
First have a quick look on the "closed issues".
https://github.com/guikeller/jetty-runner/issues?q=is%3Aissue+is%3Aclosed
If the issue is not there please do raise a new issue.
While raising an issue please provide the following info below.
Thank you very much in advance for your collaboration.
Kind regards,
Gui
With 1.2.0 web application returns:
org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:55) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:277) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:75)
After roll-back to 1.1.3 all went to normal.
Maven - https://maven.apache.org/
Gradle - http://gradle.org/ (Preferred)
Main goal is to run the unit tests.
IntelliJ packages the plugin out of the box.
Number of Path(s) and Folder(s) must match: /cup /
java.lang.IllegalArgumentException: Number of Path(s) and Folder(s) must match: /cup /
at com.github.guikeller.jettyrunner.model.JettyRunnerCommandLine.getWebAppPath(JettyRunnerCommandLine.java:134)
at com.github.guikeller.jettyrunner.model.JettyRunnerCommandLine.createJavaParameters(JettyRunnerCommandLine.java:71)
at com.intellij.execution.configurations.JavaCommandLineState.getJavaParameters(JavaCommandLineState.java:35)
at com.intellij.execution.configurations.JavaCommandLineState.createCommandLine(JavaCommandLineState.java:53)
at com.intellij.execution.configurations.JavaCommandLineState.startProcess(JavaCommandLineState.java:43)
at com.intellij.execution.configurations.JavaCommandLineState.startProcess(JavaCommandLineState.java:25)
at com.intellij.execution.configurations.CommandLineState.execute(CommandLineState.java:80)
at com.intellij.execution.runners.DefaultProgramRunner.doExecute(DefaultProgramRunner.java:33)
at com.github.guikeller.jettyrunner.runner.JettyProgramRunner.doExecute(JettyProgramRunner.java:47)
at com.intellij.execution.runners.GenericProgramRunner$1.execute(GenericProgramRunner.java:43)
at com.intellij.execution.RunProfileStarter.execute(RunProfileStarter.java:39)
at com.intellij.execution.impl.ExecutionManagerImpl$3.run(ExecutionManagerImpl.java:219)
at com.intellij.openapi.project.DumbServiceImpl.runWhenSmart(DumbServiceImpl.java:146)
at com.intellij.execution.impl.ExecutionManagerImpl$2.run(ExecutionManagerImpl.java:186)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
at java.awt.EventQueue.access$400(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:697)
at java.awt.EventQueue$3.run(EventQueue.java:691)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:734)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:569)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Use maven to generate the following:
Findbugs (Findbugs)
OpenTasks ( Checking for TODO's and FIXME's)
Duplicate Code (PMD / CPD)
Code Coverage (JaCoCo)
JUnit Test Report (JUnit)
Depends on Issue #16
Hi,
It was tagged with webstorm but is it meant to work with this application?
I installed the plugin but it gave an error when trying to setup.
Thanks
I set "running on port" as 8888(or other any port)
but it always running on 8080.
OS version is win7 x64
My idea version is 14.03 community , build ver is IC-139.1117
Jetty-runner version is 0.0.9
I'm trying to build jetty-runner, and Gradle can't find these jars
(logs edited for brevity)
20:32:46: Executing external task 'build'...
:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':compileClasspath'.
> Could not find com.github.guikeller.jetty-runner:util:14.1.4.
> Could not find com.github.guikeller.jetty-runner:idea:14.1.4.
> Could not find com.github.guikeller.jetty-runner:idea_rt:14.1.4.
> Could not find com.github.guikeller.jetty-runner:openapi:14.1.4.
> Could not find com.github.guikeller.jetty-runner:annotations:14.1.4.
> Could not find com.github.guikeller.jetty-runner:jdom:14.1.4.
> Could not find com.github.guikeller.jetty-runner:extensions:14.1.4.
Aside from the fact that it makes no sense that you are providing your own copies of some very common Java libraries, I have been poking around the Github repo, looking at some of the closed issues and noticed that the location of the Maven repo containing these libraries has moved... but there is no reference to the new location of the repository at IndexerApp.com in build.gradle. So, gradle's looking at my hard drive, and in Maven Central, trying to find those files, and of course it's failing because the files aren't in either of those locations.
What do I need to do to fix this? I have downloaded the latest snapshot from Github. Thanks in advance.
If I configure jetty to run http1, I can successfully run my webapp from IntelliJ.
If I enable http2, server starts but webapp doesn't get deployed.
I'm using the exploded war deploy.
Any idea?
console print a lot of log like "2016-04-01 11:45:46,423 DEBUG [user: unknown] org.eclipse.jetty.webapp....".
how can i disable this?
Javax.servlet api version used is 2.5
Jetty running is not working:
2017-06-01 16:58:24,775 [main] INFO org.eclipse.jetty.server.Server - jetty-9.3.11.v20160721
Exception in thread "main" java.lang.NoSuchMethodError: javax.servlet.ServletContext.getJspConfigDescriptor()Ljavax/servlet/descriptor/JspConfigDescriptor;
at org.apache.jasper.servlet.TldScanner.scanJspConfig(TldScanner.java:158)
at org.apache.jasper.servlet.TldScanner.scan(TldScanner.java:104)
at org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializer.java:103)
at org.eclipse.jetty.plus.annotation.ContainerInitializer.callStartup(ContainerInitializer.java:140)
at org.eclipse.jetty.annotations.ServletContainerInitializersStarter.doStart(ServletContainerInitializersStarter.java:63)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:330)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1404)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1366)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:778)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:262)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:520)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:411)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:106)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:378)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.runner.Runner.run(Runner.java:495)
at org.eclipse.jetty.runner.Runner.main(Runner.java:536)
2017-06-01 16:58:25,368 [main] INFO org.eclipse.jetty.server.AbstractConnector - Started ServerConnector@5c50880e{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
I tried to put it in VM args but it doesn't work.
I have two springMvc web modules, ,
first , it couldn't determine classes folder.
second, i choose the classes folder manually(only one module's target/classes), when I start jetty runner , All controller classes under two web modules has been scanned by spring . May i have missing some configuration? or isn't support for multi web modules ?
My configure below:
jdk: 1.8
IntelliJ IDEA version :
IntelliJ IDEA 2016.3
Build #IU-163.7743.44, built on November 18, 2016
JRE: 1.8.0_91-b14 amd64
JVM: Java HotSpot(TM) 64-Bit Server VM by Oracle Corporation
Plugin Version: 1.2.0
Hi guys,
Anyone has 1GB space that I could use to host a maven repository for the project?
It would be used by Travis (CI) to download the dependencies, build and run the unit tests.
Also, I would like use it to host the code health report results if possible.
That means that some bandwidth (low) would be required as well.
If you are interested in collaborating please let me know.
Thank you very much in advance.
Kind regards,
Gui
I have configured two jetty run configurations (one for each of my computers). They differ in WebApp Folder a Classes Folder configuration, since my project is checked out into differnt location.
I can set theese configurations and jetty works just fine until idea restart. After starting Idea anew, the second created configuration conatins values from the first one.
My guess is that it uses first found configuration for both of them.
Hello.
Please can you confirm that your Jetty Runner plugin expects all the jars and classes of your app to be built/made/copied to your classes output directory, and that the plugin cannot automatically set the classpath to point to the various jars in place? This is what I believe the Eclipse Jetty plugin and others do.
Note: Pull requests are welcome
http://central.maven.org/maven2/org/eclipse/jetty/jetty-runner/9.4.6.v20170531/
HI, Guikeller
First of all , thanks for your excellent work.
i'm run jetty runner on my intellij idea 14 today and find the error below:
NoClassDefFoundError: Could not initialize class com.github.guikeller.jettyrunner.runner.JettyRunnerCommandLine
google it without find anything valuable, what to do to make it run ?
the details is as below :
Could not initialize class com.github.guikeller.jettyrunner.runner.JettyRunnerCommandLine
java.lang.NoClassDefFoundError: Could not initialize class com.github.guikeller.jettyrunner.runner.JettyRunnerCommandLine
at com.github.guikeller.jettyrunner.model.JettyRunnerConfiguration.getState(JettyRunnerConfiguration.java:57)
at com.intellij.execution.runners.ExecutionEnvironment.getState(ExecutionEnvironment.java:201)
at com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:58)
at com.intellij.execution.runners.GenericProgramRunner.execute(GenericProgramRunner.java:31)
at com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:53)
at com.intellij.execution.runners.GenericProgramRunner.execute(GenericProgramRunner.java:31)
at com.intellij.execution.ProgramRunnerUtil.executeConfiguration(ProgramRunnerUtil.java:94)
at com.intellij.execution.impl.ExecutionManagerImpl.a(ExecutionManagerImpl.java:375)
at com.intellij.execution.impl.ExecutionManagerImpl.access$400(ExecutionManagerImpl.java:60)
at com.intellij.execution.impl.ExecutionManagerImpl$4.run(ExecutionManagerImpl.java:368)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
at com.intellij.util.Alarm$Request$1.run(Alarm.java:351)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:318)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:676)
at java.awt.EventQueue$2.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:685)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:748)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:577)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:384)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Thanks again.
null
java.lang.ExceptionInInitializerError
at com.github.guikeller.jettyrunner.model.JettyRunnerConfiguration.getState(JettyRunnerConfiguration.java:57)
at com.intellij.execution.runners.ExecutionEnvironment.getState(ExecutionEnvironment.java:201)
at com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:58)
at com.intellij.execution.runners.GenericProgramRunner.execute(GenericProgramRunner.java:31)
at com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:53)
at com.intellij.execution.runners.GenericProgramRunner.execute(GenericProgramRunner.java:31)
at com.intellij.execution.ProgramRunnerUtil.executeConfiguration(ProgramRunnerUtil.java:94)
at com.intellij.execution.impl.ExecutionManagerImpl.start(ExecutionManagerImpl.java:396)
at com.intellij.execution.impl.ExecutionManagerImpl.access$400(ExecutionManagerImpl.java:61)
I have been running Scalatra apps with Jetty Runner for some time now, and when I upgraded from IntelliJ 2016.3 to 2017.1 all of sudden my Scalatra apps ceased to work. When you try to run them, they crash with the following stack trace, even on a "hello world" Scalatra app that does nothing:
Exception in thread "main" java.lang.NoSuchMethodError: scala.Predef$.ArrowAssoc(Ljava/lang/Object;)Ljava/lang/Object;
at org.fusesource.scalate.TemplateEngine.<init>(TemplateEngine.scala:181)
at org.fusesource.scalate.servlet.ServletTemplateEngine.<init>(ServletTemplateEngine.scala:95)
at org.scalatra.scalate.ScalateSupport$$anonfun$createTemplateEngine$1$$anon$1.<init>(ScalateSupport.scala:90)
at org.scalatra.scalate.ScalateSupport$$anonfun$createTemplateEngine$1.apply(ScalateSupport.scala:90)
at org.scalatra.scalate.ScalateSupport$$anonfun$createTemplateEngine$1.apply(ScalateSupport.scala:90)
at org.scalatra.scalate.ScalateSupport$$anonfun$scalateTemplateEngine$1.apply(ScalateSupport.scala:37)
at org.scalatra.scalate.ScalateSupport$$anonfun$scalateTemplateEngine$1.apply(ScalateSupport.scala:36)
at scala.Option.getOrElse(Option.scala:120)
at org.scalatra.scalate.ScalateSupport$.scalateTemplateEngine(ScalateSupport.scala:36)
at org.scalatra.scalate.ScalateSupport$class.createTemplateEngine(ScalateSupport.scala:90)
at com.dandb.application_services.ApplicationServicesServlet.createTemplateEngine(ApplicationServicesServlet.scala:5)
at org.scalatra.scalate.ScalateSupport$class.initialize(ScalateSupport.scala:61)
at com.dandb.application_services.ApplicationServicesServlet.initialize(ApplicationServicesServlet.scala:5)
at com.dandb.application_services.ApplicationServicesServlet.initialize(ApplicationServicesServlet.scala:5)
at org.scalatra.ScalatraServlet$class.init(ScalatraServlet.scala:124)
at com.dandb.application_services.ApplicationServicesServlet.init(ApplicationServicesServlet.scala:5)
at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:640)
at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:419)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:875)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:349)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1404)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1366)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:778)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:262)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:520)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:411)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:106)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:378)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.runner.Runner.run(Runner.java:495)
at org.eclipse.jetty.runner.Runner.main(Runner.java:536)
The problem seems to be a version dependency or similar error involving Scalate. Now the interesting thing is that if you just run sbt and do a jetty:start the application runs fine and there are no errors. If there is a work-around for this I would sure appreciate it.
I have also posted to the Scalatra group if this turns out to be a Scalatra bug I will come back and close this issue, thanks!
Hi,
since I updated to the version 1.2.1 I got the following exception:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" java.lang.NoSuchMethodError: org.eclipse.jetty.util.TypeUtil.getLocationOfClass(Ljava/lang/Class;)Ljava/net/URI;
at org.eclipse.jetty.annotations.AnnotationConfiguration.getJarFor(AnnotationConfiguration.java:642)
at org.eclipse.jetty.annotations.AnnotationConfiguration.getNonExcludedInitializers(AnnotationConfiguration.java:796)
at org.eclipse.jetty.annotations.AnnotationConfiguration.configure(AnnotationConfiguration.java:360)
at org.eclipse.jetty.webapp.WebAppContext.configure(WebAppContext.java:491)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1336)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:772)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:259)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:517)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:405)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:106)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:372)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.runner.Runner.run(Runner.java:518)
at org.eclipse.jetty.runner.Runner.main(Runner.java:559)
Thanks in advance.
Eric
Intellij Community v14.1.5
$ java -version
java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)
I installed the plugin and restarted Intellij. When Intellij was done restarting I opened the "Edit configurations..." and this error happens every time the "Jetty Runner" configuration panel appears.
Steps to reproduce:
mvn archetype:generate -DarchetypeArtifactId=jersey-quickstart-grizzly2 -DarchetypeGroupId=org.glassfish.jersey.archetypes -DinteractiveMode=false -DgroupId=com.example -DartifactId=simple-service -Dpackage=com.example -DarchetypeVersion=2.2
(I don't know if an empty project also triggers an error)
java.lang.NullPointerException
at com.github.guikeller.jettyrunner.ui.JettyRunnerEditor$1.execute(JettyRunnerEditor.java:141)
at com.intellij.compiler.impl.CompileDriver$6.run(CompileDriver.java:599)
at com.intellij.compiler.progress.CompilerTask.run(CompilerTask.java:203)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:563)
at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:152)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:452)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:402)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:137)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$1.run(ProgressManagerImpl.java:126)
at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:400)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:56)
The project has multiple webapp module, I create a runner configuration in Jetty Runner, fill in webapp, classes Folders option, I cann't find the dependency classpath option. When I run the configuration, the SLF4J error will interrupt the process. Actually when launch jetty runner, it will scan other webapp module lib folder.
Below is the error message, I just launch tms-manage webapp with module library configuration.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/E:/HU/ws/tms/tms-dao/src/lib/slf4j-log4j12-1.4.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/E:/HU/ws/tms/tms-itg/WebContent/WEB-INF/lib/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/E:/HU/ws/tms/tms-manage/WebContent/WEB-INF/lib/slf4j-log4j12-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/E:/HU/ws/tms/tms-gateway/WebContent/WEB-INF/lib/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/E:/HU/ws/tms/tms-gateway/WebContent/WEB-INF/lib/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/E:/HU/ws/tms/tms-api/WebContent/WEB-INF/lib/slf4j-log4j12-1.4.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
Exception in thread "main" java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.arrayFormat(Ljava/lang/String;[Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple;
Jetty Runner 1.2.1
JRE 1.8
How to solve this, thank you.
Hello all,
Currently the plugin uses jetty-runner-8.1.9.
Would you like me to update to jetty-runner-9.2.3?
Yes / No ? Comment below.
Cheers, Gui
Guelker,
I am having the same issue as previous author. I am including another stacktrace in case it would helpl
Invalid classes folder:
java.lang.IllegalArgumentException: Invalid classes folder:
at com.github.guikeller.jettyrunner.runner.JettyRunnerCommandLine.getClassesDirectory(JettyRunnerCommandLine.java:139)
at com.github.guikeller.jettyrunner.runner.JettyRunnerCommandLine.createJavaParameters(JettyRunnerCommandLine.java:67)
at com.intellij.execution.configurations.JavaCommandLineState.getJavaParameters(JavaCommandLineState.java:36)
at com.intellij.execution.configurations.JavaCommandLineState.createCommandLine(JavaCommandLineState.java:54)
at com.intellij.execution.configurations.JavaCommandLineState.startProcess(JavaCommandLineState.java:44)
at com.intellij.execution.configurations.JavaCommandLineState.startProcess(JavaCommandLineState.java:26)
at com.intellij.execution.configurations.CommandLineState.execute(CommandLineState.java:80)
at com.intellij.execution.runners.DefaultProgramRunner.doExecute(DefaultProgramRunner.java:33)
at com.github.guikeller.jettyrunner.runner.JettyProgramRunner.doExecute(JettyProgramRunner.java:44)
at com.intellij.execution.runners.GenericProgramRunner$1.execute(GenericProgramRunner.java:43)
at com.intellij.execution.RunProfileStarter.execute(RunProfileStarter.java:39)
at com.intellij.execution.impl.ExecutionManagerImpl$2.run(ExecutionManagerImpl.java:203)
at com.intellij.openapi.project.DumbServiceImpl.runWhenSmart(DumbServiceImpl.java:125)
at com.intellij.execution.impl.ExecutionManagerImpl$1$1.run(ExecutionManagerImpl.java:168)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
when i run with spring boot, it can't load class five. and when i don't have WebApp Folder i will get a error 'IllegalArgumentException: Number of Path(s) and Folder(s) must match: /websocket / '
When i run the jetty server then i get this exception
Exception in thread "main" java.lang.NoSuchMethodError: javax.servlet.ServletContext.getServletRegistration(Ljava/lang/String;)Ljavax/servlet/ServletRegistration;
at org.apache.jasper.runtime.TldScanner.onStartup(TldScanner.java:231)
at org.eclipse.jetty.plus.annotation.ContainerInitializer.callStartup(ContainerInitializer.java:106)
at org.eclipse.jetty.annotations.ServletContainerInitializerListener.contextInitialized(ServletContainerInitializerListener.java:107)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:775)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:767)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:710)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:172)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
at org.eclipse.jetty.server.Server.doStart(Server.java:280)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.mortbay.jetty.runner.Runner.run(Runner.java:512)
at org.mortbay.jetty.runner.Runner.main(Runner.java:633)
I tried 1.1.2 0.6 and 0.2 but still i see this same error. I am using IntellijIDEA 14.1.5
i am using servlet api 2.5 jar so 0.6 onwards the plugin should work but not sure why it is failing.
How do i installed jetty-runner plugin to Idea:
Travis CI - https://travis-ci.org/
It should run the tests and generate code analysis reports (weekly / nightly?)
Depends on Issue #17
Invalid classes folder:
java.lang.IllegalArgumentException: Invalid classes folder:
at com.github.guikeller.jettyrunner.model.JettyRunnerCommandLine.getClassesDirectory(JettyRunnerCommandLine.java:156)
at com.github.guikeller.jettyrunner.model.JettyRunnerCommandLine.createJavaParameters(JettyRunnerCommandLine.java:74)
at com.intellij.execution.configurations.JavaCommandLineState.getJavaParameters(JavaCommandLineState.java:35)
at com.intellij.execution.configurations.JavaCommandLineState.createCommandLine(JavaCommandLineState.java:53)
at com.intellij.execution.configurations.JavaCommandLineState.startProcess(JavaCommandLineState.java:43)
at com.intellij.execution.configurations.JavaCommandLineState.startProcess(JavaCommandLineState.java:25)
at com.intellij.execution.configurations.CommandLineState.execute(CommandLineState.java:80)
at com.intellij.execution.runners.DefaultProgramRunner.doExecute(DefaultProgramRunner.java:33)
at com.github.guikeller.jettyrunner.runner.JettyProgramRunner.doExecute(JettyProgramRunner.java:47)
at com.intellij.execution.runners.GenericProgramRunner$1.execute(GenericProgramRunner.java:43)
at com.intellij.execution.RunProfileStarter.execute(RunProfileStarter.java:39)
at com.intellij.execution.impl.ExecutionManagerImpl$3.run(ExecutionManagerImpl.java:219)
at com.intellij.openapi.project.DumbServiceImpl.updateFinished(DumbServiceImpl.java:269)
at com.intellij.openapi.project.DumbServiceImpl.access$800(DumbServiceImpl.java:52)
at com.intellij.openapi.project.DumbServiceImpl$9.run(DumbServiceImpl.java:439)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:734)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:569)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
hi there, I am having trouble getting started with jetty,
can you make a sample project and commit it into a demo folder that can be used with this runner?
Hey, I use jetty run, version 1.2.1 https://plugins.jetbrains.com/plugin/7505-idea-jetty-runner, and without web.xml, but @WebServlet not work, is that? Thank you.
Could not initialize class com.github.guikeller.jettyrunner.model.JettyRunnerCommandLine
java.lang.NoClassDefFoundError: Could not initialize class com.github.guikeller.jettyrunner.model.JettyRunnerCommandLine
at com.github.guikeller.jettyrunner.model.JettyRunnerConfiguration.getState(JettyRunnerConfiguration.java:72)
at com.intellij.execution.runners.ExecutionEnvironment.getState(ExecutionEnvironment.java:158)
at com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:55)
at com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:50)
at com.intellij.execution.ProgramRunnerUtil.executeConfiguration(ProgramRunnerUtil.java:118)
at com.intellij.execution.impl.ExecutionManagerImpl.start(ExecutionManagerImpl.java:117)
at com.intellij.execution.impl.ExecutionManagerImpl.access$300(ExecutionManagerImpl.java:67)
at com.intellij.execution.impl.ExecutionManagerImpl$3.run(ExecutionManagerImpl.java:509)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:222)
at com.intellij.util.Alarm$Request$1.run(Alarm.java:378)
at com.intellij.openapi.application.TransactionGuardImpl$6.run(TransactionGuardImpl.java:291)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:326)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:310)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:795)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:631)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:387)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Is this working for any java versions?. I am getting error for java6
java.lang.UnsupportedClassVersionError: org/eclipse/jetty/runner/Runner : Unsupported major.minor version 52.0
Hi,
I got stucked on an error when I was trying to start my service with jetty runner in intellij, the servlet-api version I use is 3.1.0
Exception in thread "main" java.lang.NoSuchMethodError: org.eclipse.jetty.webapp.WebAppContext.getObjectFactory()Lorg/eclipse/jetty/util/DecoratedObjectFactory;
at org.eclipse.jetty.annotations.AnnotationConfiguration.configure(AnnotationConfiguration.java:345)
at org.eclipse.jetty.webapp.WebAppContext.configure(WebAppContext.java:479)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1337)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:742)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:163)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:399)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:366)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.runner.Runner.run(Runner.java:518)
at org.eclipse.jetty.runner.Runner.main(Runner.java:559)
Exception in thread "main" java.lang.IncompatibleClassChangeError: Implementing class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2615)
at java.lang.Class.getMethod0(Class.java:2856)
at java.lang.Class.getMethod(Class.java:1668)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
plugin is 1.2.0.
IDEA is 2017.2.
Could this be because of my plugin config. or IDEA cache?
Hi there, I have installed latest version of Jetty-runner (1.2.0) in Intellij idea, but I'm getting following error:
org/eclipse/jetty/runner/Runner
java.lang.NoClassDefFoundError: org/eclipse/jetty/runner/Runner
at com.github.guikeller.jettyrunner.model.JettyRunnerCommandLine.(JettyRunnerCommandLine.java:30)
at com.github.guikeller.jettyrunner.model.JettyRunnerConfiguration.getState(JettyRunnerConfiguration.java:72)
at com.intellij.execution.runners.ExecutionEnvironment.getState(ExecutionEnvironment.java:158)
at com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:55)
at com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:50)
at com.intellij.execution.ProgramRunnerUtil.executeConfiguration(ProgramRunnerUtil.java:118)
at com.intellij.execution.impl.ExecutionManagerImpl.start(ExecutionManagerImpl.java:121)
at com.intellij.execution.impl.ExecutionManagerImpl.access$300(ExecutionManagerImpl.java:68)
at com.intellij.execution.impl.ExecutionManagerImpl$3.run(ExecutionManagerImpl.java:533)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:223)
at com.intellij.util.Alarm$Request$1.run(Alarm.java:387)
at com.intellij.openapi.application.TransactionGuardImpl$6.run(TransactionGuardImpl.java:318)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:417)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:401)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:843)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:679)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:391)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.runner.Runner PluginClassLoader[JettyRunner-GK, 1.2.0]
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:65)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 31 more
JVM: 1.8.3.1
Intellij Idea: 2016.3
IDEA Jetty Runner plugin version is 1.2.1.
When run the webapp application, both jdk1.7.0_75
and jdk1.8.0_20
all throw the some error. Below is the log. What version of JVM should I use?
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/eclipse/jetty/runner/Runner : Unsupported major.minor version 52.0
¿What would be the changing parts involved in deploy to X?: Tomcat, jboss, glassfish
I'm looking for guidance to provide PR or a fork to X
hi
I just tried to use it, but when I run(ctrl+d) it , it throw below exception in console
Listening for transport dt_socket at address: 49480
Exception in thread "main" java.lang.NoSuchMethodError: org.eclipse.jetty.util.resource.Resource.close()V
at org.eclipse.jetty.runner.Runner.configure(Runner.java:228)
at org.eclipse.jetty.runner.Runner.main(Runner.java:556)
Process finished with exit code 1
Should I need install or config something else?
Hello! Something weird happened today with my jetty runner instance. It cannot start web application with error:
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:48)
Caused by: java.lang.NoSuchMethodError: org.eclipse.jetty.server.handler.HandlerWrapper.updateBean(Ljava/lang/Object;Ljava/lang/Object;Z)V
at org.eclipse.jetty.server.handler.HandlerWrapper.setHandler(HandlerWrapper.java:97)
at org.eclipse.jetty.runner.Runner.configure(Runner.java:325)
at org.eclipse.jetty.runner.Runner.main(Runner.java:535)
... 5 more
I suspect that default jetty.xml should be reviewed and fixed based on my preferences, but I can't find it.
mvn jetty:run works just fine - I can use curl to get a response from my REST (rax-rs) resource.
Launching with jetty-runner I see the below
Version 1.2
IntelliJ IDEA 2017.1.4
Build #IC-171.4694.23, built on June 6, 2017
JRE: 1.8.0_112-release-736-b21 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.11.5-200.fc25.x86_64
2017-06-29 15:57:03.378:INFO:oejr.Runner:main: Runner
2017-06-29 15:57:03.515:INFO:oejs.Server:main: jetty-9.2.2.v20140723
2017-06-29 15:57:03.563:WARN:oejuc.AbstractLifeCycle:main: FAILED o.e.j.w.WebAppContext@7403c468{/webappfabricsdk,null,null}{file:/home//gitws/bc/webappfabricsdk/src/main/webapp/}: java.lang.NoSuchMethodError: org.eclipse.jetty.util.resource.Resource.isAlias()Z
java.lang.NoSuchMethodError: org.eclipse.jetty.util.resource.Resource.isAlias()Z
at org.eclipse.jetty.webapp.WebInfConfiguration.unpack(WebInfConfiguration.java:409)
at org.eclipse.jetty.webapp.WebInfConfiguration.preConfigure(WebInfConfiguration.java:72)
at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:483)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:519)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:163)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:380)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:347)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.runner.Runner.run(Runner.java:495)
at org.eclipse.jetty.runner.Runner.main(Runner.java:536)
2017-06-29 15:57:03.564:WARN:oejuc.AbstractLifeCycle:main: FAILED org.eclipse.jetty.server.handler.ContextHandlerCollection@15bfd87[o.e.j.w.WebAppContext@7403c468{/webappfabricsdk,null,null}{file:/home/gitws/bc/webappfabricsdk/src/main/webapp/}]: java.lang.NoSuchMethodError: org.eclipse.jetty.util.resource.Resource.isAlias()Z
java.lang.NoSuchMethodError: org.eclipse.jetty.util.resource.Resource.isAlias()Z
at org.eclipse.jetty.webapp.WebInfConfiguration.unpack(WebInfConfiguration.java:409)
at org.eclipse.jetty.webapp.WebInfConfiguration.preConfigure(WebInfConfiguration.java:72)
at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:483)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:519)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:163)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:380)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:347)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.runner.Runner.run(Runner.java:495)
at org.eclipse.jetty.runner.Runner.main(Runner.java:536)
2017-06-29 15:57:03.564:WARN:oejuc.AbstractLifeCycle:main: FAILED org.eclipse.jetty.server.handler.HandlerCollection@543e710e[org.eclipse.jetty.server.handler.ContextHandlerCollection@15bfd87[o.e.j.w.WebAppContext@7403c468{/webappfabricsdk,null,null}{file:/home/gitws/bc/webappfabricsdk/src/main/webapp/}], org.eclipse.jetty.server.handler.DefaultHandler@57f23557, org.eclipse.jetty.server.handler.RequestLogHandler@3d0f8e03]: java.lang.NoSuchMethodError: org.eclipse.jetty.util.resource.Resource.isAlias()Z
java.lang.NoSuchMethodError: org.eclipse.jetty.util.resource.Resource.isAlias()Z
at org.eclipse.jetty.webapp.WebInfConfiguration.unpack(WebInfConfiguration.java:409)
at org.eclipse.jetty.webapp.WebInfConfiguration.preConfigure(WebInfConfiguration.java:72)
at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:483)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:519)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:163)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:380)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:347)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.runner.Runner.run(Runner.java:495)
at org.eclipse.jetty.runner.Runner.main(Runner.java:536)
2017-06-29 15:57:03.578:INFO:oejs.ServerConnector:main: Started ServerConnector@6e38921c{HTTP/1.1}{0.0.0.0:8080}
2017-06-29 15:57:03.579:WARN:oejuc.AbstractLifeCycle:main: FAILED org.eclipse.jetty.server.Server@64d7f7e0: java.lang.NoSuchMethodError: org.eclipse.jetty.util.resource.Resource.isAlias()Z
java.lang.NoSuchMethodError: org.eclipse.jetty.util.resource.Resource.isAlias()Z
at org.eclipse.jetty.webapp.WebInfConfiguration.unpack(WebInfConfiguration.java:409)
at org.eclipse.jetty.webapp.WebInfConfiguration.preConfigure(WebInfConfiguration.java:72)
at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:483)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:519)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:163)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:380)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:347)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.runner.Runner.run(Runner.java:495)
at org.eclipse.jetty.runner.Runner.main(Runner.java:536)
Exception in thread "main" java.lang.NoSuchMethodError: org.eclipse.jetty.util.resource.Resource.isAlias()Z
at org.eclipse.jetty.webapp.WebInfConfiguration.unpack(WebInfConfiguration.java:409)
at org.eclipse.jetty.webapp.WebInfConfiguration.preConfigure(WebInfConfiguration.java:72)
at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:483)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:519)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:163)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:380)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:347)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.runner.Runner.run(Runner.java:495)
at org.eclipse.jetty.runner.Runner.main(Runner.java:536)
Connected to the target VM, address: '127.0.0.1:41419', transport: 'socket'
I have lot of properties to configure my webapp, something like that:
-javaagent:/xxx/javaagents/sizeof/SizeOf.jar
-javaagent:/xxx/javaagents/file-leak-detector/fld-1.8.jar
-DrjrDisableannotation=true
-Drebel.lift_plugin=true
-Drebel.spring_plugin=false
-Drun.mode=production
-XX:MaxPermSize=360m
-Xms1g
-Xmx1g
-XX:-UseLoopPredicate
-XX:+UseG1GC
-XX:+UnlockExperimentalVMOptions
-XX:+UseStringDeduplication
-Drudder.configFile=/.../rudder-project/static-config/configuration-rudder-4.3.properties
-Drudder.plugin.advancedReporting.configFile=/..../rudder-project/static-config/advancedReporting-2.1.properties
-Drudder.authFile=/.../rudder-project/static-config/rudder-users.xml
-Dlogback.configurationFile=/.../workspaces/rudder-project/static-config/logback.xml`
It is not easy at all to modify them in the one line input text available to configure them.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.