facebook

Naming projects for exploded deploy on jboss

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #265258 Reply

    eirirlar
    Member

    Hi all,

    I’m using myeclipse to develop jboss seam applications that are being deployed to a jboss application server. I’ve discovered a tutorial (http://www.karwell.com/apropos/equipe/JMP/seam_me_getting_started/) which describes how to do the example applications that comes with seam in myeclipse, using the myeclipse new project -> enterprise application project wizard.

    The tutorial states that you have to name your project modules like this:
    ear project: myproject.ear
    web project: myproject
    ejb project: myproject.jar

    This works fine for both packaged and exploded deployments on the jboss application server. When I do changes in my java classes in the ejb project, they are reflected on the deployed version of the application as expected.

    However, there’s a bug in eclipse refactoring mechanism (https://bugs.eclipse.org/bugs/show_bug.cgi?id=171937) that causes renaming to fail when you .jar as the ejb project name ending (don’t ask me why, I filed the bug and we’ll see how it pans out). Renaming is a pretty nifty feature that I want to be able to use during development, so I’m looking for another naming policy that works well with exploded deployments.

    I’ve tried naming projects like this:
    ear project: myproject
    web project: myprojectWeb
    ejb project: myprojectEar

    With these names, myeclipse 1) suddenly doesn’t recognize the taglibs I use in my facelets, and 2) changes in java files in the ejb project are not reflected when I refresh the part of the deployed application that uses the java classes. This confuses me, because I can actually see that the class files in the “deploy” directory of jboss are updated.

    So the big question is, has anyone come up with a decent naming policy for developing seam or ejb3 applications in myeclipse on jboss application server?

    Regards, Eirik

    #265273 Reply

    eirirlar
    Member

    Hi again,

    I don’t know why, but after creating another workspace using the myprojectEJB naming and doing a clean install of jboss appserver, hot code replacement is working. Strange.

    Refactoring java-files in projects with names like myproject.jar still causes errors in eclipse though.

    Let me know if you have similar problems.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Naming projects for exploded deploy on jboss

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