- 论坛徽章:
- 33
|
将程序包发布到weblogic8.1上,现将web.xml和weblogic.xml贴上,看看问题出在那里了,个人感觉出在路么下了,可是就是不明白,我的index.jsp在目录下,而index.html在portal下,为什么登陆提示如下报错呢:
Error 404--Not Found
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.5 404 Not Found
The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
-->
<web-app>
<display-name>beta</display-name>
<description>test系统</description>
<context-param>
<param-name>daoType</param-name>
<param-value>jdbc</param-value>
</context-param>
<context-param>
<param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
<param-value>ApplicationResources</param-value>
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext-*.xml</param-value>
</context-param>
<filter>
<filter-name>encodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>GBK</param-value>
</init-param>
<init-param>
<param-name>forceEncoding</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter>
<filter-name>rzfilter</filter-name>
<filter-class>com.jtpsoft.webapp.filter.RzFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>encodingFilter</filter-name>
<url-pattern>*.html</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>encodingFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>encodingFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>rzfilter</filter-name>
<url-pattern>/menu/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
</listener>
<listener>
<listener-class>com.jtpsoft.webapp.listener.StartupListener</listener-class>
</listener>
<listener>
<listener-class>com.jtpsoft.webapp.listener.RzListener</listener-class>
</listener>
<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>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet>
<servlet-name>appinitservlet</servlet-name>
<servlet-class>com.jtpsoft.AppInitServlet</servlet-class>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
weblogic.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
<weblogic-web-app>
<jsp-descriptor>
<jsp-param>
<param-name>keepgenerated</param-name>
<param-value>true</param-value>
</jsp-param>
</jsp-descriptor>
<container-descriptor>
<session-monitoring-enabled>true</session-monitoring-enabled>
</container-descriptor>
<context-root>/portal</context-root>
</weblogic-web-app>
那位高人帮看看,我不是搞网页中间件的,现在是公司发来一个网站系统,我现在需要布署在这个上面,可是总是提示这个出错,不知道问题出在那里了,总感觉路径那里不对,也就是weblogic.xml里
</container-descriptor>
<context-root>/portal</context-root>
</weblogic-web-app>
上述路径怎么给,比方说我的整个程序包文件夹名wangzhan放在盘符的根目录下,如f:/wangzhan.而index.jsp在f:/wangzhan/index.jsp ,而index.html在f:/wangzhan/portal/index.html,怎么改上述两个文件,急!
[ 本帖最后由 wfcjz 于 2009-12-27 13:03 编辑 ] |
|