How do I stop my e-mail subscription?
[JCA/JBoss] - Re: NestedSQLException: Apparently wrong driver class specif
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Ñîîáùåñòâà
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > Java Programming > [JCA/JBoss] - Re: NestedSQLException:­ Apparently wrong driver class specif 4 October 2006 04:46:53

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Ìîäåðàòîð:

[JCA/JBoss] - Re: NestedSQLException:­ Apparently wrong driver class specif

Adrian@Jboss.Org 11 March 2005 23:32:02
 It means the driver-class/url are incompatible.

I've also seen this problem when there is an internal problem within the driver,
e.g. classes missing or other bizarre internal error.

View the original post : http://www.jboss.or­g/index.html?module=­bb&op=viewtopic&p=38­69813#3869813

Reply to the post : http://www.jboss.or­g/index.html?module=­bb&op=posting&mode=r­eply&p=3869813


-------------------­--------------------­----------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com­/?ad_id=6595&alloc_i­d=14396&op=click
Add comment
Chirayath 27 January 2006 11:29:11 permanent link ]
 Hi,
Put the proper driver jar file in server/default/lib folder of JBoss installation folder.

Regards,
Joby

View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=39­19971#3919971

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=3919971


-------------------­--------------------­----------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.fa­lkag.net/sel?cmd=lnk­&kid=103432&bid=2304­86&dat=121642
Add comment
Bhavinpmehta 24 May 2006 18:15:47 permanent link ]
 Even I face the same problem


View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=39­46128#3946128

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=3946128


-------------------­--------------------­----------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.fa­lkag.net/sel?cmd=lnk­&kid=107521&bid=2487­29&dat=121642
Add comment
Bhavinpmehta 24 May 2006 18:23:29 permanent link ]
 I am also getting the same problem, however , be it the first or the second Time I keep on getting The above error(Apparent wrong driver)

In my case if I connect Directly using DriverManager.getCo­nnection() , then I am able to connect to the DataBase, but when i try using Connection Pooling i.e ds.xml and then Look up, I get this error.
I use following url in ds.xml,
<connection-url>jdb­c:microsoft:sqlserve­r://servername:1433;­DatabaseName=dbname;­User=uname;Password=­pwder</connection-ur­l>
Plese let me know if this is correct or not. I use following jars
1.msbase.jar
2.mssqlserver.jar
3.msutil.jar

View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=39­46134#3946134

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=3946134


-------------------­--------------------­----------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.fa­lkag.net/sel?cmd=lnk­&kid=107521&bid=2487­29&dat=121642
Add comment
Bhavinpmehta 25 May 2006 13:11:18 permanent link ]
 Hi All,
My Problem is finally resolved. I switched over to jtds drivers (freeware) . I wasted 3 days trying with Microsoft Drivers and it Took only 5 mins for Connection Pooling using jtds drivers.

View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=39­46413#3946413

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=3946413


-------------------­--------------------­----------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.fa­lkag.net/sel?cmd=lnk­&kid=107521&bid=2487­29&dat=121642
Add comment
Pakemann 4 October 2006 04:07:42 permanent link ]
 I was having the same problem and also switched to jtds, but the problem remains.

My connection is failing randomly with "Apparently wrong driver class specified for URL" error.

The connection will fail this way over and over again, then will randomly begin to work. It's maddening! Is anyone else experiencing this?

I am running JBoss on Java 1.506, conncting to MSSQL with jtds 1.2 with the folloding datasource specifier:




<local-tx-datasourc­e>
<jndi-name>MSSQLDS<­/jndi-name>
<connection-url>jdb­c:jtds:sqlserver://1­92.168.100.100:1433/­CADB;tds=8.0;lastupd­atecount=true</conne­ction-url>
<driver-class>net.s­ourceforge.jtds.jdbc­.Driver</driver-clas­s>
<user-name>username­</user-name>
pwd
<!--
sql to call on an existing pooled connection when it is obtained from pool
-->
<check-valid-connec­tion-sql>SELECT 1</check-valid-conn­ection-sql>
</local-tx-datasour­ce>




View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=39­75917#3975917

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=3975917
Add comment
Weston.Price@Jboss.Com 4 October 2006 04:11:39 permanent link ]
 How are you deploying your datasource? Are any of the JDBC jars contained in the lib directory or your WAR? Do any of the JDBC jar files reside in an EAR?

Typically we see this error when a user tries to deploy the jars inside of an application archive and not in the server/server-confi­g/lib directory.



View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=39­75918#3975918

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=3975918
Add comment
Pakemann 4 October 2006 04:42:21 permanent link ]
 Wow, that was a swift response! Turnaround time of 4 minutes - ought to be in an ad for JBoss....

Indeed, the jar file was being deployed in the WAR module. I removed it from the WAR and put in in the config/lib directory as specified, and it now seems to be working reliably.

Thank you very much for your help.

View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=39­75920#3975920

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=3975920
Add comment
Weston.Price@Jboss.Com 4 October 2006 04:46:53 permanent link ]
 Not a problem :-)­

Note, this is a bug in the DriverManager. Basically what is going on is some heinous cacheing of classes that prevents the class from being loaded. Supposedly this is addressed in JDBC 4.0. Also, the Class.forName("clas­sname") mess goes away. The DriverManager will be able to load the classes automatically without the registration process.

Regards.




View the original post : http://www.jboss.co­m/index.html?module=­bb&op=viewtopic&p=39­75921#3975921

Reply to the post : http://www.jboss.co­m/index.html?module=­bb&op=posting&mode=r­eply&p=3975921
Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
respect your talk pals, avoid using obscene language, typing entire messages in CAPS, posting buy/sell ads or violating netiquette or the RF Criminal Code..


QAIX > Java Programming > [JCA/JBoss] - Re: NestedSQLException:­ Apparently wrong driver class specif 4 October 2006 04:46:53

see also:
[Persistence & CMP/JBoss] - switched…
[Persistence & CMP/JBoss] - Re: Data…
[EJB/JBoss] - Re: unable to lookup an…
pass tests:
see also:
Strawberry Cake
New iPod touch 2G Guide

  Copyright © 2001—2009 QAIX
Idea: Miñhael Monashev
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .