Skip to Content
Former Member
Dec 06, 2004 at 04:53 PM

Cannot instantiate EJB after configuring EJB security roles PLEASE HELP!!!


I just managed to properly configure my stateless session bean with respect to the security roles in the ejb-jar.xml and the ejb-j2ee-engine.xml file (see below). I also configured the security roles in the security provider service tab within the Visual Administrator (added a security role rmsadmin of type security role) and then added some user to this role.

The deployment went fine but when I started the application with the modified security settings I received an error message saying "Cannot create EJB instance. Nested message: null.". This message was not produced because of some of my business logic methods - the application ran fine before.

Here you find my ejb-jar.xml and ejb-j2ee-engine.xml files:



<?xml version="1.0" encoding="UTF-8"?>">


<description>EJBTest descr.</description>



































<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE ejb-j2ee-engine SYSTEM "ejb-j2ee-engine.dtd">
















I really need your help on this topic - I have absolutely no clue why it doesn't work...

Thanks in advance!!


H. Schubert