for some reasons it's not going well. Its getting deployed as single app
www.mywebapp1.com\mywebapp2\ rather than 2 seperate sites.
mywebapp1 is deployed as root.war
and I uploaded the webapp2.war in webapps folder and edited server.xml with
below details,
<Host name="www.webapps2.com" appBase="/home/myhostid/tomcat/webapps">
<Alias>www.webapps2.com</Alias>
<Alias>myhostid.myhost.myhostserver.com</Alias>
<Context path="/manager" debug="0" privileged="true"
docBase="/home/myhostid/tomcat/webapps/webapps2">
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs"
prefix="webapps2_access_log." suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Context>
</Host>
I did not touch webapp1 app since its deployed as root.war and its working
fine..
One more thing, do need have one more connector tag as I see these error on
catalina logs
May 11, 2015 7:11:51 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-17701"]
May 11, 2015 7:11:51 PM org.apache.coyote.AbstractProtocol init
SEVERE: Failed to initialize end point associated with ProtocolHandler
["http-bio-17701"]
java.net.BindException: Address already in use <null>:17701
On Fri, May 8, 2015 at 10:09 PM, Kiran Badi <[email protected]> wrote:
> Thanks Hassan. I will let you know.
>
> On Fri, May 8, 2015 at 9:50 PM, Hassan Schroeder <
> [email protected]> wrote:
>
>> On Fri, May 8, 2015 at 6:14 PM, Kiran Badi <[email protected]> wrote:
>>
>> > Here is server.xml I am going to try in this weekend. I have added host
>> > tags inside the engine element and mapped webapp1 and webapp2.
>>
>> Looks good, though I didn't actually try them :-)
>>
>> > Do I need to rename both war files to ROOT.war and drop into the
>> respective
>> > folders or just drop the war file as is ? I have context xml inside
>> > meta-inf for both apps.
>>
>> Yes, each webapp has its own ROOT context, so rename.
>>
>> > Maybe I can experiment this in dev local box before propagating it to
>> live
>> > server.
>>
>> Absolutely. Virtualization rocks. I find myself typing "vagrant up" so
>> frequently :-)
>>
>> Let us know how it goes!
>>
>> H*
>> --
>> Hassan Schroeder ------------------------ [email protected]
>> http://about.me/hassanschroeder
>> twitter: @hassan
>> Consulting Availability : Silicon Valley or remote
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>