You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Nier, Nikolai" <nn...@showsoft.de> on 2003/06/05 12:08:08 UTC

Can't seem to load Firebird driver

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.

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 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 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.

Does anybody have a clue?

Thanks
Nik

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: Can't seem to load Firebird driver

Posted by Christian Haul <ha...@dvs1.informatik.tu-darmstadt.de>.
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
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: Can't seem to load Firebird driver

Posted by Alexander Schatten <al...@gmx.at>.
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.
>  
>
even if it might be off-topic. but if there is not a very good reason 
for using Firebird, I would not recommend it. We tried to use it in the 
last projects and had a lot of problems.

Not with the database itself, but the development process seems to be 
chaotic and the documentation is extremly bad, support hardly available. 
I expected a lot of it, but now I am pretty dissapointed.

So if there is not any other reason why to use it, take PostgreSQL or 
mySQL. Both are meanwhile also available as Windows versions, which 
might be intersting for development purposes, but the server will 
obviously be Linux, so I can recommend both of them.


Alex


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Can't change path?

Posted by Liying Huang <lh...@hypernexinc.com>.
Hi,

I wonder if anyone could help me, I am new to cocoon. I just
upgrade my project to cocoon2.1 (used tomcat5.0), but I had 
problem if I want to change path (for example, /localhost/project1
to /localhost/project). before I just changed name in build.xml
and build project.war instead of project1.war, copy it to tomcat,
it will work. I tried to change the name in build.properties and
build.xml, but will not work anymore. Is there anything I should
do?

Thanks,
Liying

Re: Can't seem to load Firebird driver

Posted by Edison Too <ed...@yahoo.com.sg>.
Hi,

Not sure if you are aware of this, the Firdbird JDBC driver is not an all-in-one jar. We did work with Firebird about 4 to 5 months ago, so things might have changed by now. The fact was that for Firebird's driver to work, you need a jta-spec1_0_1.jar and connector.jar as well. From your error it is probably the absence of the latter. I'm not sure where to find it or whether it is still needed by the current driver version, but if you have not try it, it's worth a try. If you can't find it, I can email them to you.

Regards,
Edison

On Thu, 5 Jun 2003 12:08:08 +0200, 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.
>
>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 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 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.
>
>Does anybody have a clue?
>
>Thanks Nik
>
>--------------------------------------------------------------------- To
>unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org For additional
>commands, e-mail: cocoon-users-help@xml.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org