facebook

Can ME cater for exploded WAR inside exploded EAR?

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #205985 Reply

    Sean Dynan
    Member

    Hi all

    Here’s my problem. I’m developing my project’s web app (WAR); someone else is developing the EJBs/DB. I’m using MyEclipse. He’s using jEdit + Ant.

    We’re deploying to JBoss 3.2.3 and Tomcat 4. Up to now I’ve been able to place my exploded WAR in the JBoss deploy directory along with all my colleague’s EJBs, pojos, Hibernate DB, etc. But because of Dependency Hell we’ve had to change to deploying the whole app as an EAR. It’s the only way we can seem to get the ever-growing app to deploy cleanly.

    So I want to put my exploded WAR inside our exploded EAR inside JBoss’ <server_name>/deploy directory, like this:

    <server_name>/deploy/myapp.ear/myapp.war

    But MyEclipse’s JBoss settings don’t seem to allow me to specify where on the disk I want to put my exploded WAR. It assumes that I’m going to put in in <server-name>/deploy, like this:

    <server_name>/deploy/myapp.war

    Is there any help for me? Any work-arounds (that don’t involve me having to keep my wits around me every waking hour)? 😕

    TIA.

    Sean

    #205998 Reply

    Riyad Kalla
    Member

    Sean,
    I’m sorry to say that this flexibility will be forth comming in a future release of MyEclipse (I believe 2.8, or soon after) but unfortunately there is no workaround until then. We have had others running into problems with unsupported app servers as well, which is one of the big motivations for us to support user-defined deployment locations.

    #206014 Reply

    Sean Dynan
    Member

    Thanks Riyad

    Just in case there are others in the same situation as myself, here’s how I work around the situation.

    Summary:
    Get MyEclipse to deploy the WAR to an unused JBoss server name. Then manually copy that WAR into your exploded EAR.

    Set the MyEclipse JBoss3 Server Name to point at “minimal”. I don’t use the “minimal” JBoss server so there is no harm done by dropping WAR files in that directory.

    Copy minimal/deploy/myapp.war over the top of default/deploy/myapp.ear/myapp.war.

    Touch default/deploy/myapp.ear/META-INF/application.xml to redeploy the app.

    I can still debug my Struts Actions/Forms as normal.

    It’s a bit clumsy but it works.

    Sean

    #206022 Reply

    Riyad Kalla
    Member

    Sean,
    We really appreciate the followup and more importantly other users in this situation will appreciate it!

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Can ME cater for exploded WAR inside exploded EAR?

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