⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 570878.xml

📁 论坛精华帖子
💻 XML
字号:
<?xml version='1.0' encoding='GB2312'?>
<?xml:stylesheet type='text/xsl' href='../csdn.xsl'?>
<Topic>
<Issue>
<PostUserNickName></PostUserNickName>
<rank>一级(初级)</rank>
<ranknum>user1</ranknum>
<credit>110</credit>
<TopicId>570878</TopicId>
<TopicName>请教关于Tomcat+IIS的问题</TopicName>
<PostUserId>43735</PostUserId>
<PostUserName>bequickly</PostUserName>
<RoomName>JSP</RoomName>
<ReplyNum>11</ReplyNum>
<PostDateTime>2002-3-12 15:32:08</PostDateTime>
<Point>100</Point>
<ReadNum>0</ReadNum>
<RoomId>28</RoomId>
<EndState>2</EndState>
<Content>我以前一直是写VC的程序&#32;刚刚有接触JSP&#32;但在按照文档搭建环境时出了一些问题&#32;请大家帮着看看


1.&#32;首先启动Tomcat后会有如下显示:
Catalina.start:&#32;
LifecycleException:&#32;&#32;null.open:&#32;&#32;java.net.BindException:&#32;Address&#32;in&#32;use:&#32;JVM_Bind:8080
LifecycleException:&#32;&#32;null.open:&#32;&#32;java.net.BindException:&#32;Address&#32;in&#32;use:&#32;JVM_Bind:8080
&#32;&#32;&#32;&#32;at&#32;org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1130)
&#32;&#32;&#32;&#32;at&#32;org.apache.catalina.core.StandardService.initialize(StandardService.java:454)
&#32;&#32;&#32;&#32;...
&#32;&#32;&#32;&#32;...
&#32;&#32;&#32;&#32;...
&#32;&#32;&#32;&#32;...
意思是绑定8080端口失败?可是我没呵...&#32;想不通

2.&#32;在没启动Tomcat的情况下也能运行..
例如直接访问&#32;http://localhost:80/examples/jsp/dates/date.jsp&#32;
没任何问题,work下面的确是做了编译的动作...
是不是说只要配置好了ISAPI&#32;Filter后即使不运行Tomcat也可以呢?

3.&#32;我已经在IIS中添加了ISAPI应用程序映射,将.JSP与isapi_redirect.dll绑定在一起
可是Tomcat外的其它目录下的JSP不能被编译&#32;总是显示dnserror
是不是只有在server.xml里面配置过的目录才可以呢?

4.&#32;Tomcat的webapps\examples\目录可以通过http://localhost:80/examples/
根据server.xml里面的配置看webapps\ROOT\应该是http://localhost:80/
可是http://localhost:80/依然是Inetpub\wwwroot下的内容呵...
到底ROOT去哪里了呵?
我能通过配置自己去添加一个目录吗?具体该怎么做呢?


环境是&#32;Tomcat&#32;4.0.2&#32;+&#32;IIS&#32;5(W2K)&#32;+&#32;JDK&#32;1.3.1&#32;(暂时不想考虑其它的搭配了)
先谢谢各位了~~&#32;&#32;^_^

</Content>
</Issue>
<Replys>
<Reply>
<PostUserNickName>宝宝猫</PostUserNickName>
<rank>四级(中级)</rank>
<ranknum>user4</ranknum>
<credit>100</credit>
<ReplyID>3799249</ReplyID>
<TopicID>570878</TopicID>
<PostUserId>193243</PostUserId>
<PostUserName>jimjxr</PostUserName>
<Point>80</Point>
<Content>1.&#32;有人占了8080,是不是已经有一个在运行了?
2.&#32;肯定得运行,但可以以服务形式运行,你看不见。
3.&#32;是的,要么在server.xml里设,要么就必须在webapps下面。
4.&#32;这个ISAPI里面设的,它没把http://localhost:80/传给tomcat。
</Content>
<PostDateTime>2002-3-12 15:48:36</PostDateTime>
</Reply>
<Reply>
<PostUserNickName>柯灵</PostUserNickName>
<rank>一级(初级)</rank>
<ranknum>user1</ranknum>
<credit>100</credit>
<ReplyID>3799259</ReplyID>
<TopicID>570878</TopicID>
<PostUserId>109517</PostUserId>
<PostUserName>sanck</PostUserName>
<Point>20</Point>
<Content>如果你顺利安装好了tomcat,启动windows后它是自动启动的,你可以在管理工具、服务中看到一行Jakarta&#32;Tomcat&#32;&#32;已启动&#32;&#32;&#32;自动,这表明tomcat已经起来,这时再start&#32;tomcat就会出现你所说的问题1。因此,也就出现不用手动启动tomcat可以浏览JSP页面的情况。问题3我不太明白。对于问题4,我想是不是你看错了server.xml内容,应该是http://localhost:8080/。http://localhost:80/examples/恐怕是你Inetpub\wwwroot下的内容吧</Content>
<PostDateTime>2002-3-12 15:49:01</PostDateTime>
</Reply>
<Reply>
<PostUserNickName></PostUserNickName>
<rank>一级(初级)</rank>
<ranknum>user1</ranknum>
<credit>110</credit>
<ReplyID>3799431</ReplyID>
<TopicID>570878</TopicID>
<PostUserId>43735</PostUserId>
<PostUserName>bequickly</PostUserName>
<Point>0</Point>
<Content>1.&#32;我仅安装TOMCAT的时候是没有这个现象的&#32;8080是在配了IIS后才出的问题&#32;没道理呵...
2.&#32;服务里面是没有的&#32;我查过...&#32;大困惑...
3.&#32;谢谢宝宝猫
4.&#32;现在server.xml下面配了3个
&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&lt;Context&#32;path=""&#32;docBase="ROOT"&#32;debug="0"/&gt;
&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&lt;Context&#32;path="/manager"&#32;docBase="manager"&#32;&#32;debug="0"&#32;privileged="true"/&gt;
&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&lt;Context&#32;path="/examples"&#32;docBase="examples"&#32;debug="0"&#32;reloadable="true"&#32;crossContext="true"&gt;
ROOT本来是注释掉的&#32;但我手工加上了...&#32;不过似乎没作用呵</Content>
<PostDateTime>2002-3-12 15:58:22</PostDateTime>
</Reply>
<Reply>
<PostUserNickName>宝宝猫</PostUserNickName>
<rank>四级(中级)</rank>
<ranknum>user4</ranknum>
<credit>100</credit>
<ReplyID>3799760</ReplyID>
<TopicID>570878</TopicID>
<PostUserId>193243</PostUserId>
<PostUserName>jimjxr</PostUserName>
<Point>0</Point>
<Content>12.&#32;这个很像是有服务在运行,是你自己装的吗?照那篇文章装的?
4.&#32;这个是tomcat的配置,你需要配置ISAPI&#32;filter。</Content>
<PostDateTime>2002-3-12 16:15:54</PostDateTime>
</Reply>
<Reply>
<PostUserNickName></PostUserNickName>
<rank>一级(初级)</rank>
<ranknum>user1</ranknum>
<credit>110</credit>
<ReplyID>3800065</ReplyID>
<TopicID>570878</TopicID>
<PostUserId>43735</PostUserId>
<PostUserName>bequickly</PostUserName>
<Point>0</Point>
<Content>12&#32;刚刚又找了一遍&#32;的确是有服务的&#32;不过名字是Apache&#32;Tomcat..&#32;呵呵&#32;=P
&#32;&#32;&#32;我主要是参考\webapps\tomcat-docs\config\ajp.html的后面关于IIS的部分来配置的
&#32;&#32;&#32;这两个问题都PASS了&#32;谢谢二位&#32;^_^

4&#32;ISAPI&#32;filter的配置是指什么呢?
&#32;&#32;我现在期望的效果是访问
&#32;&#32;http://localhost:80/index.jsp&#32;及
&#32;&#32;http://localhost:80/test/index.jsp
&#32;&#32;都能够正常处理...</Content>
<PostDateTime>2002-3-12 16:32:31</PostDateTime>
</Reply>
<Reply>
<PostUserNickName>宝宝猫</PostUserNickName>
<rank>四级(中级)</rank>
<ranknum>user4</ranknum>
<credit>100</credit>
<ReplyID>3800318</ReplyID>
<TopicID>570878</TopicID>
<PostUserId>193243</PostUserId>
<PostUserName>jimjxr</PostUserName>
<Point>0</Point>
<Content>哦,你改uriworkermap.properties就行了,加一个/*.jsp=ajp13就应该可以了,这个文件就是告诉filter那些URL连接应该交给tomcat处理</Content>
<PostDateTime>2002-3-12 16:43:59</PostDateTime>
</Reply>
<Reply>
<PostUserNickName></PostUserNickName>
<rank>一级(初级)</rank>
<ranknum>user1</ranknum>
<credit>110</credit>
<ReplyID>3800483</ReplyID>
<TopicID>570878</TopicID>
<PostUserId>43735</PostUserId>
<PostUserName>bequickly</PostUserName>
<Point>0</Point>
<Content>没效果呵&#32;目前uriworkermap.properties的内容如下
#&#32;***********&#32;Begin&#32;uriworkermap.properties&#32;***
#
#&#32;Simple&#32;worker&#32;configuration&#32;file
#

#&#32;Mount&#32;the&#32;Servlet&#32;context&#32;to&#32;the&#32;ajp13&#32;worker
/servlet/*=ajp13

#&#32;Mount&#32;the&#32;examples&#32;context&#32;to&#32;the&#32;ajp13&#32;worker
/examples/*=ajp13

/*.jsp=ajp13

#&#32;Advanced&#32;mount&#32;of&#32;the&#32;examples&#32;context
#&#32;/examples/servlet/*=ajp13
#&#32;*************&#32;End&#32;uriworkermap.properties&#32;****

访问http://localhost:80/test/index.jsp&#32;dnserror....</Content>
<PostDateTime>2002-3-12 16:51:49</PostDateTime>
</Reply>
<Reply>
<PostUserNickName>宝宝猫</PostUserNickName>
<rank>四级(中级)</rank>
<ranknum>user4</ranknum>
<credit>100</credit>
<ReplyID>3801268</ReplyID>
<TopicID>570878</TopicID>
<PostUserId>193243</PostUserId>
<PostUserName>jimjxr</PostUserName>
<Point>0</Point>
<Content>重起IIS服务进程...</Content>
<PostDateTime>2002-3-12 17:33:08</PostDateTime>
</Reply>
<Reply>
<PostUserNickName></PostUserNickName>
<rank>一级(初级)</rank>
<ranknum>user1</ranknum>
<credit>110</credit>
<ReplyID>3801397</ReplyID>
<TopicID>570878</TopicID>
<PostUserId>43735</PostUserId>
<PostUserName>bequickly</PostUserName>
<Point>0</Point>
<Content>重启过&#32;甚至连TOMCAT我都重启了...</Content>
<PostDateTime>2002-3-12 17:39:35</PostDateTime>
</Reply>
<Reply>
<PostUserNickName>宝宝猫</PostUserNickName>
<rank>四级(中级)</rank>
<ranknum>user4</ranknum>
<credit>100</credit>
<ReplyID>3808866</ReplyID>
<TopicID>570878</TopicID>
<PostUserId>193243</PostUserId>
<PostUserName>jimjxr</PostUserName>
<Point>0</Point>
<Content>faint,我看错了,你是要访问这个连接http://localhost:80/test/index.jsp?还是这个http://localhost:80/index.jsp?上面的配置应该能访问http://localhost:80/index.jsp,如果要访问http://localhost:80/test/index.jsp,你还需要加/test/*.jsp=ajp13</Content>
<PostDateTime>2002-3-13 10:41:30</PostDateTime>
</Reply>
<Reply>
<PostUserNickName></PostUserNickName>
<rank>一级(初级)</rank>
<ranknum>user1</ranknum>
<credit>110</credit>
<ReplyID>3822555</ReplyID>
<TopicID>570878</TopicID>
<PostUserId>43735</PostUserId>
<PostUserName>bequickly</PostUserName>
<Point>0</Point>
<Content>哦&#32;我想我已经搞定了&#32;谢谢二位的帮忙&#32;以后还请多指教&#32;^_^</Content>
<PostDateTime>2002-3-14 10:21:49</PostDateTime>
</Reply>
</Replys>
</Topic>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -