my problem is similar to this: LINK but i need to invoke method on one @Stateless bean from second @Stateless bean in another package. I tried do it like this:
@Stateless
public class StatelessBean1 implements IStatelessBean1{
@EJB
private packagename.StatelessBeanw pr;
after this i get error:
javax.ejb.EJBException: javax.ejb.EJBException: javax.ejb.CreateException: Could not create stateless EJB
note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 4.0 logs.
StatelessBean1 is into defaut package and StatelessBean2 is into package with name. When i get these two int same package all works fine by using:
StatelessBean1 pr = new StatelessBean1();
Ineed to make it into that kind of 2 different packages
Could someone told how it should look like or where is my mistake?
I tested some more and it look like that even if they are into same package it makes error.
@Stateless
public class StatelessBean1 implements IStatelessBean1{
@EJB
private StatelessBeanw pr;