Re: Tomcat 7.0.57 - Deployment Issue

2015-05-13 Thread Kiran Badi
Thanks *Jeffrey Janner *and *Mark Eggers*, I was able to deploy the app
successfully in its own virtual host. Actually I think apache httpd was
interfering somewhere and I raised the support ticket with my provider.I
think they made some changes to host file and it started working. I had
done same set up as given in the link by Charles.Now it works like a charm
and I also have manager interface to upload war files :)

Sometimes I get this error while using manager interface,

“Error invoking method check” when deploying a WAR on Tomcat
<http://stackoverflow.com/questions/1536364/error-invoking-method-check-when-deploying-a-war-on-tomcat>

But deployment happens quite successfully but it does not start the app.
Need to restart the server fix this.

Quick google search showed me that  its related to OOM. Is this related to
manager app or tomcat is starving of memory?



On Wed, May 13, 2015 at 11:17 AM, Jeffrey Janner <
jeffrey.jan...@polydyne.com> wrote:

> > -Original Message-
> > From: Kiran Badi [mailto:ki...@poonam.org]
> > Sent: Tuesday, May 12, 2015 9:30 PM
> > To: Tomcat Users List
> > Subject: Re: Tomcat 7.0.57 - Deployment Issue
> >
> > Thanks Hassan/Prabhu/Charles for reply.
> >
> > I tried the options given in this link.
> >
> > http://wiki.apache.org/tomcat/TomcatDevelopmentVirtualHosts
> >
> > but for some reasons still its not working.I have pasted the server xml
> > for
> > reference. I have unlimited website hosting plan with arvixe.com , but
> > for
> > some reasons it's still not working.Not sure if these guys needs to add
> > something special to hosts file.
> >
> > here is link for actual site -
> >
> > homelyhotels.com - you will probably see cgi-bin folder.
> >
> > Below server xml, I have added just a second host tag for webapp2. I am
> > bit
> > hesitant to make changes wrt to webapp1(removing context tags etc due to
> > lack of time on my end along with lack of sufficient knowledge in case
> > something breaks,however I will eventually clean that as well).
> >
> ...
> > 
> >
> > 
> > 
> >
> >   
> >   
> >
> >   
> >   
> > 
> >  >resourceName="UserDatabase"/>
> >   
> >
> >> unpackWARs="true" autoDeploy="true">
> >
> > 
> > 
> >
> > 
> >  > directory="logs"
> >prefix="localhost_access_log." suffix=".txt"
> >pattern="%h %l %u %t "%r" %s %b" />
> >
> >   
> >
> >
> >   www.webapp1.com
> >   myhostid.myserver.mywebhost.com
> >>   docBase="/home/myhostid/tomcat/webapps/manager">
> >   
> >
> >> appBase="/home/myhostid/hosts/webapp2/webapps" xmlValidation="false"
> > xmlNamespaceAware="false" unpackWARs="true" autoDeploy="true">
> >   www.webapp2.com
> >> directory="logs"
> >prefix="webapp2_access_log." suffix=".txt"
> >pattern="%h %l %u %t "%r" %s %b" />
> >
> > 
> >   
> > 
> >
> Kiran -
> What no one has asked about yet is this:  What does your directory
> structure look like? Where are the catalina_home and catalina_base
> environment variables pointed?  Is it, I suspect, /home/myhostid/tomcat?
> If so, then deployment of the server using the above config will result in
> the following:
> For localhost and any request that comes in on the server's network
> interfaces that doesn't match your explicit host names or their alias,
> everything under the /home/myhostid/tomcat/webapps will be deployed once
> for the  named "localhost". So, for example
> http://localhost/webapp2/webapps/ would result in reaching the webapp2
> pages (might need to add ROOT or webapp2 to the end, but you could reach
> it).
> For the  named "webapp1", you will essentially re-deploy the
> application(s) that was deployed for localhost. We call that
> double-deployment, and it's something to avoid.
> For the  named "webapp2.com", it will only deploy the application
> webapp2, but in so doing it will unpack the war into a directory named the
> same as the war file, which makes that application now available at the
> other hosts.
>
> What

RE: Tomcat 7.0.57 - Deployment Issue

2015-05-13 Thread Jeffrey Janner
> -Original Message-
> From: Kiran Badi [mailto:ki...@poonam.org]
> Sent: Tuesday, May 12, 2015 9:30 PM
> To: Tomcat Users List
> Subject: Re: Tomcat 7.0.57 - Deployment Issue
> 
> Thanks Hassan/Prabhu/Charles for reply.
> 
> I tried the options given in this link.
> 
> http://wiki.apache.org/tomcat/TomcatDevelopmentVirtualHosts
> 
> but for some reasons still its not working.I have pasted the server xml
> for
> reference. I have unlimited website hosting plan with arvixe.com , but
> for
> some reasons it's still not working.Not sure if these guys needs to add
> something special to hosts file.
> 
> here is link for actual site -
> 
> homelyhotels.com - you will probably see cgi-bin folder.
> 
> Below server xml, I have added just a second host tag for webapp2. I am
> bit
> hesitant to make changes wrt to webapp1(removing context tags etc due to
> lack of time on my end along with lack of sufficient knowledge in case
> something breaks,however I will eventually clean that as well).
> 
...
> 
> 
> 
> 
> 
>   
>   
> 
>   
>   
> 
> resourceName="UserDatabase"/>
>   
> 
>unpackWARs="true" autoDeploy="true">
> 
> 
> 
> 
> 
>  directory="logs"
>prefix="localhost_access_log." suffix=".txt"
>pattern="%h %l %u %t "%r" %s %b" />
> 
>   
> 
>
>   www.webapp1.com
>   myhostid.myserver.mywebhost.com
>  docBase="/home/myhostid/tomcat/webapps/manager">
>   
>
>appBase="/home/myhostid/hosts/webapp2/webapps" xmlValidation="false"
> xmlNamespaceAware="false" unpackWARs="true" autoDeploy="true">
>   www.webapp2.com
>directory="logs"
>prefix="webapp2_access_log." suffix=".txt"
>pattern="%h %l %u %t "%r" %s %b" />
>
> 
>   
> 
> 
Kiran -
What no one has asked about yet is this:  What does your directory structure 
look like? Where are the catalina_home and catalina_base environment variables 
pointed?  Is it, I suspect, /home/myhostid/tomcat?
If so, then deployment of the server using the above config will result in the 
following:
For localhost and any request that comes in on the server's network interfaces 
that doesn't match your explicit host names or their alias, everything under 
the /home/myhostid/tomcat/webapps will be deployed once for the  named 
"localhost". So, for example http://localhost/webapp2/webapps/ would result in 
reaching the webapp2 pages (might need to add ROOT or webapp2 to the end, but 
you could reach it).
For the  named "webapp1", you will essentially re-deploy the 
application(s) that was deployed for localhost. We call that double-deployment, 
and it's something to avoid.
For the  named "webapp2.com", it will only deploy the application 
webapp2, but in so doing it will unpack the war into a directory named the same 
as the war file, which makes that application now available at the other hosts.

What I'm saying is, don't nest your appBase directories.  Make sure they are 
unique.  It OK to create sub-directories under a main /home/myhostid/webapps 
directory, just make sure that no host uses a higher directory path as its 
appBase. 

As someone said, you could probably lose the localhost  completely, and 
change the defaultHost setting to point to the webapp1 host. Or just add the 
aliases for webapp1 to the localhost  config and delete the one for 
webapp1.  But by all means make sure that the appBases of all your hosts are 
NOT NESTED.

Also, avoid giving multiple hosts the same .  It looks like above you 
did this already, but it won't work.

If you want the manager app for each host, you can add that with a manager.xml 
context file in each of the hosts' directories under 
{catalina_home}/conf/Catalina.

Jeff

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 7.0.57 - Deployment Issue

2015-05-12 Thread Mark Eggers
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 5/12/2015 7:30 PM, Kiran Badi wrote:
> Thanks Hassan/Prabhu/Charles for reply.
> 
> I tried the options given in this link.
> 
> http://wiki.apache.org/tomcat/TomcatDevelopmentVirtualHosts
> 
> but for some reasons still its not working.I have pasted the server
> xml for reference. I have unlimited website hosting plan with
> arvixe.com , but for some reasons it's still not working.Not sure
> if these guys needs to add something special to hosts file.
> 
> here is link for actual site -
> 
> homelyhotels.com - you will probably see cgi-bin folder.
> 
> Below server xml, I have added just a second host tag for webapp2.
> I am bit hesitant to make changes wrt to webapp1(removing context
> tags etc due to lack of time on my end along with lack of
> sufficient knowledge in case something breaks,however I will
> eventually clean that as well).
> 
> shutdown="SHUTDOWN">  
>  
>  className="org.apache.catalina.core.AprLifecycleListener" 
> SSLEngine="on" />   className="org.apache.catalina.core.JasperListener" />   className="org.apache.catalina.core.JreMemoryLeakPreventionListener"
> />  className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
"
> />  className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"
> />
> 
> auth="Container" type="org.apache.catalina.UserDatabase" 
> description="User database that can be updated and saved" 
> factory="org.apache.catalina.users.MemoryUserDatabaseFactory" 
> pathname="conf/tomcat-users.xml" /> 
> 
>  
> 
> 
>  
> 
> 
>   connectionTimeout="2" redirectPort="8443" />  
> 
>   port="17703" protocol="AJP/1.3" redirectPort="8444" />
> 
> 
> 
> 
>  
> 
>  
> 
>   className="org.apache.catalina.realm.LockOutRealm">  
>  resourceName="UserDatabase"/> 
> 
>  autoDeploy="true">
> 
>  
> 
>   className="org.apache.catalina.valves.AccessLogValve" 
> directory="logs" prefix="localhost_access_log." suffix=".txt" 
> pattern="%h %l %u %t "%r" %s %b" />
> 
> 
> 
>  
> www.webapp1.com 
> myhostid.myserver.mywebhost.com  path="/manager" debug="0" privileged="true" 
> docBase="/home/myhostid/tomcat/webapps/manager">  
>   appBase="/home/myhostid/hosts/webapp2/webapps"
> xmlValidation="false" xmlNamespaceAware="false" unpackWARs="true"
> autoDeploy="true"> www.webapp2.com  className="org.apache.catalina.valves.AccessLogValve" 
> directory="logs" prefix="webapp2_access_log." suffix=".txt" 
> pattern="%h %l %u %t "%r" %s %b" />   
>  
> 

Are you fronting your Tomcat server with Apache HTTPD? It's difficult
to tell from the headers coming back, but it appears so.

If so, the Wiki article you reference gives you some, but not all of
the picture (I know, because I wrote that article).

However, it also appears from your server.xml above that localhost and
webapp1 are the same?

That's OK if the localhost should serve webapp1. If that's the case,
there's no need for the webapp1 Host. Just add an Alias to the
localhost Host for webapp1. Or even better don't add an Alias and let
Tomcat serve the default host when it doesn't match a Host
name="somehost" or Alias.

If you're fronting Tomcat with Apache HTTPD, then there is some more
work that needs to be done.

We run multiple virtual hosts on Apache HTTPD. Some of the virtual
hosts are proxied to the same Tomcat server, and some are proxied to
separate Tomcat servers.

It's kind of messy, but we do this to make use of SAN certificates for
SSL.

. . . . just my two cents
Mark
/mde/

> 
> 
> 
> On Tue, May 12, 2015 at 7:43 AM, Caldarale, Charles R < 
> chuck.caldar...@unisys.com> wrote:
> 
>>> From: Kiran Badi [mailto:ki...@poonam.org] Subject: Re: Tomcat
>>> 7.0.57 - Deployment Issue
>> 
>>> for some reasons it's not going well. Its getting deployed as
>>> single app www.mywebapp1.com\mywebapp2\ rather than 2 seperate
>>> sites.
>> 
>> Which is exactly what you configured it to do.
>> 
>>> mywebapp1 is deployed as root.war
>> 
>> That should be ROOT.war; be precise - this is all
>> case-sensitive.
>> 
>>> and I uploaded the webapp2.war in webapps folder and edited
>>> server.xml
>> wit

Re: Tomcat 7.0.57 - Deployment Issue

2015-05-12 Thread Kiran Badi
Thanks Hassan/Prabhu/Charles for reply.

I tried the options given in this link.

http://wiki.apache.org/tomcat/TomcatDevelopmentVirtualHosts

but for some reasons still its not working.I have pasted the server xml for
reference. I have unlimited website hosting plan with arvixe.com , but for
some reasons it's still not working.Not sure if these guys needs to add
something special to hosts file.

here is link for actual site -

homelyhotels.com - you will probably see cgi-bin folder.

Below server xml, I have added just a second host tag for webapp2. I am bit
hesitant to make changes wrt to webapp1(removing context tags etc due to
lack of time on my end along with lack of sufficient knowledge in case
something breaks,however I will eventually clean that as well).





  
  
  
  
  
  
  
  
  

  
  


  

  
  



















  
  

  
  


  

  







  

   
  www.webapp1.com
  myhostid.myserver.mywebhost.com
  
  
   
  
  www.webapp2.com
  
   

  





On Tue, May 12, 2015 at 7:43 AM, Caldarale, Charles R <
chuck.caldar...@unisys.com> wrote:

> > From: Kiran Badi [mailto:ki...@poonam.org]
> > Subject: Re: Tomcat 7.0.57 - Deployment Issue
>
> > for some reasons it's not going well. Its getting deployed as single app
> > www.mywebapp1.com\mywebapp2\ rather than 2 seperate sites.
>
> Which is exactly what you configured it to do.
>
> > mywebapp1 is deployed as root.war
>
> That should be ROOT.war; be precise - this is all case-sensitive.
>
> > and I uploaded the webapp2.war in webapps folder and edited server.xml
> with
> > below details,
>
> >  
> >   www.webapps2.com
> >   myhostid.myhost.myhostserver.com
>
> An  element does not create a second site; it merely provides an
> alternate name for a given site.  You need multiple  elements if you
> want separate sites.  Read these:
> http://wiki.apache.org/tomcat/CreateVirtualHosts
> http://wiki.apache.org/tomcat/TomcatDevelopmentVirtualHosts
>
> >> docBase="/home/myhostid/tomcat/webapps/webapps2">
>
> Do not put  elements in server.xml - very bad idea.  Also, the
> debug attribute has not be used for nearly a decade.  You really, really
> need to read the documentation.
>
> > I did not touch webapp1 app since its deployed as root.war and its
> working
> > fine..
>
> Not with that name, it isn't.
>
> > 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
> > SEVERE: Failed to initialize end point associated with ProtocolHandler
> > ["http-bio-17701"]
> > java.net.BindException: Address already in use :17701
>
> You appear to have two  elements with the same port.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail and
> its attachments from all computers.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


RE: Tomcat 7.0.57 - Deployment Issue

2015-05-12 Thread Caldarale, Charles R
> From: Kiran Badi [mailto:ki...@poonam.org] 
> Subject: Re: Tomcat 7.0.57 - Deployment Issue

> for some reasons it's not going well. Its getting deployed as single app
> www.mywebapp1.com\mywebapp2\ rather than 2 seperate sites.

Which is exactly what you configured it to do.

> mywebapp1 is deployed as root.war

That should be ROOT.war; be precise - this is all case-sensitive.

> and I uploaded the webapp2.war in webapps folder and edited server.xml with
> below details,

>  
>   www.webapps2.com
>   myhostid.myhost.myhostserver.com

An  element does not create a second site; it merely provides an 
alternate name for a given site.  You need multiple  elements if you want 
separate sites.  Read these:
http://wiki.apache.org/tomcat/CreateVirtualHosts
http://wiki.apache.org/tomcat/TomcatDevelopmentVirtualHosts

>docBase="/home/myhostid/tomcat/webapps/webapps2">

Do not put  elements in server.xml - very bad idea.  Also, the debug 
attribute has not be used for nearly a decade.  You really, really need to read 
the documentation.

> I did not touch webapp1 app since its deployed as root.war and its working
> fine..

Not with that name, it isn't.

> 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
> SEVERE: Failed to initialize end point associated with ProtocolHandler
> ["http-bio-17701"]
> java.net.BindException: Address already in use :17701

You appear to have two  elements with the same port.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 7.0.57 - Deployment Issue

2015-05-12 Thread Hassan Schroeder
On Mon, May 11, 2015 at 7:54 PM, Kiran Badi  wrote:
> 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,
>
>  

Each virtual host needs its own separate non-overlapping appBase.
(See the 'Webapps Directory' section of the doc.)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 7.0.57 - Deployment Issue

2015-05-11 Thread Prabhu Mannu


-Original Message-
From: Kiran Badi [mailto:ki...@poonam.org] 
Sent: Tuesday, 12 May, 2015 10:54 AM
To: Tomcat Users List
Subject: Re: Tomcat 7.0.57 - Deployment Issue

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,

 
  www.webapps2.com
  myhostid.myhost.myhostserver.com
  
   
   
   

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 :17701


-
Below is my reply


Hi

It maybe because of the existing default configuration, that is folder 
%TOMCAT_HOME%/webapp may be the default config for www.webapps1.com.
And if you are deploying mywebapp2 under the folder  %TOMCAT_HOME%/webapp/ like 
 %TOMCAT_HOME%/webapp/mywebapp2
it will be accessible from www.mywebapp1.com context

I suggest you rewrite the server.xml by hand from scratch with one vhost config 
for each domain and different root context.

*it help you get better solution if you actually post the server.xml with 
unnecessary contents stripped out

With regards
Prabhu 




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 7.0.57 - Deployment Issue

2015-05-11 Thread Kiran Badi
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,

 
  www.webapps2.com
  myhostid.myhost.myhostserver.com
  
   
   
   

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 :17701



On Fri, May 8, 2015 at 10:09 PM, Kiran Badi  wrote:

> Thanks Hassan. I will let you know.
>
> On Fri, May 8, 2015 at 9:50 PM, Hassan Schroeder <
> hassan.schroe...@gmail.com> wrote:
>
>> On Fri, May 8, 2015 at 6:14 PM, Kiran Badi  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  hassan.schroe...@gmail.com
>> http://about.me/hassanschroeder
>> twitter: @hassan
>> Consulting Availability : Silicon Valley or remote
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>


Re: Tomcat 7.0.57 - Deployment Issue

2015-05-08 Thread Kiran Badi
Thanks Hassan. I will let you know.

On Fri, May 8, 2015 at 9:50 PM, Hassan Schroeder  wrote:

> On Fri, May 8, 2015 at 6:14 PM, Kiran Badi  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  hassan.schroe...@gmail.com
> http://about.me/hassanschroeder
> twitter: @hassan
> Consulting Availability : Silicon Valley or remote
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Tomcat 7.0.57 - Deployment Issue

2015-05-08 Thread Hassan Schroeder
On Fri, May 8, 2015 at 6:14 PM, Kiran Badi  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  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 7.0.57 - Deployment Issue

2015-05-08 Thread Kiran Badi
Thanks Hassan for reply.

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.

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.

Maybe I can experiment this in dev local box before propagating it to live
server.





  
  
  
  
  
  
  
  
  

  
  


  

  
  



















  
  

  
  


  

  







  

   
  www.webapp1.com
  myaccountid.myserver.mywebhoster.com
  
   
  
   
  
  www.webapp2.com
  myaccountid.myserver.mywebhoster.com
  
   
  
   
   
  



On Thu, May 7, 2015 at 10:46 PM, Hassan Schroeder <
hassan.schroe...@gmail.com> wrote:

> On Thu, May 7, 2015 at 7:24 PM, Kiran Badi  wrote:
>
> > www.webapp1.com
> >
> > Now I have another webapp2. which I need to deploy it to same tomcat and
> > access it as
> >
> > www.webapp2.com
> >
> > How do I do this ? Appreciate some direction on this please
>
> The docs are probably a good place to start:
>
> http://tomcat.apache.org/tomcat-7.0-doc/virtual-hosting-howto.html
>
> HTH,
> --
> Hassan Schroeder  hassan.schroe...@gmail.com
> http://about.me/hassanschroeder
> twitter: @hassan
> Consulting Availability : Silicon Valley or remote
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Tomcat 7.0.57 - Deployment Issue

2015-05-08 Thread Hassan Schroeder
On Fri, May 8, 2015 at 1:25 AM, Mark Thomas  wrote:
> Wearing my list moderator, Tomcat PMC member and ASF member hats.

> Hassan, I'm sorry that you were the target of this message and I hope
> that it does not discourage you from continuing your valued
> participation here.

Mark, no worries - random chance, I'm sure.

Props for the prompt action on behalf of the list (and other ASF lists)
to avoid seeing more of this person's misdirected anger.

H*
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 7.0.57 - Deployment Issue

2015-05-08 Thread prabhu





On Friday 08/05/2015 at 16:26, Mark Thomas  wrote:

Wearing my list moderator, Tomcat PMC member and ASF member hats.

Let me make something perfectly clear. There is no place *at all* at 
the

ASF for views like those expressed by "orn amental".

I would draw people's attention to the ASF code of conduct [1] that 
I'd

encourage you to read if you have not already done so.

Hassan, I'm sorry that you were the target of this message and I hope
that it does not discourage you from continuing your valued
participation here.

Wearing my infrastructure hat I'll see what can be done about removing
"orn amental" from our communities but the reality is that the open
nature of our communities makes it pretty much impossible to enforce
such a ban on anything like a permanent basis.

Mark


[1] http://www.apache.org/foundation/policies/conduct.html

On 08/05/2015 08:10, orn amental wrote:


to
Hassan Schroeder







On 5/8/15, Hassan Schroeder  wrote:


On Thu, May 7, 2015 at 7:24 PM, Kiran Badi  wrote:



http://www.webapp1.com

Now I have another webapp2. which I need to deploy it to same tomcat 
and

access it as

http://www.webapp2.com

How do I do this ? Appreciate some direction on this please


The docs are probably a good place to start:

http://tomcat.apache.org/tomcat-7.0-doc/virtual-hosting-howto.html

HTH,
--
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



maybe ban words filter may help a little. ?




Re: Tomcat 7.0.57 - Deployment Issue

2015-05-08 Thread Mark Thomas
Wearing my list moderator, Tomcat PMC member and ASF member hats.

Let me make something perfectly clear. There is no place *at all* at the
ASF for views like those expressed by "orn amental".

I would draw people's attention to the ASF code of conduct [1] that I'd
encourage you to read if you have not already done so.

Hassan, I'm sorry that you were the target of this message and I hope
that it does not discourage you from continuing your valued
participation here.

Wearing my infrastructure hat I'll see what can be done about removing
"orn amental" from our communities but the reality is that the open
nature of our communities makes it pretty much impossible to enforce
such a ban on anything like a permanent basis.

Mark


[1] http://www.apache.org/foundation/policies/conduct.html

On 08/05/2015 08:10, orn amental wrote:
> to
> Hassan Schroeder



> 
> On 5/8/15, Hassan Schroeder  wrote:
>> On Thu, May 7, 2015 at 7:24 PM, Kiran Badi  wrote:
>>
>>> www.webapp1.com
>>>
>>> Now I have another webapp2. which I need to deploy it to same tomcat and
>>> access it as
>>>
>>> www.webapp2.com
>>>
>>> How do I do this ? Appreciate some direction on this please
>>
>> The docs are probably a good place to start:
>>
>> http://tomcat.apache.org/tomcat-7.0-doc/virtual-hosting-howto.html
>>
>> HTH,
>> --
>> Hassan Schroeder  hassan.schroe...@gmail.com
>> http://about.me/hassanschroeder
>> twitter: @hassan
>> Consulting Availability : Silicon Valley or remote
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 7.0.57 - Deployment Issue

2015-05-08 Thread orn amental
to
Hassan Schroeder

hey you muslim terrorist motherfucker. I piss on your mother as i fuck
her up her muslim pussy.
this is no place for muslim terrorists so leave this mailing list AT
ONCE or ELSE you terrorist muslim motherfucker!

On 5/8/15, Hassan Schroeder  wrote:
> On Thu, May 7, 2015 at 7:24 PM, Kiran Badi  wrote:
>
>> www.webapp1.com
>>
>> Now I have another webapp2. which I need to deploy it to same tomcat and
>> access it as
>>
>> www.webapp2.com
>>
>> How do I do this ? Appreciate some direction on this please
>
> The docs are probably a good place to start:
>
> http://tomcat.apache.org/tomcat-7.0-doc/virtual-hosting-howto.html
>
> HTH,
> --
> Hassan Schroeder  hassan.schroe...@gmail.com
> http://about.me/hassanschroeder
> twitter: @hassan
> Consulting Availability : Silicon Valley or remote
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 7.0.57 - Deployment Issue

2015-05-07 Thread Hassan Schroeder
On Thu, May 7, 2015 at 7:24 PM, Kiran Badi  wrote:

> www.webapp1.com
>
> Now I have another webapp2. which I need to deploy it to same tomcat and
> access it as
>
> www.webapp2.com
>
> How do I do this ? Appreciate some direction on this please

The docs are probably a good place to start:

http://tomcat.apache.org/tomcat-7.0-doc/virtual-hosting-howto.html

HTH,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org