aspose file tools*
The moose likes Tomcat and the fly likes Deploying folders/apps 7 times? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Deploying folders/apps 7 times?" Watch "Deploying folders/apps 7 times?" New topic
Author

Deploying folders/apps 7 times?

Marcus Fernstrom
Greenhorn

Joined: Apr 14, 2012
Posts: 9
Greetings!

I run a server with Tomcat, and I've noticed something odd, over time it's taking longer and longer to start/restart, and I finally started digging into it when restarting took about 15-20 minutes (For just Tomcat)
What I found was that the folders/applications are being deployed 7 times each!

I have no idea what would cause something like that, I don't even know in what end to start looking for the cause, I'm hoping that someone here recognizes the issue and could point me in the right direction.
Saif Asif
Ranch Hand

Joined: Aug 11, 2011
Posts: 440

Hi Marcus,
It does seem to be a very peculiar problem. Maybe its some issue with the tomcat itself. Try deploying the same applications to a separate ( a fresh tomcat 7 ) instance and see if the issue persists there.


Muhammad Saif Asif Mirza
OCJA(5/6) OCJP(6) OCJWCD(6)
Marcus Fernstrom
Greenhorn

Joined: Apr 14, 2012
Posts: 9
I run it for OpenBD so I asked the same question on a different forum, a fellow coder had run into the same problem and it had to do with "deploying" subfolders.
The fix was simple:

In the virtualhost setup: deployOnStartup="true" autoDeploy="false" deployIgnore=".*"
Saif Asif
Ranch Hand

Joined: Aug 11, 2011
Posts: 440

Glad you were able to solve your problem and thanks for sharing the solution !
Marcus Fernstrom
Greenhorn

Joined: Apr 14, 2012
Posts: 9
Maybe it helps someone else running into the same problem

Yeah everything was being deployed, including subfolders, which of course exists for every project/app, so over time the number of "deployments" grew quite a bit.

It's been running smooth ever since, and I'm glad I had a chance to learn a bit more about Tomcat.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deploying folders/apps 7 times?