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. =

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

2019-02-01 Thread Jonathan Gallimore
Are you able to create a small sample war that can help us reproduce it? That would be a big help. Many thanks Jon On Fri, Feb 1, 2019 at 2:44 PM priyaksi...@gmail.com wrote: > Hi Roberto, > > Thank You for replying. Appreciated it :) > > Yes, persistence.xml exists under

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-01 Thread Roberto Cortez
Hi, It seems that your issue might be related with this error log: SEVERE: FAIL ... Login: Missing required persistence.xml for @PersistenceContext ref "entityManager" to unit "auditLoggingPersistenceUnitā€¯ Do you have a persistence.xml added to your webapp? You need one if you want to use JPA