Profil de wenlein0rthwoodPhotosBlogListesPlus Outils Aide
Photo 1 sur 3

n0rthwood

n0rthwood
3 septembre

昨日去清华拍的几张照片

昨天去清华办点事,遇到点有意思的事情。就拍下来了。

自行车的问题。联想起自己的自行车。刚买了不到一个月就被偷了。真是郁闷阿

这个大叔睡得很爽的样子!!

 

人是要多懒又多懒阿。

17 juin

liferay 安装步骤以及 tomcat+iis整合

1,liferay 安装
直接使用整合好的那个tomcat下载版本
它默认使用的是hsql 数据库,想换成其他的话,修改conf/catalina/Root.xml
中hibernate的配置信息,比如驱动啊,url等等。
 
然后,就是把这个tomcat安装成服务形式,它有一个service.bat的文件在bin下面。
运行 service install 就行了
 
如果安装好了运行不起来,就找到tomcat的一个tomcat5w.exe的文件,在这里可以修改其启动参数
其实,到注册表的HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\tomcat5\Parameters\Java这个位置下面去添加属性也可以。
主要是启动参数,要有如下:
-Djava.security.auth.login.config=tomcat_home\conf\jaas.config
其他参数一般自动都能添加,这个是配置单点登陆的,必须要有,否则不能登陆进行配置。
把tomcat_home改称实际名称就可以了
 
2,tomcat+iis
这个其实挺简单的,去下一个jk的最新版本,直接安装,然后,在需要整合的网站里面新建一个叫做jakarta的虚拟目录,指向那个过滤器的目录,然后,给他执行权限。
 
然后,关键是在web服务扩展里面要把那个过滤器叫什么.dll的文件加进去,并且设成允许。
 
 
3,添加portalet for liferay.
其实比较简单,可以使用ant直接作。
记录笔记
 
 
 
9 mars

Flex版MySQL数据库管理工具开工了

 
开工已经一段时间了,现放个图上来吧。
30 janvier

Flex 与 Flash 的整合的好处

现在使用Flex,为的是个开发速度。

Flash的创作环境如果开发一个正规的应用程序需要的时间可就海了去了。

但是,有的时候,可能需要Flash配合。
比如说:你使用Flex1.5 开发一个程序,上传肯定是不可缺少的功能。可是Flex1.5里面是没法做上传的。
这个时候,就需要Flash帮忙了。

大家感兴趣,可以到mm的官方网站去看一篇叫做如何在Flex里面使用Flash8新功能的文章。

实际上,就是在Flash里面写好代码,编译好。然后load到Flex里面去。由于Flashplayer是支持上传得,原来在Flash里面写好的那些东西也都能正常运行。

可是,你肯定会说,等Flex2正式发布了,我还要这个东西干什么用!

这个倒也是真没错,但是,我想说的是,这种方法的作用其实还是有的,关键是看你有钱没钱了。

我们可以看到Flex开发的优越点,但是,他的价格是很高的!如果你只是开发一个比较小的项目就用一个Flex Enterprise server岂不是太浪费了吗。你肯定说,我可以编译成swf。直接部署,不用server.
但是,这里有个问题,如果你的数据使用http xml 还好,如果是remoteObject,你还能脱离server吗?

再有,你要是想在php或者.net 上面部署怎么办? macromedia可是不支持的。

所以,在外部的flash里面写好remoting 的代码,然后通过一个Loader加载到flex里面去是非常有用的。
这样一来,flex的界面描述功能可以充分发挥它的功能,而又可以省下购买一个Flex enterprise server的钱。直接使用开源的 remoting支持,可以满足现在几乎所有的平台!

 

23 janvier

JDBC connect to MSDE fail

Using windowsXP+sp2 as a developing envirenment.
After installed MSDE I found this:
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establis
hing socket.
        at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source
)
        at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
        at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
        at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
        at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Sou
rce)
        at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown S
ource)
        at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
        at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
        at java.sql.DriverManager.getConnection(DriverManager.java:525)
        at java.sql.DriverManager.getConnection(DriverManager.java:171)
        at com.n0rthwood.DBConnection.getConnection(DBConnection.java:32)
        at com.n0rthwood.DBConnection.main(DBConnection.java:57)
Error Trace in getConnection() : [Microsoft][SQLServer 2000 Driver for JDBC]Erro
r establishing socket.
 
I found out that  this is because of no service linstening on 1433 port.
 
to solve this probem,do the following:
(it can be found here:http://support.microsoft.com/?kbid=841252)
Use the Server Network Utility to find the port that SQL Server is using
Note This method works for either a default instance or for a named instance.
1. click Start, and then click Run. In the Run dialog box, type svrnetcn.exe, and then click OK.
2. In the Server Network Utility dialog box, you will see a list of the disabled protocols and a list of the enabled protocols on the General tab.
3. In the Instances on this server list box, select the instance that you want to examine.
4. Click to select the protocol that you want to find the port number for, and then click the Properties button.
5. Make a note of the port number. 
 
I found tha MSDE disabled TCP/IP as default.
so when you use msde, make sure you enabled TCP/IP
 
La liste est vide.
Aucune catégorie n'est active.