install tomcat5 in debian sarge

1.install j2sdk 1.5

http://wiki.debian.org.tw/index.php/Java

2. 下载tomcat5的bin版本
wget …
tar …
mv … /usr/local/
ln -s /usr/local/… /usr/local/tomcat
export JAVA_HOME=/usr/lib/j2sdk1.5-sun
/usr/local/tomcat/bin/startup.sh
3. 设置Mapserver
cp *.so /usr/lib/j2sdk1.5-sun/jre/lib/i386/
然后参考: http://www.unicolet.org/mapserver/tomcat.html

This entry was posted in Linux, MapServer and tagged , , , . Bookmark the permalink.

2 Responses to install tomcat5 in debian sarge

  1. wlx [微博 ] says:

    注意:
    1、以上的文件拷贝都略掉,应注意要拷贝libmapscript.so文件到两个目录,或者作个符号连接也可以?分别是/usr/lib/和/usr/lib/j2sdk1.5-sun/jre/lib/i386/,少一个都不可以!
    2、拷贝mapscript.jar文件到/usr/local/tomcat/webapps/ROOT/WEB-INFO/lib下。本来还以为拷贝到$tomcat/common/lib也可以,但后来证明不可以!
    3、在版本4-4-1中还是注意初始化的问题,可以只初始化一次,但TOMCAT reload后还需要进行初始化!
    郁闷!浪费了4-5个小时才发现这个问题。

  2. wlx [微博 ] says:

    java mapscript 4.4.1版本还不稳定,在调试的时候若发现修改后没有反应,请重新启动TOMCAT。
    可能是MAPSERVER的线程还不安全。

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please copy the string 8I1lMX to the field below:

以新浪微博帐号登录