Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Application Server » Other AS  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 一个无法解决的问题,高手请进!~!~!~
ysg0222





发贴: 2
积分: 0
于 2005-10-26 15:47 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
一个无法解决的问题,高手请进!~!~!~

启动resin时就会出现的错误:

503 Unavailable
javax.servlet.UnavailableException: Parsing error processing resource path
/WEB-INF/struts-config.xml
at org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:739)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:715)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:670)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:329)
at javax.servlet.GenericServlet.init(GenericServlet.java:82)
at com.caucho.server.http.Application.createServlet(Application.java:3114)
at com.caucho.server.http.Application.loadServlet(Application.java:3065)
at com.caucho.server.http.Application.initServlets(Application.java:1923)
at com.caucho.server.http.Application.init(Application.java:1849)
at com.caucho.server.http.VirtualHost.init(VirtualHost.java:728)
at com.caucho.server.http.ServletServer.initHosts(ServletServer.java:887)
at com.caucho.server.http.ServletServer.initInternal(ServletServer.java:729)
at com.caucho.server.http.ServletServer.init(ServletServer.java:538)
at com.caucho.server.http.ResinServer.init(ResinServer.java:415)
at com.caucho.server.http.ResinServer.main(ResinServer.java:1176)
at com.caucho.server.http.HttpServer.main(HttpServer.java:103)

我的Struct1.1 是这样的:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>

<!-- ========== Data Source Configuration =============================== -->
<data-sources />

<!-- ========== Form Bean Definitions ================================== -->
<form-beans>
<form-bean name="bugForm" type="net.vschool.buglog.form.BugForm" />
</form-beans>

<!-- ========== Global Exception Definitions ============================== -->
<global-exceptions />

<!-- ========== Global Forward Definitions =============================== -->
<global-forwards>
<forward name="error" path="/include/error.jsp" />
<forward name="nologin" path="/include/no_login.jsp" />
</global-forwards>

<!-- ========== Action Mapping Definitions =============================== -->
<action-mappings>

<action path="/buglog/listBug" type="net.vschool.buglog.action.BugList" scope="request" validate="false">
<forward name="list" path="/buglog/bug_list.jsp" />
</action>
<action path="/buglog/viewBug" type="net.vschool.buglog.action.BugView" scope="request" validate="false">
<forward name="view" path="/buglog/bug_view.jsp" />
<forward name="debug" path="/buglog/bug_debug.jsp" />
</action>
<action path="/buglog/editBug" type="net.vschool.buglog.action.BugAction" scope="request" validate="true" name="bugForm" input="/buglog/listBug.do">
<forward name="list" path="/buglog/listBug.do" />
</action>

</action-mappings>

<!-- ========== Controller Configuration ================================ -->
<controller maxFileSize="200K"/>

<!-- ========== Message Resources Definitions ============================ -->

<!-- ========== Plug Ins Configuration ================================= -->
<message-resources />
</struts-config>

web.xml 是这样的:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>BugLog Application</display-name>
<filter>
<filter-name>CharacterEncodingFilter</filter-name>
<filter-class>net.vschool.web.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>GBK</param-value>
</init-param>
</filter>
<filter>
<filter-name>DirectoryGuarder</filter-name>
<filter-class>net.vschool.web.DirectoryGuarder</filter-class>
</filter>
<filter>
<filter-name>IndexDirector</filter-name>
<filter-class>net.vschool.web.IndexDirector</filter-class>
</filter>
<filter>
<filter-name>DownloadDirector</filter-name>
<filter-class>net.vschool.upload.DownloadDirector</filter-class>
</filter>
<filter>
<filter-name>HibernateFilter</filter-name>
<filter-class>net.vschool.hibernate.HibernateFilter</filter-class>
</filter>

<!-- Action Servlet Configuration -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>

<!-- Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>

<welcome-file-list>
<welcome-file>bug_list.jsp</welcome-file>
</welcome-file-list>

<taglib>
<taglib-uri>/tags/struts-bean</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-html</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-logic</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-logic.tld</taglib-location>
</taglib>
</web-app>


急需帮助,请大侠们给提提意见!~!~!~




为什么这个Applet不能在浏览器显示啊?

话题树型展开
人气 标题 作者 字数 发贴时间
19670 一个无法解决的问题,高手请进!~!~!~ ysg0222 5649 2005-10-26 15:47
17100 Re:一个无法解决的问题,高手请进!~!~!~ 256456 116 2005-10-29 03:20

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923