0
点赞
收藏
分享

微信扫一扫

EJB3.0异常总结---javax.ejb.EJBException: Local and Remote Interfaces cannot have duplicate interface for

老北京的热干面 2022-03-26 阅读 42
java3d


javax.ejb.EJBException: Local and Remote Interfaces cannot have duplicate interface for bean UserManagerBean

at org.jboss.ejb3.SessionContainer.checkForDuplicateLocalAndRemoteInterfaces(SessionContainer.java:134)

at org.jboss.ejb3.SessionContainer.instantiated(SessionContainer.java:119)

at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:492)

at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:442)

UserManagerBean中的@Local,@Remote必须明确写上接口的类型,才可以。修改代码如下:

EJB3.0异常总结---javax.ejb.EJBException: Local and Remote Interfaces cannot have duplicate interface for_javapackage cn.study.ejb;

EJB3.0异常总结---javax.ejb.EJBException: Local and Remote Interfaces cannot have duplicate interface for_java

EJB3.0异常总结---javax.ejb.EJBException: Local and Remote Interfaces cannot have duplicate interface for_javaimport javax.ejb.Local;

EJB3.0异常总结---javax.ejb.EJBException: Local and Remote Interfaces cannot have duplicate interface for_javaimport javax.ejb.Remote;

EJB3.0异常总结---javax.ejb.EJBException: Local and Remote Interfaces cannot have duplicate interface for_javaimport javax.ejb.Stateless;

EJB3.0异常总结---javax.ejb.EJBException: Local and Remote Interfaces cannot have duplicate interface for_java

EJB3.0异常总结---javax.ejb.EJBException: Local and Remote Interfaces cannot have duplicate interface for_java@Stateless

EJB3.0异常总结---javax.ejb.EJBException: Local and Remote Interfaces cannot have duplicate interface for_java@Remote(UserManager.class)

EJB3.0异常总结---javax.ejb.EJBException: Local and Remote Interfaces cannot have duplicate interface for_java@Local(UserManager.class)

EJB3.0异常总结---javax.ejb.EJBException: Local and Remote Interfaces cannot have duplicate interface for_java_10EJB3.0异常总结---javax.ejb.EJBException: Local and Remote Interfaces cannot have duplicate interface for_3d_11public class UserManagerBean implements UserManager EJB3.0异常总结---javax.ejb.EJBException: Local and Remote Interfaces cannot have duplicate interface for_java_12{

EJB3.0异常总结---javax.ejb.EJBException: Local and Remote Interfaces cannot have duplicate interface for_java_13

EJB3.0异常总结---javax.ejb.EJBException: Local and Remote Interfaces cannot have duplicate interface for_3d_14EJB3.0异常总结---javax.ejb.EJBException: Local and Remote Interfaces cannot have duplicate interface for_java_15 public void addUser(User user) EJB3.0异常总结---javax.ejb.EJBException: Local and Remote Interfaces cannot have duplicate interface for_java_12{

EJB3.0异常总结---javax.ejb.EJBException: Local and Remote Interfaces cannot have duplicate interface for_java_13        System.out.println(user.getUsername() + "已经被成功保存!");

EJB3.0异常总结---javax.ejb.EJBException: Local and Remote Interfaces cannot have duplicate interface for_java_13        user.setId(13);



举报

相关推荐

0 条评论