Good night everyone,
Im getting a NameNotFoundException when i try to inject a local ejb when i
deploy my application in glassfish 3.1(b43) but when i run in glassfish 3.01
i got no errors.
the only thing i changed in both glassfish module is the JSF mojarra version
to 2.1.1
the way im declaring the ejb is like this: @Named @LocalBean @Stateful public
class GenericHibernateDao<T, Id extends Serializable> implements Dao<T, Id>,
Serializable {
full code is here:
http://code.google.com/p/jsf-conventions-framework/source/browse/ConventionsFramework/src/main/java/com/jsf/conventions/dao/impl/GenericHibernateDao.java
and i inject this ejb in a class which is superclass of a CDI bean:
public class BaseMBeanServiceImpl<T extends BaseEntity, K extends
Serializable> implements Dao<T,K>,Serializable{
public @EJB GenericHibernateDao<T,K> dao;
source:
http://code.google.com/p/jsf-conventions-framework/source/browse/ConventionsFramework/src/main/java/com/jsf/conventions/service/impl/BaseMBeanServiceImpl.java
and the cdi bean which extends it is like this: @Named("personService")
public class PersonServiceImpl extends BaseMBeanServiceImpl<Person, Long>
implements PersonService {
source:
http://code.google.com/p/jsf-conventions-framework/source/browse/ConventionsShowcase/src/main/java/com/jsf/conventions/showcase/service/impl/PersonServiceImpl.java
and finally i inject the service in a CDI or JSF managedBean
source:
http://code.google.com/p/jsf-conventions-framework/source/browse/ConventionsShowcase/src/main/java/com/jsf/conventions/showcase/controller/PersonConversationMBean.java
The full stacktrace is here
http://pastebin.com/gWkNYuYB
here you can get the war and all the information to deploy it and reproduce
the error:
http://code.google.com/p/jsf-conventions-framework/downloads/detail?name=ConventionsShowcase
-b02.war&can=2&q=
its a small showcase which runs sucessfully in GF 3.01 but fails in GF 3.1 or
above.
Any help is appreciated, thanks.
--
[Message sent by forum member 'rmpestano']
View Post: http://forums.java.net/node/805891