facebook

Unable to create a j2ee project

💡
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. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #253672 Reply

    aaugusty
    Member

    Hi,
    For my next release, I am trying to move from using weblogic workshop to myeclipse IDE. I am having trouble creating the enterprise project. Since my coding is complete and checked into CVS, I can’t change my directory structure. I am stuck with it.

    My directory structure is as follows

    Project
    ——-Source
    ————-Common
    ———————–com…
    ————-EJB
    ———————–com…
    ————-WebApp
    ———————-com …
    ———————-WEB-INF
    ———————-jsp

    My projects Common, EJB and WebApp are at the same level under Source. Because the projects overlap, I am not able to create my project in myeclipse IDE.

    Is there anyway to make the source folder same as the project folder in which case I can solve this problem. Or is there an alternative way to solve this issue.

    I have gone through all the documentation, but still no luck. Can someone please help me out.

    Thanks.

    #253708

    Riyad Kalla
    Member

    (Moving my reply from old thread to this one)
    —————————————————-
    Hmm… you might be able to get around this project by checking out the same project as 3 separate projects, hiding the unrelated Source folder from each project that it doesn’t belong to… I’ve never done that, so I’m not positive.

    I would point out that having /com under your webroot dir (WebApp) won’t work. That source directory needs to live outside of your WebRoot directory becuse the webroot driectory is what gets deployed.

    #253716

    aaugusty
    Member

    I tried creating the projects as three different projects, but myeclipse does not allow me to do that either, throwing an error that a project already exists .

    If I understand you right, we would not be able to use myeclipse in our project, since there is no workaround to this issue.

    I am really surprised that an IDE has so much dependency on how the directory structure is setup.

    #253717

    Riyad Kalla
    Member

    I created this directory structure:
    Project
    ——-Source
    ————-Common
    ———————–com…
    ————-EJB
    ———————–src
    ———————————com…
    ————-WebApp
    ———————-src
    ———————————com …
    ———————-WebRoot
    ———————————WEB-INF
    ———————————jsp

    And was able to create the 3 projects. Notice I had to mess with the EJB and Web projects a bit, but that layout works. I don’t know how much this helps you, part of the project is that you laid the source out as a single project and in MyEclipse different module types are modelled as projects and in Eclipse projects cannot overlap eachother.

    So that’s sort of a 3-part dependency chain reasoning for the limitations, but I hope the workaround can help.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Unable to create a j2ee project

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