CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Java >  J2EE / EJB / JMS

在linux下在resin中加应用的问题(解决再送300分)

楼主naomaomao(孬毛毛)2003-06-02 23:57:49 在 Java / J2EE / EJB / JMS 提问

我在rh8。0下配置resin,想增加一条应用:  
  <web-app   id='/agehouse'   app-dir='/opt/agehouse'>  
   
  <classpath   id='/opt/agehouse/classes'   compile='true'/>  
   
  <servlet-mapping   url-pattern='/servlet/*'   servlet-name='invoker'/>  
   
    <servlet-mapping   url-pattern='*.xtp'  
                                      servlet-name='com.caucho.jsp.XtpServlet'/>  
    <servlet-mapping   url-pattern='*.jsp'  
                                      servlet-name='com.caucho.jsp.JspServlet'/>  
   
  <welcome-file-list>index.html,index.jsp</welcome-file-list>  
  </web-app>  
   
  增加后,重起resin显示错误:  
  Starting   Resin   on   Mon,   02   Jun   2003   15:53:35   +0800   (CST)  
  conf/resin.conf:102:   app-dir="/opt/agehouse"   is   an   unexpected   attribute   in   <web-app>.   `case-insensitive',   `character-encoding',   `dependency-check-interval',   `distributable',   `document-directory',   `lazy-init',   `strict-mapping',   `temp-dir'   or   `work-dir'   are   expected.  
   
  不知道是什么原因?怎么解决???多谢了  
  此问题的放分帖子地址:  
  http://expert.csdn.net/Expert/topic/1866/1866455.xml?temp=.5580561  
  http://expert.csdn.net/Expert/topic/1866/1866198.xml?temp=.4536859  
  问题点数:0、回复次数:3Top

1 楼leonzhao(灯泡)回复于 2003-06-03 05:55:57 得分 0

不用这样的,你直接将你的war文件copy到webapp目录下,启动resin的时候就自动发布了。  
   
  至于你的错误的主要原因是<web-app   id='/agehouse'   app-dir='/opt/agehouse'>的app-dir是无效的属性,你不能这样写的。Top

2 楼leonzhao(灯泡)回复于 2003-06-03 06:06:34 得分 0

…………说错了  
   
  我升级了我的resin(过去一直在用版本1……)  
   
  这个是正确的参数,你把你整个resin.conf发上来看看吧。Top

3 楼naomaomao(孬毛毛)回复于 2003-06-03 10:03:28 得分 0

<!--  
        -   Temporary   minimal   resin.conf   during   3.0   refactoring.  
      -->  
  <resin   xmlns="http://caucho.com/ns/resin">  
      <!--  
            -   Logging   configuration   for   the   JDK   logging   API.  
          -->  
      <log   name=''   level='info'   path='stderr:'   timestamp='[%H:%M:%S.%s]   '/>  
   
      <!--  
            -   For   production   sites,   change   dependency-check-interval   to   something  
            -   like   60s,   so   it   only   checks   for   updates   every   minute.  
          -->  
      <dependency-check-interval>2s</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=""/>  
   
      <!--  
            -   Sample   database   pool   configuration  
            -   The   JDBC   name   is   java:comp/env/jdbc/test  
          -->  
      <database>  
          <name>jdbc/agehouse</name>  
          <driver-class>com.caucho.jdbc.mysql.Driver</driver-class>  
          <driver-url>jdbc:mysql_caucho://localhost:3306/agehouse</driver-url>  
          <user>root</user>  
          <password>dhdl543</password>  
          <max-connections>100</max-connections>  
          <max-idle-time>30s</max-idle-time>  
      </database>  
   
      <server>  
          <!--   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'/>  
          </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>  
              -->  
   
          <!--  
                -   Default   host   configuration   applied   to   all   virtual   hosts.  
              -->  
          <host-default>  
              <class-loader>  
                  <!--  
                        -   If   true,   the   classloader   order   follows   the   Servlet   spec.  
                        -   If   false,   the   classloader   order   follows   the   JDK   spec.  
                      -->  
                  <servlet-hack>false</servlet-hack>  
   
                  <compiling-loader   path='webapps/WEB-INF/classes'/>  
                  <library-loader   path='webapps/WEB-INF/lib'/>  
              </class-loader>  
   
              <!--   creates   the   webapps   directory   for   .war   expansion   -->  
              <web-app-deploy   path='webapps'/>  
          </host-default>  
   
          <!--   includes   the   web-app-default   for   default   web-app   behavior   -->  
          <resin:include   href="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>  
              </web-app>  
  <web-app   id='/agehouse/'   document-dir='/opt/agehouse/'>  
  <classpath   id='/opt/agehouse/classes'   source='/opt/agehouse/classes'   complie='true'>  
  <servlet-mapping   url-pattern='/servlet/*'   servlet-name='invoker'/>  
  <servlet-mapping   url-pattern='*.xtp'  
                                      servlet-name='com.caucho.jsp.XtpServlet'/>  
    <servlet-mapping   url-pattern='*.jsp'  
                                      servlet-name='com.caucho.jsp.JspServlet'/>  
  <welcome-file-list>index.html,index.jsp</welcome-file-list>  
  </web-app>  
          </host>  
      </server>  
  </resin>  
  Top

相关问题

  • linux如何启动就加载应用程序?
  • linux下发布web应用
  • linux下的mysql应用问题
  • 关于linux在数控系统的应用是否可行?
  • 哪里有linux下的播放.rm格式的应用程序
  • 欢迎大家来聊聊Linux在国内的应用!
  • 为什么针对Linux的应用程序都免费?
  • 怎样在Linux下安装应用软件?
  • 在Linux应用程序模式下如何设置中断!!!
  • Linux下如何卸载应用程序?在线等待!!!!!!

关键词

  • .net
  • resin
  • jdbc
  • agehouse
  • expert
  • dir
  • conf
  • temp

得分解答快速导航

  • 帖主:naomaomao

相关链接

  • CSDN Java频道
  • Java类图书
  • Java类源码下载

广告也精彩

反馈

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