Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8087

missing dependency for "camel-example-restlet-jdbc" example

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.14.0
    • 2.14.1, 2.15.0
    • examples
    • None
    • xubuntu 12.04, maven 3.0.3

    • Unknown

    Description

      after "mvn clean install & mvn jetty:run" following exception appears and REST services doesn't work.

      on completed in 2405 ms
      2014-11-27 17:24:03.534:WARN:oejs.Holder:
      java.lang.ClassNotFoundException: org.restlet.ext.spring.SpringServerServlet
              at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
              at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
              at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
              at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:430)
              at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:383)
              at org.eclipse.jetty.util.Loader.loadClass(Loader.java:100)
              at org.eclipse.jetty.util.Loader.loadClass(Loader.java:79)
              at org.eclipse.jetty.servlet.Holder.doStart(Holder.java:107)
              at org.eclipse.jetty.servlet.ServletHolder.doStart(ServletHolder.java:298)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
              at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:791)
              at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
              at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
              at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
              at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
              at org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:298)
              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:282)
              at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
              at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:520)
              at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:365)
              at org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:523)
              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
              at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
              at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
              at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
              at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
              at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
      2014-11-27 17:24:03.536:WARN:/:unavailable
      javax.servlet.UnavailableException: org.restlet.ext.spring.SpringServerServlet
              at org.eclipse.jetty.servlet.Holder.doStart(Holder.java:114)
              at org.eclipse.jetty.servlet.ServletHolder.doStart(ServletHolder.java:298)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
              at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:791)
              at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
              at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
              at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
              at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
              at org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:298)
              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:282)
              at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
              at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:520)
              at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:365)
              at org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:523)
              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
              at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
              at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
              at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
              at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
              at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
      2014-11-27 17:24:03.538:WARN:oejuc.AbstractLifeCycle:FAILED RestletServlet: javax.servlet.UnavailableException: org.restlet.ext.spring.SpringServerServlet
      javax.servlet.UnavailableException: org.restlet.ext.spring.SpringServerServlet
              at org.eclipse.jetty.servlet.Holder.doStart(Holder.java:114)
              at org.eclipse.jetty.servlet.ServletHolder.doStart(ServletHolder.java:298)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
              at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:791)
              at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
              at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
              at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
              at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
              at org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:298)
              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:282)
              at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
              at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:520)
              at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:365)
              at org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:523)
              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
              at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
              at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
              at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
              at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
              at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
      2014-11-27 17:24:03.539:WARN:oejw.WebAppContext:Failed startup of context o.m.j.p.JettyWebAppContext{/,file:/home/sm/Downloads/apache-camel-2.14.0/examples/camel-example-restlet-jdbc/src/main/webapp/},file:/home/sm/Downloads/apache-camel-2.14.0/examples/camel-example-restlet-jdbc/src/main/webapp/
      javax.servlet.UnavailableException: org.restlet.ext.spring.SpringServerServlet
              at org.eclipse.jetty.servlet.Holder.doStart(Holder.java:114)
              at org.eclipse.jetty.servlet.ServletHolder.doStart(ServletHolder.java:298)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
              at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:791)
              at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
              at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
              at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
              at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
              at org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:298)
              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:282)
              at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
              at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:520)
              at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:365)
              at org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:523)
              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
              at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
              at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
              at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
              at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
              at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
      2014-11-27 17:24:03.541:WARN:oejsh.RequestLogHandler:!RequestLog
      
      

      Fix
      add

      <dependency>
                <groupId>org.restlet.jee</groupId>
                <artifactId>org.restlet.ext.spring</artifactId>
                <version>${restlet-version}</version>
      </dependency>
      

      to the pom.xml

      Attachments

        Activity

          People

            njiang Willem Jiang
            Sandy Meier Sandy Meier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: