Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: while loop with diamond operator

by blue_cowdawg (Monsignor)
on Aug 07, 2012 at 14:03 UTC ( #985998=note: print w/replies, xml ) Need Help??

in reply to while loop with diamond operator

      This works fine on apache but on tomcat 6.0 this is getting hanged.

Strongly suspect this is an issue with how your Tomcat instance is configured. If I remember correctly (and maybe this has been fixed in Tomcat 6.0) Tomcat does not natively understand CGI straight out of the box and has no concept of invoking a Perl interpreter right out of the box.

There is a "how to" on this (external site) here and I'll put a sniglet of that howto here:

CGI support is implemented using the servlet class org.apache.catalina.servlets.CGIServlet. Traditionally, this servlet is mapped to the URL pattern "/cgi-bin/*".

By default CGI support is disabled in Tomcat.
Further into the how-to they explain that CGI is executed outside of the JVM that governs Tomcat.

Are you front ending Tomcat with Apache? If so, there is the possibility of getting Apache to handle the CGI portion of your app and let Tomcat do what it does best and serve as a web container for JSP and friends.

Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://985998]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (2)
As of 2018-03-24 08:30 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (297 votes). Check out past polls.