wood burning stoves 2.0*
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
Author

Jdbc not bound

Marcos Ferreira
Greenhorn

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
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


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

Joined: Jun 21, 2005
Posts: 49

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: 292

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

 
Don't get me started about those stupid light bulbs.
 
subject: Jdbc not bound
 
Similar Threads
Webservices using hibernate, jboss and eclipse and MySQL
Logging problem log4j:ERROR
getting re-read error
java.lang.Unsatisfiedlinkerror
getting errors while using JBoss JTA to implement 2 phase commit