RE: Re: Integrating Apache and Restlet server like Apache and Tomcat

2009-09-29 Thread Jerome Louvel
Hi Ashish,

Did you use the AJP connector with Jetty as explained by Bruno?

Another option is to deploy your Restlet application in Tomcat using our
org.restlet.ext.servlet extension.

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com



-Message d'origine-
De : Ashish Sharma [mailto:ashish.shar...@hp.com] 
Envoyé : mercredi 23 septembre 2009 11:58
À : discuss@restlet.tigris.org; Bruno Harbulot
Objet : RE: Re: Integrating Apache and Restlet server like Apache and Tomcat

Bruno, 

I am able to run restlet over jetty as advised by you, but I am not clear
how can it fulfill my original requirement.

Please explain!!!

thanks in advance

Ashish

> Hi Ashish,
> 
> Ashish Sharma wrote:
> > Hello,
> > 
> > I have my Apache http server running on localhost:80 and restlet server
on localhost:8182, but I want to configure above combination just like
Apache http server and Apache tomcat servlet container can be configured
with mod_jk library.
> > 
> > Is it possible?
> 
> Yes, it's possible. You need to use the AJP protocol (Protocol.AJP 
> instead of Protocol.HTTP in your server configuration). This is 
> supported by the Jetty connectors (so you'd need the corresponding jars 
> on the classpath too).
> 
> Best wishes,
> 
> Bruno.

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

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


RE: Re: Integrating Apache and Restlet server like Apache and Tomcat

2009-09-23 Thread Ashish Sharma
Bruno, 

I am able to run restlet over jetty as advised by you, but I am not clear how 
can it fulfill my original requirement.

Please explain!!!

thanks in advance

Ashish

> Hi Ashish,
> 
> Ashish Sharma wrote:
> > Hello,
> > 
> > I have my Apache http server running on localhost:80 and restlet server on 
> > localhost:8182, but I want to configure above combination just like Apache 
> > http server and Apache tomcat servlet container can be configured with 
> > mod_jk library.
> > 
> > Is it possible?
> 
> Yes, it's possible. You need to use the AJP protocol (Protocol.AJP 
> instead of Protocol.HTTP in your server configuration). This is 
> supported by the Jetty connectors (so you'd need the corresponding jars 
> on the classpath too).
> 
> Best wishes,
> 
> Bruno.

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


Re: Integrating Apache and Restlet server like Apache and Tomcat

2009-09-23 Thread Bruno Harbulot
Hi Ashish,

As Rémi said, mod_proxy might be better for what you need. In addition, 
mod_jk seems to have been deprecated in favour of mod_proxy_ajp (both 
use AJP). There is more about this on the Jetty wiki:
  http://docs.codehaus.org/display/JETTY/Configuring+AJP13+Using+mod_jk

The only case where I've needed mod_jk (rather than 
mod_proxy/mod_proxy_ajp) was because it's the only one that can relay 
the full chain of client certificates (for SSL/TLS client 
authentication) obtained by Apache Httpd.


If you really want to use AJP, you have to use something like this 
(based on  ):

  public static void main(String[] args) {
  try {
  // Create a new Component.
  Component component = new Component();

  // Add a new AJP server listening on port 8182.
  component.getServers().add(Protocol.AJP, 8182);

  // Attach the sample application.
  component.getDefaultHost().attach(new FirstStepsApplication());

  // Start the component.
  component.start();
  } catch (Exception e) {
  // Something is wrong.
  e.printStackTrace();
  }
  }


Best wishes,

Bruno.


Ashish Sharma wrote:
> Bruno,
> 
> Can you post a simple code sample for reference.
> 
> As I am a newbie.
> 
> Thanks in advance!!
> 
> Ashish
> 
> --
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2398769
>

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


RE: Re: Integrating Apache and Restlet server like Apache and Tomcat

2009-09-23 Thread Ashish Sharma
Bruno,

Can you post a simple code sample for reference.

As I am a newbie.

Thanks in advance!!

Ashish

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


Re: Integrating Apache and Restlet server like Apache and Tomcat

2009-09-22 Thread Rémi Dewitte
Hello,

Not sure I understood the question.

You'd better user mod_proxy and ProxyPass instead of mod_jk.

Rémi

On Tue, Sep 22, 2009 at 14:40, Ashish Sharma  wrote:

> Hello,
>
> I have my Apache http server running on localhost:80 and restlet server on
> localhost:8182, but I want to configure above combination just like Apache
> http server and Apache tomcat servlet container can be configured with
> mod_jk library.
>
> Is it possible?
>
> Do I have to modify code of mod_jk for this purpose.
>
> Please advice!!!
>
> Thanks in advance!!
>
> Ashish
>
> --
>
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2397811
>

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

Re: Integrating Apache and Restlet server like Apache and Tomcat

2009-09-22 Thread Bruno Harbulot
Hi Ashish,

Ashish Sharma wrote:
> Hello,
> 
> I have my Apache http server running on localhost:80 and restlet server on 
> localhost:8182, but I want to configure above combination just like Apache 
> http server and Apache tomcat servlet container can be configured with mod_jk 
> library.
> 
> Is it possible?

Yes, it's possible. You need to use the AJP protocol (Protocol.AJP 
instead of Protocol.HTTP in your server configuration). This is 
supported by the Jetty connectors (so you'd need the corresponding jars 
on the classpath too).

Best wishes,

Bruno.

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


Integrating Apache and Restlet server like Apache and Tomcat

2009-09-22 Thread Ashish Sharma
Hello,

I have my Apache http server running on localhost:80 and restlet server on 
localhost:8182, but I want to configure above combination just like Apache http 
server and Apache tomcat servlet container can be configured with mod_jk 
library.

Is it possible?

Do I have to modify code of mod_jk for this purpose.

Please advice!!!

Thanks in advance!!

Ashish

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


Integrating Apache and Restlet server like Apache and Tomcat

2009-09-22 Thread Ashish Sharma
Hello,

I have my Apache http server running on localhost:80 and restlet server on 
localhost:8182, but I want to configure above combination just like Apache http 
server and Apache tomcat servlet container can be configured with mod_jk 
library.

Is it possible?

Do I have to modify code of mod_jk for this purpose.

Please advice!!!

Thanks in advance!!

Ashish

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