Sunny Bhinde

Greenhorn
+ Follow
since Aug 14, 2012
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sunny Bhinde

Hi,
I am using tomcat 6.0.35
I have one strange issue for my application it gets deployed twice that i don't want.
As i have gone through server.xml there are 2 virtual host has same appbase(i.e appbase="webapps") but different host name because of that two host the application is deployed twice.
When i remove one host (i.e localhost), my application get's deploy once which is correct but the other application are not getting deployed no autodeployment.

I have used deployOnStartup attribute and set to false to one of the host which still is failing the other application to autodeploy.

Please help me if there is any other solutions.
6 years ago
Hi Willam,
I need to get host name let take an example:
if there are 3 virtual host in the server.xml i.e
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
</Host>
<Host name="abc.com" appBase="webapps" unpackWARs="true" autoDeploy="true">
</Host>
<Host name="xyz.com" appBase="webapps" unpackWARs="true" autoDeploy="true">
</Host>

so now i need array contains the host name i.e {"localhost","abc.com ","xyz.com"}

I hope you got
6 years ago

In the Tomcat server.xml there are multiple host(virtual host),so now using java code i need get all the Host in arraylist.
I am unable to find out the proper solutions.Is there any that can help me out?
6 years ago