- This topic has 14 replies, 3 voices, and was last updated 20 years, 5 months ago by
Riyad Kalla.
-
AuthorPosts
-
kulkarni_ashMemberHi
i am working a on a web application, some how the jsp are not compiled and i also dont see any messages in Problems tabAshish
January 19, 2005 at 2:26 pm #223138
Riyad KallaMember1) Make sure Project > Build automatically is checked
2) Make sure you have Validation turned on for JSP pages (Window > Prefs > MyEclipse > Validation > JSP Validation)
3) If you override the workbench-wide validation settings with individual project settings, be sure to double check your project properties “MyEclipse-Validation” to either turn on JSP validation or set to “use workbench settings”.January 22, 2005 at 8:47 am #223331
benedekMemberHello!
I just try MyEclipse, but I have met the same problem (Ec 3.0.1 + MyE 3.8.3). No red X on the left side of the editor, nor in Problems about JSP-s. 1) checked 2) turned on, just for testing (3) I tried with overwrite and checked in the project settings too. 😥
Thx
BenedekJanuary 22, 2005 at 9:20 am #223333
Riyad KallaMemberBenedek,
Make sure the view you are looking at is labelled “Package View” and not “Navigation View”, the navigation view will not show you error markers. Also try and rebuilt your project. (Project > Clean)January 22, 2005 at 12:07 pm #223339
benedekMemberHi again,
I did both, the fact is:
1) In the package explorer the markers are only signs html errors, if they are none no markers.
2) Java/JSP error markers are only on the editor right side, no red X or yellow ! on the left. (Def stupid errors like int z = “aaaa”; shows red marker only on the right side)
3) In Problems only the errors/warnings from 1) appears.January 22, 2005 at 12:10 pm #223340
Riyad KallaMember2) Java/JSP error markers are only on the editor right side, no red X or yellow ! on the left. (Def stupid errors like int z = “aaaa”; shows red marker only on the right side)
Let’s fix this first, please close down MyEclipse, edit the shortcut you use to launch it and add the -vm argument, point it at a JDK install (not a JRE install) of java.exe or javaw.exe, e.g.:
eclipse.exe -vm c:\j2sdk1.4.2_06\bin\javaw.exe -vmargs -Xms128m -Xmx256m
The JSP validator will fail if it can’t find javac to compile the JSP page with.
January 22, 2005 at 2:16 pm #223346
benedekMemberFirst I tried this solution, but didn’t work, the I uninstalled everything, and started again. Put everything outside of the “Program files” just ’cause of the space. After the clean install the symptoms were the same. After this, I modified the shortcut, now it WORKS. 🙂 Errors show in the problems too 🙂
Only thing is not perfect: warning for <%@ page language=”java” import=”java.util.*” %> The import … never used, has no yellow ! right side, and no warning in problems 🙂 But I can live without it 🙂
Thanks for your help.
January 22, 2005 at 2:23 pm #223348
Riyad KallaMemberwarning for <%@ page language=”java” import=”java.util.*” %> The import … never used
Are you sure it isn’t being used? Paste your page contents here so I can try them locally.
and no warning in problems 🙂
Reconciler messages (right-hand margin markers) are not shown in the problems view. This is on par with how the Java Editor is written as well in Eclipse.
January 22, 2005 at 2:38 pm #223349
benedekMember<%@ page language=”java” import=”java.util.*” %>
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head>
<title>My JSP ‘Test.jsp’ starting page</title>
<!–
<link rel=”stylesheet” type=”text/css” href=”styles.css”>
–>
</head>
<body>
This is my JSP page. <br>
</body>
</html>I’m pretty sure 🙂 nearly default JSP page, a bit less 🙂
January 22, 2005 at 3:23 pm #223350
Riyad KallaMemberIt is marked OK over here… what version of MyEclipse are you using? Are you sure “MyEclipse JSP Editor” is the editor you are opening the JSP file with? Try closing and reopening it.
January 22, 2005 at 3:51 pm #223351
benedekMember3.8.3. yes, im sure. Tried. Small yellow box on the right only. When I move the mouse over it, it says:
The import java.util is never used (in file: “java.util.*”)
January 22, 2005 at 4:37 pm #223353
Riyad KallaMemberTried. Small yellow box on the right only.
Bah, this is what is suppose to happen, your original statement was:
The import … never used, has no yellow ! right side
which I interpreted as “there is no yellow mark on the right side”.
What you are experiencing is the correct behavior, as I mentioned, reconciler errors are not shown in problems view.
January 22, 2005 at 4:58 pm #223354
benedekMemberOk 🙂 Thx, sorry for misunderstanding.
January 27, 2005 at 4:20 pm #223730
kulkarni_ashMemberHi
afer addingeclipse.exe -vm c:\j2sdk1.4.2_06\bin\javaw.exe -vmargs -Xms128m -Xmx256m
it works thnax
January 27, 2005 at 6:25 pm #223744
Riyad KallaMemberGlad to hear it.
-
AuthorPosts