Menu

#19 Error when building the plugin locally

3.8.0
closed
nobody
None
1
2014-06-24
2014-06-23
Eric Rizzo
No

I'm trying to build the plugin locally, but when I try to launch a Jetty debug session from my locally built instance of the plugin, I'm getting the following error in the runtime workspace:

2014-06-23 11:52:07.905:INFO:oejs.Server:jetty-8.1.14.v20131031
2014-06-23 11:52:07.921:WARN:oejw.WebAppContext:Failed startup of context o.e.j.w.WebAppContext{/hes,null},C:\Java\Eclipse\workspaces\runtime-JettyLauncher\hes-webapp\src\main\webapp
java.lang.ClassNotFoundException: net.sourceforge.eclipsejetty.starter.jetty8.ExtendedAnnotationConfiguration
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    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 org.eclipse.jetty.util.Loader.loadClass(Loader.java:100)
    at org.eclipse.jetty.util.Loader.loadClass(Loader.java:79)
    at org.eclipse.jetty.webapp.WebAppContext.loadConfigurations(WebAppContext.java:859)
    at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:424)
    at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:493)
    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:282)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedAdapter.start(JettyEmbeddedAdapter.java:67)
    at net.sourceforge.eclipsejetty.starter.common.AbstractJettyLauncherMain.launch(AbstractJettyLauncherMain.java:85)
    at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedLauncherMain.main(JettyEmbeddedLauncherMain.java:42)
2014-06-23 11:52:07.935:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8080
2014-06-23 11:52:08.132:INFO:oejus.SslContextFactory:Enabled Protocols [SSLv2Hello, SSLv3, TLSv1, TLSv1.1, TLSv1.2] of [SSLv2Hello, SSLv3, TLSv1, TLSv1.1, TLSv1.2]
2014-06-23 11:52:08.137:INFO:oejs.AbstractConnector:Started SslSelectChannelConnector@0.0.0.0:8443

I have run the package goal on the parent project, and the plugin seems to run fine up until the point I actually try to launch Jetty. Are there instructions for building and testing the plugin locally?

Discussion

  • Christian Koeberl

    • status: open --> closed
     
  • Christian Koeberl

    For local development of the Jetty Plugin you have to:

    mvn install eclipse:eclipse

    Then import the projects in Eclipse with "Import Existing Projects". Then you can launch the plugin and the Jettys in the launched Eclipse. Sometimes it is necessary to change the "Bundle-Version:" in MANIFEST.MF - the Maven plugin changes the ".qualifier" to ".SNAPSHOT" - this has to be changed back.

     
  • Eric Rizzo

    Eric Rizzo - 2014-06-24
    Post awaiting moderation.
  • Eric Rizzo

    Eric Rizzo - 2014-06-24
    Post awaiting moderation.

Log in to post a comment.