My Oracle Support Banner

JMSSecurityException When Trying to Cache and Reuse Weblogic Initial Context to a Protected JMS Resource (Doc ID 1618883.1)

Last updated on JUNE 10, 2022

Applies to:

Oracle WebLogic Server - Version 10.3.4 and later
Information in this document applies to any platform.


Looking up a JMS resource which is protected by a user role, and sending messages to it with InitialContext parameters

and "caching" the InitialContext in a static variable of a helper class.

Using this helper class from a webapp, in the first run of the webapp servlet/JSP the JMS send() operations (even multiple ones) are successful.

In subsequent runs of the webapp servlet/JSP, the sending fails with error:

Caused By: weblogic.jms.common.JMSSecurityException: Access denied to resource: type=, application=SystemModule-0, destinationType=queue, resource=jms/q0, action=send
 at weblogic.jms.common.JMSSecurityHelper.checkPermission(
 at weblogic.jms.client.WLProducerImpl.send(
 at test.jms.JmsUtility.sendJmsRequest(
 at jsp_servlet.__index._jspService(
 at weblogic.servlet.jsp.JspBase.service(




To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.