2007年1月18日星期四

2007-1-17 星期三

    为了一个用jbuilder2006+weblogic部署webservices,老师弄不出来,而且运行jbuilder再加上weblogic机器慢的要死,一次一次的重试,时间啊。就是不动,哈哈。

最后在网上搜到下面的问题。说是因为jbuilder和weblogic的lib文件版本兼容问题,还有就是weblogic8.1sp3以前的版本不支持sourcerootforupload,所幸重装了weblogic,原来是的,现在装了个9.2的,结果在经过漫长的等待后,终于成功部署了,但是还是由于机器太慢,没看效果,明天再试一试吧。

 

 

Why am I getting the error Unrecognized option or flag, -sourcerootforupload ?

   In order to maintain compatibility between the 8.1 and 9.0 version of the plugin I used a new flag on the deployment engine. 

   The flag was added with service pack 4 on 8.1.  If you are not on service pack 4 or later you will see this error.  If you send a note

   to the mojo mailing list I can create a special version for service pack 3 and earlier.

 

 

还有就是如果出现

Build Failed: The failure is due to a known compatibility issue with WebLogic and Ant 1.6 as WebLogic includes an older version of

的错误就删除WebLogic安装目录下的weblogic81/server/lib/ant下的ant.jar和optional.jar就行了,而我重装成了weblogic9.2以后也没报这样的错误。晕,真让人晕头转向。

 

 

昨天看effective java第二条,建立单立模式,有两种方式,两者都需要构造函数是私有的,一种是,声明一个public static final的属性初始化为这个类的实例,然后直接用类名.属性名返回这个对象,另一种是声明一个private static final的属性,在静态方法中返回这个static final 的对象,这么做的好处就是有回旋的余地,比如不想永远只返回一个相同的对象了,容易修改。在效率上,两种方式应该是不相上下的,因为好的编译器能够监测到内联。

 

时间在一天一天的过,快过年了,这个年不好过啊。

没有评论:

发表评论