免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1681 | 回复: 2
打印 上一主题 下一主题

tomcat和apache整合时是不是需要tomcat-webapp.jar这个文件? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-03-01 16:59 |只看该作者 |倒序浏览
我在Readme中看到的:
The tomcat-webapp.jar is build using Ant.
To get Ant see (http://jakarta.apache.org/ant/index.html).

To build the tomcat-webapp.jar you have to do the following:

* Edit build.properties to taste. This file is created by ./configure when
  the WebApp module is configured, see below.

* Run "ant". It'll build the tomcat-webapp.jar

* Copy the build/lib/tomcat-webapp.jar in the Tomcat server/lib directory.

好像是说要用ant生成tomcat-webapp.jar然后copy到server/lib
是不是在整合过程中必须要做?我配了一天还是没整合好,apache和tomcat单独运行都没有问题,请大家帮帮我呀!

浏览http://192.168.1.71/examples/时的错误信息:
WebApp: Error 404
(File: /usr/src/jakarta-tomcat-connectors-4.1.12-src/webapp/lib/wa_request.c Line: 205)

--------------------------------------------------------------------------------
Web-application not yet deployed

以下是我的安装过程:

./j2sdk-1_4_1_02-linux-i586-rpm.bin
rpm -ivh j2sdk-1_4_1_02-fcs-linux-i586.rpm
cd /usr/java
ln -s j2sdk1.4.1_02 jdk
cd ~admin
tar zxvf jakarta-tomcat-4.1.12.tar.gz -C /usr/local
cd /usr/local/
ln -s jakarta-tomcat-4.1.2 tomcat
vi /etc/profile
#add profile

PATH=$PATH:/usr/java/jdk/bin:/usr/java/jdk/jre/bin
JAVA_HOME=/usr/java/jdk
CLASSPATH="./:/usr/java/jdk/lib:/usr/java/jdk/jre/lib"
CATALINA_HOME=/usr/local/tomcat

export JAVA_HOME CLASSPATH CATALINA_HOME

#end profile
useradd tomcat
chown -R tomcat:tomcat /usr/local/jakarta-tomcat-4.1.12
cd ~admin
tar zxvf apache_1.3.27.tar.gz -C /usr/src
cd /usr/src/apache_1.3.27/
./configure --prefix=/usr/local/apache --enable-module=so
make
make install
cd ~admin
rpm -Uvh autoconf-2.52-ximian.1.i386.rpm
tar zxvf jakarta-tomcat-connectors-4.1.12-src.tar.gz -C /usr/src
tar zxvf apr-0.9.1.tar.gz -C /usr/src/jakarta-tomcat-connectors-4.1.12-src/webapp/
cd /usr/src/jakarta-tomcat-connectors-4.1.12-src/webapp/
mv apr-0.9.1 apr
support/buildconf.sh
./configure --with-apxs=/usr/local/apache/bin/apxs
make
cp apache-1.3/mod_webapp.so /usr/local/apache/libexec
vi /usr/local/apache/conf/httpd.conf
#add httpd.conf
LoadModule webapp_module libexec/mod_webapp.so
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples
#end httpd.conf
su - tomcat -c "/usr/local/tomcat/bin/startup.sh"
/usr/local/apache/bin/apachectl start

论坛徽章:
0
2 [报告]
发表于 2003-03-01 17:03 |只看该作者

tomcat和apache整合时是不是需要tomcat-webapp.jar这个文件?

http://www.faqchest.com/prgm/tomcat-l/tmct-02/tmct-0211/tmct-021104/tmct02110307_13404.html

Hi everybody

I have one problem with integration Tomcat to Apache
I cant find tomcat-webapp.jar file
Probably there is some error but i don't know where to search it.
I installed J2SDK1.4.1
I installed Tomcat 4.1.12 form binares - it works witout porblems
I installed ant-1.5.1
I installed apr 0.9.1 - as I understand this module isn't nessesary for
compiling of tomcat-webapp.jar.
I've done all task that described in readme.txt for webapp
but didn't recieve the results
javac: some input files use or override a deprecated API - what does it
mean?

I've done the same with Tomcat 4.0.6,
I didn't received that last message but I also didn't find tomcat-webapp.jar

Where is my problem?

但是也没有答案。。。这方面资料好像很少呀

论坛徽章:
0
3 [报告]
发表于 2003-03-01 17:32 |只看该作者

tomcat和apache整合时是不是需要tomcat-webapp.jar这个文件?

昏~~~~~~~~~
/usr/local/tomcat/conf/server.xml 文件中

  <Service name="Tomcat-Apache">;

    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
     port="8008" minProcessors="5" maxProcessors="75"
     enableLookups="true" appBase="webapps"
     acceptCount="10" debug="0"/>;

    <Engine className="org.apache.catalina.connector.warp.WarpEngine"
     name="Apache" debug="0">;

      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="apache_log." suffix=".txt"
              timestamp="true"/>;

      <Realm className="org.apache.catalina.realm.MemoryRealm" />;

    </Engine>;

  </Service>;

这段默认是被注释掉的。。。没注意。。。

去掉后就正常了,这帖子就算灌水了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP