個人檔案豚豚的狗窝相片部落格清單更多 工具 說明

Abrams Gugu

職業
居住地
興趣
May the force always be with me....
世间险恶随红花凋零....

Windows Media Player

豚豚的狗窝

I can fall in love - if it's part of life. Even with you...
19 November

工程从 Tomcat 6.0.20 移植到 WAS 6.1.0.27 碰到的一些杯具

工程的开发环境是 Spring2.5.5 + Struts2.1.6 + iBatis2.3.4 + MyEclipse7.5 + Tomcat6.0.20,现在要部署到 WAS 6.1.0.27 上去。随便捣鼓了几下。

1. SqlMap 文件中如果有中文注释的,内容前后和注释标记之间需要空格。并且,含有中文字符的文件的编码如果是 UTF-8 格式的,必须不含 BOM 头。

2. 工程中 Spring 的一些 applicationContext.xml 我们是直接放在 src 下的,web.xml 中配置 contextConfigLocation 写的是 classpath:applicationContext-*.xml,需要改成 WEB-INF/classes/applicationContext-*.xml。

3. 工程 lib 中增加 velocity-tools-1.4.jar 和 velocity-1.5.jar。

4. 工程 lib 中移除 jsf-api.jar 和 jsf-impl.jar。

5. 工程的 JDK 换成 IBM 的 1.5.0,并且 Defalut VM Arguments 加入 -Dibm.stream.nio=true,保证编译通过。

6. 登录 WAS Console,定位 Server > Application servers > your server name > Process Definition > Java Virtual Machine 下,在 Generic JVM arguments 中写入 -Dibm.stream.nio=true。

7. 登录 WAS Console,定位 Server > Application servers > your server name > Process Definition > Java Virtual Machine > Custom Properties 下,增加属性  com.ibm.ws.webcontainer.invokeFiltersCompatibility,值为 true。

2 June

How to: Create Temporary Certificates for Use During Development

To create a self-signed root authority certificate and export the private key

1. Use the MakeCert.exe tool with the following switches:

  • -n subjectName. Specifies the subject name. The convention is to prefix the subject name with "CN = " for "Common Name".
  • -r. Specifies that the certificate will be self-signed.
  • -sv privateKeyFile. Specifies the file that contains the private key container.

For example, the following command creates a self-signed certificate with a subject name of "CN=MySignedRootCA".

        makecert -n "CN=MySignedRootCA"
                      -r
                      -sv C:\MySignedRootCA.pvk
                      C:\MySignedRootCA.cer

You will be prompted to provide a password to protect the private key. This password is required when creating a certificate signed by this root certificate.

 

To create a new certificate signed by a root authority certificate

1. Use the MakeCert.exe tool with the following switches:

  • -sk subjectKey. The location of the subject's key container that holds the private key. If a key container does not exist, one is created. If neither of the -sk or -sv options is used, a key container called JoeSoft is created by default.
  • -n subjectName. Specifies the subject name. The convention is to prefix the subject name with "CN = " for "Common Name".
  • -iv issuerKeyFile. Specifies the issuer's private key file.
  • -ic issuerCertFile. Specifies the location of the issuer's certificate.

For example, the following command creates a certificate signed by the

    MySignedRootCA

root authority certificate with a subject name of

    MySignedCA

using the private key of the issuer.

        makecert -iv C:\MySignedRootCA.pvk
                      -n "CN=MySignedCA"
                      -ic C:\MySignedRootCA.cer MySignedCA.cer
                      -sr currentuser
                      -ss My
                      -pe
                      -sky exchange

 

Installing a Certificate in the Trusted Root Certification Authorities Store

To install a self-signed certificate in the Trusted Root Certification Authorities

  • Open the certificate snap-in. For more information, see How to: View Certificates with the MMC Snap-in.

  • Open the folder to store the certificate, either the Local Computer or the Current User.

  • Open the Trusted Root Certification Authorities folder.

  • Right-click the Certificates folder and click All Tasks, then click Import.

  • Follow the on-screen wizard instructions to import the TempCa.cer into the store.

 

See Also

Certificate Creation Tool (Makecert.exe)

31 October

秋乏

秋乏时期,懒了一个月,实在是不知道要写什么。

秋乏时期,发现晚上做梦很多。我想说的是,不是一个晚上做很多梦(这样我第二天铁定吃勿消),而是很多晚上都做梦。惋惜的是,都是醒来后想不起来情节的那种,就知道自己做了个梦,其它就没了。独独昨天,一个晚上做了很多梦,而且都想得起情节。什么被狗咬了、坐地铁甩尾、乱78糟的什么都有(除了XX么有,竟然有点小失望)。今天我果然垮了,一点力气都没有……

秋乏时期,自己对某件事情竟然不能保持长久的兴趣,当然不是指MM。还想去哪散散心,老打盹。

秋乏时期,习惯坐货梯去8楼吃午饭。今天,这货梯坐得我印象巨深刻。在货梯口,发现3个警察在那(其中有个MM)。仿佛也想搭乘货梯的样子,我小紧张,弱弱地挪过去,望天花板ing。货梯一下来,3个进去了,我也钻了进去。正要关门,又突然不知道从哪杀来7、8个警察。我靠,这下真壮观了,一群警察在货梯里把我包围在中间,动弹不得,规规矩矩到窘立在那。我遂想象我是警方要保护的重要人物,暂时自我阿Q一下……我希望电梯是快点好呢还是慢点好呢……谁想出了货梯又被他们簇拥到食堂里 TT 敢情这帮子人都是去吃饭的啊?

秋乏时期,与落枕特别有缘分。同事每每看到我都要问,你眼睛没什么问题吧?看人怎么这副腔调?我那个崩溃啊,丫的他怎么就是不长记性,不是告诉过你我今天落枕了嘛……今天,你落枕了吗?

秋乏时期,麻将搓的少了。也就在这个时期,我终于明白为什么3个男人千万不要和1个女人一起搓麻。你皮夹子里的马尼会消失得很惨。

秋乏时期,总是无缘无故的喜欢发呆。坐在写字楼里,朝着窗户外,望着楼下马路上的过往车辆和行人,望着对面高层住宅外晒着的三角形,望着一麻袋的马尼从押款车里被人簇拥着消失在对面的银行里面……。发呆的时候,可以想,邪恶的,好玩的,郁闷的,来气的……可以什么也不想,可以笃定得像一尊佛,也可以小er多动。今天我拿出手机,对着窗外,准备拍下有什么东西朝我撞来的壮观场面,脑子却想着把我那件Ferrari的赛车服送人……习惯了一个人独来独往。想以前的事情,想未来的事情。一咪咪回忆,一咪咪憧憬。

秋乏时期,魔魔竟然告诉我他去健身了,而且直接导致他体内的线粒体爆发。真是让目前巨萎靡的我相当地羡慕和PF。我严重缺乏原力,而他,竟然多到没处使。又开始魔鬼肌肉练了,那2块让我向往的胸大肌啊,摸摸。靠,摸摸果然已成习惯……传点原力给我也好的挖 VoV

秋乏时期,突然很怀念キス的味道。这么长的时间,对一个男人来说实在是太可怕。

……

秋乏时期之末,我认识了某个人,于是我想去找一样那东西,我想把它煲成汤。

<<<Ich liebe dich..
30 September

N nights in Suchow


一杯清茶在手,一炉青烟在侧。
以为这样会挺好的。可是每个夜晚我都会梦到她,于是心,终究还是无法平静下来。

也许我又错了,不应该让自己如此清闲,让自己有那么多的时间来布置一个个陷阱套,然后再心甘情愿地掉在里面痛苦自己。但我又很害怕,我不能让自己忙,我怕摆脱了时间后用什么来想她。矛盾的我,于是就是在痛苦和害怕间摇摆。我也很清楚,这种状态会一直延续下去,直到某天。。

记忆力好,原来真是一种负担。
但是忘记,真的会快乐么?
一切都抛在脑后,真的可以么?


>>>Ich liebe dich..
17 September

入秋了

去年的那一天
今年的那一天
不知不觉中
就快是第一个完整的四季了
回忆却不会因此变得遥远
翻看着曾经那一页页
梦和现实之间暧昧的界限
却变得又浓了些

那些快乐的昨天、今天
却没有带给我们同样快乐的明天
梦想
来不及对你诉说
早早地
对你我便放弃得太快
...
 
在日复一日里
感受着缺少了什么
不经意间会想起你
在意你过得好与否
自己想要变的坦率
却不免有些畏惧
只是简简单单一句
「嗨 现在还好么」
却一直没有能说出口
...
 
闭上双眼
只有你一个
张开双眼
是一个季节来去
在这有限的季节里
我们活在此时此刻
 

晚上八点半 20:30

脚印收集ing……
Adult Sugar DVD Rental
第 1 張 / 共 25 張