• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JDBC driver not found

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi All,
I am using Netbeans 6.1 and Jboss AS 5.0RC1.I am preparing an enterprise application with JavaDb(derby).I am also using persistence(JEE 5).Now when I clean and build the project it works fine.It also runs fine in GlassFish server.But when I run it in Jboss AS Netbeans throws a mesage "Checking data source definitions for missing JDBC drivers..." and it hangs. Can anyone help me out what would be possible reason for that.

Thanks,
Suddhasattwa
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Suddhasattwa,

This looks like an IDE question. Moving it to an appropriate forum.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you remember to copy the JDBC driver JAR file to server/xxx/lib?
 
Suddhasattwa Mukherjee
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Yes I copy the jar derby-10.3.1.4.jar in server/default/lib directory.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
copy this one "C:\Program Files\Sun\JavaDB\lib\derbyclient.jar" to lib folder and

for deploy folder

derby-ds.xml

contains somthing like this

<?xml version="1.0" encoding="UTF-8"?>

<datasources>
<local-tx-datasource>
<jndi-name>The JNDI NAME</jndi-name>
<connection-url>jdbc:derby://localhost:1527/sample</connection-url>
<driver-class>org.apache.derby.jdbc.ClientDriver</driver-class>
<user-name>xxxxxxxxx</user-name>
<password>xxxxxxx</password>
<min-pool-size>5</min-pool-size>
<max-pool-size>10</max-pool-size>
<idle-timeout-minutes>0</idle-timeout-minutes>
<track-statements>true</track-statements>
</local-tx-datasource>

</datasources>

 
Suddhasattwa Mukherjee
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have done all the things previously whatever you wrote.But it did not work.Moreover when I create a simple Enterprise Application from NetBeans(without any coding or configuration) without database or anyother things JBoss did not start up from NetBeans without any error message.What I think is it might be possible that NetBeans 6.1 is not compatible JBoss 5.0 RC1 or Vice Versa.Plesae let me know if I am right.

Mohammad Rezwan wrote:copy this one "C:\Program Files\Sun\JavaDB\lib\derbyclient.jar" to lib folder and

for deploy folder

derby-ds.xml

contains somthing like this

<?xml version="1.0" encoding="UTF-8"?>

<datasources>
<local-tx-datasource>
<jndi-name>The JNDI NAME</jndi-name>
<connection-url>jdbc:derby://localhost:1527/sample</connection-url>
<driver-class>org.apache.derby.jdbc.ClientDriver</driver-class>
<user-name>xxxxxxxxx</user-name>
<password>xxxxxxx</password>
<min-pool-size>5</min-pool-size>
<max-pool-size>10</max-pool-size>
<idle-timeout-minutes>0</idle-timeout-minutes>
<track-statements>true</track-statements>
</local-tx-datasource>

</datasources>

 
Mohammad Rezwan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you use Hibernate or Toplink in your persistence.xml?

for JBOSS use Hibernate and for Glassfish use Toplink

reverse case you have to provide the respective jars.

e.g. for JBOSS Toplink jars and for glassfish Hibernate jars.

I suggest don't use reverse as its complected and not optimized.............

 
Suddhasattwa Mukherjee
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have used Hibernate for JBoss in persistence.xml. But would you please clarify more about the use of jars?I have not put any jar in JBoss like that.

Also the question persists that why doesn't the netbeans able to start up the JBOSS when I created only a template project?

Mohammad Rezwan wrote:Did you use Hibernate or Toplink in your persistence.xml?

for JBOSS use Hibernate and for Glassfish use Toplink

reverse case you have to provide the respective jars.

e.g. for JBOSS Toplink jars and for glassfish Hibernate jars.

I suggest don't use reverse as its complected and not optimized.............

 
Mohammad Rezwan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know exactly why netbeans can't start JBOSS. But my guess is netbeans plug-in for JBOSS is for 4.x.x series not for 5.x.x series.

No need to put additional jars if you use Jboss and Hibernate as jboss comes with Hibernate jars (at least in 4.x.x it used to. I am not sure about 5.x.x )
 
reply
    Bookmark Topic Watch Topic
  • New Topic