- This topic has 3 replies, 4 voices, and was last updated 20 years ago by Riyad Kalla.
-
AuthorPosts
-
theshawnMemberI am fairly new to J2EE…but I have been working on a project for a while with some other developers. Our tools have not been organized until a recent discovery of Eclipse…now I am venturing off on a customization of this application and I want a better developement environment. MyEclipse seems to fit the bill, but I am not sure how to do a few things:
I would like to have Java Source and also JSPs in the Enterprise Application Project that are shared in the web modules. This seems like it is possible, but I am not exactly sure how I am supposed to go about it. I did setup the EAP and 2 of the 3 web module projects. So where to I add my source files?
All help greatly apprecaited!
– Shawn
Scott AndersonParticipantShawn,
You can’t really put “shared” JSPs into your EAR-level project. They are scoped by the web root, so you’ll have to replicate them or use a link to reference them in a common external project location.
For your shared Java source, I’d recommend configuring a separate project for it as a plain Java project. At the moment, we don’t support automatic packaging of “dependency” projects, but we will soon. When we do, you’ll be able to add this project to the Enterprise project set directly. Until then, you’ll have to create a jar of the java classes in your utility project and place the jar into your Enterprise Project. Then, modify your META-INF/MANIFEST.MF to add the appropriate Class-Path: entry (ie. Class-Path: <jarname>) to point to the jar you added. Basically, this is exactly what you have to do to deploy into an EAR with shared modules, so it’s the same approach.
–Scott
MyEclipse Support
send2rajeshMember“At the moment, we don’t support automatic packaging of “dependency” projects, but we will soon. When we do, you’ll be able to add this project to the Enterprise project set directly”
Is this feature supported in Myeclispse 3.8.2 . If yes can you please let me how to use this ?
Thanks a lot!
Riyad KallaMemberIs this feature supported in Myeclispse 3.8.2 . If yes can you please let me how to use this ?
Not quite yet, I think it might sneak into 3.8.3 or 3.9 though.
-
AuthorPosts