Windows 2000安裝Apache+ApacheJserv+gnujsp之完全攻略

來源:互聯網
上載者:User

在Windows2000上安裝Apache+ApacheJserv+gnujsp之完全攻略
我的機子上面是Win2k(c:winnt)+JBuilder3(d:JBuilder3;內建jdk1.2在d:jbuild
er3java)
1、你要下載apache,apacheJserv,jsdk2.0和gnujsp(166.111.136.159有下載)
2、按次序安裝apache(d:program files)->jsdk2.0(d:jsdk2.0)->apacheJserv(d:
program files)。
3、確認apachejserv已能正常工作,其癥狀是啟動apache的時候會有一行提示:
   "Apache/1.3.6(win32) ApacheJserv/1.1 running"
4.解開gnujsp,把gnujsp10.jar,servlet-2.0-plus.jar拷到/home/httpd/sevlets目錄

3.修改jserv.conf,加入
  ApJServAction .jsp /servlets/org.gjt.jsp.JspServlet
  ApjServMount /servlets /root
  (這行不用動,據說在linux下面這是用來存放編譯jsp檔案產生的.java和.class,但
在win2k
  下面由repositories決定,這行沒有用,改了apache動不了。不知這樣理解正不正確
,請賜教)
4.修改jserv.properties,加入
  wrapper.classpath=d:jbuilder3javalibtools.jar
  wrapper.classpath=d:Program FilesApache JServ 1.1servletsgnujsp10.jar

  wrapper.classpath=d:Program FilesApache JServ 1.1servletsservlet-2.0-
plus.jar
  wrapper.classpath=d:Program FilesApache JServ 1.1ApacheJServ.jar
  wrapper.classpath=d:jsdk2.0libjsdk.jar
5.修改zone.properties,加入
  D:Program FilesApache Groupapachejsp是用來存放編譯Jsp產生的.class和.j
ava檔案。
   repositories=D:PROGRA~1APACHE~1apachejsp
         ^^^^^^^^^^^^^^^^^^^^^
  千萬不要寫成:D:Program FilesApache Groupapachejsp
  servlet.gnujsp.code=org.gjt.jsp.JspServlet
  servlet.org.gjt.jsp.JspServlet.initArgs=checkclass=true
  servlet.org.gjt.jsp.JspServlet.initArgs=scratchdir=D:PROGRA~1APACHE~1a
pachejsp
    &n
    &
  servlet.org.gjt.jsp.JspServlet.initArgs=compiler=builtin-javac -encoding 
%encoding% -classpath %classpath% -d %scratchdir% -deprecation %source%
剩下的就是"沖杯茶,打入hello.jsp,然後jsp正常運行"。



相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.