- This topic has 1 reply, 2 voices, and was last updated 19 years, 9 months ago by Riyad Kalla.
-
AuthorPosts
-
quangdogMemberI have been crawling all over the forums looking for an answer on this, but found nothing directly relevant. Here is the situation:
I have recently begun a new job wherein I am required to continue development for an existing jsp/servlet based product. This is my first exposure to jsp in several years (I’m coming from a php/WebObjects environment). I do have a pretty solid understanding of how jsp/servlet development works though. 😉
I am using OS X, , Eclipse 3.0.1, ME 3.8.4. (all the latest stable versions)
Here is the history: When I started here, I set up my dev environment following several guides/tutorials I found online. The tutorial I found for Tomcat directed me to install the latest stable version – aka 5.x series. I blindly followed, as I was unaware that our product here was written for Tomcat 4. After getting ME and Tomcat 5 all set up on my powerbook, I tried to get our application working in my local environment. After pulling my hair for a day, I discovered that all our prod/test environments are running Tomcat 4, and (at least for our app) this makes a big difference. So I removed Tomcat 5 and installed Tomcat 4 instead. (the Tomcat install was done by simply unpacking the Tomcat download into /usr/local/jakarta…. then creating a symlink from /usr/local/tomcat to whichever installation of Tomcat I wish to use.
Getting Tomcat 4 installed allowed the application to start and run just fine, and I have set up my deploy tool to correctly deploy in real time as I edit, so changes I make in the .jsp or .java sources are reflected immediately, and correctly.
However – I have 2 problems: I cannot use any breakpoints in any of my .jsp files, and the .jsp editor slows down over time.
Let me explain what I mean with the second one… when I first open a file, the response time for typing in the editor is very good – nearly instantaneous. However, as soon as I begin typing, it b e g i n s t o b e c o m e …. unresponsive. I have had times where it literally takes 5 seconds for a keystroke to show up.
I type about 80+ wpm whilst coding, so this produces quite a lag. 🙁
I assumed it had to do with the validation of the jsp, so I went to both the overall settings for MyEclipse as well as the project specific settings and switched off all the validation – unfortunately I STILL get validation markers in my .jsp files. Additionally, when I choose “Remove All Validation Markers” from the contextual menu of my project, no markers are actually removed… In the file I still get squiggly underlines. 🙁
With respect to the breakpoints failing, I have double checked, and Tomcat should be compiling my .jsp files with debugging enabled:
<Context path="/btb" docBase="/home/btb/webapp" debug="1" privileged="true" workDir="/home/btb/webwork" />
Any help would be great.
Thanks!
— Kimball
Riyad KallaMemberHowever – I have 2 problems: I cannot use any breakpoints in any of my .jsp files,
Correct, your app server must support JSR 45 spec for JSP debugging, unfortunately this didn’t happen until Tomcat 5.
I assumed it had to do with the validation of the jsp, so I went to both the overall settings for MyEclipse as well as the project specific settings and switched off all the validation
You are right about the cause, you can turn this off by going to Window > Prefs > MyEclipse > Editors > Common Editor Settings > “Analyze content while typing” (it’s the last checkbox, I’m doing this from memory). That will turn off the real-time code analysis that IS quite expensive.
-
AuthorPosts