# Jndi access issue when using threads in rails application deployed in websphere (WAS)

**URL:** <https://www.ruby-forum.com/t/jndi-access-issue-when-using-threads-in-rails-application-deployed-in-websphere-was/189853>\
**Category:** Rails\
**Created:** [June 8, 2010, 10:46pm UTC](https://www.ruby-forum.com/t/jndi-access-issue-when-using-threads-in-rails-application-deployed-in-websphere-was/189853 "2010-06-08T22:46:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rakmoh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f07891/32.png) [@rakmoh](https://www.ruby-forum.com/u/rakmoh)\
**Post date:** [June 8, 2010, 10:46pm UTC](https://www.ruby-forum.com/t/jndi-access-issue-when-using-threads-in-rails-application-deployed-in-websphere-was/189853/1 "2010-06-08T22:46:37Z")

</div>

I need to deploy my application to Websphere (WAS) 6.1. Application  
uses threads for some back-groud work. When I deploy the war in WAS, I  
am getting the following error:  
[5/3/10 15:56:57:616 EDT] 0000008f SystemErr R JNDI data source  
unavailable: javax.naming.ConfigurationException: A JNDI operation on  
a “java:” name cannot be completed because the server runtime is not  
able to associate the operation’s thread with any J2EE application  
component. This condition can occur when the JNDI client using the  
“java:” name is not executed on the thread of a server application  
request. Make sure that a J2EE application does not execute JNDI  
operations on “java:” names within static code blocks or in threads  
created by that J2EE application. Such code does not necessarily run  
on the thread of a server application request and therefore is not  
supported by JNDI operations on “java:” names.; trying straight JDBC  
[5/3/10 15:59:01:770 EDT] 0000008f SystemErr R Exception in thread  
“Thread-121” java.lang.NullPointerException  
[5/3/10 15:59:01:772 EDT] 0000008f SystemErr R at  
org.jruby.ext.openssl.impl.EVP.type(EVP.java:101)  
[5/3/10 15:59:01:772 EDT] 0000008f SystemErr R at  
org.jruby.ext.openssl.impl.PKCS7.signatureVerify(PKCS7.java:254)  
[5/3/10 15:59:01:772 EDT] 0000008f SystemErr R at  
org.jruby.ext.openssl.impl.PKCS7.verify(PKCS7.java:390)  
[5/3/10 15:59:01:773 EDT] 0000008f SystemErr R at  
org.jruby.ext.openssl.PKCS7.verify(PKCS7.java:486)

I understand the error (for a change it is very clear from the WAS  
error logs 🙂

Looking for ideas to fix this issue.

Thanks,  
-Rakesh

---

<div class="post-metadata">

**Author:** ![rakmoh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f07891/32.png) [@rakmoh](https://www.ruby-forum.com/u/rakmoh)\
**Post date:** [June 8, 2010, 11:15pm UTC](https://www.ruby-forum.com/t/jndi-access-issue-when-using-threads-in-rails-application-deployed-in-websphere-was/189853/2 "2010-06-08T23:15:12Z")

</div>

rakmoh wrote:

> I need to deploy my application to Websphere (WAS) 6.1. Application  
> uses threads for some back-groud work. When I deploy the war in WAS, I  
> am getting the following error:

You should post this to the JRuby forum instead. You’ll probably get  
more help there.
