facebook

Creating WebModule out of an existing 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
  • #230095 Reply

    SteffN
    Member

    Hello,

    I’m using MyEclipse 3.8.4 on Eclipse 3.0.1. Im wondering why it is not possible to make a certain module out of my project to an web module. My project consists of the follwing structure:

    myProjectRoot
    +– libs
    +– src
    +—- web
    +—— src
    +—— webapp
    +——– WEB-INF
    +– core
    +– applet

    What I want to do is to add myProjectRoot as enterprise application app and the content of myProjectRoot/src/web to an web application module within(!) the myProjectRoot. Is this possible with MyEclipse? When I try to create a new web module I always got the error: “X:/myProjectRoot and X:/myProjectRoot/src/web overlap”. Any ideas?

    Thank you a lot!

    Regards
    Stephan

    #230106

    Riyad Kalla
    Member

    What I want to do is to add myProjectRoot as enterprise application app and the content of myProjectRoot/src/web to an web application module within(!) the myProjectRoot. Is this possible with MyEclipse? When I try to create a new web module I always got the error: “X:/myProjectRoot and X:/myProjectRoot/src/web overlap”. Any ideas?

    This is not possible to do heriarchical projects like this. what you CAN do however is:

    1) Add web capabilities to this project, set your web root to /src/web/webapp
    2) Create a new enterprise application project, and add the project you created in step #1 as a module of it.

    #230134

    SteffN
    Member

    Hi,

    thanks for answering my question.

    What would you say, what is the prefered structure for a project with a huge number of modules in MyEclipse so I can make several (web)modules without this “overlap problem”?

    Thank you.

    Regards
    Stephan

    #230138

    Riyad Kalla
    Member

    This is the typical layout for a web module:
    http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-30.html#111

    It’s basically a Java Project, with a src dir, and then another dir (webroot) that is set to be your WebRoot dir, from there everything under the webroot should be in the format of an exploded WAR. This is the easiest and most supported format for most all IDEs (because dev layout == deployment layout and is defined by web spec).

    From here you can add any number of these to an enterprise project for deployment as an EAR.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Creating WebModule out of an existing project

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