weblogic在\bea\wlserver6.1\config\mydomain\startWebLogic.cmd中 WLS_PW=password

解决方案 »

  1.   

    客户测试程序中,我把 Context.SECURITY...删掉了,不出现访问拒绝的Exception了,但是有:
    java.lang.ArrayIndexOutOfBoundsException: 13"
    怎麽会呢?我的mysql数据库中有两条纪录,我的查寻方法也没错啊,Integer primary=new Integer(1);
    我的Home 接口是:
    /////////////////////////////////////////////////////////////
    public interface CustomerHomeRemote extends EJBHome{
    public CustomerRemote create(Integer id)throws CreateException,RemoteException;
    public CustomerRemote findByPrimaryKey(Integer id)throws FinderException,CreateException,RemoteException;
    //////////////////////////////////////////////////////////////
    Bean 类;
    ///////////////////////////////////////////////
    public abstract class CustomerBean implements EntityBean{
    public Integer ejbCreate(Integer id){
    this.setId(id);
    return null;
    }
    public void ejbPostCreate(Integer id){}

    /* Lyo create ejb method*/
    public abstract Integer getId();
    public abstract void setId(Integer id);
    public abstract String getFirstName();
    public abstract void setFirstName(String fname);
    public abstract String getLastName();
    public abstract void setLastName(String lname);
    /* End Lyo create*/
    ...........................................
    .............................................
    远程接口‘
    /////////////////////////////////////////////////
    public interface CustomerRemote extends EJBObject{
    public void setFirstName(String fname)throws RemoteException;
    public String getFirstName()throws RemoteException;
    public void setLastName(String lname)throws RemoteException;
    public String getLastName()throws RemoteException;
    }没有错啊?请帮忙!多谢