'/left.do'中的ServletException:java.lang.ClassNotFoundException:org.apache.jsp.WEB_002dINF.tiles.leftlogged_jsp [英] ServletException in '/left.do': java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.tiles.leftlogged_jsp

查看:192
本文介绍了'/left.do'中的ServletException:java.lang.ClassNotFoundException:org.apache.jsp.WEB_002dINF.tiles.leftlogged_jsp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在将ESAPI集成到登录表单后,我遇到一个渲染问题,并在成功登录后出现错误。

After integrating ESAPI into a login form I am getting a rendering issue and an error after a successful login.

浏览器中生成的错误指出:

The error generated in the browser states:

   javax.servlet.ServletException: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: ServletException in '/left.do': java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.tiles.leftlogged_jsp

服务器的调试日志说明如下:

And the server's debug log states the following:

SEVERE: Servlet.service() for servlet [ActionServlet] in context with path [/FIXED] 
threw exception [javax.servlet.ServletException: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: ServletException in '/left.do': java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.tiles.leftlogged_jsp] with root cause
java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.tiles.leftlogged_jsp

奇怪的是,我在整合时甚至没有碰到任何jsp页面esapi,它在手之前工作。我只修改了几个java页面,但是在成功登录后我现在得到了这个。

The weird thing is, I haven't even touched any jsp pages when integrating esapi, and it worked before hand. I've only modified a couple java pages yet I get this now after a successful login.

如果这将有所帮助,我可以包括两个错误消息。因为我没有修改leftlogged.jsp,而是一个给我的问题,我以为我会包括它,它可能是有帮助的。

There is more to both error messages I can include if it will be helpful. Since I haven't modified the leftlogged.jsp, yet it is the one giving the problems I thought I'd include it as well as it may be helpful.

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
Welcome ${USERNAME}!<br />
<logic:messagesPresent message="false">
  <html:messages id="msg">
    <span class="error"><bean:write name="msg" /></span><br />
  </html:messages>
</logic:messagesPresent>
<logic:messagesPresent message="true">
  <html:messages id="msg" message="true">
    <strong><bean:write name="msg" /></strong><br />
  </html:messages>
</logic:messagesPresent>
Your account balance is <fmt:formatNumber pattern="\$#,##0.00" value="${BALANCE}" />
<br />
<br />
Add Balance:<br />
<html:form method="POST" action="/addbalance">
<table border="0" width="100%">
<tr>
<td class="prompt">Type:</td>
<td class="ui"><html:select property="vendor">
<html:option value="">-- SELECT</html:option>
<html:option value="VISA">VISA</html:option>
<html:option value="MASTERCARD">MASTERCARD</html:option>
</html:select>
</td>
</tr>
<tr>
  <td class="prompt">Number:</td>
  <td class="ui"><html:password property="cc" /></td>
</tr>
<tr>
  <td class="prompt">Amount:</td>
  <td class="ui"><html:text property="amount" /></td>
</tr>
<tr>
  <td colspan="2" class="ui" style="text-align: center"><input type="submit" value="Add" /></td>
</tr>
</table>
</html:form>
<br />
<br />
<a href="<c:url value="/friends.do" />">Friends</a><br />
<a href="<c:url value="/profile.do" />">Profile</a><br />
<a href="<c:url value="/index.jsp" />">CD's</a>
<br />
<br />
<a href="<c:url value="/logout.do" />">Log Out</a>

有人可以向我解释什么是Eclipse不喜欢,因为现在我不知道什么我应该检查一下?

Could someone explain to me what exactly Eclipse is not liking because of right now I'm not sure what I should check out?

更新:我从代码中删除了欢迎和taglibs以外的所有内容,以便leftlogged.jsp如下所示:

UPDATE: I removed everything except the Welcome and taglibs from the code so that the leftlogged.jsp looks as follows:

Welcome ${USERNAME}!<br />

错误消息继续,没有更改。

The error message continues and didn't change any.

任何进一步的想法可能意味着什么错误?

Any further thoughts on what that could possibly mean is wrong?

推荐答案

我有同样的问题(ClassNotFound。 .. WEB_002dINF ...)
我通过删除

I had a same problem (ClassNotFound ... WEB_002dINF ...) I fix it by deleting

<dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>jsp-api</artifactId>
    <version>2.0</version>
</dependency>

从我的pom.xml

from my pom.xml

这篇关于'/left.do'中的ServletException:java.lang.ClassNotFoundException:org.apache.jsp.WEB_002dINF.tiles.leftlogged_jsp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆