facebook

strange error in jsp [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #210577 Reply

    nsong
    Member

    I’m getting the following errors when I try to compile a Web Module project. I’m currently using Eclipse 3.0 on Windows 2k with MyEclipse Beta 2.0. The error refers to the file breadcrumbs.jsp, which uses JSTL 1.1 and a custom tag lib.

    ————————————————————————————–
    Severity Description Resource In Folder Location Creation Time
    2 Exception during execution: Resource /ti/.myeclipse/.bje_tmp/_breadcrumbs$002ejsp$.java does not exist. – org.eclipse.core.internal.resources.ResourceException: Resource /ti/.myeclipse/.bje_tmp/_breadcrumbs$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:252)
    at org.eclipse.core.internal.resources.File.getContents(File.java:243)
    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.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.action.RecompileJspsAction.basicRun(Unknown Source)
    at com.genuitec.eclipse.core.ui.action.LicenseValidatingAction.run(Unknown Source)
    at com.genuitec.eclipse.core.ui.action.LicenseValidatingAction.run(Unknown Source)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:276)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866)
    at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2732)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2398)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1362)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1333)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:252)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:334)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:272)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:128)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
    at org.eclipse.core.launcher.Main.run(Main.java:638)
    at org.eclipse.core.launcher.Main.main(Main.java:622)
    breadcrumbs.jsp ti/WebRoot July 21, 2004 6:07:17 PM
    ————————————————————————————-

    There are also these errors, but they occur in different files and I think the reason is that MyEclipse doesn’t support JSP 2.0 and the “tagdir” attribute is a 2.0 feature (correct me if I’m wrong) :

    ——————————————————————————
    Severity Description Resource In Folder Location Creation Time
    2 unexpected tagdir=”/WEB-INF/tags” parametricTable.jsp ti/WebRoot line 5 July 21, 2004 6:07:12 PM

    2 unexpected tagdir=”/WEB-INF/tags” standardTable.jsp ti/WebRoot line 5 July 21, 2004 6:07:07 PM
    ——————————————————————————-

    I’ve tried creating a fresh project, but that didn’t seem to help. Any help is appreciated. Thanks.

    -NS

    #210584 Reply

    Riyad Kalla
    Member

    Can you give us the version of MyEclipse you are using? Help > About and click on the MyEclipse icon.

    Also you are correct about the tagdir/JSP 2.0 issue. Let’s first figure out your MyEclipse version and then we’ll troubleshoot the JSP compiling issue (which is indeed weird).

    #210592 Reply

    nsong
    Member

    I’m using 3.8 beta 2. In any case, I found the code snippet (only relevant portions included) causing the problem, but not the solution

    
    <c:forEach items="${dimList}" var="dim">
    <c:forEach items="${dim.ancestors}" var="anc" varStatus="status">
    ...
    </c:forEach>
    ...
    <c:set var="lastAnc" value="${anc}" />
    </c:forEach>
    

    Specifically, the line causing the issue is <c:set var=”lastAnc” value=”${anc}” />. I’m 99.9% sure it’s this line and only this line since taking it out makes the error go away. In addition, I found the error by incrementally cutting and repasting sections of the page until the error popped up (i.e., until I pasted the above line). I’m wondering if this is another JSP 2.0 issue.

    #210593 Reply

    Riyad Kalla
    Member

    Is it just me, or are you closing your inner forEach that defines the “anc” variable, and then doing the set?

    I’m not farmiliar with JSTL and the forEach construct, so it may be a persistent declaration, but if its not, then that might be one of the problems. The other being that we don’t support JSTL 1.1 or JSP 2.0 yet.

    #210682 Reply

    nsong
    Member

    I believe that the default scope in JSP is “page”, so any declared variables are available to the page as a whole. In any case, just before the mentioned line, I have this line <c:out value=”${anc.name}” escapeXml=”false” />, again outside of the inner forEach, and it doesn’t cause any errors. It seems to only be <c:set> line.

    #210732 Reply

    Riyad Kalla
    Member

    I just got this back from our developer that works on the JSP editor:

    The first issue about “tagdir” is a JSP 2.0 issue.
    The 2nd thing is not reproducable, so his examples work without problems.

    And we never determined what version of ME you were running.

    #211406 Reply

    Roman Sykora
    Member

    nsong

    i had a similar problem compiling jsp’s during a full build. the stacktrace in <WORKSPACE_LOC>/.metadata/.log was of great help, since after inspecting the stacktrace it turned out the error was a ClassNotFound exception. The jsp compiler complained, which was absolutely corrext, that it couldn’t find a certain SAX class. After adding the required jar to the build path the jsp compiler worked as axpected. To emphasize that, the jar is only needed by the jsp compiler, since the webproject found it in the ear all the time (I enabled jsp compiling not until the new eclipse/myeclipse installation) .

    maybe this helps

    Regards
    Roman Sykora

    #211409 Reply

    Riyad Kalla
    Member

    syro,
    Thank you for the additional information, I think it will be very helpful to many of our users.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: strange error in jsp [Closed]

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