Hi, Peter
Yes, I did the changes but no success.
To me, in the group "Bug" is the bugs that are giving exceptions...It problem is
make me crazy, because is everything right. With the JBoss 4.2.2 it works very well, but i
can't make lookup of anyway, is because it I'm trying to use JBoss 5.0.
With JBoss 4.2.2 I try to make lookup like this:
| context = new InitialContext();
| PermissionDaoImpl pd =
(PermissionDaoImpl)context.lookup("Question/PermissionDaoImpl/local");
|
My beautiful error is it:
ClassCastException: Cannot cast $Proxy76 (id=306) to
br.org.question.dao.PermissionDaoImpl
import javax.ejb.Local;
| @Local
| public interface PermissionDao {}
@Stateless
| public class PermissionDaoImpl implements PermissionDao {
|
| @PersistenceContext(unitName="questionPU")
| private EntityManager em;
| }
when the JBoss 4.2.2 starts i have it:
| 15:41:58,250 INFO [JmxKernelAbstraction] creating wrapper delegate for:
org.jboss.ejb3.stateless.StatelessContainer
| 15:41:58,250 INFO [JmxKernelAbstraction] installing MBean:
jboss.j2ee:ear=Question.ear,jar=Question-EJB.jar,name=PermissionDaoImpl,service=EJB3 with
dependencies:
| 15:41:58,250 INFO [JmxKernelAbstraction]
persistence.units:ear=Question.ear,jar=Question-EJB.jar,unitName=questionPU
| 15:41:58,265 INFO [EJBContainer] STARTED EJB: br.org.question.dao.PermissionDaoImpl
ejbName: PermissionDaoImpl
but of anyway i can make lookup.
Does anyone has some idea???
Thanks
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165967#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...