I have an mbean which tries to access an EJB in the startup() routine. I have the following dependency setup in my jboss-service.xml file.
jboss.j2ee:service=EjbModule,module=SynchronyEJB.jar
My mbean basically performs a lookup task in the startup routine. When I start the application I get the following error on my server.log.
2004-06-16 17:45:59,049 INFO [org.jboss.ejb.EjbModule] Started jboss.j2ee:module=SynchronyEJB.jar,service=EjbModule
2004-06-16 17:45:59,049 INFO [STDOUT] Starting start() sync:service=QueueMonitor
2004-06-16 17:45:59,284 INFO [org.jboss.ejb.EJBDeployer] Deployed: file:/D:/jboss-3.2.3/server/default/tmp/deploy/tmp32525Synchrony.ear-contents/SynchronyEJB.jar
2004-06-16 17:45:59,471 ERROR [org.jboss.ejb.plugins.SecurityInterceptor] Authentication exception, principal=null
2004-06-16 17:45:59,471 ERROR [org.jboss.ejb.plugins.LogInterceptor] EJBException, causedBy:
java.lang.SecurityException: Authentication exception, principal=null
at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:164)
at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:81)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
Anyone has any sort of solution to this problem please, help me out.
Thanks in advance.