Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9120981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:45:16+00:00 2026-06-17T05:45:16+00:00

I have a Restlet server application that calls client resource for the purpose of

  • 0

I have a Restlet server application that calls client resource for the purpose of hitting a google endpoint.

When I get to the point in my code:

ClientResource storeRoot = new ClientResource("http://googleendpoint");
  String jsonString = storeRoot.get().getText();

I get the warnings and errors:

Jan 7, 2013 4:33:34 PM org.restlet.engine.component.ClientRouter
getNext WARNING: The protocol used by this request is not declared in
the list of client connectors. (HTTPS/1.1). In case you are using an
instance of the Component class, check its “clients” property. Not
Found (404) – The server has not found anything matching the request
URI at
org.restlet.resource.ClientResource.doError(ClientResource.java:612)

I have googled around and seen that the solution is likely adding the protocol to the endpoint like this:

component.getClients​().add(Protocol.HTTPS​);

The problem is that I am running this as a war file in tomcat. Where do I access this component object to add the protocol?

I have also changed my web.xml to support this protocol like this:

<?xml version="1.0" encoding="UTF-8"?>
 <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         id="WebApp_ID" version="2.5">

         <display-name>Restlet adapters</display-name>

         <servlet>
                 <servlet-name>Restlet1</servlet-name>
                 <servlet-class>org.restlet.ext.servlet.ServerServlet</servlet-class>
                 <init-param>
                         <param-name>org.restlet.application</param-name>
                         <param-value>com.MyApplication</param-value>
                 </init-param>
                 <init-param>
                    <param-name>org.restlet.clients</param-name>
                    <param-value>HTTP HTTPS FILE</param-value>
                </init-param>
         </servlet>

         <servlet-mapping>
                 <servlet-name>Restlet1</servlet-name>
                 <url-pattern>/*</url-pattern>
         </servlet-mapping>
 </web-app>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:45:18+00:00Added an answer on June 17, 2026 at 5:45 am

    After a lot of heartache I determined that solution was the addition of params in the web.xml that Andy stated above and also the addition of the following jars:

    org.restlet.ext.net
    org.restlet.ext.httpclient
    org.restlet.ext.ssl

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have figured out that to integrate calls between Apache HTTP server and Restlet,
I have the following piece of code with Restlet in Google AppEngine from an
I am new to Restlet and I have a client where it calls a
I need to put following rest request using restlet client: GET https://www.xyz.com/resource/blah/ Authorization: Bearer
I have a RESTlet application embedded in a Tomcat server and clients are complaining
I have deployed our Restlet services to a Jetty Java Application server using the
I have a restlet Application on google app engine, when testing on my local
I'd like my Restlet application to log the stack trace for any Resource that
We have a restlet server and client. We need to pass the error status
I have a Restlet Service that looks like this: @POST @Produces(application/json) public String processImmediately(String

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.