-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rob,

On 10/26/2009 12:21 PM, Rob Ogilvie wrote:
> Unfortunately, IBM disagrees and our webapp relies on this API:
> 
> http://publib.boulder.ibm.com/infocenter/forms/v3r0m0/index.jsp?topic=/com.ibm.help.forms.doc/API_Install_Guide/i_wfsa_g_unix_setting_the_environmental_variables.html

Why not just put pe_api.jar, pe_api_native.jar, uwi_api.jar, and
uwi_native.jar into your webapp's WEB-INF/lib directory? As long as you
don't re-load your webapp, the native parts shouldn't complain too much.

> For whatever reason, copying those JAR files to the WEB-INF/lib 
> directory doesn't work.  I am not much of a Java developer, and do 
> not understand the intricacies of how this all should work, but the 
> API throws a "failed to initialize" error at us if we don't have the
>  environment set up as described in the above document.

If you do have problems with the native library being initialized
multiple times, then put the above JAR files into Tomcat's lib directory.

No CLASSPATH is necessary. The above link does not refer to web
applications, but to Java programs in general, and assumes you are
installing this API for use at the system level. It's appropriate to
adjust the instructions for your environment, and using the app server's
lib directory is such an adjustment.

> I agree with that, but it didn't work, unfortunately.  Is there a 
> workaround for ill-engineered applications such as this?

Petition IBM to give you a library that uses a more Java-friendly
configuration than setting environment variables. IBM is (allegedly)
very Java-friendly and they may consider doing this for a new version of
their Lotus Forms API for Java.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrl0MEACgkQ9CaO5/Lv0PCPnQCdHLfKvaKI3wDDl1yJXae3sgBE
kX4Anj1hY+DfJ5GjVY9me9KuIwxxoX7H
=Emyh
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to