facebook

Exception when compiling jsp [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #211966 Reply

    Greetings,

    Not all my jsps get tweaked. Just a couple of them… Here is the stack trace that is reported as an error in the eclipse “problems” view.

    Exception during execution: Resource /cccs/.myeclipse/.bje_tmp/WEB$002dINF$/jsp$/admin$/calendar$/_calendar$002ejsp$.java does not exist. – org.eclipse.core.internal.resources.ResourceException: Resource /cccs/.myeclipse/.bje_tmp/WEB$002dINF$/jsp$/admin$/calendar$/_calendar$002ejsp$.java does not exist.
    at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:310)
    at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:178)
    at org.eclipse.core.internal.resources.File.getContents(File.java:255)
    at org.eclipse.core.internal.resources.File.getContents(File.java:246)
    at de.bb.bje.eclipse.IncrementalJspBuilder.compile(Unknown Source)
    at de.bb.bje.eclipse.IncrementalJspBuilder.visit(Unknown Source)
    at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:108)
    at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:55)
    at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:78)
    at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
    at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
    at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
    at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
    at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
    at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
    at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:123)
    at org.eclipse.core.internal.resources.Resource.accept(Resource.java:65)
    at org.eclipse.core.internal.resources.Resource.accept(Resource.java:106)
    at org.eclipse.core.internal.resources.Resource.accept(Resource.java:85)
    at de.bb.bje.eclipse.IncrementalJspBuilder.buildProject(Unknown Source)
    at de.bb.bje.eclipse.IncrementalJspBuilder.fullBuild(Unknown Source)
    at de.bb.bje.eclipse.IncrementalJspBuilder.build(Unknown Source)

    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:564)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
    at org.eclipse.core.runtime.Platform.run(Platform.java:747)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:157)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:249)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:202)
    at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:229)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
    at org.eclipse.core.runtime.Platform.run(Platform.java:747)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:232)
    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:268)
    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:297)
    at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:198)
    at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock$VariableBlockRunnable.setVariables(VariableBlock.java:404)
    at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock$2.run(VariableBlock.java:303)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)

    and here is my jsp:

    <%@ page contentType=”text/html”%>
    <%@ page session=”false” %>
    <%@ taglib prefix=”html” uri=”struts-html” %>
    <%@ taglib prefix=”c” uri=”http://java.sun.com/jsp/jstl/core&#8221; %>
    <%@ taglib prefix=”f” uri=”http://java.sun.com/jsp/jstl/fmt&#8221; %>
    <%@ taglib prefix=”fn” uri=”http://java.sun.com/jsp/jstl/functions&#8221; %>

    <c:import url=”/WEB-INF/jsp/admin/head.jsp”/>

    <c:set var=”monthPattern” value=”MMMM yyyy”/>
    <html:form action=”/admin/calendar”>

    <div align=”center” style=”padding-top: 1em;”>
    <a href=”/admin/calendar.do?dispatch=create&month=${adminCalendarForm.month}&year=${adminCalendarForm.year}&action=”>Add a new event…</a><br><br>
    <center>
    <table border=”0″ width=”90%” cellspacing=”0″>
    <tr>
    <td align=”left” width=”33%”>
    <a class=”previous” href=”?month=${adminCalendarForm.month}&year=${adminCalendarForm.year}&action=previous”><< previous</a>
    </td>
    <td align=”center”>
    <h1>
    <f:formatDate value=”${firstDayOfMonth}” pattern=”${monthPattern}” var=”thisMonthName”/>
    ${thisMonthName}
    </h1>
    </td>
    <td align=”right” width=”33%”>
    <a class=”next” href=”?month=${adminCalendarForm.month}&year=${adminCalendarForm.year}&action=next”>next >></a>
    </td>
    </tr>
    </table>

    <table border=”1″ width=”90%” cellspacing=”0″>
    <thead>
    <tr>
    <th style=”width: 14.25%”>Sun</th>
    <th style=”width: 14.25%”>Mon</th>
    <th style=”width: 14.25%”>Tue</th>
    <th style=”width: 14.25%”>Wed</th>
    <th style=”width: 14.25%”>Thu</th>
    <th style=”width: 14.25%”>Fri</th>
    <th style=”width: 14.25%”>Sat</th>
    </tr>
    </thead>
    <tbody>

    <c:forEach items=”${days}” var=”day” varStatus=”status”>
    <f:formatDate value=”${day}” pattern=”${monthPattern}” var=”dayMonthName”/>
    <f:formatDate value=”${day}” pattern=”MM/dd/yyyy” var=”eventDate”/>

    <c:if test=”${status.index%7 == 0}”>
    <c:if test=”${not status.first}”></tr></c:if>
    <tr>
    </c:if>
    <c:set var=”eventsHtml”>
    <c:forEach items=”${monthlyEvents}” var=”event”>
    <c:if test=”${day == event.eventDate}”><div style=”padding-top: 5px” ><a href=”/admin/calendar.do?dispatch=edit&id=${event.id}&month=${adminCalendarForm.month}&year=${adminCalendarForm.year}”>${event.description}</a></div></c:if>
    </c:forEach>
    </c:set>
    <td valign=”top” style=”height: 10em; padding-left: 0.5em; padding-right: 0.5em;<c:choose><c:when test=”${dayMonthName != thisMonthName}”>background-color: silver;</c:when><c:when test=”${fn:trim(eventsHtml) != ”}”>background-color: CCFFFF;</c:when></c:choose>”>
    <h1><f:formatDate value=”${day}” pattern=”d”/></h1> <c:if test=”${dayMonthName == thisMonthName}”><a href=”/admin/calendar.do?dispatch=create&eventDate=${eventDate}&month=${adminCalendarForm.month}&year=${adminCalendarForm.year}”>Add event</a></c:if>
    ${eventsHtml}
    </td>
    </c:forEach>
    </tbody>
    </table>
    </center>
    </div>
    </html:form>

    <c:import url=”/WEB-INF/jsp/admin/foot.jsp”/>

    got any ideas,
    Brandon Goodin

    #211982 Reply

    Riyad Kalla
    Member

    Is your web spec set to 2.4 and you are using JSP 2.0 functionality? That might be why (we don’t support it yet).

    #211997 Reply

    Yes it is 2.4/2.0. But, other pages compile in all my other projects. Hmm. Well, is there a timeline on 2.4/2.0 support? I’m using the most recent 3.8 beta 2. In your feature spec you say, “Support for JSP 2.0 expression language”. So, i assumed everything else was in place. 2.4/2.0 support seems pretty darn essential. When do you plan on supporting it?

    #212002 Reply

    Riyad Kalla
    Member

    When do you plan on supporting it?

    Actually in a few days with 3.8 GA comes out, sorry for the inconvenience.

    #212003 Reply

    Riyad Kalla
    Member

    Brandon I would like to close this, if this still doesn’t work after GA please post and let me know and I’ll reopen this.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Exception when compiling jsp [Closed]

You must be logged in to post in the forum log in