facebook

JSP Compilation – Any way To Disable?

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #239907 Reply

    Hohlen
    Member

    My J2EE web project has almost 500 JSPs so it takes Eclipse forever to compile them all (~20 minutes). Is there anyway to byppass or disable Eclipse compiling my JSPs? I’m guessing this issue has been raised before, but I couldn’t find anything on the forums. So my apologies if I’m being redundant.

    Here’s some info about my situation. I using MyEclipse 3.8.4. We’ll be migrating to 4.0 in the next month or so. I’m actually running on my desktop in exploded format, so I don’t even want Eclipse to try and compile my JSPs. I’d rather let my container (WebLogic) compile each JSP when it gets hit for the first time. My team is taking a huge productivity hit because of this.

    Also, does anyone know where the JSPs are actually compiled to? That’s my other issue. MyEclipse isn’t compiling to my deployment folder (WEB-INF/classes) so I end up compiling each JSP twice. Auugggghhhhh! Is MyEclipse calling the WebLogic JSP compiler? In other words, could I run the JSPs generated by Eclipse in my WebLogic container if I could get Eclipse to put them there?

    Thanks,

    JOHN

    #239925 Reply

    Scott Anderson
    Participant

    You can disable JSP compilation at either the project level or the entire workspace. At the project level, right click on the project in the Package Explorer view and select Properites > MyEclipse Validation. You can then override the workbench settings and turn off JSP validation. The settings for the whole workspace are at Window > Preferences > MyEclipse > Validation; you can turn off the JSP validation there and it will disable it for the workspace.

    Also, does anyone know where the JSPs are actually compiled to?

    They’re compiled into a temporarly location and discarded simply to verfy that they’re syntactically and sematically correct.

    Is MyEclipse calling the WebLogic JSP compiler?

    No, we aren’t because we allow you to deploy in exploded format to many servers simultaneously. Each server will compile the JSPs using their own custom compiler at deployment, as you’ve seen. Our compilation allows you to validate the file without the server running so you don’t get runtime exceptions at first usage. However, we realize that you might have a different work pattern, which you obviously do, so we enable you to easily turn off validation if you like.

    By the way, in release 4.0.3 (upcoming at the present time) the JSP compilation speed has been greatly improved.

    #240076 Reply

    Hohlen
    Member

    Very good! I have a couple of follow-up questions.

    1) When I select “MyEclipe-Validation” for my project, I have to select “Override validation preferences”. After doing that, I can disable all validations. However, if I uncheck “Override validation preferences”, I notice that validation selections remain the same. In other words, they don’t return to their default setting. Is that correct? I alos notice that the “JSP validator” gets a gray check mark where the others all don’t. What does that gray check mean? I’m assuming it means the JSP validation cannot be disabled and will always run when “Override valdation preferences” is deselected.

    2) Is there anyway to turn of the Structured Document and Model Builder? What is that doing exactly because it takes a long time? Whenever I disable it via Project –> Builders, it always comes back like Freddy Krueger.

    Thanks for the help, Scott. Also, I’m happy to hear about the 4.0.3 improvements. I’m guessing the only one JVM is invoked to compile all JSPs instead of invoking a new JVM for each JSP. Is that how the compile time is improved. Just curious.

    #240093 Reply

    Scott Anderson
    Participant

    However, if I uncheck “Override validation preferences”, I notice that validation selections remain the same. In other words, they don’t return to their default setting. Is that correct?

    I don’t see that. When I select override and change the settings and then deselect override the settings return to the workbench global settings, but are grayed-out. This might be a fix that happened after 3.8.4, however, since I’m testing on 4.0.3.

    I alos notice that the “JSP validator” gets a gray check mark where the others all don’t. What does that gray check mean? I’m assuming it means the JSP validation cannot be disabled and will always run when “Override valdation preferences” is deselected.

    That should not be the case and again I’m not seeing it here. When I override the settings I can easily turn JSP validation off, just like all the others.

    2) Is there anyway to turn of the Structured Document and Model Builder?

    No, as this would break both syntax highlighting and content assistance in all the custom editors. It’s simply a background builder that updates syntax / classpath / content assist info when needed. For the editors to work properly, it needs to be there.

    Also, I’m happy to hear about the 4.0.3 improvements.

    Me too. They seem to make a big difference.

    I’m guessing the only one JVM is invoked to compile all JSPs instead of invoking a new JVM for each JSP. Is that how the compile time is improved. Just curious.

    No idea. I just do support. 😉

    #240103 Reply

    Hohlen
    Member

    Thanks for reply. Just a couple of more questions — easy ones, I hope:

    1) If the Structured Document and Model Builder can’t be disabled, why does Eclipse even give you the option? It seems to cause confusion as multiple “Structured Document and Model Builder” entries then appear in the Builders window (the disabled one plus the new one).
    2) Any idea on when MyEclipse 4.0.3 will be released?

    Thanks again,

    JOHN

    #240105 Reply

    Scott Anderson
    Participant

    John,

    1) If the Structured Document and Model Builder can’t be disabled, why does Eclipse even give you the option?

    Because some builders can be and there’s no API to tell the frameworks which cannot be.

    2) Any idea on when MyEclipse 4.0.3 will be released?

    Tomorrow.

    #241113 Reply

    L3COMMS
    Member

    4.0.3 seems to help a little bit, but not as much as I was hoping for. 4.1 makes no difference.

    A project I just inherited at work has 570 java files and 380 jsps. The java files compile in about 5-10 seconds…the jsps take long enough to get a cup of coffee (1.5-2 seconds apiece), 10+ minutes to build the project just can’t be right…

    Disabling the JSP validator is a very temporary solution…

    I am trying to convince some IntelliJ guys to switch to MyEclipse, but this seems to be the show stopper…

    Thanks,
    -Alan

    #242050 Reply

    bookofjames
    Member

    yes, I was really hoping for a faster build time for the JSPs. The Structured Document and Model Builder is taking way too long.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: JSP Compilation – Any way To Disable?

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