你是不是在做ibm的教程的例子?

解决方案 »

  1.   

    userMgmt.addUser("[email protected]", "starwars",
                            "Andy", "Mike", "Barfight",
                             "Engineering", "555-1212", "x102", 
                            "555-5555", "1");
    这个方法是怎么实现的???另你的主键为email ,你要保证添加的不能有重复的!
      

  2.   

    他的adduser应该是:    public void addUser(String email, String password, 
                            String firstName, String middleName, 
                            String lastName,  String dept, 
                            String workPhone, String extention, 
                            String homePhone, boolean isEmployee){
            try {
                LocalUser user = userHome.create(email, password);
                LocalUserInfo info = infoHome.create(firstName, 
                                      middleName, lastName, email, dept, 
                                      workPhone, extention, homePhone, 
                                      isEmployee);
                user.setUserInfo(info);
            } catch (CreateException e) {
                throw new EJBException
                      ("Unable to create the local user " + email, e);
            }
      

  3.   

    是啊 ,我的addUser()方法也是像你那样写的,只不过我把employee字段改成varchar了,可是还是不行