是啊,那是一个包,在Win2000server上运行可以,可如果加了sp3就报这个错,非常的急

解决方案 »

  1.   

    是的,而且在Win2000server不加扑钉的情况下,可以运行
      

  2.   

    那是服务器上的配置,是IBM的服务器,在我开发的计算机上,用上面的配置没有问题,请大家帮忙
      

  3.   

    问题不在那里
    如果是WEBSPHERE,你是不是用VISAGE FOR JAVA生成的代码。在发布的时候原代码的CLASS前面少了PUBLIC??
      

  4.   

    没有啊,我是用tomcat3.2,用Forte for java生成的代码
      

  5.   

    这是它的代码:
    * Created on 2002年7月26日, 上午9:06
     *按权限分配菜单
     */package yava.bean;import java.beans.*;
    import java.sql.*;
    import yava.fileapp.*;
    import java.util.Hashtable;
    import java.io.*;
    /**
     *
     * @author  shuhw
     */
    public class MenuBean extends Object implements java.io.Serializable {
        
        public String fuserno;
        public Hashtable dict=null;
        public CDataCheck dc;
        public int iok=0;
        
        public MenuBean(String m_fuserno) {
           this.fuserno=m_fuserno;
           String sql="";
           sql="SELECT fispower,fpowerno FROM tuserpower where fuserno='"+fuserno+"' ";
           CDataSource ds=new CDataSource();
           java.sql.Connection conn=null;
           java.sql.Statement stmt=null;
           java.sql.ResultSet rs=null;
           dc=new CDataCheck();
           try{
               conn=ds.getConnection();
               stmt=conn.createStatement();
               rs=stmt.executeQuery(sql);
               dict=new Hashtable();
               String val="";
               while(rs.next()){
                   val=String.valueOf(rs.getInt("fispower"));
                   dict.put(rs.getString("fpowerno"),dc.CNulls(val,"0"));
                   val="";
               }
               
               if(conn!=null){
                  rs.close();
                  stmt.close();
                  conn.close();
               }
           }catch(Exception e){
                    
           }
        }
        public int getDelAdd(){
            return this.iok;
        }
        public int getMGMAIL(){
            String c;
            try{
                c= (String)dict.get("MGMAIL");
                return Integer.parseInt(c);
            }catch(Exception e){ 
                return 0;
            }
        }
      

  6.   

    还有:
    public int getGHDJ(){
            String c;
            try{
                c= (String)dict.get("GHDJ");
                return Integer.parseInt(c);
            }catch(Exception e){ 
                return 0;
            }
        }
         public int getAdmin(){
            String c;
            try{
                c= (String)dict.get("Admin");
                return Integer.parseInt(c);
            }catch(Exception e){ 
                return 0;
            }
        }
        
        public int getG1(){
            String c;
            try{
                c= (String)dict.get("G001");
                return Integer.parseInt(c);
            }catch(Exception e){ 
                return 0;
            }
        }
        public int getG2(){
            String c;
            try{
                c= (String)dict.get("G002");
                return Integer.parseInt(c);
            }catch(Exception e){
                return 0;
            }
        }
       public int getG3(){
            String c;
            try{
                c= (String)dict.get("G003");
                return Integer.parseInt(c);
            }catch(Exception e){
                return 0;
            }
        }
       public int getG4(){
             String c;
             try{
            c= (String)dict.get("G004");
            return Integer.parseInt(c);
             }catch(Exception e){
                 return 0;
             }
       }
       public int getG5(){
             String c;
             try{
                c= (String)dict.get("G005");
                return Integer.parseInt(c);
             }catch(Exception e){
                 return 0;
             }
        }
       public int getG6(){
             String c;
             try{
            c= (String)dict.get("G006");
            return Integer.parseInt(c);
             }catch(Exception e){
                 return 0;
             }
        }
       public int getG7(){
             String c;
             try{
                c= (String)dict.get("G007");
                return Integer.parseInt(c);
             }catch(Exception e){ 
                 return 0;
             }
        }
       public int getG8(){
             String c;
             try{
            c= (String)dict.get("G008");
            return Integer.parseInt(c);
             }catch(Exception e){
                 return 0;
             }
        }
       public int getGF1(){
            String c;
            try{
            c= (String)dict.get("GF01");
            return Integer.parseInt(c);
            }catch(Exception e){
                return 0;
            }
        }
       public int getGF2(){
             String c;
             try{
                c= (String)dict.get("GF02");
                return Integer.parseInt(c);
             }catch(Exception e){ 
                 return 0;
             }
        }
       public int getGF3(){
             String c;try{
            c= (String)dict.get("GF03");
            return Integer.parseInt(c);}catch(Exception e){ return 0;}
        }
       public int getGFRA(){
             String c;try{
            c= (String)dict.get("GFRA");
            return Integer.parseInt(c);}catch(Exception e){ return 0;}
        }
       public int getGFRD(){
             String c;try{
            c= (String)dict.get("GFRD");
            return Integer.parseInt(c);}catch(Exception e){ return 0;}
        }
       public int getGFRB(){
             String c;try{
            c= (String)dict.get("GFRB");
            return Integer.parseInt(c);}catch(Exception e){ return 0;}
        }
       public int getGFRU(){
             String c;try{
            c= (String)dict.get("GFRU");
            return Integer.parseInt(c);}catch(Exception e){ return 0;}
        }
       public int getGFHA(){
             String c;try{
            c= (String)dict.get("GFHA");
            return Integer.parseInt(c);}catch(Exception e){ return 0;}
        }
       public int getGFHD(){
             String c;try{
            c= (String)dict.get("GFHD");
            return Integer.parseInt(c);}catch(Exception e){ return 0;}
        }
       public int getGFHB(){
             String c;try{
            c= (String)dict.get("GFHB");
            return Integer.parseInt(c);}catch(Exception e){ return 0;}
        }
       public int getGFHU(){
             String c;try{
            c= (String)dict.get("GFHU");
            return Integer.parseInt(c);}catch(Exception e){ return 0;}
        }
       public int getGFXA(){
             String c;try{
            c= (String)dict.get("GFXA");
            return Integer.parseInt(c);}catch(Exception e){ return 0;}
        }
       public int getGFXD(){
             String c;try{
            c= (String)dict.get("GFXD");
            return Integer.parseInt(c);}catch(Exception e){ return 0;}
        }
       public int getGFXB(){
             String c;try{
            c= (String)dict.get("GFXB");
            return Integer.parseInt(c);}catch(Exception e){ return 0;}
        }
       public int getGFXU(){
             String c;try{
            c= (String)dict.get("GFXU");
            return Integer.parseInt(c);}catch(Exception e){ return 0;}
        }
       public int getGFZA(){
             String c;try{
            c= (String)dict.get("GFZA");
            return Integer.parseInt(c);}catch(Exception e){ return 0;}
        }
       public int getGFZD(){
             String c;try{
            c= (String)dict.get("GFZD");
            return Integer.parseInt(c);}catch(Exception e){ return 0;}
        }
       public int getGFZB(){
             String c;try{
            c= (String)dict.get("GFZB");
            return Integer.parseInt(c);}catch(Exception e){ return 0;}
        }
       public int getGFZU(){
             String c;try{
            c= (String)dict.get("GFZU");
            return Integer.parseInt(c);}catch(Exception e){ return 0;}
        }
       public int getGR1(){
             String c;
             try{
            c= (String)dict.get("GR01");
            return Integer.parseInt(c);
             }catch(Exception e){
                 return 0;
             }
        }
       public int getGR2(){
             String c;
             try{
                c= (String)dict.get("GR02");
                return Integer.parseInt(c);
             }catch(Exception e){ 
                 return 0;
             }
        }
       public int getGR3(){
            String c;
            try{
            c= (String)dict.get("GR03");
            return Integer.parseInt(c);
            }catch(Exception e){ 
                return 0;
            }
        }
       public int getGR4(){
            String c;
            try{
            c= (String)dict.get("GR04");
            return Integer.parseInt(c);
            }catch(Exception e){ 
                return 0;
            }
        }
       public int getM1(){
            String c;
            try{
                c= (String)dict.get("M001");
                return Integer.parseInt(c);
            }catch(Exception e){ 
                return 0;
            }
        }
       public int getM2(){
            String c;
            try{
            c= (String)dict.get("M002");
            return Integer.parseInt(c);
            }catch(Exception e){ 
                return 0;
            }
        }
       public int getM3(){
            String c;
            try{
                c= (String)dict.get("M003");
                return Integer.parseInt(c);
            }catch(Exception e){
                return 0;
            }
        }
       public int getM4(){
            String c;
            try{
                c= (String)dict.get("M004");
                return Integer.parseInt(c);
            }catch(Exception e){ 
                return 0;
            }
        }