---------------------------------------------------------------- BEFORE YOU POST, search the faq at <http://java.apache.org/faq/> WHEN YOU POST, include all relevant version numbers, log files, and configuration files. Don't make us guess your problem!!! ---------------------------------------------------------------- > From [EMAIL PROTECTED] Mon Jan 31 03:55:05 2000 > From: [EMAIL PROTECTED] > X-Lotus-FromDomain: IBMIN@IBMAU > To: [EMAIL PROTECTED] > Date: Mon, 31 Jan 2000 15:24:31 +0530 > Subject: Db2 on apache from servlets > ---------------------------------------------------------------- > > > Hi, > > > i am using apache 1.3.9 with jserv 1.1, db2 v6.1, on redhat6.0 linux > > I have set classpath for /usr/IBMdb2/V6.1/java/db2java.zip and > /usr/IBMdb2/V6.1/lib in wrapper.classpath. > > But i get unsatisfied link error in > Class.forName("COM.com.ibm.db2.jdbc.app.DB2Driver").newInstance() unable > to find libdb2jdbc.so library. > i also tried to specify wrapper.env=LD_LIBRARY_PATH=/usr/IBMdb2/V6.1/lib > and wrapper.env=LIBPATH=/usr/IBMdb2/V6.1/lib > > but it still doesn't work. > > Please help!!!!!!!!!!!!!!!! > Parul > > > > > > > -- > -------------------------------------------------------------- > Please read the FAQ! <http://java.apache.org/faq/> > To subscribe: [EMAIL PROTECTED] > To unsubscribe: [EMAIL PROTECTED] > Archives and Other: <http://java.apache.org/main/mail.html> > Problems?: [EMAIL PROTECTED] > > Parul, The db2 environment must be set for the system at boot time. On a Solaris machine in the /etc/rc3.d directory we have a file which contains the following lines. If you use DB2 at the command prompt you probably already have this in your own login environment. Also, you were correct in setting a wrapper.classpath to db2java.zip in the servlet.properties file. Substitute the correct paths for your system. Also, there are sample db2cshrc and db2profile examples in the DB2 sqllib directory. #---------------------------------------------------------------------- # Set the LD_LIBRARY_PATH #---------------------------------------------------------------------- LD_LIBRARY_PATH=".:/opt/IBMdb2/V6.1/lib:/home/qms/lib" export LD_LIBRARY_PATH #---------------------------------------------------------------------- # Default DB2 product directory #---------------------------------------------------------------------- DB2DIR="/opt/IBMdb2/V6.1" #----------------------------------------------------------------------- # DB2INSTANCE [Default null, values: Any valid instance name] # Specifies the instance that is active by default. #----------------------------------------------------------------------- DB2INSTANCE=db2d export DB2INSTANCE #---------------------------------------------------------------------- # Set the DB2 INSTANCE HOME #---------------------------------------------------------------------- INSTHOME=/db01/app/db2d #------------------------------------------------------------------------ # Add the directories: # INSTHOME/sqllib/bin - database executables # INSTHOME/sqllib/adm - sysadm executables # INSTHOME/sqllib/misc - miscellaneous utilities # to the user's PATH. #------------------------------------------------------------------------ PATH=${PATH}:${INSTHOME}/sqllib/bin:${INSTHOME}/sqllib/adm PATH=${PATH}:${INSTHOME}/sqllib/misc export PATH #------------------------------------------------------------------------ # End DB2 enironment statements. #------------------------------------------------------------------------ Hope this helps. Nick Gilliam -- -------------------------------------------------------------- Please read the FAQ! <http://java.apache.org/faq/> To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Archives and Other: <http://java.apache.org/main/mail.html> Problems?: [EMAIL PROTECTED]
Re: Db2 on apache from servlets
Nick Gilliam d-3712 7-5554 ng96753gillidn Mon, 31 Jan 2000 06:15:26 -0800
- Db2 on apache from servlets mparul
- Nick Gilliam d-3712 7-5554 ng96753gillidn