DB2 JDBC library files are usually in
<db2_user_dir>/sqllib/java12
The file name is db2java.zip. You can copy it to
<tomcat_install_dir>/common/lib
Change its name to db2java.jar or something with .jar extension, so Tomcat will be aware of it.
I had to do other things to DB2 work. I added the line
JAVA_OPTS="-Djava.library.path=/<db2_user_dir>/sqllib/java12/"
To <tomcat_install_dir>/bin/setclasspath.sh, and copied db2profile to <tomcat_install_dir>/bin, changing its name to
setenv.sh
After that, DB2 worked :)
Good luck,
Fabio.
Sherif D Mohamad wrote:
I need to make JSP files on tomcat to connect to a DB2 database.
I installed the DB2 client for Linux, but I have problems, how can I
configure it to work with JSP files ? where is the JDBC ?
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- Fabio Mengue - Centro de Computacao - Unicamp [EMAIL PROTECTED] [EMAIL PROTECTED] "Quem se mata de trabalhar merece mesmo morrer." - Millor
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
