java在Linux下的web应用(二)_MySQL
时间:2021-07-01 10:21:17
帮助过:38人阅读
java在Linux下的web应用(二)
wangzy [本站版主]
gnujsp1.0.0在RedHat下基于apache jserv的安装
首先确认你已经安装了apache jserv,如果你还没有安装apache jserv,请参考在《RedHat下 安装apache jserv 1.1.2》一文。
默认jserv安装在/usr/local/jserv下,jserv.conf在/usr/local/jserv/conf下
一、需要的软件
从http://www.klomp.org/gnujsp/取得gnujsp-1.0.0.tar.gz
二、
#cp gnujsp-1.0.0.tar.gz /usr/local
#tar xvzf gnujsp-1.0.0.tar.gz
#ln -s gnujsp-1.0.0 gnujsp
#cd /usr/local/jserv/etc
#cp zone.properties alph.properties
#vi alph.properties修改alph.properties加入:
# List of Repositories
#######################
repositories=/usr/local/gnujsp-1.0.0/lib/gnujsp10.jar
repositories=/usr/local/gnujsp-1.0.0/lib/servlet-2.0-plus.jar
repositories=/your/jdbcbeans/path#你的javabean的路径
#repositories=/home/heyl/lib/java/Acme.jar
#repositories=/usr/local/webl-3.0/lib/WebL.jar
# Classloader parameters
#########################
autoreload.classes=true
# Enable servlet resourced autoreloading (properties and other
# loaded resources)
autoreload.file=true
...
# Servlet Aliases
##################
# Note: if using webl or Acme stuff, add the jars here too
# if you added them to the repositories above (alph)
# In my real settings I added: usepackages=true,language=de,country=de
# but I guess you may prefer the default locale :-) (alph)
servlet.gnujsp.code=org.gjt.jsp.JspServlet
servlet.gnujsp.initArgs=checkclass=true,pagebase=/usr/local/www/doc,
scratchdir=/var/local/apache/jsp,debug=true,compiler=builtin-javac
-classpath %classpath%:%scratchdir%:/usr/local/gnujsp-1.0.0/lib/servlet-2.0-plus.jar:
/usr/local/gnujsp-1.0.0/lib/gnujsp10.jar:/your/jdbcbeans/path
-d %scratchdir% -deprecation %source%
#其中$scratchdir为jsp文件生成的java和class文件的目录
存盘
三、
#vi jserv.properties加入
wrapper.classpath=/usr/lib/jdk/lib/tools.zip