in reply to Net::SSLeay and Tomcat

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.