AccountHome home = (AccountHome)ref;
改为
      AccountHome home=(AccountHome) PortableRemoteObject.narrow(ref,AccountHome.class);
      在部署时出现警告信息:Generating stubs for ACCOUNT.ear
Compiling 65 files (using javac)
Stubs successfully generated
Merging archive contents: _bes_stubs.jar
Merging archive contents: ACCOUNT
Verifying C:\BES\tmp\console\tmpbes_23325\ACCOUNT.ear
Verifying application module ACCOUNT.ear [role=deployer]
...verifying ejb module ACCOUNTEJB.jar in ACCOUNT.ear
#### Warning: [ACCOUNTEJB.jar] Session Bean "SesAccount"
Static fields in the bean class must be final:
    static java.lang.Class com.borland.ejb.SesAccountBean.class$com$borland$ejb$AccountHome
#### Warning: [ACCOUNTEJB.jar] Session Bean "SesCountry"
Static fields in the bean class must be final:
    static java.lang.Class com.borland.ejb.SesCountryBean.class$com$borland$ejb$CountryHome
...verifying web module ACCOUNTWEB.war in ACCOUNT.ear
...verifying library module WEB-INF/lib/interclient.jar in ACCOUNTWEB.war in ACCOUNT.ear
...verifying library module WEB-INF/lib/struts.jar in ACCOUNTWEB.war in ACCOUNT.ear
...verifying jndi definitions module META-INF/jndi-definitions.xml in ACCOUNT.ear
...verifying library module _bes_stubs.jar in ACCOUNT.ear
0 errors, 2 warnings
Deploying modules to partition standard
Deploying ACCOUNT to bes://teddy/standard
Enabling modules in partition standard
Deployment completed