I can't say for sure what the problem is, but two things I can think of
to check are: 

Along with setting the databaseUrl, make sure you are setting
database=db2 in the build.properties file to tell it what adapter to
use.

Also, make sure you're copying the db2java.jar into
...tdk-2.1\webapps\newapp\WEB-INF\lib and not just tdk-2.1\lib.

Lastly, in TurbineResources.properties, set:

database.adaptor=DBDB2
database.adaptor.DBDB2= COM.ibm.db2.jdbc.app.DB2Driver

I haven't used the TDK 2.1 with DB2, nor the TDK 2.1 very much, but
that's my guess as to what you'd need to do.

- Stephen

> -----Original Message-----
> From: venkat [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 05, 2002 1:25 AM
> To: [EMAIL PROTECTED]
> Subject: Turbine problem
> 
> Hi,
> 
> I am using tdk2.1 and i am trying to create the sample application. I
> have completed all configurations like creating tables, modifiying
> build.properties etc., when u try to run the application i am getting
> error like as follows.
> ---------------------------------------Error 1 Starts
> here------------------------------------------------------------------
> Exception:  java.lang.ClassNotFoundException: ${database/adaptor}
>       Stack Trace follows:
>       java.lang.ClassNotFoundException: ${database/adaptor}
>       at java.lang.Class.forName0(Native Method)
>       at java.lang.Class.forName(Class.java:120)
>       at
>
org.apache.turbine.util.db.adapter.DBFactory.<clinit>(DBFactory.java:109
> )
>       at
>
org.apache.turbine.util.db.pool.ConnectionPool.getDB(ConnectionPool.java
> :395)
>       at
>
org.apache.turbine.util.db.pool.ConnectionPool.<init>(ConnectionPool.jav
> a:265)
>       at .............
> ---------------------------------------Error 1 ends here
> ------------------------------------------------------------------
> 
> Regarding the database i am using DB2 database, i have mentioned the
DB
> driver name in the build.properties file like,
> 
> databaseUrl=jdbc:db2:SAMPLE
> databaseDriver=COM.ibm.db2.jdbc.app.DB2Driver
> 
> but still i am getting the error message saying
> COM.ibm.db2.jdbc.app.DB2Driver is not implmented
> 
> -------------------------------------------Error 2 start
> here----------------------------------------------------------------
> java.lang.InstantiationException: Database type
> COM.ibm.db2.jdbc.app.DB2Driver not implemented.
> 
> -------------------------------------------Error 2 ends here
> --------------------------------------------------------------
> 
> I have copied the db2java.zip file in the lib directory after rename
the
> same to .jar file.
> 
> It would be very useful for me if you could inform, is there any other
> way to mention the db2java.jar file in our application.
> 
> Thanks & Regards,
> 
> Venkat
> 
> 
> 
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.363 / Virus Database: 201 - Release Date: 5/21/02
> 
> 
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to