• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to enable APR or NIO connectors on tomcat 6 / windows

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using tomcat 6.0.16 on windows vista.

I am trying to use the new CometProcessor servlets introduced in Tomcat 6. On the docs page, it says you need to have either APR or NIO connectors enabled in order to facilitate requests to a servlet which implements CometProccessor. If you use the standard connector, you will get the "GET method is not supported by this URL" error.

I tried to enable APR connector support, by downloading the tcnative-1.dll from apache and placing it first in system32 ( no effect ) and then in the bin directory of my Java 6 JDK ( also no effect ). I still get the "GET method is not supported by this URL"

How can I enable either APR or NIO connectors in Tomcat 6, so that I can use the new Comet servelts? I can only find Linux tutorials via google.
 
Kenny Johnson
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Seems like no one knows. I've searched Google but found nothing but Linux tutorials. I've asked this on several other forums to no avail as well.

Anyone know a good place to ask this question? Are there any forums/chats where people who would know the answer to this hang out?
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would start by reading this page
http://tomcat.apache.org/tomcat-6.0-doc/aio.html
If you haven't already.
 
Kenny Johnson
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i already read that page. thanks for trying to help though.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. You have to change the connector on server.xml file to the indicated. This file is on {tomcat-install-dir}/conf.
2. There are pre-requisites to use Comet-based protocols. This page could help you, look at the installation section:

http://tomcat.apache.org/tomcat-6.0-doc/apr.html
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic