facebook

Help setting up existing Jsp project with existing code

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    Hello there;
    I am trying to create a myEclipse project for a base of existing jsp code. I have read through the tutorial which goes into the HelloWorld.jsp example. The material there seems to go fine, and behaves as expected as described in the sample. I have Eclipse ver 2.1.0 with the 30 trial of myEclipse running on Win 2000. Below is the layout of the existing Jsp area I am trying to settup a project for.

    
    projctYadaYadaDir
    ---deployDir
    ------myEarDir
    ---------myEjbJarDir
    -------------META-INF
    ----------------EJB-JAR.xml
    ---------META-INF
    -------------APPLICATION.xml
    ---------myWarDir
    -------------META_INF
    -----------------web.xml
    -------------SomePackage1Dir
    ------------------aJspPage.jsp
    -------------SomePackage2Dir
    ------------------anotherJspPage.jsp
    ---sourceDir
    ------JavaDir
    ---------com
    ------------someNameSpaceItem
    ----------------SomeJavaCode
    

    I have tried to put in many many combinations for “Source Folder”, “web root folder”, “Context root URL” for setting up the project (web project). For any combination I put there I get the error pop-up dialog below:
    ______________________________________
    ‘NewProjectCreationWizard.op_err.message!’
    See error log for more details.
    ______________________________________

    The log shows an error from some null pointer issue in eclipse code. I don’t think this error is really a problem with the eclipse code, but somehow related to the values I am entering for the web project settup. Can you please tell me what values should be put in for the above directory structure?

    #200219

    support-michael
    Keymaster

    I don’t see a way to directly map MyEclipse J2EE projects directly on this physical dir structure. There are several interacting issues prevent this: 1) Eclipse does not allow overlapping projects and 2) MyEclipse does not yet support linked resources. The error you’re encountering is probably due to #1 and not being correctly surfaced by the underlying wizard logic.

    I ran this question by a consultant and he says that if this is a CVS dir structure that modules can be used to checkout the files into a MyEclipse compatible local dir structure. (See the following link for CVS module info: http://www.cvshome.org/docs/manual/cvs-1.11.7/cvs_18.html#SEC157).

    I’m new to CVS modules. To other readers, do you have any experience with using CVS modules from Eclipse?

    The project file organization needed by MyEclipse:

    EAR Project
    META-INF

    Web Project
    <src> <– use links and exclude filters in build path if needed
    <webroot>
    <jsp/html content>
    WEB-INF

    EJB Project
    <src> <– use links and exclude filters in build path if needed
    META-INF
    <your root packages>

    Note that we will soon be extending MyEclipse to support much more flexible project structuring capabilities. Until then I hope this helps.

    Michael
    MyEclipse Support

    #204918

    kitm
    Member

    Michael,
    In your response you refer to using “exclude filters in build path” which I think is something I desperately need, but I can’t find anything like that in the project/workspace/build-path properties nor in the documentation (in fact doc searches for “exclude” or “filter” come up empty). I have 2.7rc2 – is this something in 2.7GA or 3.7M?
    Thanks,
    -Kit

    @support-michael wrote:

    The project file organization needed by MyEclipse:

    EAR Project
    META-INF

    Web Project
    <src> <– use links and exclude filters in build path if needed
    <webroot>
    <jsp/html content>
    WEB-INF

    EJB Project
    <src> <– use links and exclude filters in build path if needed
    META-INF
    <your root packages>

    #204921

    support-michael
    Keymaster

    You access exclusion filters from Java Build Path properties of your project. Select the Source tab and expand any src package folder. You should see a subnode titled “Exclusion Filters” that you can edit as needed. Also you can access Eclipse help from this page by selecting CTL-F1 to view help topics.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Help setting up existing Jsp project with existing code

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