resin解析jsp遇到的問題
本帖最后由 wgh884813 于 2011-04-15 10:18 编辑
各位GGMM
最近在搭建nginx+resin的環境中中,遇到如下問題,麻煩各位大大幫忙分析一下問題出在哪裡了
nginx和resin均已啟動,nginx能將jsp請求提交給resin做處理,但resin無法對nginx發過來的jsp請求進行解析,網頁報‘404 not found’錯誤, '/ was not found on this server',resin/3.1.11
我的排查步驟:
1、檢查了resin的配置文件, <http address="*" port="9080"/>、 <server id="test01" address="192.168.0.51" port="9800"/>和 <web-app id="/" root-directory="/data/efunfun/test/"/>均已經設置,並且程序已存放在/data/efunfun/test/目錄下!
2、通過resin的啟動命令/usr/local/resin/bin/httpd.sh -conf conf/test-resin.conf -server test01 start啟動resin,再通過端口號觀察,resin的9080,9800和6600端口均已正常啟動
3、查看日誌文件
[root@apps out]# tail -f stdout.log
[10:11:07.305] INFO com.caucho.server.cluster.Server resin.root = /usr/local/resin/
[10:11:07.306] INFO com.caucho.server.cluster.Server resin.conf = /usr/local/resin/conf/test-resin.conf
[10:11:07.306] INFO com.caucho.server.cluster.Server
[10:11:07.437] INFO com.caucho.server.webapp.WebApp WebApp[http://www.efunfun.com] active
[10:11:07.448] INFO com.caucho.server.webapp.WebApp WebApp[http://www.efunfun.com/resin-admin] active
[10:11:07.448] INFO com.caucho.server.host.Host Host[www.efunfun.com] active
[10:11:07.451] INFO com.caucho.server.port.Port hmux listening to apps.efunfun.com:9800
[10:11:07.454] INFO com.caucho.server.port.Port http listening to *:9080
[10:11:07.462] INFO com.caucho.server.cluster.Server Server[id=test01,cluster=app-tier] active
[10:11:07.463] INFO com.caucho.server.resin.Resin Resin started in 1045ms
均沒發現異常
最近對resin.conf的配置文件進行了精簡,不知道是不是由於精簡了配置裏面的某項設置,導致resin無法對jsp頁面進行解析,下面把配置文件發上來,希望大家幫忙分析一下!
配置文件:
- <resin xmlns="http://caucho.com/ns/resin"
- xmlns:resin="http://caucho.com/ns/resin/core">
- <class-loader>
- <tree-loader path="${resin.home}/ext-lib"/>
- <tree-loader path="${resin.root}/ext-lib"/>
- <tree-loader path="${resin.home}/lib"/>
- <tree-loader path="${resin.root}/lib"/>
- </class-loader>
- <management path="${resin.root}/admin">
- <user name="admin" password="password" disable="true"/>
- </management>
- <log name="" level="info" path="stdout:"
- timestamp="[%H:%M:%S.%s] {%{thread}} "/>
- <logger name="com.caucho" level="info"/>
- <logger name="com.caucho.java" level="config"/>
- <logger name="com.caucho.loader" level="config"/>
- <log name='' level='all' path='/usr/local/resin_logs/test/out/stdout.log' timestamp="[%H:%M:%S.%s] " format=" ${log.level} ${log.loggerName} ${log.message}" rollover-size='10mb'/>
- <dependency-check-interval>2s</dependency-check-interval>
- <cluster id="app-tier">
- <root-directory>.</root-directory>
- <server-default>
- <http address="*" port="9080"/>
- <jvm-arg>-Xmx1024m</jvm-arg>
- <jvm-arg>-Xms1024m</jvm-arg>
- <jvm-arg>-Xmn256m</jvm-arg>
- <jvm-arg>-XX:PermSize=1024M</jvm-arg>
- <jvm-arg>-XX:MaxPermSize=1024M</jvm-arg>
- <jvm-arg>-Xss1m</jvm-arg>
- <jvm-arg>-Xdebug</jvm-arg>
- <jvm-arg>-Dcom.sun.management.jmxremote</jvm-arg>
- <watchdog-jvm-arg>-Dcom.sun.management.jmxremote</watchdog-jvm-arg>
- <watchdog-port>6600</watchdog-port>
- <memory-free-min>1M</memory-free-min>
- <thread-max>1024</thread-max>
- <socket-timeout>10s</socket-timeout>
- <keepalive-max>100</keepalive-max>
- <keepalive-timeout>10s</keepalive-timeout>
- </server-default>
- <!-- define the servers in the cluster -->
- <server id="test01" address="192.168.0.51" port="9800"/>
- <web-app-default>
- <session-config>
- <file-store>WEB-INF/sessions</file-store>
- <enable-url-rewriting>false</enable-url-rewriting>
- </session-config>
- </web-app-default>
- <host-default>
- <access-log path="/usr/local/resin_logs/test/view/test.access.log"
- format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
- rollover-period="1D"/>
- </host-default>
- <host id="test.abcd.com" root-directory=".">
- <host-alias>test.abcd.cc</host-alias>
- <web-app id="/" root-directory="/data/abcd/test/"/>
- <web-app id="/resin-admin" root-directory="${resin.home}/php/admin"/>
- </host>
- </cluster>
- </resin>
复制代码
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论