i’m very new to web application and vaadin. i’'m trying to create a stand alone application together with ejb module and also a web application with vaardin. i have created a web application with net beans maven following the tutorial and it works fine.
but i can seem to inject the ejb moduble into the application.
the errors are:
WELD-001408: Unsatisfied dependencies for type MySession with qualifiers @Default
You need to remove MyUIServlet. CDI add-on will add VaadinCDIServlet automatically. Unless you are configuring multilple UI’s you do not need serlvet part in your app.
Where is that bean defined MySession? Seems that its not recognized by container. Does this module have a META-INF/bean.xml ? Which annotations are on MySession?
You sure about your setup? Do you really need Remote interface to you ejb? I am afraid this is a wrong forum for your question.
change @Inject to @EJB i am not sure if inject can work with remote EJBs. Also try to specify jndi property in the EJB.
check the JNDI if EJB is registered there(logs probably)
change this EJB to local and check if it works
Peasefull advises:
do not overcomplicate things, problably you dont need EAR, all those dreams about sharing ejbs between projects are not comming through, accessing EJB remotely is a failure, its better to expose your domain objects over REST.
after you realized you dont need EAR assemble simple war. with your local EJBs