• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

RRS_SEVERE : jdbc not bound exception in jboss

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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

Can anybody suggest ?

Thanks
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?

 
My honeysuckle is blooming this year! Now to fertilize this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic