Is there any way to make sure BeanManager is available and instantiated???
Bean manager is setup by the container, e.g. Wildfly, so if it is not there, something has gone wrong earlier in the startup of the app. You may find hints by reading the log.
I have followed the below document, added the Default and alternative annotations into more than one classes which are implemented the same interface. Also, added alternative entries in beans.xml file and still getting same error. If an interface implemented in only one class, Should I mark Default annotation for that too? Please advise. https://vaadin.com/docs/flow/cdi/tutorial-cdi-service-beans.html
As per documentation “The application should not have a servlet extending VaadinServlet, as Vaadin servlet has its own VaadinCDIServlet that is deployed automatically.” https://vaadin.com/docs/v8/framework/advanced/advanced-cdi.html) Changed VaadinServlet to VaadinCDIServlet and application working fine now.
public class CreateIntServlet extends VaadinCDIServlet {
public class MSServlet extends VaadinCDIServlet {