Skip to main content

Lookup failed for 'jdbc/_default' in SerialContext problem in OEPE

Please note these forums are being decommissioned and use the new and improved forums at
2 replies [Last post]
Joined: 2012-01-15
Points: 0

while connecting to database i got this problem

in persistence.xml file , in that i selected "connection" tab, and then in the field "JTA data source :" iam giving jdbc/_default,but it is showing me below specified error while saving the file.

cannot Deploy HelloWorld
Deployment Error for module: HelloWorld: Exception while preparing the app : java.lang.RuntimeException: javax.naming.NamingException: Lookup failed for 'jdbc/_default' in SerialContext [Root exception is javax.naming.NameNotFoundException: _default not found]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2013-01-03
Points: 0

The preconfigured java DB datasource should be jdbc/__default (2 '_' here before default). seems you missed one '_' in the jndi name ?

Joined: 2013-04-23
Points: 0


I have exactly the same problem, did you find a solution for this issue?