0 Replies Latest reply on Jun 5, 2015 7:13 AM by Itay B

    deplyoing infinispan rest server using jetty

    Itay B Newbie

      Hi,

       

      I'm trying to deploy infinispan rest server (from The Central Repository Search Engine) on Jetty (jetty-distribution-8.1.8.v20121106).

      I tried using the 7.2.2.Final version and also the 8.0.0.Alpha1 version, taking the out-of-the-box WAR file and putting it in Jetty's webapps folder.

      Problem is, when starting Jetty, I get this:

       

      2015-06-04 12:04:18.257:WARN:oejw.WebAppContext:Failed startup of context o.e.j.w.WebAppContext{/infinispan-server-rest-7.2.2.Final,file:/tmp/jetty-0.0.0.0-8080-infinispan-server-rest-7.2.2.Final.war-_infinispan-server-rest-7.2.2.Final-any-/webapp/},/opt/jetty/jetty-distribution-8.1.8.v20121106/webapps/infinispan-server-rest-7.2.2.Final.war

      java.lang.RuntimeException: Could not find constructor for class: org.infinispan.rest.Server

        at org.jboss.resteasy.spi.metadata.ResourceBuilder.constructor(ResourceBuilder.java:683)

        at org.jboss.resteasy.plugins.server.resourcefactory.POJOResourceFactory.registered(POJOResourceFactory.java:41)

        at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:207)

        at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:193)

        at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:179)

        at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:156)

        at org.jboss.resteasy.core.ResourceMethodRegistry.addPerRequestResource(ResourceMethodRegistry.java:75)

        at org.jboss.resteasy.spi.ResteasyDeployment.registration(ResteasyDeployment.java:416)

        at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:241)

        at org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap.contextInitialized(ResteasyBootstrap.java:28)

        at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:771)

        at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424)

        at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:763)

        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:706)

        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.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:39)

        at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:186)

        at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:494)

        at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:141)

        at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:145)

        at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:56)

        at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:609)

        at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:540)

        at org.eclipse.jetty.util.Scanner.scan(Scanner.java:403)

        at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:337)

        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)

        at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:121)

        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)

        at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:555)

        at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:230)

        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)

        at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(AggregateLifeCycle.java:81)

        at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:58)

        at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:96)

        at org.eclipse.jetty.server.Server.doStart(Server.java:277)

        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)

        at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1266)

        at java.security.AccessController.doPrivileged(Native Method)

        at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1189)

        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:483)

        at org.eclipse.jetty.start.Main.invokeMain(Main.java:472)

        at org.eclipse.jetty.start.Main.start(Main.java:620)

        at org.eclipse.jetty.start.Main.main(Main.java:95)

       

      I'm not sure what might cause that, and I didn't find useful information online.

      Some similar threads suggested problems with RESTeasy but it wasn't exactly the same issue and the suggestions did not solve the problem in my case.

      Does anyone have any idea what I'm doing wrong?

       

      Thanks in advance!