Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jdbc not bound

 
Marcos Ferreira
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, guys!

I'm trying to connect MS SqlServer using jTDS 1.1 jdbc driver and JBoss is showing me this message:

12:08:26,292 INFO [STDOUT] javax.naming.NameNotFoundException: jdbc not bound
12:08:26,292 INFO [STDOUT] at org.jnp.server.NamingServer.getBinding(Naming
Server.java:490)

What could be wrong with my configuration parameters?

Thanx

Marcos

P.S.: JBoss 3.2.7 / Jsdk 1.4.1_04 / MS SqlServer 2k / Windows 2k
 
Debopam Poddar
Ranch Hand
Posts: 51
Eclipse IDE Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hope u configured databases properly

put DataSource ds =(DataSource)context.lookup("java:/OracleDS"); in your java code

where OracleDS is your databases JNDI Name
 
Dave Salter
Ranch Hand
Posts: 293
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you deployed a datasource into your deploy directory? If so, what does it look like?

The datasource should have a line like the following in it:



If you have deployed a datasource with a JNDI name like that you can access it using

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic