请问这是一个什么问题??有人说是temp和tmp的路径设置问题(路径名中不能有空格),我照做了,还是一样的有这个错误   "EJBSystem.jar": weblogic.ejb.container.compliance.ComplianceException: In EJB Service, the return type for method Getcours(java.lang.String) in the remote interface does not match the return type in the bean class.

解决方案 »

  1.   

    检查Getcours方法的返回值类型
      

  2.   

    ejb的远程接口和实现类的Getcours方法的返回类型不一致
      

  3.   

    请您确认你的接口和接口实现是否一致
    例如
    public interface PeaceInvocation
       extends javax.ejb.EJBObject
    {
         public String RemoteMethod(String requestXML)throws java.rmi.RemoteException;//返回的是String类型,部署在client的
    }
    远程接口实现
    public class PeaceInvocation implements SessionBean {
    ................
    public String RemoteMethod(String requestXML)throws java.rmi.RemoteException{
      return "Hello";//返回值保持一致
    }
    ................
    }