facebook

Problems deploying (more than once) to JBoss

💡
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 IDE
  2.  > 
  3. General Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #201050 Reply

    Marcus Beyer
    Member

    I am doing my first steps with MyEclipse 2.6.4 and JBoss 3.2.2,
    both on Windows XP.

    In “Web Root” of my web project there are several folders and files.
    One of them is a JAR in WEB-INF/lib.

    When I start JBoss and do a rebuild to the project,
    it gets deployed (exploded WAR). Everything fine.

    When a rebuild the project a second time, I get an error:
    “Unable to copy deployed directory […]\Web Root”.

    It seems that MyEclipse tries to delete the WAR directory,
    but fails. It cannot delete the jar file. I can’t do it manually
    either, while JBoss is running. Any ideas?

    thanx!
    Marcus

    #201056

    Riyad Kalla
    Member

    Hmm… I guess its got a read lock on it, I’m pretty sure this will work if you stop JBoss, redeploy, then start JBoss again, but I’m guessing this is what you DON’T want to do right?

    Some people mentioned hot-deployment in 2.7, although I haven’t used it.

    #201067

    Scott Anderson
    Participant

    When a rebuild the project a second time, I get an error:
    “Unable to copy deployed directory […]\Web Root”.

    A full rebuild with a hot server will be problematic since everything is copied back to the JBoss installation directory and JBoss locks some of the application files. Modifying java and jsp files while the server is running is fine because it won’t cause a complete replacement of everything. I’d suggest shutting down JBoss, redeploying the app, and then restarting the server.

    –Scott
    MyEclipse Support

    #201129

    Marcus Beyer
    Member

    I see. But why aren’t non-exploded WARs locked by JBoss then?

    thanx!
    Marcus

    #201148

    Scott Anderson
    Participant

    You’ll have to ask the Jboss developers that one. 🙂 Seriously though the reason is they don’t have to because they explode them to a work directory and then lock the extracted files. The WAR is actually superfluous.

    –Scott
    MyEclipse Support

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Problems deploying (more than once) to JBoss

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