facebook

different source folders

💡
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 Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #247882 Reply

    topicfun
    Member

    Hi!

    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án

    #247939

    Riyad Kalla
    Member

    Zoltan,
    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?

    #247993

    topicfun
    Member

    Hi!

    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/src

    We 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/OrderingDB

    Our ear file consist of jar files for each source folders:
    ejb-ConfigDB.jar
    ejb-OrderingDB.jar

    Each 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án

    #248004

    Riyad Kalla
    Member

    Ahh 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/

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: different source folders

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