开发者

Jsp page java.lang.ClassNotFoundException: javax.servlet.Servlet

开发者 https://www.devze.com 2023-03-08 10:19 出处:网络
I\'m an intern in Java development and I\'m stuck with a problem on my jsp page when I run my project I got this exception :

I'm an intern in Java development and I'm stuck with a problem on my jsp page when I run my

project I got this exception :

GRAVE: "Servlet.service()" for the servlet LinkedServlet has generated an exception java.lang.ClassNotFoundException: javax.servlet.Servlet

here is the code of my jsp :

<%@page import="com.hp.hpl.jena.query.*"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page isELIgnored="false"%>
<html>
<body开发者_开发技巧>
    <p>
        <c:forEach var="cate" items="${defaultResult}">
      ${cate}
     </c:forEach>
    </p>
</body>
</html>

If you have any idea to solve this problem it would be very helpful.

Thank in advance

Cyr


Sounds like the servlet.jar or javaee.jar is not in your CLASSPATH. What servlet/JSP engine are you deploying and running with? Find the JAR in your container that has javax.servlet.Servlet in it. Make sure your class loader can see it, too.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号