File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Jdbc not bound Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jdbc not bound" Watch "Jdbc not bound" New topic

Jdbc not bound

Marcos Ferreira

Joined: Mar 12, 2005
Posts: 9
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

What could be wrong with my configuration parameters?



P.S.: JBoss 3.2.7 / Jsdk 1.4.1_04 / MS SqlServer 2k / Windows 2k

Thanks,<br /> <br />Marcos
Debopam Poddar
Ranch Hand

Joined: Jun 21, 2005
Posts: 51

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

Joined: Jul 20, 2005
Posts: 293

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

I agree. Here's the link:
subject: Jdbc not bound
It's not a secret anymore!