Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 5th, 2003, 03:49 AM
mosh mosh is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 2 mosh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Jaybird Jndi context problem

Sorry for my english...
I'm using jndi for connecting to a firebird db (under tomcat):
1) defining a application context (with tomcat manager) -->i'm thinking server.xml is OK
2) firebirdsql driver (last release 1.01) on catalina_home/common/lib
3) with "standard" class
....
Context cntx = new InitialContext();
...
DataSource = (DataSource)cntx.lookup("java:comp/env/jdbc/user");
....
Connection = ds.getConnection("sysdba", "masterkey");
Boom
Error occurred java.sql.SQLException: Cannot create JDBC driver of class 'org.fi
rebirdsql.jdbc.FBDriver' for connect URL 'C:\progetti\db\USERS.FDB'

4) with FBWrappingDataSource it's ok.... only if setting db name onto code (ds.setDB("path+ db name")
if i try
FBWrappingDataSource = (FBWrappingDataSource)cntx.lookup("java:comp/env/jdbc/user");
Kabooom Class cast exception

How can catch a db name(+ path) from context ?
Tank's

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Jaybird Jndi context problem

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap