Hello all,
I just started to study Java EE and made some examples (Just Hello World and some a bit more complicated). Now I'm doing a small application myself for learning purposes. I made an EAR, an EJB and an WAR just like in this example but, instead of working with interfaces, I'm working with real classes.
In summary, EJB and WAR are in the same package, but I can't instantiate an EJB class from a WAR servlet, because it doesn't seem to find that class implementation. When trying to instantiate a class called "Database" in my servlet, I got the following error from Eclipse:
Database cannot be resolved to a type
It also happens with other classes.
Any idea? Thank you very much.