Well, I removed the MyEJB.jar from where it was and placed it within the
WEB-INF/lib folder of my test web project.
Re-configured OpenEJB via openejb.xml and removed the 'Deployments' tag.

Looking at the logs, OpenEJB picks up the MyEJB.jar automatically from
within my web project's lib folder and initializes everything.

Now it works.

So, is this a requirement as to where the EJB jar is located? Does it have
to be within my web project? Or Tomcat's class path maybe?

Thanks
-- 
View this message in context: 
http://www.nabble.com/Failing-to-inject-%40EJB-into-a-servlet-tp24781514p24781640.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to