RE: CGI vs SMTP vs Tomcat
I would get an IDE such as Netbeans at: http://www.netbeans.org Wade --- HALSTEAD SGT WARREN F [EMAIL PROTECTED] wrote: Tomcat is running on my (Windows 2003) machine as a service logging in as a Local System account. When I ran my test Perl script on the command line, I was logged in as a administrator account. I tried changing the account it uses to a local admin account and it couldn't find any of the webpages (404 errors) Windows Firewall is explicitly turned off on my server. Tomcat finds Perl through the web.xml file. There is a executable line in the config that I pass the executable path to. All my other Perl cgi scripts work fine, except for a file upload form which is a separate e-mail. (I can't seem to figure out how to compile a single .java file to a .class file. I find myself downloading all the dependencies for Tomcat so it will all compile and I can extract a single class file.) ~Warren Halstead -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 18, 2006 7:23 To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: CGI vs SMTP vs Tomcat The JVM security policy couldn't just block TCP/IP access for the Perl process. The reason being the child process...perl in this case will not be run in the JVM like a class which will make calls inside the JVM space...a.k.a the JVM can't say...you are not allow to make the call to make the connection. Tomcat would have to create a TCP/IP proxy to block access for the perl process or install a native driver to block low-level system calls. My guess is that maybe there is another firewall (personal firewall) or something like it blocking. I wrote another email. Another thought is maybe the user Tomcat is being run as does not have all the paths setup which would allow the Perl script to use the NET package...not sure, but maybe possible I would think if Active Perl can be installed for a user or for the entire system, but then I wouldn't know how it is finding the perl exe to launch the .pl file by extension if it were not installed for all, but in Windows certain permissions can affect parts of applications depending on what they are depending on...maybe a lock down tool was run on the system at some point (would mess up permissions and fixing them can be impossible some times)? Wade - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CGI vs SMTP vs Tomcat
is there a simple answer here? if OP's running under a security manager, does the CGI servlet require port permissions setting in catalina.policy? Martin Gainty wrote: As Tomcat is written in Java JSP and Servlet (with C code for native function calls to the underlying OS~this is at least for the majority on this list )This is the expertise we offer to you If its not written in Java such as fitting a CGI/CFM/PHP script or non Java class we're not saying its not possible but it will be more difficult and time consuming task to accomplish retrofitting an non Java package into a purely Java Framework..accordingly when speaking to your client you may want to consider a TM approach to the task as making this situation operational may very well indeed 'take a while' No offence has been taken.. HTH, Martin -- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents - Original Message - From: HALSTEAD SGT WARREN F [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Tuesday, October 17, 2006 9:52 PM Subject: Re: CGI vs SMTP vs Tomcat Sir, I in no way am implying that the members of this list have been derisive. I meant to state answers I found else where seemed dersive. I did find an example of a non-derisive write it in Java. I sumbit to your attention: http://mail-archives.apache.org/mod_mbox/tomcat-users/200310.mbox/%3cLLE [EMAIL PROTECTED] As well as: http://www.experts-exchange.com/Programming/Programming_Languages/Perl/Q _21216234.html For the above you have to pay/register for the solution, and I am leery of it, but it is an excellent example of my problem. Thank you all again for your help. I may just have to take a self-taught crash course in Javaor socket programming in Perl. :P V/R ~Warren Halstead David Smith wrote: Really?! I've been on this list for a while and do not recall such derisive comments. Perhaps a more optimistic approach would help. As to the problem, I don't use the setup you are attempting, so you are going to have to help with some more info. Specifically a code example and logs for the moment when the connection is attempted. Further, some information regarding the environment would also be helpful -- security settings, etc., ... It may be that the CGI is relying on environment variables that aren't available to the tomcat service. --David HALSTEAD SGT WARREN F wrote: Good Afternoon, I am running Tomcat 5 with CGI enabled. I am attempting to use Net::SMTP to send e-mail, and it works fine from the command line, but not running as a CGI script. I have scoured the internet and found other people with this problem, but the derisive answer to their pleas for help has been Write it in Java dummy! I do not have that option, and so I must ask if there is some security function in Tomcat or a workaround, that allows perl CGI scripts to make a socket connection to port 25 of another server. Thank you for your help in this matter. If you feel any other details are required to troubleshoot my problem, please feel free to contact me and ask. Very Respectfully, ~Sgt Halstead 15th MEU USMC - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CGI vs SMTP vs Tomcat
The JVM security policy couldn't just block TCP/IP access for the Perl process. The reason being the child process...perl in this case will not be run in the JVM like a class which will make calls inside the JVM space...a.k.a the JVM can't say...you are not allow to make the call to make the connection. Tomcat would have to create a TCP/IP proxy to block access for the perl process or install a native driver to block low-level system calls. My guess is that maybe there is another firewall (personal firewall) or something like it blocking. I wrote another email. Another thought is maybe the user Tomcat is being run as does not have all the paths setup which would allow the Perl script to use the NET package...not sure, but maybe possible I would think if Active Perl can be installed for a user or for the entire system, but then I wouldn't know how it is finding the perl exe to launch the .pl file by extension if it were not installed for all, but in Windows certain permissions can affect parts of applications depending on what they are depending on...maybe a lock down tool was run on the system at some point (would mess up permissions and fixing them can be impossible some times)? Wade --- Pid [EMAIL PROTECTED] wrote: is there a simple answer here? if OP's running under a security manager, does the CGI servlet require port permissions setting in catalina.policy? Martin Gainty wrote: As Tomcat is written in Java JSP and Servlet (with C code for native function calls to the underlying OS~this is at least for the majority on this list )This is the expertise we offer to you If its not written in Java such as fitting a CGI/CFM/PHP script or non Java class we're not saying its not possible but it will be more difficult and time consuming task to accomplish retrofitting an non Java package into a purely Java Framework..accordingly when speaking to your client you may want to consider a TM approach to the task as making this situation operational may very well indeed 'take a while' No offence has been taken.. HTH, Martin -- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents - Original Message - From: HALSTEAD SGT WARREN F [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Tuesday, October 17, 2006 9:52 PM Subject: Re: CGI vs SMTP vs Tomcat Sir, I in no way am implying that the members of this list have been derisive. I meant to state answers I found else where seemed dersive. I did find an example of a non-derisive write it in Java. I sumbit to your attention: http://mail-archives.apache.org/mod_mbox/tomcat-users/200310.mbox/%3cLLE [EMAIL PROTECTED] As well as: http://www.experts-exchange.com/Programming/Programming_Languages/Perl/Q _21216234.html For the above you have to pay/register for the solution, and I am leery of it, but it is an excellent example of my problem. Thank you all again for your help. I may just have to take a self-taught crash course in Javaor socket programming in Perl. :P V/R ~Warren Halstead David Smith wrote: Really?! I've been on this list for a while and do not recall such derisive comments. Perhaps a more optimistic approach would help. As to the problem, I don't use the setup you are attempting, so you are going to have to help with some more info. Specifically a code example and logs for the moment when the connection is attempted. Further, some information regarding the environment would also be helpful -- security settings, etc., ... It may be that the CGI is relying on environment variables that aren't available to the tomcat service. --David HALSTEAD SGT WARREN F wrote: Good Afternoon, I am running Tomcat 5 with CGI enabled. I am attempting to use Net::SMTP to send e-mail, and it works fine from the command line, but not running as a CGI script. I have scoured the internet and found other people with this problem, but the derisive answer to their pleas for help has been Write it in Java dummy! I do not have that option, and so I must ask if there is some security function in Tomcat or a workaround, that allows perl CGI scripts to make a socket connection to port 25 of another server. Thank you for your help in this matter. If you feel any other details are required to troubleshoot my problem, please feel free to contact me and ask. Very Respectfully, ~Sgt Halstead 15th MEU USMC - To start a new topic, e-mail
RE: CGI vs SMTP vs Tomcat
Tomcat is running on my (Windows 2003) machine as a service logging in as a Local System account. When I ran my test Perl script on the command line, I was logged in as a administrator account. I tried changing the account it uses to a local admin account and it couldn't find any of the webpages (404 errors) Windows Firewall is explicitly turned off on my server. Tomcat finds Perl through the web.xml file. There is a executable line in the config that I pass the executable path to. All my other Perl cgi scripts work fine, except for a file upload form which is a separate e-mail. (I can't seem to figure out how to compile a single .java file to a .class file. I find myself downloading all the dependencies for Tomcat so it will all compile and I can extract a single class file.) ~Warren Halstead -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 18, 2006 7:23 To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: CGI vs SMTP vs Tomcat The JVM security policy couldn't just block TCP/IP access for the Perl process. The reason being the child process...perl in this case will not be run in the JVM like a class which will make calls inside the JVM space...a.k.a the JVM can't say...you are not allow to make the call to make the connection. Tomcat would have to create a TCP/IP proxy to block access for the perl process or install a native driver to block low-level system calls. My guess is that maybe there is another firewall (personal firewall) or something like it blocking. I wrote another email. Another thought is maybe the user Tomcat is being run as does not have all the paths setup which would allow the Perl script to use the NET package...not sure, but maybe possible I would think if Active Perl can be installed for a user or for the entire system, but then I wouldn't know how it is finding the perl exe to launch the .pl file by extension if it were not installed for all, but in Windows certain permissions can affect parts of applications depending on what they are depending on...maybe a lock down tool was run on the system at some point (would mess up permissions and fixing them can be impossible some times)? Wade - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CGI vs SMTP vs Tomcat
Sir, I in no way am implying that the members of this list have been derisive. I meant to state answers I found else where seemed dersive. I did find an example of a non-derisive write it in Java. I sumbit to your attention: http://mail-archives.apache.org/mod_mbox/tomcat-users/200310.mbox/%3cLLE [EMAIL PROTECTED] As well as: http://www.experts-exchange.com/Programming/Programming_Languages/Perl/Q _21216234.html For the above you have to pay/register for the solution, and I am leery of it, but it is an excellent example of my problem. Thank you all again for your help. I may just have to take a self-taught crash course in Javaor socket programming in Perl. :P V/R ~Warren Halstead David Smith wrote: Really?! I've been on this list for a while and do not recall such derisive comments. Perhaps a more optimistic approach would help. As to the problem, I don't use the setup you are attempting, so you are going to have to help with some more info. Specifically a code example and logs for the moment when the connection is attempted. Further, some information regarding the environment would also be helpful -- security settings, etc., ... It may be that the CGI is relying on environment variables that aren't available to the tomcat service. --David HALSTEAD SGT WARREN F wrote: Good Afternoon, I am running Tomcat 5 with CGI enabled. I am attempting to use Net::SMTP to send e-mail, and it works fine from the command line, but not running as a CGI script. I have scoured the internet and found other people with this problem, but the derisive answer to their pleas for help has been Write it in Java dummy! I do not have that option, and so I must ask if there is some security function in Tomcat or a workaround, that allows perl CGI scripts to make a socket connection to port 25 of another server. Thank you for your help in this matter. If you feel any other details are required to troubleshoot my problem, please feel free to contact me and ask. Very Respectfully, ~Sgt Halstead 15th MEU USMC - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CGI vs SMTP vs Tomcat
Warren, I am running Tomcat 5 with CGI enabled. I am attempting to use Net::SMTP to send e-mail, and it works fine from the command line, but not running as a CGI script. Can you describe the failure in any more detail? I do not have that option, and so I must ask if there is some security function in Tomcat or a workaround, that allows perl CGI scripts to make a socket connection to port 25 of another server. It's possible, but let's find out what's going on before we start barking up the wrong tree. Do you get an exception? Anything in your log files? Are you sure that your perl script is actually being invoked? If so, is there any error from the Perl interpreter? If so, what? -chris signature.asc Description: OpenPGP digital signature
Re: CGI vs SMTP vs Tomcat
As Tomcat is written in Java JSP and Servlet (with C code for native function calls to the underlying OS~this is at least for the majority on this list )This is the expertise we offer to you If its not written in Java such as fitting a CGI/CFM/PHP script or non Java class we're not saying its not possible but it will be more difficult and time consuming task to accomplish retrofitting an non Java package into a purely Java Framework..accordingly when speaking to your client you may want to consider a TM approach to the task as making this situation operational may very well indeed 'take a while' No offence has been taken.. HTH, Martin -- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents - Original Message - From: HALSTEAD SGT WARREN F [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Tuesday, October 17, 2006 9:52 PM Subject: Re: CGI vs SMTP vs Tomcat Sir, I in no way am implying that the members of this list have been derisive. I meant to state answers I found else where seemed dersive. I did find an example of a non-derisive write it in Java. I sumbit to your attention: http://mail-archives.apache.org/mod_mbox/tomcat-users/200310.mbox/%3cLLE [EMAIL PROTECTED] As well as: http://www.experts-exchange.com/Programming/Programming_Languages/Perl/Q _21216234.html For the above you have to pay/register for the solution, and I am leery of it, but it is an excellent example of my problem. Thank you all again for your help. I may just have to take a self-taught crash course in Javaor socket programming in Perl. :P V/R ~Warren Halstead David Smith wrote: Really?! I've been on this list for a while and do not recall such derisive comments. Perhaps a more optimistic approach would help. As to the problem, I don't use the setup you are attempting, so you are going to have to help with some more info. Specifically a code example and logs for the moment when the connection is attempted. Further, some information regarding the environment would also be helpful -- security settings, etc., ... It may be that the CGI is relying on environment variables that aren't available to the tomcat service. --David HALSTEAD SGT WARREN F wrote: Good Afternoon, I am running Tomcat 5 with CGI enabled. I am attempting to use Net::SMTP to send e-mail, and it works fine from the command line, but not running as a CGI script. I have scoured the internet and found other people with this problem, but the derisive answer to their pleas for help has been Write it in Java dummy! I do not have that option, and so I must ask if there is some security function in Tomcat or a workaround, that allows perl CGI scripts to make a socket connection to port 25 of another server. Thank you for your help in this matter. If you feel any other details are required to troubleshoot my problem, please feel free to contact me and ask. Very Respectfully, ~Sgt Halstead 15th MEU USMC - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CGI vs SMTP vs Tomcat
Perhaps tomcat has security policy preventing certain socket connections. JRE/JDK has a root/default policy...but tomcat may extend this. I think most servlet engines use mail.jar/activation.jar...perhaps tomcat is restricting certain sockets to these libraries. mike HALSTEAD SGT WARREN F wrote: Sir, I in no way am implying that the members of this list have been derisive. I meant to state answers I found else where seemed dersive. I did find an example of a non-derisive write it in Java. I sumbit to your attention: http://mail-archives.apache.org/mod_mbox/tomcat-users/200310.mbox/%3cLLE [EMAIL PROTECTED] As well as: http://www.experts-exchange.com/Programming/Programming_Languages/Perl/Q _21216234.html For the above you have to pay/register for the solution, and I am leery of it, but it is an excellent example of my problem. Thank you all again for your help. I may just have to take a self-taught crash course in Javaor socket programming in Perl. :P V/R ~Warren Halstead David Smith wrote: Really?! I've been on this list for a while and do not recall such derisive comments. Perhaps a more optimistic approach would help. As to the problem, I don't use the setup you are attempting, so you are going to have to help with some more info. Specifically a code example and logs for the moment when the connection is attempted. Further, some information regarding the environment would also be helpful -- security settings, etc., ... It may be that the CGI is relying on environment variables that aren't available to the tomcat service. --David HALSTEAD SGT WARREN F wrote: Good Afternoon, I am running Tomcat 5 with CGI enabled. I am attempting to use Net::SMTP to send e-mail, and it works fine from the command line, but not running as a CGI script. I have scoured the internet and found other people with this problem, but the derisive answer to their pleas for help has been Write it in Java dummy! I do not have that option, and so I must ask if there is some security function in Tomcat or a workaround, that allows perl CGI scripts to make a socket connection to port 25 of another server. Thank you for your help in this matter. If you feel any other details are required to troubleshoot my problem, please feel free to contact me and ask. Very Respectfully, ~Sgt Halstead 15th MEU USMC - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CGI vs SMTP vs Tomcat
? -chris -- View this message in context: http://www.nabble.com/Re%3A-CGI-vs-SMTP-vs-Tomcat-tf2460372.html#a6866883 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CGI vs SMTP vs Tomcat
Mike Klein wrote: Perhaps tomcat has security policy preventing certain socket connections. JRE/JDK has a root/default policy...but tomcat may extend this. Not by default. I think most servlet engines use mail.jar/activation.jar...perhaps tomcat is restricting certain sockets to these libraries. Again, not by default. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CGI vs SMTP vs Tomcat
in adavance. V/R Warren Halstead Christopher Schultz-2 wrote: Warren, I am running Tomcat 5 with CGI enabled. I am attempting to use Net::SMTP to send e-mail, and it works fine from the command line, but not running as a CGI script. Can you describe the failure in any more detail? I do not have that option, and so I must ask if there is some security function in Tomcat or a workaround, that allows perl CGI scripts to make a socket connection to port 25 of another server. It's possible, but let's find out what's going on before we start barking up the wrong tree. Do you get an exception? Anything in your log files? Are you sure that your perl script is actually being invoked? If so, is there any error from the Perl interpreter? If so, what? -chris -- View this message in context: http://www.nabble.com/Re%3A-CGI-vs-SMTP-vs-Tomcat-tf2460372.html#a6866883 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CGI vs SMTP vs Tomcat
Really?! I've been on this list for a while and do not recall such derisive comments. Perhaps a more optimistic approach would help. As to the problem, I don't use the setup you are attempting, so you are going to have to help with some more info. Specifically a code example and logs for the moment when the connection is attempted. Further, some information regarding the environment would also be helpful -- security settings, etc., ... It may be that the CGI is relying on environment variables that aren't available to the tomcat service. --David HALSTEAD SGT WARREN F wrote: Good Afternoon, I am running Tomcat 5 with CGI enabled. I am attempting to use Net::SMTP to send e-mail, and it works fine from the command line, but not running as a CGI script. I have scoured the internet and found other people with this problem, but the derisive answer to their pleas for help has been Write it in Java dummy! I do not have that option, and so I must ask if there is some security function in Tomcat or a workaround, that allows perl CGI scripts to make a socket connection to port 25 of another server. Thank you for your help in this matter. If you feel any other details are required to troubleshoot my problem, please feel free to contact me and ask. Very Respectfully, ~Sgt Halstead 15th MEU USMC - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CGI vs SMTP vs Tomcat
A CGI run from tomcat is just like any other exe. It runs outside the JVM sandbox so it may do as much evil (or good) as it wants. If Tomcat is being run as a service. It could be your PATH and other environment variables may not be configured correctly. (Or at all) -Tim HALSTEAD SGT WARREN F wrote: Good Afternoon, I am running Tomcat 5 with CGI enabled. I am attempting to use Net::SMTP to send e-mail, and it works fine from the command line, but not running as a CGI script. I have scoured the internet and found other people with this problem, but the derisive answer to their pleas for help has been Write it in Java dummy! I do not have that option, and so I must ask if there is some security function in Tomcat or a workaround, that allows perl CGI scripts to make a socket connection to port 25 of another server. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CGI vs SMTP vs Tomcat
--- HALSTEAD SGT WARREN F [EMAIL PROTECTED] wrote: Good Afternoon, I am running Tomcat 5 with CGI enabled. I am attempting to use Net::SMTP to send e-mail, and it works fine from the command line, but not running as a CGI script. I have scoured the internet and found other people with this problem, but the derisive answer to their pleas for help has been Write it in Java dummy! I do not have that option, and so I must ask if there is some security function in Tomcat or a workaround, that allows perl CGI scripts to make a socket connection to port 25 of another server. Thank you for your help in this matter. If you feel any other details are required to troubleshoot my problem, please feel free to contact me and ask. Very Respectfully, ~Sgt Halstead 15th MEU USMC On the same machine running your CGI script from the command line and setting up the appropriate env variables does it work, or using the same code and using command line application does it work? There should be no difference. The CGI module will have to run it as a normal CGI, and java definitely has no firewall or blocking capabilities unless someone codes them and starts them. It sounds like something else on the system or a script error to me. Wade - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CGI vs SMTP vs Tomcat
Dave and crew- Its Like anything else ...the solution will be that more expensive .. Your battle plan should include looking into exec/spawn/system call function(s) Long and short is you can probably exec a telnet to WhateverMailServer on Port 25 and issue SMTP commands from the exec'ed shell (At least this is what us old timers did in the old days..) Anyone else? M- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: David Smith [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, October 05, 2006 5:08 AM Subject: Re: CGI vs SMTP vs Tomcat Really?! I've been on this list for a while and do not recall such derisive comments. Perhaps a more optimistic approach would help. As to the problem, I don't use the setup you are attempting, so you are going to have to help with some more info. Specifically a code example and logs for the moment when the connection is attempted. Further, some information regarding the environment would also be helpful -- security settings, etc., ... It may be that the CGI is relying on environment variables that aren't available to the tomcat service. --David HALSTEAD SGT WARREN F wrote: Good Afternoon, I am running Tomcat 5 with CGI enabled. I am attempting to use Net::SMTP to send e-mail, and it works fine from the command line, but not running as a CGI script. I have scoured the internet and found other people with this problem, but the derisive answer to their pleas for help has been Write it in Java dummy! I do not have that option, and so I must ask if there is some security function in Tomcat or a workaround, that allows perl CGI scripts to make a socket connection to port 25 of another server. Thank you for your help in this matter. If you feel any other details are required to troubleshoot my problem, please feel free to contact me and ask. Very Respectfully, ~Sgt Halstead 15th MEU USMC - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CGI vs SMTP vs Tomcat
Good Afternoon, I am running Tomcat 5 with CGI enabled. I am attempting to use Net::SMTP to send e-mail, and it works fine from the command line, but not running as a CGI script. I have scoured the internet and found other people with this problem, but the derisive answer to their pleas for help has been Write it in Java dummy! I do not have that option, and so I must ask if there is some security function in Tomcat or a workaround, that allows perl CGI scripts to make a socket connection to port 25 of another server. Thank you for your help in this matter. If you feel any other details are required to troubleshoot my problem, please feel free to contact me and ask. Very Respectfully, ~Sgt Halstead 15th MEU USMC