jQuery in Action, 3rd edition
The moose likes JBoss/WildFly and the fly likes RRS_SEVERE : jdbc not bound exception in jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "RRS_SEVERE : jdbc not bound exception in jboss" Watch "RRS_SEVERE : jdbc not bound exception in jboss" New topic

RRS_SEVERE : jdbc not bound exception in jboss

vaidehi Agate-keskar

Joined: Apr 18, 2009
Posts: 12

Hi All,

I am getting following expetion while logging in to web application. After debugging from code,it gets connection value as null at

try {
conn = super.getConnection(RRConstants.PRRS_DATA_SOURCE_NAME);
and throws following exception.

2011-06-10 07:41:04,934 SEVERE [SECURITY] (http- [SECURITY] : RRS_SEVERE : jdbc not bound
2011-06-10 07:41:04,934 ERROR [STDERR] (http- com.putnaminv.riskrpt.common.security.RRSecurityException: Unexpected error occured while retrieving user role data
2011-06-10 07:41:04,934 ERROR [STDERR] (http- at com.putnaminv.riskrpt.dao.SecurityServiceDAOJDBC.getTasks(SecurityServiceDAOJDBC.java:157)
2011-06-10 07:41:04,934 ERROR [STDERR] (http- at com.putnaminv.riskrpt.web.struts.actions.LoginAction.setRole(LoginAction.java:165)
2011-06-10 07:41:04,934 ERROR [STDERR] (http- at com.putnaminv.riskrpt.web.struts.actions.RRBaseAction.execute(RRBaseAction.java:141)
2011-06-10 07:41:04,934 ERROR [STDERR] (http- at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
2011-06-10 07:41:04,934 ERROR [STDERR] (http- at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
2011-06-10 07:41:04,934 ERROR [STDERR] (http- at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
2011-06-10 07:41:04,934 ERROR [STDERR] (http- at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
2011-06-10 07:41:04,934 ERROR [STDERR] (http- at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

Can anybody suggest ?

Peter Johnson

Joined: May 14, 2008
Posts: 5852

I suspect that the JNDI name you are using is not correct for the type of code (EJB, servlet). You can use JNDIView to see what names are registered. (http://community.jboss.org/wiki/DisplayTheJDNITreeWithTheJMXConsole)

You should have shown the code for getConnection(), and the value for RRConstants.PRRS_DATA_SOURCE_NAME. Also post you *-ds.xml file. Also, what kind of code is this: and EJB, a servlet?

JBoss In Action
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: RRS_SEVERE : jdbc not bound exception in jboss
It's not a secret anymore!