Disable auto scanning for EJBs in a NON-EJB web application in Tomee

2019-02-01 Thread priyaksi...@gmail.com
Hi, I am working on migrating a web-app for my organisation. We have started using Spring 5, which needs the latest Tomee and hence the migration process. Our application works fine on Tomee 1.7.5. We do not have any EJBs in our web application, but Tomee 7.1.0 seems to scan for one. I have

Re: Disable auto scanning for EJBs in a NON-EJB web application in Tomee

2019-02-01 Thread priyaksi...@gmail.com
Hi Roberto, Thank You for replying. Appreciated it :) Yes, persistence.xml exists under src/main/resources. It has always been at this location and the application runs fine on Tomee 1.7.5. I have also enclosed spring's "entitymanagerFactory" bean definitions from

Re: Disable auto scanning for EJBs in a NON-EJB web application in Tomee

2019-02-04 Thread priyaksi...@gmail.com
Hi Jon, Appreciate your reply. Unfortunately as this our organisation artefact, I will not be able to created a sample war. Also we are using docker for deployment. I resolved the issue by using @Autowired instead of @PersistentContext. But now i am getting a new error. =