CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
山寨机中的战斗机! 程序优化工程师到底对IT界有没有贡献
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Web 开发 >  IIS

iis怎么整合jsp

楼主papayo(papayo)2003-12-02 09:55:09 在 Web 开发 / IIS 提问

请配置过的给出方法好吗?救命  
  我看了教材还是配置不出来啊  
  谢谢 问题点数:0、回复次数:9Top

1 楼wuweijie(无痕)回复于 2003-12-02 10:10:09 得分 0

第一步,安装jdk1.2.2  
  第二步,设置环境变量  
  右键“我的电脑”,选   属性   ->   高级   ->   环境变量  
   
  在“系统变量”处设置如下几个变量:  
   
  A.   CLASSPATH   =d:\jdk\lib\dt.jar;d:\jdk\lib\tools.jar  
   
  B.   JAVA_HOME   =d:\jdk  
   
  C.   在   path   的值中添加   d:\jdk\;d:\jdk\bin;  
   
  第三步,配置resin  
   
  启动服务  
   
  此时请打开浏览器敲入http://127.0.0.1:8080/  
   
   
  在D盘建立   d:\inetpub\wwwroot   和   d:\inetpub\scripts目录  
   
  在internet服务管理器中将主目录指向以wwwroot,再在其下建立一个script目录(目的是将isapi_srun.dll   和   resin.ini   文件复制到里面,),如果原来就有目录,则不必新建,确认其可正常工作就可以了  
   
  关闭iis:先关掉httpd.exe窗口,另一个窗口将自动关掉  
   
  运行:net   stop   w3svc  
   
  拷贝   D:\resin\libexec\isapi_srun.dll   到   D:\Inetpub\scripts   下面  
   
  添加isapi筛选器;  
   
  在   d:\inetpub\scripts   目录下建立   resin.ini   文件,内容如下:  
   
  CauchoConfigFile   d:/resin/conf/resin.conf  
   
  修改   d:\resin\conf\resin.conf:  
   
  寻找“<caucho.com>”,一般是第20行左右,在它下面加入“<iis   priority='high'/>”  
   
  寻找“<doc-dir>doc</doc-dir>”,一般是在第67行左右,把它注释掉:“<!--   <doc-dir>doc</doc-dir>   -->”  
   
  将其上方的“<http-server>”改为“<http-server   app-dir='d:\inetpub\wwwroot'>”  
   
   
  到第178行左右,将  
  <servlet-mapping   url-pattern='*.xtp'   servlet-name='xtp'/>  
  <servlet-mapping   url-pattern='*.jsp'   servlet-name='jsp'/>  
  换成  
  <servlet-mapping   url-pattern='*.xtp'   servlet-name='com.caucho.jsp.XtpServlet'/>  
  <servlet-mapping   url-pattern='*.jsp'   servlet-name='com.caucho.jsp.JspServlet'/>  
  <!--  
  <servlet-mapping   url-pattern='*.xtp'   servlet-name='xtp'/>  
  <servlet-mapping   url-pattern='*.jsp'   servlet-name='jsp'/>  
  -->  
   
  绿色部分删掉也可以,保留原来的是为了和原配置相对照  
   
  安装服务:  
   
  在Dos窗口中执行   d:\resin\bin\httpd   -install   后,弹出一个小窗口提示服务添加成功  
   
   
   
  此时查看控制面板->管理工具->服务,应该已经有“Resin   Web   Server”服务了,找到并手工启动它,只此一次,以后就不用手工启动了  
   
  重启电脑  
   
  第7步应选择d:\inetpub\scripts目录下的isapi_srun.dll  
   
  然后启动当前站点,  
   
   
   
  再查看isapi筛选器,jsp筛选器的优先级应该变为“高”了,如下图。否则重做,直到做对为止  
   
   
   
  设置默认文档:  
   
   
   
  测试jsp程序:  
   
  将下列暗红色代码写入index.jsp文件并存入   d:\inetpub\wwwroot   目录下  
   
  <%@   page   contentType="text/html;charset=gb2312"%>  
  <%  
  int   a=1;  
  int   b=4;  
  %>  
   
  <%=(a+b)%>  
   
  在浏览器中输入:http://10.20.128.20   如果页面上显示“5”,就大功告成了!  
  Top

2 楼hxb74(开心小宝)回复于 2003-12-02 10:32:47 得分 0

这么麻烦啊。Top

3 楼yeno(人在广州)回复于 2003-12-02 11:21:21 得分 0

要不我传一份资料给你,QQ联系:2126422  
  Top

4 楼Dphiwarrior(Jorry_C)回复于 2003-12-02 12:33:43 得分 0

按照   wuweijie(无痕)   的方法设置,我没有设置成功,请问还要注意什么问题吗?Top

5 楼Dphiwarrior(Jorry_C)回复于 2003-12-02 12:43:29 得分 0

papayo你按上面的方法配置了吗?  
  怎么样成功吗?Top

6 楼papayo(papayo)回复于 2003-12-02 17:03:00 得分 0

我的resin.conf是这样的,怎么配置,谢谢  
  <!--  
        -   Resin   3.0   configuration   file.  
      -->  
  <resin   xmlns="http://caucho.com/ns/resin">  
      <!--  
            -   Logging   configuration   for   the   JDK   logging   API.  
          -->  
      <log   name=''   level='info'   path='stdout:'   timestamp='[%H:%M:%S.%s]   '/>  
      <log   name='com.caucho.java'   level='fine'   path='stdout:'  
                timestamp='[%H:%M:%S.%s]   '/>  
      <log   name='com.caucho.loader'   level='config'   path='stdout:'  
                timestamp='[%H:%M:%S.%s]   '/>  
   
      <!--  
            -   For   production   sites,   change   dependency-check-interval   to   something  
            -   like   600s,   so   it   only   checks   for   updates   every   10   minutes.  
          -->  
      <dependency-check-interval>10s</dependency-check-interval>  
   
      <!--  
            -   You   can   change   the   compiler   to   "javac"   or   jikes.  
            -   The   default   is   "internal"   only   because   it's   the   most  
            -   likely   to   be   available.  
          -->  
      <javac   compiler="internal"   args=""/>  
   
      <!--   Security   providers.  
            -   <security-provider>  
            -         com.sun.net.ssl.internal.ssl.Provider  
            -   </security-provider>  
          -->  
   
      <!--  
            -   Configures   threads   shared   among   all   HTTP   and   SRUN   ports.  
          -->  
      <thread-pool>  
          <!--   Maximum   number   of   threads.   -->  
          <thread-max>200</thread-max>  
   
          <!--   Minimum   number   of   spare   connection   threads.   -->  
          <spare-thread-min>25</spare-thread-min>  
      </thread-pool>  
   
      <server>  
          <!--   adds   all   .jar   files   under   the   resin/lib   directory   -->  
          <class-loader>  
              <tree-loader   path="$resin-home/lib"/>  
          </class-loader>  
   
          <!--   The   http   port   -->  
          <http   id=""   host="*"   port="8080"/>  
   
          <!--  
                -   SSL   port   configuration:  
                -  
                -   <http   port="8443">  
                -       <openssl>  
                -           <certificate-file>keys/gryffindor.crt</certificate-file>  
                -           <certificate-key-file>keys/gryffindor.key</certificate-key-file>  
                -           <password>test123</password>  
                -       </openssl>  
                -   </http>  
              -->  
   
          <!--  
                -   The   local   cluster,   used   for   load   balancing   and   distributed  
                -   backup.  
              -->  
          <cluster>  
              <srun   id=""   host="127.0.0.1"   port="6802"   index="1"/>  
          </cluster>  
   
          <!--  
                -   If   starting   bin/resin   as   root   on   Unix,   specify   the   user   name  
                -   and   group   name   for   the   web   server   user.  
                -  
                -   <user-name>resin</user-name>  
                -   <group-name>resin</group-name>  
              -->  
   
          <!--  
                -   Enables/disables   exceptions   when   the   browser   closes   a   connection.  
              -->  
          <ignore-client-disconnect>true</ignore-client-disconnect>  
   
          <!--  
                -   Enables   the   cache  
              -->  
          <cache   path="cache"   memory-size="10M"/>  
   
          <!--  
                -   Sets   timeout   values   for   cacheable   pages,   e.g.   static   pages.  
              -->  
          <web-app-default>  
              <cache-mapping   url-pattern="/"   expires="5s"/>  
              <cache-mapping   url-pattern="*.gif"   expires="60s"/>  
              <cache-mapping   url-pattern="*.jpg"   expires="60s"/>  
          </web-app-default>  
   
          <!--  
                -   Sample   database   pool   configuration  
                -  
                -   The   JDBC   name   is   java:comp/env/jdbc/test  
                -  
                    <database>  
                        <jndi-name>jdbc/mysql</jndi-name>  
                        <driver   type="org.gjt.mm.mysql.Driver">  
                            <url>jdbc:mysql://localhost:3306/test</url>  
                            <user></user>  
                            <password></password>  
                          </driver>  
                          <prepared-statement-cache-size>8</prepared-statement-cache-size>  
                          <max-connections>20</max-connections>  
                          <max-idle-time>30s</max-idle-time>  
                      </database>  
              -->  
   
          <!--  
                -   Default   host   configuration   applied   to   all   virtual   hosts.  
              -->  
          <host-default>  
              <class-loader>  
                  <compiling-loader   path='webapps/WEB-INF/classes'/>  
                  <library-loader   path='webapps/WEB-INF/lib'/>  
              </class-loader>  
   
              <!--  
                    -   With   another   web   server,   like   Apache,   this   can   be   commented   out  
                    -   because   the   web   server   will   log   this   information.  
                  -->  
              <access-log   path='logs/access.log'    
                          format='%h   %l   %u   %t   "%r"   %s   %b   "%{Referer}i"   "%{User-Agent}i"'  
                          rollover-period='1W'/>  
   
              <!--   creates   the   webapps   directory   for   .war   expansion   -->  
              <web-app-deploy   path='webapps'/>  
   
              <!--   creates   the   deploy   directory   for   .ear   expansion   -->  
              <ear-deploy   path='deploy'/>  
   
              <!--   creates   the   deploy   directory   for   .rar   expansion   -->  
              <resource-deploy   path='deploy'/>  
   
              <!--   creates   a   second   deploy   directory   for   .war   expansion   -->  
              <web-app-deploy   path='deploy'/>  
          </host-default>  
   
          <!--   includes   the   web-app-default   for   default   web-app   behavior   -->  
          <resin:include   path="app-default.xml"/>  
   
          <!--   configures   the   default   host,   matching   any   host   name   -->  
          <host   id=''>  
              <document-directory>doc</document-directory>  
   
              <!--   configures   the   root   web-app   -->  
              <web-app   id='/'>  
                  <!--   adds   xsl   to   the   search   path   -->  
                  <class-loader>  
                      <simple-loader   path="$host-root/xsl"/>  
                  </class-loader>  
   
                  <servlet-mapping   url-pattern="/servlet/*"   servlet-name="invoker"/>  
              </web-app>  
          </host>  
      </server>  
  </resin>  
  Top

7 楼Dphiwarrior(Jorry_C)回复于 2003-12-06 10:53:31 得分 0

我的是   resin2.1.6   你是3.0的    
  3.0和2.1的完全不一样了.怎么办?Top

8 楼papayo(papayo)回复于 2003-12-08 20:41:15 得分 0

惨!!!!Top

9 楼wangyilion(西风狼)回复于 2003-12-17 17:37:18 得分 0

GZTop

相关问题

  • 怎么整合IIS 5.1和TOMCAT4.1.12?
  • IIS与Resin整合后,不能访问IIS虚拟目录中的jsp?
  • Tomcat与IIS整合后执行jsp文件找不到服务器
  • 求助:IIS与Tomcat5整合后,却无法通过域名直接访问jsp程序。
  • 关于EJB与JSP整合的问题
  • ★哪有让IIS支持JSP+Beans的东东?怎么使用??
  • 我用iis+Tomcat怎么老下载JSP文件呢?
  • 在IIS加resin中怎么设置JSP的default页呢?
  • 以前用PHP+MYSQL+AHACHE已配置好,现在要运行JSP,整合TOMCAT和APACHE后,APACHE怎么都不启动了?问题出在那里呢??
  • 请问RESIN与IIS如何整合?

关键词

  • resin
  • 文件
  • jdk
  • jsp
  • dll
  • 目录
  • 变量
  • inetpub
  • srun
  • isapi

得分解答快速导航

  • 帖主:papayo

相关链接

  • Web开发类图书

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo