开发者社区> 问答> 正文

resin启动报错。。求高手指点?报错

配置文件是从resin2上复制下来的,现在的版本是rensin3,代码如下:

<!-- 2013-11-15 begin(www.tsa.cn) -->
<host id='tsa.cn,www2.tsa.cn,www.tsa.cn,cntsa.cn,www.cntsa.cn,www2.cntsa.cn,172.18.140.3,124.93.228.125,www.tsa.com.cn,tsa.com.cn'>


   <!-- <root-dir>/usr/local/web_root/www.tsa.cn</root-dir> -->


     <access-log path='/data/app-log/web_root/www.tsa.cn/app/logs/www.tsa.cn-access.log'
          format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
          />


     <error-log path='/data/app-log/web_root/www.tsa.cn/logs/www.tsa.cn-error.log'
          
          format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
          />
     <stdout-log path='/data/app-log/web_root/www.tsa.cn/logs/www.tsa.cn-stdout.log'
       
          format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
          />
     <stderr-log path='/data/app-log/web_root/www.tsa.cn/logs/www.tsa.cn-stderr.log'
         
          format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
          />


      <directory-servlet>none</directory-servlet>


      <web-app id='/'>
          <app-dir>data/app/tsaweb</app-dir>
          <multipart-form enable='true'  />
          <welcome-file-list>index.vm</welcome-file-list>
      </web-app>
      


      <web-app id='/csc'>
          <app-dir>data/app/theme/csc</app-dir>
          <multipart-form enable='true'  />
          <welcome-file-list>index.html</welcome-file-list>
      </web-app>


     <web-app id='data/zscq'>
         <app-dir>data/app/theme/bztheme/</app-dir>
         <welcome-file-list>bz2008.vm</welcome-file-list>
         <multipart-form enable='true'  />
     </web-app>


  </host>


<!-- 2013-11-15 end -->
<!-- 2013-11-18 begin(unitrust.com.cn) -->
 <host id='unitrust.com.cn,www2.unitrust.com.cn,www.unitrust.com.cn,unitrust.com,www.unitrust.com,www2.unitrust.com,utca.cn,www2.utca.cn,www.utca.cn,unitrust.cn,www2.unitrust.cn,www.unitrust.cn,utca.com.cn,www2.utca.com.cn,www.utca.com.cn,unitrust.org,www2.unitrust.org,www.unitrust.org,unitrust.org.cn,www2.unitrust.org.cn,www.unitrust.org.cn'>
     <root-dir>/data/app/2006unitrust.dl.cn</root-dir>
      <directory-servlet>none</directory-servlet>
<access-log path='/data/app-log/web_root/unitrust.com.cn/logs/unitrust.com.cn-access.log'
          format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
          />
     <error-log path='/data/app-log/web_root/unitrust.com.cn/logs/unitrust.com.cn-stderr.log'
          format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
          />
     <stdout-log path='/data/app-log/web_root/unitrust.com.cn/logs/unitrust.com.cn-stdout.log'
          format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
          />



报错:

conf/resin.conf:352: <error-log> is an unexpected tag (parent <host> starts at 341).


350:
351:           format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
352:           />
353:      <stdout-log path='/data/app-log/web_root/www.tsa.cn/logs/www.tsa.cn-stdout.log'
354:


<host> syntax: ( (@id | @regexp | <regexp>)?
               & (@host-alias | <host-alias>)*
               & (@host-alias-regexp | <host-alias-regexp>)*
               & (@host-name | <host-name>)?
               & (@root-directory | <root-directory>)?
               & (@secure-host-name | <secure-host-name>)?
               & <authenticator>*
               & <bean>*
               & (@case-insensitive | <case-insensitive>)?
               & (@character-encoding | <character-encoding>)?
               & <class-loader>*
               & <component>*
               & <connection-factory>*
               & <connector>*
               & <database>*
               & <database-default>*
               & <dependency>*
               & (@dependency-check-interval | <dependency-check-interval>)?
               & <ejb-message-bean>*
               & <ejb-server>*
               & <ejb-stateful-bean>*
               & <ejb-stateless-bean>*
               & <env-entry>*
               & <grant>*
               & <rcore:import>*
               & <interceptor>*
               & <rcore:include>*
               & <javac>?
               & <jms-connection-factory>*
               & <jms-queue>*
               & <jms-topic>*
               & <jndi-link>*
               & <log>*
               & <logger>*
               & <log-handler>*
               & <mail>*
               & <persistence-manager>*
               & <reference>*
               & <remote-client>*
               & <resource>*
               & <resource-adapter>*
               & <resource-default>*
               & (<rar-deploy> | <resource-deploy>)*
               & <scheduled-task>*
               & <stderr-log>?
               & <stdout-log>?
               & <system-property>*
               & (@temp-dir | <temp-dir>)?
               & <web-service-client>*
               & (@work-dir | <work-dir>)?
               & (<rcore:log> | <rcore:message>)*
               & <rcore:set>*
               & <rcore:include>*
               & <rcore:env>*
               & <rcore:if>*
               & <rcore:choose>*
               & <access-log>?
               & <application>*
               & (@document-directory | <document-directory>)?
               & <ear-default>*
               & <ear-deploy>*
               & <error-page>*
               & (@lazy-init | <lazy-init>)?
               & (@redeploy-check-interval | <redeploy-check-interval>)?
               & (@redeploy-mode | <redeploy-mode>)?
               & <rewrite-dispatch>?
               & (@startup-mode | <startup-mode>)?
               & <web-app-deploy>*
               & <web-app-default>*
               & <web-app>*
               & <rcore:env>*
               & <rcore:if>*
               & <rcore:choose>*)



求问应该怎么配置。。拜托各位大神。。。

展开
收起
爱吃鱼的程序员 2020-06-22 14:12:34 419 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    不能直接用resin2的配置。在resin3上面修改吧。现在都resin4了,还在用N年前2的配置。。。无语路过

    2020-06-22 14:12:51
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载