[OTDev] Uploading via restlet ,,,,
surajit ray mr.surajit.ray at gmail.comSat Feb 13 17:04:53 CET 2010
- Previous message: [OTDev] Uploading via restlet ,,,,
- Next message: [OTDev] Are there some sample dataset services available ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Nina, Tried the example again ( http://wiki.restlet.org/docs_2.0/13-restlet/28-restlet/64-restlet.html?layoutType=plain) ... here are the details : web.xml and JARs in my classpath are shown in the screenshot It seems that it cannot find *java.lang.NoClassDefFoundError: simple/http/ProtocolHandler* The full error page is attached. Could this be a version thing ? If so ... what are the compatible versions for restlet 1.1.7 Thanks Surajit On Sat, Feb 13, 2010 at 3:43 PM, Nina Jeliazkova <nina at acad.bg> wrote: > Hi Surajit, > > surajit ray wrote: > > Hi Nina, > > > > Is the upload function in restlet fully functional ? (Need it to upload a > > dataset ...) > > > > > Yes, it is. > > File upload is mostly relevant if you are implementing an OpenTox > dataset service . > > I tried using this example .... > > > > > http://wiki.restlet.org/docs_2.0/13-restlet/28-restlet/64-restlet.html?layoutType=plain > > > > I am getting class not found errors even after attaching all the > mentioned > > dependencies on the classpath ... > > > Make sure all dependencies are included indeed. Which class is not found? > > Could please direct me to any other link which would give a working > example > > for restlet 1.1.7 > > > > > Here is ours code (2.0-M6 restlet , but initial implementation was with > 1.x and not much changed since). > > https://ambit.svn.sourceforge.net/svnroot/ambit/trunk/ambit2-all/ambit2-www/src/main/java/ambit2/rest/dataset/DatasetsResource.java > > You might also examine TUM and NTUA source (there are links at the test > services wiki page). > > Best regards, > Nina > > Thanks > > Surajit > > > > > > On Fri, Feb 12, 2010 at 8:59 AM, Vedrin Jeliazkov < > > vedrin.jeliazkov at gmail.com> wrote: > > > > > >> Dear All, > >> > >> I'm glad to announce that we've deployed an early version of the > >> ToxPredict webservice, along with its corresponding set of other > >> webservices, implementing the OpenTox API, on a new production-grade > >> server, hosted at a leading collocation centre > >> (http://www.netera.bg/en/). > >> > >> You can access the ToxPredict webservice at: > >> > >> http://93.123.36.100:8180/ToxPredict > >> > >> Acquirement and technical setup of suitable DNS domain is in progress. > >> We've also re-configured our continuous monitoring to look after the > >> newly deployed webservices: > >> > >> http://ambit.uni-plovdiv.bg/cgi-bin/smokeping.cgi?target=IDEA > >> > >> If you're interested in providing some feedback, that would be most > >> welcome. You could either use our issue tracker available at: > >> > >> > >> > http://www.opentox.org/dev/testing/testcasedevelopment/testcasedevelopmentissuetracker > >> > >> or (as a fallback), the attached beta testing report templates. > >> > >> Happy ToxPredict-ing and beta test reporting, > >> Vedrin > >> > >> _______________________________________________ > >> Development mailing list > >> Development at opentox.org > >> http://www.opentox.org/mailman/listinfo/development > >> > >> > >> > > > > > > > > _______________________________________________ > Development mailing list > Development at opentox.org > http://www.opentox.org/mailman/listinfo/development > -- Surajit Ray Partner www.rareindianart.com -------------- next part -------------- HTTP Status 500 - _________________________________________________________________ type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet.init() for servlet RestletServlet threw exception org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 293) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:8 49) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process (Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) java.lang.Thread.run(Thread.java:619) root cause java.lang.NoClassDefFoundError: simple/http/ProtocolHandler java.lang.Class.getDeclaredConstructors0(Native Method) java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) java.lang.Class.getConstructor0(Class.java:2699) java.lang.Class.getConstructor(Class.java:1657) com.noelios.restlet.Engine.registerHelper(Engine.java:1175) com.noelios.restlet.Engine.registerHelpers(Engine.java:1224) com.noelios.restlet.Engine.discoverServerConnectors(Engine.java:496) com.noelios.restlet.Engine.discoverConnectors(Engine.java:480) com.noelios.restlet.Engine.<init>(Engine.java:256) com.noelios.restlet.Engine.<init>(Engine.java:240) sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructor AccessorImpl.java:39) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCon structorAccessorImpl.java:27) java.lang.reflect.Constructor.newInstance(Constructor.java:513) java.lang.Class.newInstance0(Class.java:355) java.lang.Class.newInstance(Class.java:308) org.restlet.util.Engine.getInstance(Engine.java:177) org.restlet.Restlet.<init>(Restlet.java:82) org.restlet.Connector.<init>(Connector.java:83) org.restlet.Client.<init>(Client.java:82) org.restlet.Client.<init>(Client.java:68) com.noelios.restlet.ext.servlet.ServletWarClient.<init>(ServletWarClien t.java:66) com.noelios.restlet.ext.servlet.ServerServlet.createWarClient(ServerSer vlet.java:662) com.noelios.restlet.ext.servlet.ServerServlet.createComponent(ServerSer vlet.java:377) com.noelios.restlet.ext.servlet.ServerServlet.getComponent(ServerServle t.java:739) com.noelios.restlet.ext.servlet.ServerServlet.init(ServerServlet.java:8 17) javax.servlet.GenericServlet.init(GenericServlet.java:212) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 293) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:8 49) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process (Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) java.lang.Thread.run(Thread.java:619) root cause java.lang.ClassNotFoundException: simple.http.ProtocolHandler org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoade r.java:1387) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoade r.java:1233) java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) java.lang.Class.getDeclaredConstructors0(Native Method) java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) java.lang.Class.getConstructor0(Class.java:2699) java.lang.Class.getConstructor(Class.java:1657) com.noelios.restlet.Engine.registerHelper(Engine.java:1175) com.noelios.restlet.Engine.registerHelpers(Engine.java:1224) com.noelios.restlet.Engine.discoverServerConnectors(Engine.java:496) com.noelios.restlet.Engine.discoverConnectors(Engine.java:480) com.noelios.restlet.Engine.<init>(Engine.java:256) com.noelios.restlet.Engine.<init>(Engine.java:240) sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructor AccessorImpl.java:39) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCon structorAccessorImpl.java:27) java.lang.reflect.Constructor.newInstance(Constructor.java:513) java.lang.Class.newInstance0(Class.java:355) java.lang.Class.newInstance(Class.java:308) org.restlet.util.Engine.getInstance(Engine.java:177) org.restlet.Restlet.<init>(Restlet.java:82) org.restlet.Connector.<init>(Connector.java:83) org.restlet.Client.<init>(Client.java:82) org.restlet.Client.<init>(Client.java:68) com.noelios.restlet.ext.servlet.ServletWarClient.<init>(ServletWarClien t.java:66) com.noelios.restlet.ext.servlet.ServerServlet.createWarClient(ServerSer vlet.java:662) com.noelios.restlet.ext.servlet.ServerServlet.createComponent(ServerSer vlet.java:377) com.noelios.restlet.ext.servlet.ServerServlet.getComponent(ServerServle t.java:739) com.noelios.restlet.ext.servlet.ServerServlet.init(ServerServlet.java:8 17) javax.servlet.GenericServlet.init(GenericServlet.java:212) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 293) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:8 49) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process (Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) java.lang.Thread.run(Thread.java:619) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 logs. _________________________________________________________________ Apache Tomcat/6.0.20 -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot-RESTUploader - NetBeans IDE 6.8-1.png Type: image/png Size: 128228 bytes Desc: not available URL: <http://lists.opentox.org/pipermail/development/attachments/20100213/c1d9a1fd/attachment.png>
- Previous message: [OTDev] Uploading via restlet ,,,,
- Next message: [OTDev] Are there some sample dataset services available ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Development mailing list