Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: while loop with diamond operator

by blue_cowdawg (Prior)
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


Comment on Re: while loop with diamond operator

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://985998]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2014-07-31 08:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (247 votes), past polls