For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 3 replies, 2 voices, and was last updated 19 years, 11 months ago by
Riyad Kalla.
-
AuthorPosts
-
topicfunMemberHi!
We have some source folders and in each source folder there is a META-INF directory.
In eclipse setting We don’t use the ‘default output folder’ but ‘Allow Output folder for source folders’ setting.
If I deploy the project and have a look at the jar I see only one Meta-Inf directory and not separately for different source folders.
How can I deploy a J2EE project that contains more than one source folders and so more than one Meta-inf directory?Thanks,
ZoltánMarch 7, 2006 at 2:56 pm #247939
Riyad KallaMemberZoltan,
since everything needs to get combined into the /classes output dir for the sake of your app server, I don’t see how you are building this app with separate output folders for each source tree. Can you clarify the project setup and logic behind this for me?March 8, 2006 at 2:53 am #247993
topicfunMemberHi!
our project structure:
We use ClearCase for the project and in our CC structure there are some Source Folders and each source folder has a Meta-Inf dir with ejb-jar and jboss.xml files :
AppDB/ConfigDB/src
AppDB/OrderingDB/src
….
….
UserDB/IACAdminDB/srcWe defined different output folders for each source folders in Eclipse (properties/Java Build path/Source/Allowed output folder for source folders/Edit output folder). It is needed because otherwise the xml files overwrite each others in the same output folder(/classes).
eg. for output folders:
build/ConfigDB
build/OrderingDBOur ear file consist of jar files for each source folders:
ejb-ConfigDB.jar
ejb-OrderingDB.jarEach jar files contain the appropiate classes in the package structure and the Meta-Inf dir with xml files (as usual way).
Up to now we have made the production (ear file) with a difficult build script but I thougt maybe with the MyEclipse would be much more easier but I am not able to link our project structure to the MyEclipse deployment.
As far as I see the MyEclipse makes the jar only from the classes directory (as output folder) and there is no possibility to build it from more than one output folders…. therefore I mean only one root Meta-Inf is allowed with xml files??? Or?
Because in this case we can’t use MyEclipse to build production…:-(Thanks your support!
ZoltánMarch 8, 2006 at 6:45 am #248004
Riyad KallaMemberAhh ok this is much more clear now, you can’t do this. You are trying to conceptually combine multiple EJB projects and a Web Project all into 1 project, you have to break these things all apart into separate projects. For your EJBs you have to break them into EJB Projects as outlined here: http://www.myeclipseide.com/images/tutorials/quickstarts/firstejb/
for the web project you have to break it into it’s own web project as outlined here: http://www.myeclipseide.com/images/tutorials/quickstarts/webprojects/
and then you have to combine them all as modules under an enterprise project as outlined here: http://www.myeclipseide.com/images/tutorials/quickstarts/earprojects/
-
AuthorPosts
