facebook

JSP precompile not working

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

    Dean Schulze
    Member

    I’m using 3.0M6 with MyEclipse 3.07RC2 on Win2000 professiona. I have JSP precompile turned on. It doesn’t seem to do anything, though. I can type in any junk I want to in a scriptlet with no indication of any problem.

    Is there something else I need to do to activate JSP precompile?

    #203283 Reply

    Riyad Kalla
    Member

    two things to check:

    1) If you right click on your JSP files and go to “Open With”, is the default editor “MyEclipse JSP Editor”?
    2) Window>Prefs>MyEclipse>Editors>JSP/HTML>”JSP Compile Behavior”, select “Compile JSPs”

    Are you still having problems after doing both of these things?

    #203290 Reply

    Dean Schulze
    Member

    Yes. Both of those things are true and JSPs are not being compiled.

    #203295 Reply

    Riyad Kalla
    Member

    Are you in the MyEclipse perspective and is your project a “Web Module Project”, or is it a regular Java Project? (the folder icon for your project will have a little world super imposed on the top corner of it if its a web project).

    Right click on your projects node and see if you have any “MyEclipse-Web” nodes that you can configure. You want to make sure that this is a web project and that your JSPs are in the web root so they are compiled.

    #203299 Reply

    Dean Schulze
    Member

    I didn’t know that I had to do either of those things. Where’s the documentation for how to use the .jsp editor?

    Now that I’ve made my project a web project it has the globe symbol above it. Only the /web dir under my project has .jsp files in it but I couldn’t apply the web project to the web/ dir only so I had to do it to the entire project. This had some bad side effect. In my Project Properties it changed my output folder to WEB-INF/classes, which is definitely not where my EJB .class files should go. It also decided that it should add two more src folders to the project (dirs that don’t even exist).

    Now when I go to compile my .jsp files it errors out because it says it can’t find the .tld for one of my included .jar files:

    <%@ taglib uri=”/WEB-INF/lib/uix2tags.jar” prefix=”uix” %>

    But the .tld is in the meta-inf/ dir in the .jar file. I suppose I could pull the .tld out of the .jar file, but isn’t it OK to have the .tld in the meta-inf/ dir of the .jar file? This application runs OK, its just MyEclipse that can’t precompile it.

    Again some docs for how to use your features would help.

    #203615 Reply

    Scott Anderson
    Participant

    You’re right about the documentation. We’re working on it and it should be available with the 2.7 GA release.

    Now that I’ve made my project a web project it has the globe symbol above it. Only the /web dir under my project has .jsp files in it but I couldn’t apply the web project to the web/ dir only so I had to do it to the entire project. This had some bad side effect. In my Project Properties it changed my output folder to WEB-INF/classes, which is definitely not where my EJB .class files should go.

    It sounds like you’re trying to create an entire enterprise application in one project. This isn’t supported by MyEclipse because we would be unable to mimic the classloader seperation that application servers enforce. If we allowed this, you’d be able to generate projects that compiled in MyEclipse, but would fail due to unresolved classes when deployed. So, to create an enterprise application, as it appears you’re trying to do, you need to create an Enterprise project and then an EJB project for your EJB’s and a web project for your web application.

    In the Eclipse help system in the MyEclipse User Guide there is an overview and tutorial on how all the projects interrelate and why. Hopefully, that will be enough to get you going.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: JSP precompile not working

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