File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes WebApp redeploys by itself !? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "WebApp redeploys by itself !?" Watch "WebApp redeploys by itself !?" New topic
Author

WebApp redeploys by itself !?

Al Manov
Greenhorn

Joined: Nov 07, 2008
Posts: 2
I have a problem that is driving me absolutely insane. Please help.

Due to whatever reason my WAR application redeploys by itself in JBoss server .

It happens at random times, for no obvious reason. Mostly it happens overnight so I am not doing anything to cause it.

When I inspect the server logs I can clearly see that the war is undeployed and redeployed several times a day.

This auto deployment is a huge annoyance because it causes PermGen to run out of memory and crashes the server overnight when I am asleep.

I am using JBoss 4.2.2.GA version.

Has anyone EVER seen anything similar, or do you have any ideas what to even look at?

PS. I am running this same web app on different machine (same JBoss version) and this problem does not happen ever. Both are Linux machines.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9329
    
110

Is your WAR file deployed in exploded format or is it deployed in an archive format?

If its deployed in exploded format, then the server keeps an watch on the web.xml file to see if the last modified time of this file has changed. If the timestamp has changed the the hotdeployer picks up this application and redeploys it.

In case of archived applications - change in timestamp of the archive will be tracked. Or even deleting the existing war and placing the application back in the deploy folder triggers the redeployment.

So is something like this happening with your application?

Finally, you can even disable hot deployment. Set the ScanEnabled under the DeploymentScanner MBean to false, in %JBOSS_HOME%/server/< serverName>/conf/jboss-service.xml file:



[My Blog] [JavaRanch Journal]
Al Manov
Greenhorn

Joined: Nov 07, 2008
Posts: 2
Crazy thing is that neither my war file in the deploy folder has changed timestamp, nor the web.xml in the tmp/deploy/....-exp.war/WEB-INF.

Timstamp is from Oct 28, and the app has been redeployed 4 times yesterday alone !?!?...

I have disabled the scanner, so I am hoping that this would fix the issue.

Thank you much
Al
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WebApp redeploys by itself !?
 
Similar Threads
MySql, JBoss error: NPE @ org.jboss.mx.loading.loadmgr3 .beginloadtask
Exception in deploying axis2.war in JBoss4.05
Netbeans taking so much time to deploy..
JBOSS 4.0 server start problem
Jboss class loader isolation problem with spring