resin配置SERVLET的问题~急~`
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了resin配置SERVLET的问题~急~`相关的知识,希望对你有一定的参考价值。
我申请了个JSP空间,服务器是resin的,我在自己的机上用TOMCAT测试我的网页没问题,但上传后就有问题了,如下~
500 Servlet Exception
WEB-INF/web.xml:8: `sqlSer.LoginSer' is not a known servlet. Servlets
belong in the classpath, often in WEB-INF/classes.
------------------------------------------------------------------
Resin-3.0.8 (built Tue, 08 Jun 2004 02:25:40 PDT)
*************************
以下是我的web.xml文件
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<servlet>
<servlet-name>XFireServlet</servlet-name>
<servlet-class>org.codehaus.xfire.transport.http.XFireConfigurableServlet</servlet-class>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>LoginSer</servlet-name>
<servlet-class>sqlSer.LoginSer</servlet-class>
</servlet>
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>Zhuce</servlet-name>
<servlet-class>sqlSer.Zhuce</servlet-class>
</servlet>
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>Query</servlet-name>
<servlet-class>sqlSer.Query</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>XFireServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>LoginSer</servlet-name>
<url-pattern>/servlet/LoginSer</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Zhuce</servlet-name>
<url-pattern>/servlet/Zhuce</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Query</servlet-name>
<url-pattern>/servlet/Query</url-pattern>
</servlet-mapping>
</web-app>
****************
声明一下~我的文件结构绝对没问题该有的JAVABEAN和SERVLET文件都有
为什么会出现错误呢,该怎么解决(由于是人家的服务器,我只能在一个人家分配的叫wwwroot的文件夹里操作,我的JSP文件都放在面,上层文件我无法操作)
以上是关于resin配置SERVLET的问题~急~`的主要内容,如果未能解决你的问题,请参考以下文章
急~服务器部署时报错SocketException: No buffer space available