-
15. Re: CDI BeanManager cannot find an instance of requested type
manuel_uberti Jul 7, 2016 9:19 AM (in response to manuel_uberti)Ok, gytis. The repo is up-to-date. I was able to run "mvn package wildfly:deploy", deploy the EAR and test the service.
-
16. Re: CDI BeanManager cannot find an instance of requested type
manuel_uberti Jul 8, 2016 3:29 AM (in response to manuel_uberti)One thing I forgot, gytis: please notify me as soon as you have cloned the repository. I am still not comfortable with it being available to everyone, even though I tried to leave only what's needed to debug the issue.
-
17. Re: CDI BeanManager cannot find an instance of requested type
gytis Jul 8, 2016 4:40 AM (in response to manuel_uberti)Manuel, I cannot build this project because I do not have access to nexus.bbank.it repository.
Could you extract only the bits required to reproduce the problem to the single maven project? I mean only the web service without any extra dependencies such as commons and buddybank internal stuff. And add the tests which could show the failure and could be executed without SoapUI?
-
18. Re: CDI BeanManager cannot find an instance of requested type
manuel_uberti Jul 8, 2016 7:08 AM (in response to gytis)I'll do my best.
-
19. Re: CDI BeanManager cannot find an instance of requested type
manuel_uberti Jul 8, 2016 8:05 AM (in response to gytis)I updated the code on the repo. I removed useless dependencies and added a JUnit test (NarayanaTest). I'm still figuring out a marshal/unmarshal exception, which I think has something to do with this: cxf-user - CXF client exception: Interceptor for {XXX} has thrown exception, unwinding now
However, maybe now you have a better entry point? I'll keep working on it, though.
-
20. Re: CDI BeanManager cannot find an instance of requested type
manuel_uberti Jul 8, 2016 11:40 AM (in response to gytis)Ok, gytis, hopefully good news. I updated the repo. All it takes to do a test should be:
- mvn package wildfly:deploy
-
21. Re: CDI BeanManager cannot find an instance of requested type
manuel_uberti Jul 13, 2016 6:54 AM (in response to gytis)Hi gytis, any luck with the updated repository?
-
22. Re: CDI BeanManager cannot find an instance of requested type
gytis Jul 13, 2016 6:58 AM (in response to manuel_uberti)Hi, I'm able to run it and see the failure. It seems that the issue is with packaging. BeanManager cannot find the beans from your ejb module. I'm currently consulting with people from Weld team.
-
23. Re: CDI BeanManager cannot find an instance of requested type
manuel_uberti Jul 13, 2016 7:45 AM (in response to gytis)Great, thanks a lot!
-
24. Re: CDI BeanManager cannot find an instance of requested type
gytis Jul 14, 2016 3:36 AM (in response to manuel_uberti)I've created a new reproducer without any extra dependencies: quickstart/compensating-transactions/compensations-in-ear at bm-issue-with-ear · gytis/quickstart · GitHub.
I've also posted a question on Weld forum to get some help with BeanManager: Failure to get bean with BeanManager when using EAR archive.
-
25. Re: CDI BeanManager cannot find an instance of requested type
gytis Jul 22, 2016 6:19 AM (in response to gytis)Martin has provided a solution to fix BeanManagerUtil class over here: Re: Failure to get bean with BeanManager when using EAR archive. It does require us adding a dependency on weld-core in compensations module. So before going ahead and adding it in, I'd like to look for a possibly avoid this by maybe injecting bean manager proxy through the subsystem. However, if I wont find a way quickly I'll add a fix with weld-core.
-
26. Re: CDI BeanManager cannot find an instance of requested type
manuel_uberti Jul 22, 2016 6:22 AM (in response to gytis)Thanks, gytis
-
27. Re: CDI BeanManager cannot find an instance of requested type
manuel_uberti Jul 28, 2016 2:27 AM (in response to gytis)gytis: any news on this?
Sorry to be a pain, but since we are considering Narayana for our project I need to know if we can rely on a fix before moving on to a different solution. Thank you.
-
28. Re: CDI BeanManager cannot find an instance of requested type
gytis Jul 28, 2016 3:12 AM (in response to manuel_uberti)Manuel, there is a pull request pending for review with the fix: [JBTM-2704] Update BeanManagerUtil to work with ear archives by gytis · Pull Request #1037 · jbosstm/narayana · GitHub.
-
29. Re: CDI BeanManager cannot find an instance of requested type
manuel_uberti Jul 28, 2016 3:35 AM (in response to gytis)Great news, thanks a lot!