是这样:我的ejb是session ejb ,为调环境作的,没什么特别的功能,sevlet也仅仅调一下ejb,程序应该是没什么问题,因为是在jb5生成后改写的,估计是weblogic 设置有问题,因为我刚开始用,我使用了系统默认的server,也设置了一个cluster,用jb5部署的(不过,我直接用jb5生成test client测试报一大堆错,只好用ias先测一下,然后重新设置properties编译)。 
   ie返回的错误: 
Error 500--Internal Server Error 
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1: 
10.5.1 500 Internal Server Error 
The server encountered an unexpected condition which prevented it from fulfilling the request. 非常感谢,希望继续得到你的帮助。 

解决方案 »

  1.   

    你用jsp程序试一下。
    <%@page import="java.sql.*,java.util.*,javax.naming.*,javax.ejb.*,java.rmi.RemoteException,java.rmi.Remote,javax.rmi.PortableRemoteObject, quickstart.*" session="true" contentType="text/html; charset=GB2312" %>
    <title> emp
    </title>
    <%
     class myclass
     {
       public Context getInitialContext() throws Exception
      { 
        String url = "t3://196.168.0.63:7001";
        String user = null;
        String password = null;
        Properties properties = null;
        try {
          properties = new Properties();
          properties.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
          properties.put(Context.PROVIDER_URL, url);
          if (user != null) {
            properties.put(Context.SECURITY_PRINCIPAL, user);
            properties.put(Context.SECURITY_CREDENTIALS, password == null ? "" : password);
          }
            return new InitialContext(properties);
        }
        catch(Exception e) {
          System.out.println("Unable to connect to WebLogic server at " + url);
          System.out.println("Please make sure that the server is running.");
          throw e;
        }
       }
     }
       quickstart.TellerHome tellerHome = null;
       quickstart.Teller teller=null;
       int li_result;   myclass myc = new myclass();  
          //get naming context
          Context ctx = myc.getInitialContext();
          //look up jndi name
          Object ref = ctx.lookup("Teller");      //cast to Home interface
          tellerHome = (quickstart.TellerHome) PortableRemoteObject.narrow(ref, TellerHome.class);
          teller =  tellerHome.create();
          li_result = teller.getTellerNo() ;
          out.println("the result of gettellerno is  "+ li_result);
    %>  
      

  2.   

    问题已经解决,web application参数设置有问题,谢谢yyy_5!
    但我找不到给分的地方?
      

  3.   

    i am sorry,他只让我给20分.