Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Net::SSLeay and Tomcat

by fletcher_the_dog (Friar)
on Jan 16, 2006 at 17:56 UTC ( #523557=perlquestion: print w/replies, xml ) Need Help??

fletcher_the_dog has asked for the wisdom of the Perl Monks concerning the following question:

Hi All, I have a CGI script that uses Net::SSLeay. When I run the script on the command line it works fine. But when I access the script from a browser through a Tomcat (version 5.5) server, I get a message "Cannot find ssleay.dll". I am using ActiveState Perl 5.8 on Windows XP. I am presuming it cannot find the dll because Tomcat is not passing it some enviorment variable it needs so perl can know where to find the dll. Can anyone tell me what I can do so that it can correctly find the .dll when being run from inside of Tomcat? Thanks!

Replies are listed 'Best First'.
Re: Net::SSLeay and Tomcat
by randyk (Parson) on Jan 16, 2006 at 21:16 UTC
    Windows uses the PATH environment variable to looks for dlls. You might try setting that in your script, early enough on, to include the directory where ssleay.dll resides. Alternatively, if you're using Apache, you can use the PassEnv or SetEnv directives to, respectively, pass or set environment variables. Another option is to place the dlls in a standard location within the system's PATH (eg, C:\WINDOWS\system32), so that altering the PATH wouldn't be needed.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://523557]
Approved by Tanktalus
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2022-08-15 07:49 GMT
Find Nodes?
    Voting Booth?

    No recent polls found