Hi

If you just want a servlet integration then you can do like this and
no need for spring
http://restlet.org/discover/firststeps#part03

The camel doc should be updated, but the wiki failed for me. Will try
later if I remember.

On Fri, Jan 17, 2014 at 10:09 PM, kraythe . <kray...@gmail.com> wrote:
> I am just trying to toss up a quick REST interface for a a couple calls in
> a remote system without going to all of the trouble of using RESTeasy or
> any of the other frameworks. If I could just get a quick camel route to do
> what I need then life would be grand. Restlet sounded promising but with
> the version incompatibility its off the table. Though the semantics of the
> restlet configuration was exactly what I was looking for.
>
> *Robert Simmons Jr. MSc. - Lead Java Architect @ EA*
> *Author of: Hardcore Java (2003) and Maintainable Java (2012)*
> *LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39
> <http://www.linkedin.com/pub/robert-simmons/40/852/a39>*
>
>
> On Fri, Jan 17, 2014 at 10:31 AM, Claus Ibsen <claus.ib...@gmail.com> wrote:
>
>> what do you need restlet-spring for? What does it bring to the table?
>>
>> On Fri, Jan 17, 2014 at 5:25 PM, kraythe . <kray...@gmail.com> wrote:
>> > Actually that didn't work. Id have to specify all of the spring jars as
>> > non-transitive dependencies. I am thinking of using another component to
>> > put up the rest api, seems like RESTLet is pretty far behind the spring
>> > curve.
>> >
>> > *Robert Simmons Jr. MSc. - Lead Java Architect @ EA*
>> > *Author of: Hardcore Java (2003) and Maintainable Java (2012)*
>> > *LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39
>> > <http://www.linkedin.com/pub/robert-simmons/40/852/a39>*
>> >
>> >
>> > On Fri, Jan 17, 2014 at 8:57 AM, kraythe . <kray...@gmail.com> wrote:
>> >
>> >> I will give that a shot and let you know how it turns out.
>> >>
>> >> *Robert Simmons Jr. MSc. - Lead Java Architect @ EA*
>> >> *Author of: Hardcore Java (2003) and Maintainable Java (2012)*
>> >> *LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39
>> >> <http://www.linkedin.com/pub/robert-simmons/40/852/a39>*
>> >>
>> >>
>> >> On Fri, Jan 17, 2014 at 1:41 AM, Claus Ibsen <claus.ib...@gmail.com
>> >wrote:
>> >>
>> >>> Try excluding those old spring jars in the restlet-spring dependency
>> >>> and make sure to run with only the newer and same spring version.
>> >>>
>> >>> On Thu, Jan 16, 2014 at 11:23 PM, kraythe . <kray...@gmail.com> wrote:
>> >>> > Greetings,
>> >>> >
>> >>> > I wanted to create a little rest let demo but when I tried to run it
>> I
>> >>> got
>> >>> > an odd spring exception. It seems that rest let depends on older
>> spring
>> >>> > jars than Camel does and this causes confusion. Anyone have an idea
>> how
>> >>> to
>> >>> > work around this?
>> >>> >
>> >>> > The exception and the maven dependency tree are below:
>> >>> >
>> >>> > - mvn jetty:run
>> >>> > [INFO] Scanning for projects...
>> >>> > [WARNING]
>> >>> > [WARNING] Some problems were encountered while building the effective
>> >>> model
>> >>> > for demo:restlet-demo:war:1.0.0-SNAPSHOT
>> >>> > [WARNING] 'build.plugins.plugin.version' for
>> >>> > org.mortbay.jetty:jetty-maven-plugin is missing. @ line 105, column
>> 15
>> >>> > [WARNING]
>> >>> > [WARNING] It is highly recommended to fix these problems because they
>> >>> > threaten the stability of your build.
>> >>> > [WARNING]
>> >>> > [WARNING] For this reason, future Maven versions might no longer
>> support
>> >>> > building such malformed projects.
>> >>> > [WARNING]
>> >>> > [INFO]
>> >>> > [INFO]
>> >>> >
>> ------------------------------------------------------------------------
>> >>> > [INFO] Building Camel RESTlet Demo 1.0.0-SNAPSHOT
>> >>> > [INFO]
>> >>> >
>> ------------------------------------------------------------------------
>> >>> > [INFO]
>> >>> > [INFO] >>> jetty-maven-plugin:8.1.14.v20131031:run (default-cli) @
>> >>> > restlet-demo >>>
>> >>> > [INFO]
>> >>> > [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
>> >>> > restlet-demo ---
>> >>> > [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> >>> > [INFO] Copying 3 resources
>> >>> > [INFO]
>> >>> > [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @
>> >>> > restlet-demo ---
>> >>> > [INFO] Nothing to compile - all classes are up to date
>> >>> > [INFO]
>> >>> > [INFO] --- maven-resources-plugin:2.6:testResources
>> >>> (default-testResources)
>> >>> > @ restlet-demo ---
>> >>> > [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> >>> > [INFO] skip non existing resourceDirectory
>> >>> > /Users/rsimmonsjr/dev/restlet-demo/src/test/resources
>> >>> > [INFO]
>> >>> > [INFO] --- maven-compiler-plugin:2.5.1:testCompile
>> >>> (default-testCompile) @
>> >>> > restlet-demo ---
>> >>> > [INFO] No sources to compile
>> >>> > [INFO]
>> >>> > [INFO] <<< jetty-maven-plugin:8.1.14.v20131031:run (default-cli) @
>> >>> > restlet-demo <<<
>> >>> > [INFO]
>> >>> > [INFO] --- jetty-maven-plugin:8.1.14.v20131031:run (default-cli) @
>> >>> > restlet-demo ---
>> >>> > [INFO] Configuring Jetty for project: Camel RESTlet Demo
>> >>> > [INFO] webAppSourceDirectory not set. Defaulting to
>> >>> > /Users/rsimmonsjr/dev/restlet-demo/src/main/webapp
>> >>> > [INFO] Reload Mechanic: automatic
>> >>> > [INFO] Classes = /Users/rsimmonsjr/dev/restlet-demo/target/classes
>> >>> > [INFO] Context path = /
>> >>> > [INFO] Tmp directory = /Users/rsimmonsjr/dev/restlet-demo/target/tmp
>> >>> > [INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
>> >>> > [INFO] Web overrides =  none
>> >>> > [INFO] web.xml file =
>> >>> >
>> file:/Users/rsimmonsjr/dev/restlet-demo/src/main/webapp/WEB-INF/web.xml
>> >>> > [INFO] Webapp directory =
>> >>> /Users/rsimmonsjr/dev/restlet-demo/src/main/webapp
>> >>> > 2014-01-16 16:21:42.591:INFO:oejs.Server:jetty-8.1.14.v20131031
>> >>> > 2014-01-16 16:21:43.179:INFO:oejpw.PlusConfiguration:No Transaction
>> >>> manager
>> >>> > found - if your webapp requires one, please configure one.
>> >>> > 2014-01-16 16:21:45.166:WARN:oejw.WebAppContext:Failed startup of
>> >>> context
>> >>> >
>> >>>
>> o.m.j.p.JettyWebAppContext{/,file:/Users/rsimmonsjr/dev/restlet-demo/src/main/webapp/},file:/Users/rsimmonsjr/dev/restlet-demo/src/main/webapp/
>> >>> > java.lang.reflect.InvocationTargetException
>> >>> > 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.eclipse.jetty.webapp.IterativeDescriptorProcessor.visit(IterativeDescriptorProcessor.java:85)
>> >>> > at
>> >>> >
>> >>>
>> org.eclipse.jetty.webapp.IterativeDescriptorProcessor.process(IterativeDescriptorProcessor.java:72)
>> >>> > at org.eclipse.jetty.webapp.MetaData.resolve(MetaData.java:367)
>> >>> > at
>> >>> >
>> >>>
>> org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1240)
>> >>> > 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:106)
>> >>> > at
>> >>> >
>> >>>
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
>> >>> > 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:317)
>> >>> > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
>> >>> > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
>> >>> > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
>> >>> > at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
>> >>> > 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:289)
>> >>> > at
>> >>> >
>> >>>
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>> >>> > at
>> >>> >
>> >>>
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>> >>> > at
>> >>>
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>> >>> > Caused by:
>> >>> > java.lang.NoClassDefFoundError:
>> >>> > org/springframework/core/env/EnvironmentCapable
>> >>> > at java.lang.ClassLoader.defineClass1(Native Method)
>> >>> > at java.lang.ClassLoader.defineClass(ClassLoader.java:792)
>> >>> > 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
>> >>> >
>> >>>
>> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:421)
>> >>> > at
>> >>> >
>> >>>
>> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:383)
>> >>> > at java.lang.ClassLoader.defineClass1(Native Method)
>> >>> > at java.lang.ClassLoader.defineClass(ClassLoader.java:792)
>> >>> > 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
>> >>> >
>> >>>
>> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:421)
>> >>> > at
>> >>> >
>> >>>
>> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:383)
>> >>> > at java.lang.Class.getDeclaredConstructors0(Native Method)
>> >>> > at java.lang.Class.privateGetDeclaredConstructors(Class.java:2483)
>> >>> > at java.lang.Class.getConstructor0(Class.java:2793)
>> >>> > at java.lang.Class.newInstance(Class.java:345)
>> >>> > at
>> >>> >
>> >>>
>> org.eclipse.jetty.server.handler.ContextHandler$Context.createListener(ContextHandler.java:2375)
>> >>> > at
>> >>> >
>> >>>
>> org.eclipse.jetty.servlet.ServletContextHandler$Context.createListener(ServletContextHandler.java:1227)
>> >>> > at
>> >>> >
>> >>>
>> org.eclipse.jetty.webapp.StandardDescriptorProcessor.newListenerInstance(StandardDescriptorProcessor.java:1937)
>> >>> > at
>> >>> >
>> >>>
>> org.eclipse.jetty.webapp.StandardDescriptorProcessor.visitListener(StandardDescriptorProcessor.java:1894)
>> >>> > 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.eclipse.jetty.webapp.IterativeDescriptorProcessor.visit(IterativeDescriptorProcessor.java:85)
>> >>> > at
>> >>> >
>> >>>
>> org.eclipse.jetty.webapp.IterativeDescriptorProcessor.process(IterativeDescriptorProcessor.java:72)
>> >>> > at org.eclipse.jetty.webapp.MetaData.resolve(MetaData.java:367)
>> >>> > at
>> >>> >
>> >>>
>> org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1240)
>> >>> > 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:106)
>> >>> > at
>> >>> >
>> >>>
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
>> >>> > 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:317)
>> >>> > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
>> >>> > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
>> >>> > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
>> >>> > at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
>> >>> > 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:289)
>> >>> > at
>> >>> >
>> >>>
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>> >>> > at
>> >>> >
>> >>>
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>> >>> > at
>> >>>
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>> >>> > Caused by:
>> >>> > java.lang.ClassNotFoundException:
>> >>> > org.springframework.core.env.EnvironmentCapable
>> >>> > at
>> >>> >
>> >>>
>> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
>> >>> > at
>> >>> >
>> >>>
>> org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)
>> >>> > at
>> >>> >
>> >>>
>> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
>> >>> > at
>> >>> >
>> >>>
>> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
>> >>> > at
>> >>> >
>> >>>
>> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:430)
>> >>> > at
>> >>> >
>> >>>
>> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:383)
>> >>> > at java.lang.ClassLoader.defineClass1(Native Method)
>> >>> > at java.lang.ClassLoader.defineClass(ClassLoader.java:792)
>> >>> > 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
>> >>> >
>> >>>
>> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:421)
>> >>> > at
>> >>> >
>> >>>
>> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:383)
>> >>> > at java.lang.ClassLoader.defineClass1(Native Method)
>> >>> > at java.lang.ClassLoader.defineClass(ClassLoader.java:792)
>> >>> > 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
>> >>> >
>> >>>
>> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:421)
>> >>> > at
>> >>> >
>> >>>
>> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:383)
>> >>> > at java.lang.Class.getDeclaredConstructors0(Native Method)
>> >>> > at java.lang.Class.privateGetDeclaredConstructors(Class.java:2483)
>> >>> > at java.lang.Class.getConstructor0(Class.java:2793)
>> >>> > at java.lang.Class.newInstance(Class.java:345)
>> >>> > at
>> >>> >
>> >>>
>> org.eclipse.jetty.server.handler.ContextHandler$Context.createListener(ContextHandler.java:2375)
>> >>> > at
>> >>> >
>> >>>
>> org.eclipse.jetty.servlet.ServletContextHandler$Context.createListener(ServletContextHandler.java:1227)
>> >>> > at
>> >>> >
>> >>>
>> org.eclipse.jetty.webapp.StandardDescriptorProcessor.newListenerInstance(StandardDescriptorProcessor.java:1937)
>> >>> > at
>> >>> >
>> >>>
>> org.eclipse.jetty.webapp.StandardDescriptorProcessor.visitListener(StandardDescriptorProcessor.java:1894)
>> >>> > 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.eclipse.jetty.webapp.IterativeDescriptorProcessor.visit(IterativeDescriptorProcessor.java:85)
>> >>> > at
>> >>> >
>> >>>
>> org.eclipse.jetty.webapp.IterativeDescriptorProcessor.process(IterativeDescriptorProcessor.java:72)
>> >>> > at org.eclipse.jetty.webapp.MetaData.resolve(MetaData.java:367)
>> >>> > at
>> >>> >
>> >>>
>> org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1240)
>> >>> > 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:106)
>> >>> > at
>> >>> >
>> >>>
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
>> >>> > 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:317)
>> >>> > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
>> >>> > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
>> >>> > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
>> >>> > at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
>> >>> > 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:289)
>> >>> > at
>> >>> >
>> >>>
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>> >>> > at
>> >>> >
>> >>>
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>> >>> > at
>> >>>
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>> >>> > 2014-01-16 16:21:45.176:WARN:oejsh.RequestLogHandler:!RequestLog
>> >>> > 2014-01-16 16:21:45.191:INFO:oejs.AbstractConnector:Started
>> >>> > SelectChannelConnector@0.0.0.0:9191
>> >>> > [INFO] Started Jetty Server
>> >>> >
>> >>> >
>> >>> > [INFO]
>> >>> >
>> ------------------------------------------------------------------------
>> >>> > [INFO] Building Camel RESTlet Demo 1.0.0-SNAPSHOT
>> >>> > [INFO]
>> >>> >
>> ------------------------------------------------------------------------
>> >>> > [INFO]
>> >>> > [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @
>> >>> restlet-demo ---
>> >>> > [INFO] demo:restlet-demo:war:1.0.0-SNAPSHOT
>> >>> > [INFO] +- org.apache.camel:camel-spring:jar:2.12.1:compile
>> >>> > [INFO] |  +- org.apache.camel:camel-core:jar:2.12.1:compile
>> >>> > [INFO] |  +-
>> >>> org.springframework:spring-context:jar:3.2.4.RELEASE:compile
>> >>> > [INFO] |  +- org.springframework:spring-aop:jar:3.2.4.RELEASE:compile
>> >>> > [INFO] |  |  \- aopalliance:aopalliance:jar:1.0:compile
>> >>> > [INFO] |  +- org.springframework:spring-tx:jar:3.2.4.RELEASE:compile
>> >>> > [INFO] |  \- com.sun.xml.bind:jaxb-impl:jar:2.2.6:compile
>> >>> > [INFO] +- org.apache.camel:camel-restlet:jar:2.12.1:compile
>> >>> > [INFO] |  \- org.restlet.jse:org.restlet:jar:2.1.4:compile
>> >>> > [INFO] +- org.apache.camel:camel-sql:jar:2.12.1:compile
>> >>> > [INFO] |  \-
>> org.springframework:spring-jdbc:jar:3.2.4.RELEASE:compile
>> >>> > [INFO] +- org.apache.camel:camel-jackson:jar:2.12.1:compile
>> >>> > [INFO] |  +-
>> >>> com.fasterxml.jackson.core:jackson-databind:jar:2.2.2:compile
>> >>> > [INFO] |  |  +-
>> >>> > com.fasterxml.jackson.core:jackson-annotations:jar:2.2.2:compile
>> >>> > [INFO] |  |  \-
>> >>> com.fasterxml.jackson.core:jackson-core:jar:2.2.2:compile
>> >>> > [INFO] |  \-
>> >>> >
>> >>>
>> com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.2.2:compile
>> >>> > [INFO] +- org.restlet.jee:org.restlet.ext.spring:jar:2.1.4:compile
>> >>> > [INFO] |  +- cglib:cglib-nodep:jar:2.2:compile
>> >>> > [INFO] |  +- commons-logging:commons-logging:jar:1.1.1:compile
>> >>> > [INFO] |  +- org.springframework:spring-asm:jar:3.0.1.RELEASE:compile
>> >>> > [INFO] |  +-
>> org.springframework:spring-beans:jar:3.0.1.RELEASE:compile
>> >>> > [INFO] |  +-
>> org.springframework:spring-core:jar:3.0.1.RELEASE:compile
>> >>> > [INFO] |  +-
>> >>> org.springframework:spring-expression:jar:3.0.1.RELEASE:compile
>> >>> > [INFO] |  +- org.springframework:spring-web:jar:3.0.1.RELEASE:compile
>> >>> > [INFO] |  +-
>> org.springframework:spring-webmvc:jar:3.0.1.RELEASE:compile
>> >>> > [INFO] |  +- org.restlet.jee:org.restlet:jar:2.1.4:compile
>> >>> > [INFO] |  \-
>> org.restlet.jee:org.restlet.ext.servlet:jar:2.1.4:compile
>> >>> > [INFO] +- com.h2database:h2:jar:1.3.173:compile
>> >>> > [INFO] +- org.slf4j:slf4j-log4j12:jar:1.6.1:compile
>> >>> > [INFO] |  \- org.slf4j:slf4j-api:jar:1.6.1:compile
>> >>> > [INFO] +- log4j:log4j:jar:1.2.16:compile
>> >>> > [INFO] +- org.mockito:mockito-all:jar:1.9.5:test
>> >>> > [INFO] \- org.apache.camel:camel-testng:jar:2.12.1:test
>> >>> > [INFO]    +- org.apache.camel:camel-test-spring:jar:2.12.1:test
>> >>> > [INFO]    |  +- org.apache.camel:camel-test:jar:2.12.1:test
>> >>> > [INFO]    |  \-
>> org.springframework:spring-test:jar:3.2.4.RELEASE:test
>> >>> > [INFO]    \- org.testng:testng:jar:6.8.5:test
>> >>> > [INFO]       +- junit:junit:jar:4.10:test
>> >>> > [INFO]       |  \- org.hamcrest:hamcrest-core:jar:1.1:test
>> >>> > [INFO]       +- org.beanshell:bsh:jar:2.0b4:test
>> >>> > [INFO]       +- com.beust:jcommander:jar:1.27:test
>> >>> > [INFO]       \- org.yaml:snakeyaml:jar:1.6:test
>> >>> >
>> >>> > *Robert Simmons Jr. MSc. - Lead Java Architect @ EA*
>> >>> > *Author of: Hardcore Java (2003) and Maintainable Java (2012)*
>> >>> > *LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39
>> >>> > <http://www.linkedin.com/pub/robert-simmons/40/852/a39>*
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> Claus Ibsen
>> >>> -----------------
>> >>> Red Hat, Inc.
>> >>> Email: cib...@redhat.com
>> >>> Twitter: davsclaus
>> >>> Blog: http://davsclaus.com
>> >>> Author of Camel in Action: http://www.manning.com/ibsen
>> >>> Make your Camel applications look hawt, try: http://hawt.io
>> >>>
>> >>
>> >>
>>
>>
>>
>> --
>> Claus Ibsen
>> -----------------
>> Red Hat, Inc.
>> Email: cib...@redhat.com
>> Twitter: davsclaus
>> Blog: http://davsclaus.com
>> Author of Camel in Action: http://www.manning.com/ibsen
>> Make your Camel applications look hawt, try: http://hawt.io
>>



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io

Reply via email to