- This topic has 3 replies, 2 voices, and was last updated 19 years, 11 months ago by Scott Anderson.
-
AuthorPosts
-
Chris WilderMember– System Setup ——————————-
Operating System and version: XP 5.1 with SP2
Eclipse version: 3.0.1
Eclipse build id: 200409161125
Fresh Eclipse install (y/n): yes
If not, was it upgraded to its current version using the update manager?
Other installed external plugins: none
Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 8
MyEclipse version: 3.8.3
Eclipse JDK version: jakarta-tomcat-5.5.4?
Application Server JDK version: j2eesdk-1_4-windows?
Are there any exceptions in the Eclipse log file? No– Message Body ——————————-
I am new to Elipse and Java, so there is probably something simple I am overlooking.I have built a Web Project with Jsps. I get a good Jsp editor within Eclipse which finds errors. However, even though the first page is generated by the browser, there are several pieces which I notice are different from the tutorial on Jsps.
1. There is no error generated for a line with an error when I save the Jsp.
2. No scriplets are executed.
3. The css style is not used.
4. Debug is not stopping on the line I marked (maybe because it is within a scriplet?).I have read as much as I can find in the forums. The only clue I got was that I changed my Windows Explorer to use NotePad for Jsp files. I would change it to the Eclipse Jsp Editor, but I don’t know what it’s name is (there seem to be a couple edit programs, but none with Jsp).
By the way, in the System Setup above, I wasn’t sure where to find the Jdk versions, so if they are wrong, please let me know what they should be.
Scott AndersonParticipantChris,
1. There is no error generated for a line with an error when I save the Jsp.
First, please be sure you’re starting Eclipse with a full JDK (not a JRE) by modifying the startup alias to add the -vm option like this:
eclipse.exe -vm <path-to-jdk-install-dir>\bin\javaw.exe.
Then ensure that JSP validation is turned on at Window > Preferences > MyEclipse > Validation.
When using our JSP editor (use Open With… > MyEclipse JSP Editor just to be sure), validation errors detected during save are marked in the left margin with a red marker and are also listed in the Problems View, as shown in the “JSP Code Completion and Validation” screenshots here: http://www.myeclipseide.com/ContentExpress-display-ceid-52.html2. No scriplets are executed.
3. The css style is not used.These are purely runtime concerns so it’s likely your project is not set up or deployed correctly to Tomcat. Please see our Web Development and Application Server Quickstarts in the Documentation section here: http://www.myeclipseide.com/ContentExpress-display-ceid-67.html
4. Debug is not stopping on the line I marked (maybe because it is within a scriplet?).
Breakpoints in Java scriptlets are supported on Tomcat as long as a JDK 1.4.1+ JDK is used to launch it. Please see the Application Server Quickstart to ensure your configuration is correct.
To determine what JDK you’re using by default, open a command shell and execute “java -version”. If you don’t know which it is, you’d be better off installing JDK 1.4.2 and ensuring your system uses it instead of some default.
Chris WilderMemberScott,
Thank you for the help. That seems to have fixed my problem. I set a new parameter in my MyEclipse shortcut before the -vmargs: -vmc:\Sun\AppServer\jdk\bin. Now everything goes into debug as expected.
Could you tell me the path and name of the MyEclipse Jsp Editor so that I can change my Explorer default for Jsp files.
Chris
Scott AndersonParticipantChris,
Glad to hear the -vm option did the trick.
Could you tell me the path and name of the MyEclipse Jsp Editor so that I can change my Explorer default for Jsp files.
There’s no separate path for the JSP editor as it runs as part of MyEclipse itself. As a result, there’s really no easy way to add it as the editor for JSP files in the Windows Explorer at the present time.
-
AuthorPosts