- This topic has 3 replies, 2 voices, and was last updated 20 years, 8 months ago by Steve Bang.
-
AuthorPosts
-
Steve BangMemberI don’t consider myself dense, but when another sharp co-worker and I can’t figure out what we’re doing wrong, I’m suspecting it’s just that we don’t understand the development model in MyEclipse. So, here goes…
We’re simply trying to do what a lot of developers do, which is to edit JSP pages directly in a development server’s application directory. So, following the directions in MyEclipse and missing something in the web module wizard, we’re struggling to get things working as we’d expect. [Note: The good news for you guys is that once we figure out how to use it ourselves, we’ll be recommending MyEclipse to lots of our customers and will likely use it in training).
So, in the web module settings, I typically name the project the same as the applicaiton directory, then point the project to the application directory on the development server. This seems reasonable and should be problem-free.
Then, change the Source Folder to point to what I’d expect in a JSP web app, that is WEB-INF/src (instead of your default src). Here’s where we get confused…we want the Web Root folder setting to point to the applicaiton root directory. If we remove your default “WebRoot” value, the wizard doesn’t like this, so we put a forward-slash (/). And, then set the Context root URL to be “/<applicationDirectory”. But, we cannot get this to work as expected. It fails to create the project correctly. Can you help?
Steve
Steve BangMemberOK, once again it looks like it’s not MyEclipse’s fault. 🙂 A note in the help about Web projects mentions that the Web Root cannot be the same as the project folder. I think this could be clearer in the UI.
After configuring everything the way wanted by Eclipse and MyEclipse, everything seems to work so far. And, I’ve even discovered a few bugs in my own code. 🙂
The only issue I seem to have at this moment is that IntelliJ allows me to work the way I want to, creating a project folder that is the same as the web root folder. For many instances, working with a personal development server and files, this is the easiest way to work. I guess that Eclipse just scorns this behavior. Sigh. I know my co-worker (who works in technical support) doesn’t want to fill his drive with duplicate files in both project and the server directories. Sometimes, when solving customer issues and just testing ideas, the simplest solution is the best — edit a file, save it, and run it.
Riyad KallaMembersbang, sorry for the delay in getting back to you we are pretty knee deep with 2.7 GA testing right now.
Actually your request to have the webroot the same as the project root was very popular and requested by quite a few other users, so I believe it will be addressed in the 2.8 release along with a lot of other project management/deployment enhancements.
Thanks for closing the loop with us on this thread so we know you found a solution.
Steve BangMemberNo need to be sorry. I didn’t expect you to answering postings after work and on the weekend. 🙂 I’m really glad to hear that you can address this issue as soon as the 2.8 release — that would be great. Clearly, you guys listen and respond when and as soon as you can! Thanks. I know my co-worker (in tech support) and I (tech writer, training developer, and code sample developer) will soon be recommending MyEclipse highly to our customers. In fact, I’ll be writing a tech note this week on how to configure MyEclipse to work with our product — customers and our field engineers in the U.S. and Australia (who’ve been pestering me for an opinion about MyEclipse) will be anxious to see what we say. In fact, when this webroot issue is addressed (2.8/3.8 ), I should be able to get MyEclipse into our training program (about 10 licenses) instead of IntelliJ. Obviously, the more intuitive MyEclipse is to use, the more we can recommend it.
You can close this issue, and know that I’ll anxiously be awaiting 2.8 (for me, 3.8 ). 🙂
-
AuthorPosts