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 T&M 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 Java....or 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] > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]