• 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

Exception thrown javax.naming.NameNotFoundException: DefaultDS not bound

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

i'm running jboss 4.0.5.GA on ubuntu and try to connect with mySQL server 5.1.44

i have : /usr/jboss/jboss-4.0.5.GA/lib/mysql-connector-java-5.1.13.bin
(followed the configuration in documentation)


This is my datasource


This is client.jsp


but i got error in my output console which is


on my browser i got this message
Exception thrown javax.naming.NameNotFoundException: DefaultDS not bound

i really appreciate if anyone could advise me or tell me my mistake..
thank you so much
 
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
Here is the key error:



Did you copy the MySQL drive JAR file to server/xxx/lib?
 
Peter Johnson
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
And one more question - did you really want to replace the existing DefaultDS (running with hsqldb), or did you want to just add a MySQL database for use by your app? I ask because replacing hsqldb with MySQL (for DefaultDS) involves a lot of steps.
 
aida haslinda
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi peter,

the problem solved by follow the instruction in http://onjava.com/pub/a/onjava/2004/02/25/jbossjdbc.html

did you want to just add a MySQL database for use by your app? I ask because replacing hsqldb with MySQL (for DefaultDS) involves a lot of steps.



i just want to add a database for my app but i was replacing the hsqldb.xml with mysql-ds.xml.It cause the error as on the title.

Thanks peter

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic