On 05.Jun.2003 -- 12:08 PM, Nier, Nikolai wrote:
> Hi,
>
> I'm using cocoon 2.04 with Tomcat 4.1. I'm quite new to cocoon, so I
> hope this hasn't been discussed before - I've checked the mail archive
> and there was some discussion re. Firebird but it seems that mine is a
> different problem, as the driver isn't loaded in the first place.
> 
> I have successfully set up and used an Oracle DB connection before,
> and now I'm trying to use a Firebird DB.

This is with the same installation?

I have not worked with Firebird, so these are generic hints.

Make sure that you have the correct jdbc version for your cocoon
binary. Cocoon comes in a jdbc2 and jdbc3 flavour (jdbc2 is pre j2se
1.4 and jdbc3 is post j2se1.4). If your firebird driver is only jdbc2
and you want to install it in a jdbc3 environment this will probably
break.

Look into the libs directory, some jars will have a vm14 or vm13 in
their filename to determine the cocoon version.

> I made the necessary additions to web.xml and cocoon.xconf, and I
> placed the Firebird Driver (org.firebirdsql.jdbc.FBDriver, in
> firebirdsql.jar) into the same Tomcat dir as the Oracle driver
> (tomcat/common/lib). When I now try to start cocoon, I get a Tomcat

Try to put it into tomcat/webapp/cocoon/WEB-INF/libs

> Status 500 Error page. (Servlet Exception, root cause:
> java.lang.NoClassDefFoundError: javax/resource/ResourceException).
>  
> Putting the firebirdsql.jar into cocoon/web-inf/lib, and unpacking
> it into cocoon\web-inf\classes, didn't help.  The access log stops

Oh, you did it already ;-)

> after "Trying to load class: org.firebirdsql.jdbc.FBDriver", while
> with the Firebird driver removed from the 'load-class' parameter in
> web.xml, cocoon starts running and the access log continues after
> loading the Oracle driver.

Switch the core log level to debug and see what happens upon
startup. The driver should get loaded during normal initialization IOW
no need to request a page. Avalon excalibur will try to send a test
query to firebird. Look for it in the logs and post the result
here. Maybe that will shed some light on the issue.

        Chris.
-- 
C h r i s t i a n       H a u l
[EMAIL PROTECTED]
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

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

Reply via email to