Hello Rashik,

this kind of errors happens when the classpath is not properly 
configured. The core library (org.restlet.jar) looks for a HTTP client 
connector by introspecting the classpath.
Can you have a look at this documentation 
http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/f4863.html#f4867
 
?

 >Should i run my client inside servlet?
definitively not.

 >Also which all jar files should i add to make the communication 
working between the server.
you need org.restlet.jar which defines the API, and 
com.noelios.restlet.jar which contains an implementation of this API 
plus a default HTTP client connector.
Thats' all, and that should basically work.

You can add another client implementations at your own convenience:
  - either com.noelios.restlet.ext.net.jar (Integration with Java 
HttpURLConnection class)
  - or com.noelios.restlet.ext.httpclient.jar (Integration with Apache 
HTTP Client 3.1)
Each of them contains some proper characteristics described in the 
javadocs. You can have a loot here 
http://wiki.restlet.org/docs_1.1/37-restlet.html.

Best regards,
Thierry Boileau

> hi
>       Im newbie to restlet. Im writing matlab client which will interact with 
> server.
> I have added the following jar files to class path  in matlab
> 1.com.noelios.restlet.jar
> 2.org.json.jar
> 3.org.restlet.ext.json.jar
> 4.org.restlet.jar
>
> When i creating the client:
> Client(Protocol.HTTP)
>
> i get the following warning
> No available client connector supports the required protocols: 'PROTOCOL.HTTP 
> Protocol' . Please add the JAR of a matching connector to your classpath.
>
> What should i do to remove this warning.
> Should i run my client inside servlet?
> Also which all jar files should i add to make the communication working 
> between the server.
> (Im new to web applications).
>
> But i wrote eclipse application to interact with sever including the above 
> mentioned jar files and the application is running fine.
> May i know what is difference in both these conditions.
>
> Hope i m able to correctly explain my problem.
>
> Regards
> Rashik.T
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2448864
>
>

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2449012

Reply via email to