Beans In Use Count increases when javax.ejb.EJBAccessException is encountered leading to Transaction Timeout

(Doc ID 1121824.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle Weblogic Server - Version 10.3 to 10.3.3
Information in this document applies to any platform.


A EJB end point Webservice is generated using 'jwsc' ant task for which the bean method is protected with a security role. When this Webservice is accessed from an unauthenticated client, it causes a denial of service with below exception.

javax.ejb.EJBAccessException: [EJB:010160]Security Violation: User: '<anonymous>' has insufficient permission to access EJB: type=<ejb>,application=EnterpriseApplication, module=EJBModule.jar, ejb=WebServiceEJB,

and the bean is never released to free pool which causes the below exception after all pool beans are exausted:

nested exception is: java.lang.RuntimeException: An invocation of EJB TransactionEJB(Application: helloWorldEar, EJBComponent: com/bea/TransactionImpl) timed out while waiting to get an instance from the free pool.

sample Weblogic-ejb-jar.xml
xmlns="" xmlns:j2ee="" xmlns:xsi="" xsi:schemaLocation="">



<!-- access policies -->


Call any SLSB business method with anonymous user so that permission to invoke business method is denied since the EJB is secured which  throws javax.ejb.EJBAccessException. Check beans-in-use-count from WebLogic Admin console, which are never decremented.




Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms