I have a ear file for my web application which has a war file. when i deploy my ear file in jboss , the tomcat deployer deploy the war file thrice. i am totally confused with this behaviour. for your information i generated the ear file through an ant script.Please help me
Please post the contents of your application.xml file, the contents of your ear file (use "jar -tf your.ear") and the console log output you see when you deploy the ear file (start JBossAS first, once it is started then deploy the EAR, and post the log entries after the "Started in xxx seconds" entry).
The logs you posted show that there are some errors related to log4j configurations. I did not see any logs which shows that the application is being deployed thrice. I do see that there are (probably your application's) "Thread started" log messages which show up more than once? Is this why, you think the application is being deployed more than once?
I use Firefox and did not notice the bold lines Now that i opened this post in IE, i see those log messages marked in bold.
Your application.xml looks correct. I don't see any obvious reasons why the war should be deployed multiple times. Try getting rid of those log4j errors and see if that fixes the problem. Maybe since the war wasn't deployed in the first attempt, its trying to redeploy it (which by the way, i haven't come across with any of the applications that i use).
Have you set up any virtual hosts? According to the code, the deployer will deploy the app once for each host. Unfortunately, the host name never shows up in the log (would be nice if it did), but the host name is used to build the mbean for the app.
EAR is not the same as WAR, and each type is deployed with its own deployer. The WAR deployer deploys once for each virtual host. Do this. Look in jmx-console for MBeans named jboss.web:J2EEApplication=none,J2EEServer=none,j2eeType=WebModule,name=//XXX/pms. The XXX will be the host name. There should be three of them. What are the three host names used?
So the war file has to be deployed in each server huh? for eg:if i have two virtual host 220.127.116.11 and 18.104.22.168 then i have to deploy the war in both the server then only i can access the application in both know //22.214.171.124:8080/myapp and //126.96.36.199:8080/myapp