servlet解析不出来解决方法(is not a known servlet. Servlets belong in the classpath, often in WEB-INF/classes)
来源:互联网 发布:大数据与统计新思维 编辑:程序博客网 时间:2024/06/05 18:18
‘’is not a known servlet. Servlets belong in the classpath, often in WEB-INF/classes.
面对这种情况,本人解决的方法,目前有两个,陆续更新中。。。
1.查看自己的web.xml文件,开始有段这样的话
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/j2ee" -------------------------------》这里原来是javaee ,将其改为j2ee。
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
基本上是解决了。如果还是提示有问题。
2.查看自己的servlet路径,也是在web.xml中
<servlet>
<servlet-name>AjaxServer</servlet-name>
<servlet-class>servlet.AjaxServer</servlet-class>---------------------》一定要对应自己的类得路径。
</servlet>
目前我经过这两部检查都解决了。希望帮到你们。
- servlet解析不出来解决方法(is not a known servlet. Servlets belong in the classpath, often in WEB-INF/classes)
- Servlet 解析出错(is not a known servlet)
- Spring MVC looks for a file named [servlet-name]-servlet.xml in the WEB-INF
- The servlets named [A] and [B] are both mapped to the url-pattern [/servlet/]which is not permitted
- The callback function, ewew, specified in the UIR file, is not a known function. If you are using a
- 解决“libsvm classes not in CLASSPATH”问题
- 解决“libsvm classes not in CLASSPATH”问题
- The Eclipse JDT Core jar is not in the classpath
- Make Tomcat Ignore Servlet in WEB-INF/LIB
- Getting the Requesting URL in a Servlet
- svn: is not known to exist in the repository and is not part o
- is not in the sudoers file解决方法
- is not in the sudoers file解决方法
- is not in the sudoers file解决方法
- Servlet In Web Application
- WEB-INF/servlet/view not found
- WebContent/WEB-INF/lib/readme.txt’ in project ‘xxxxxxxxx’ cannot be read or is not a valid ZIP file解
- [HTTP:101170]The servlet DelServletContextAttr is referenced in servlet-mapping /servlet/DelServlet
- 文件内容查找 find+grep
- 单向链表的反转最简单方法
- CComPtr和CComQIPtr
- Tcp Socket 应用DEMO
- Linux内核学习-字符设备驱动学习(一)
- servlet解析不出来解决方法(is not a known servlet. Servlets belong in the classpath, often in WEB-INF/classes)
- 用NetBeans生成jar文件
- java学习指路---引导你更好的技术之路!
- 【编程语言】android--模拟器如何创建查看sdcard
- 一种基于UDP协议实现P2P智能穿越NAT的方案
- C语言多维数组参数传递问题
- ATL/MFC CImage
- sql server 2005数据库日志无法收缩
- 当SQL数据库日志文件已满,或者日志很大