2006-07-14

认识Apache Forrest

最近一直在弄Apache Cocoon,今天抽空看了一下Apache Forrest。这也是一个web publish framework,其中包括了Apache的很多项目,当然也包括cocoon。Forrest支持静态和动态发布网页,对于制作项目文档和基于XML/XSLT的网页开发是个很好的工具。Forrest目前还处于发展的初期阶段,发布的最新版本为0.7,开发版本为0.8。Forrest提供一些项目快速开发支持,如用forrest seed命令创建一个项目文档的基本结构,这一点马上让我想到了ruby on rails,不过ruby on rails好像是不支持静态发布网页的。


Forrest的文件是在linux下下载的,我在windows下通过smb来读取forrest的文件。原本我用putty想在远程build site-athour,因为那台机器有2个AMD Opteron(tm) Processor 250和4个GB的内存。后来发现在build过程中,程序试图连接x11 server,由于我是用putty通过ssh连过去的,自然无法连接x11 server,因此程序扔出exception就在那儿挂起了,这才有了在windows下build site。


我在Intel P4 3.0GHz Dualcore,512M内存(另外一根512M的内存条坏了,拿去换还没拿到新的),STAT硬盘下用java 1.5.0.7 build Forrest自带的文档和例子,用了近10分钟。


Total time: 8 minutes 40 seconds, Site size: 12.242.693 Site pages: 507
Logging Error: Writing event to closed stream.
------------------------------
Static site was successfully generated at:
B:\tmp\apache-forrest-0.7\site-author\build\site
------------------------------
BUILD SUCCESSFUL
Total time: 9 minutes 47 seconds


在forrest 0.7默认配置下,用户在site-author下执行forrest site时会遇到错误:
Could not find component for role:
[org.apache.cocoon.components.modules.input.InputModule/lm]


不过察看Forrest的FAQ马上就可以解决问题,是一个为o.8版本的Forrest准备的新版本的plugin被错误地放到0.7版本中了

没有评论:

发表评论