郁闷至极!
欲哭无泪.
 
当我第一次运行时,会是报这样的错误
Activation.main: 警告: sun.rmi.activation.execPolicy 系统
属性未被指定且 ExecPermissions/ExecOptionPermissions
均未被授权。随后的激活尝试失败,原因是对
ExecPermission/ExecOptionPermission 的权限检查失败。 有关如何
配置 rmid 安全性的文档说明,请参阅:
当我再运行一次时
又会有这样的提示出现
Activation.main: 出现异常(an exception occurred):Port already in use: 1098; nested exception is:
 java.net.BindException: Address already in use: JVM_Bind
java.rmi.server.ExportException: Port already in use: 1098; nested exception is:
 java.net.BindException: Address already in use: JVM_Bind
 at sun.rmi.transport.tcp.TCPTransport.listen(Unknown Source)
 at sun.rmi.transport.tcp.TCPTransport.exportObject(Unknown Source)
 at sun.rmi.transport.tcp.TCPEndpoint.exportObject(Unknown Source)
 at sun.rmi.transport.LiveRef.exportObject(Unknown Source)
……………………
提示我端口占用问题。唉呀! 一个令人头疼的rmid的问题。ActivationGroupDesc
令我头疼呀!I'll take a guess, but for the first two, it looks like the
machine you are on already has something listening on ports
8080 and 1098.  Perhaps you have left the http and rmid
servers running from previous testing? 呀!我真是头疼呀!又好像不是8080和1098这两个端口的问题.
 
我在网上反复的查阅这方面的文档,花了我一个下午,都没有找到解决这样问题的中文文档。
In release of the Java 2 SDK prior to 1.2.2_006 , this need to control security used for satisfied by the same stopgap measure used
for rmiregistry access control .if the caller was running on the same host as the remote object then all access was allowed ; otherwise, no access to sensitive functions was allowed.
 
想到((干吗需要用到  sun.rmi.activation.execPolicy)sun的类??),有点明白了,wb程序,可是对于不熟悉eclipse的我来说,Run as有问题.
 
最后测试连接数据库的解决办法是发布站点。然后配置它的属性,加上mysql的驱动就搞定了!
 
那问题无故地消失了!