facebook

[Closed] Configure MyEclipse to use existing source layout

💡
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. Installation, Configuration & Updates
Viewing 15 posts - 1 through 15 (of 24 total)
  • Author
    Posts
  • #207217 Reply

    jnh
    Member

    I’m using the MyEclipse 3.7.2 and Eclipse 3.0 M8, Weblogic 8.1. My existing source tree is structured something like this:

    myrootdir/src/docroot/jsp/*.jsp
    myrootdir/etc/web.xml
    myrootdir/etc/ejb-jar.xml
    myrootdir/etc/struts/struts-config.xml
    myrootdir/etc/locale/ApplicationResources.properties
    myrootdir/src/com/mycompany/server/**/Action.java
    myrootdir/src/com/mycompany/server/**/EJBs.java

    I’ve succeeded in hot deploying changes to struts Action classes, but my jsps changes are hot deployed. I’m not sure about EJB changes at this point.

    Any pointers will be much appreciated.

    Thanks,
    John

    #207221

    Riyad Kalla
    Member

    I’m a little confused, your post subject suggests that you are having general problems setting up your project, but it seems like you have it working just fine. So I’ll address the specific questions… (please let me know if you have others)

    but my jsps changes are hot deployed.

    I’m assuming you meant that your JSPs are *note* being hot deployed, is this correct? If so, please let us know which directory in your project you have setup as the webroot.

    #207242

    jnh
    Member

    I apologize for the confusion in my previous post. I’ll start over with one question. But first a little background.

    I have an existing Eclipse project that utilizes a complex ant build to create a .ear containing both an ejb.jar file and webapp.war file. I’m trying to install MyEclipse and configure it without reorganizing my existing source tree.

    My existing source tree is under CVS control and is organized more or less as follows:

    myrootdir/src/docroot/jsp/*.jsp
    myrootdir/etc/web.xml
    myrootdir/etc/ejb-jar.xml
    myrootdir/etc/struts/struts-config.xml
    myrootdir/etc/locale/ApplicationResources.properties
    myrootdir/src/com/mycompany/server/**/Action.java
    myrootdir/src/com/mycompany/server/**/EJBs.java

    Question:

    Can I set up my webroot given that my source files are not organized in exploded WAR file format?

    Thanks again,

    John

    #207247

    Riyad Kalla
    Member

    Can I set up my webroot given that my source files are not organized in exploded WAR file format?

    No, you won’t be able to do this with the current implementation of MyEclipse. I am also not aware of any specific enhancements to flexible project structure that will/won’t allow this in the future 2.8 release either, so I can’t say “Oh just way until XYZ to do this…” and don’t want to mislead you.

    If your ‘docroot’ could be modified to resemble that of an exploded WAR, then yes you should be able to work with this structure just fine, but as it stands now, you will run into problems with the web.xml and struts-config.xml being out of your WEB-INF dir under your webroot. Most likely MyEclipse will create new empty ones, which is far from what you want 🙁

    #207427

    Hi,
    I have about the same problem. I have my webroot source folders spread in different directories in the CVS, and I need some way to be able to map these so that the jsp’s will be compiled, the xml’s validated, and have them deployed according to the j2ee standard.

    I thought there was some kind of enhancement to this kind of structures in 2.8. According to the roadmap “Flexible web project structure for web content folders, including linked resources” should be included.
    What exaclty does that mean?

    #207434

    Riyad Kalla
    Member

    I thought there was some kind of enhancement to this kind of structures in 2.8. According to the roadmap “Flexible web project structure for web content folders, including linked resources” should be included.
    What exaclty does that mean?

    The flexible project support will come in stages and may not all be done by 2.8 GA, the first steps towards it in Beta 1 were to ignore JSPs out of webroot (And some other changes) in Beta 2 and Beta 3 I’m not entirely sure what will happen and then what we have targetted for GA will be up to management.

    We are in a sticky situation because we are trying to appease our users and quite frankly its impossible to catch every case (although our eventual goal will probably take care of 99.5% of all cases). The problem is that none of the other big IDEs out there allow for flexible project support and some of the bigger IDEs (WSAD) are actually completely unforgiving when it comes to project support. After delving into this deeper, thinking that flexible project support wouldn’t be too much of a problem, we are finding why the other IDEs don’t do it: its *really* complex.

    But as I mentioned in another thread, we will eventually get there, please have patience and keep good feedback comming our way so we can continue to improve ME.

    #207550

    Mike
    Member

    Note that I still get this error in 2.8 B1:

    ...details.jsp) not in base path (C:/tomcat/webapps/feedback2/WebRoot/)
    #207553

    Riyad Kalla
    Member

    Note that I still get this error in 2.8 B1:

    Code:

    …details.jsp) not in base path (C:/tomcat/webapps/feedback2/WebRoot/)

    I am very sorry, I must have gotten my wires cross with the release notes for Beta 1 and conversations with the MyEclipse team. I will double check on the time frame for this feature. Thanks for keeping us honest 😉

    #207555

    Scott Anderson
    Participant

    It’s scheduled for 2.8, but didn’t make it by the beta 1 timeframe.

    #207771

    bkaplan
    Member

    @support-rkalla wrote:

    The problem is that none of the other big IDEs out there allow for flexible project support

    Idea 4.x supports flexible project support for webapps.

    #207791

    Scott Anderson
    Participant

    Idea 4.x supports flexible project support for webapps.

    Since I don’t use Idea, I’m curious as to what type of flexibility they provide that you find useful. How do you mark the sections of your web project so that Idea knows how to properly package everything on deployment?

    #207801

    Riyad Kalla
    Member

    Does IDEA support deployment?

    #207945

    nemec
    Member

    @support-scott wrote:

    Idea 4.x supports flexible project support for webapps.

    Since I don’t use Idea, I’m curious as to what type of flexibility they provide that you find useful. How do you mark the sections of your web project so that Idea knows how to properly package everything on deployment?

    In IDEA, you setup your sources for the web app module (like sources in Eclipse) and for each directory you can specify what is its logical (deployed) directory in the final deployment. Then all the sources are (without deployment) managed with that information. For example, if you have an import, or forward, you can jump to the file directly.

    One major feature in IDEA, is its integration with Java – especially refactoring. If you rename a method or class, or so, it will include JSP usages in refactorings.

    And, to answer Riyad’s question – it supports few deployements. For webapps – as exploded dirs and/or JARs.

    #207952

    nemec
    Member

    Should have been: …and/or WARs.

    #209572

    rgraham
    Member

    Another voice chiming in here…

    I too am disappointed to find that my projects have to conform to MyEclipse’s directory structure. Where I work we have directory structure that we use for all of our projects, which unfortunately, does not conform to what MyEclipse wants. The situation is made worse because of the three developers, I’m the only one who uses Eclipse, the other two use IntelliJ so of course they’re real smug about being able “their” editor being able to handle any directory structure. I have no doubt that such flexibility is difficult to achieve but it’s a major stumbling block for me.

Viewing 15 posts - 1 through 15 (of 24 total)
Reply To: [Closed] Configure MyEclipse to use existing source layout

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