Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (12)
As of 2016-10-25 15:45 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (323 votes). Check out past polls.