aspose file tools*
The moose likes Tomcat and the fly likes Problem creating socket... !! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problem creating socket... !!" Watch "Problem creating socket... !!" New topic
Author

Problem creating socket... !!

Sri dude Rao
Greenhorn

Joined: Mar 31, 2005
Posts: 1
I'm running CGI program (written using perl) with Tomcat.
Cgi program written in perl has a telnet operation. It is trying to connect to a port on a remote host. When i run the perl script as a standalone, it works perfectly. when i try to run the same script with tomcat server i am getting the following error.

Mar 31, 2005 9:37:21 PM org.apache.catalina.core.ApplicationContext log
INFO: cgi: runCGI (stderr) roblem creating socket: Unknown error at C:/Perl/sit
e/lib/AOLserver/CtrlPort.pm line 125

ctrlport.pm is the perl module and line 125 in the module is my $t = Net::Telnet->new(%options);


METHOD

############################################################
sub new {
############################################################
my ($class, @options) = @_;

my %options = (
Timeout => 20,
Port => '3456',
Host => 'localhost',
Prompt => '/Ok/',
User => '',
Password => '',
@options);


Any suggestion or solution ?


Thanks.
Sri
 
Don't get me started about those stupid light bulbs.
 
subject: Problem creating socket... !!