Re: Access application without giving port number and context root

2015-11-12 Thread Konstantin Kolinko
2015-11-13 0:04 GMT+03:00 Kikkeri, Amith :
> Hi..
> I am trying to deploy a web application tomcat 7.0.61 . I have a DNS created 
> and I want access the application without using port number and context root. 
> Please suggest the best approach to achieve this.
>
> I can change the Port in server.xml to default port 80, but I would still 
> need to give the context root, else it would be redirected to tomcat home 
> page. In PRODUCTION, I would have a DNS created to access my application and 
> want to avoid port number and context root, hence want to know the steps and 
> best approach to achieve this. If there are some tutorials/Links, please 
> share the same.


Both questions are already answered in the FAQ. See HowTo page there
and search for "ROOT" (uppercase)

Best regards,
Konstantin Kolinko

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



RE: Tomcat Upgrades Ignoring Existing Installs

2015-11-12 Thread Barrow, Jonathan
What if there was a previous version already installed in the default folder 
when a newer executable was fired off in silent mode. Would it recognize that 
(stop the service, install newer version, retain settings, etc) or would it go 
haywire since it wasn't built to do upgrades?

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Sent: Wednesday, November 11, 2015 5:09 PM
To: Tomcat Users List 
Subject: Re: Tomcat Upgrades Ignoring Existing Installs

Jonathan,

On 11/11/15 4:15 PM, Barrow, Jonathan wrote:
> We currently run Tomcat v7 in our environment. We use Shavlik Protect
> as our patching utility.
>
> On all of our application servers we dedicate the C: drive to the
> Windows OS then we add an E: drive for all additional program
> installations such as SQL, Tomcat, etc. So, we have a decent amount of
> servers with Tomcat 7 installed on the E: drive.
>
> When we scan these servers with Shavlik Protect, it is seeing that we
> have Tomcat security patches missing, for instance we have 7.0.63
> installed now and it’s showing that we’re missing the latest 7.0.65
> patch. The problem is when we push this patch using Shavlik Protect
> (which I guess uses a quiet mode) the Tomcat installer isn’t honoring
> our existing install on E: drive and it installs the latest version in
> the default path on C: which messes things up.
>
> Is this a known issue with the installer running in quiet mode? This
> seems to be the only application (out of hundreds) that we can’t patch
> because of this sort of installer bug.

The Tomcat installer doesn't care about any other Tomcats installed: it assumes 
you want to install a new version in a new location. It doesn't detect old 
versions and attempt any upgrade. Instead, you get the new version in the new 
location.

The installer can be told where to install. You just have to tell it whee you 
want to install it. I'm no expert on the Tomcat Windows installer, but I 
suspect when in "quiet" mode, you can easily specify the target installation 
location.

-chris

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


--
Confidentiality Notice:

This e-mail message may contain confidential and/or privileged information. If 
you know or suspect that you are not the intended recipient, please notify the 
sender immediately by reply e-mail and destroy all copies of the original 
message. Any review, dissemination, use or copying of this message, or of 
information contained within the message, by unauthorized or unintended 
recipients, is strictly prohibited.
--


Re: Fwd:

2015-11-12 Thread Yuval Schwartz
On Wed, Nov 11, 2015 at 7:14 PM, Mark Eggers 
wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Yuval,
>
> On 11/11/2015 8:34 AM, Yuval Schwartz wrote:
> > Hello Mark,
> >
> > Thanks for the reply. I am interested in finding where the
> > Document Root is for my application ("applicationName"). As I
> > understand, since my Catatlina_Home = "c:\tomcat" and the ""
> > tag in the server.xml specifies "appbase='webapps'", it should be
> > under c:\tomcat\webapps...but it is not.
> >
> > Thanks again.
> >
>
> And it will only be there if you actually deploy the WAR file to
> Tomcat (and unpackWARs is set to true).
>
> It may be in a different directory if you use a context file. This is
> how NetBeans operates. It may not even exist (if unpackWARs is set to
> false).
>
> What are you doing that requires knowledge of Document Root? BTW,
> document root is really an Apache HTTPD concept, and not an Apache
> Tomcat concept.
>
>
I just want to place a favicon in the document root.
How can I do this?
Again, the default tomcat favicon was shown up until (I think) when I
changed one of my projects' context path from "applicationName" to "/".
Since then, the favicon has disappeared and I would like to see it again
(and to have a better understanding of these things since I hope to deploy
to a web server in the coming months).


> Also, it is the convention of this mailing list to either reply inline
> or (preferably) at the end of the message. See the following for the
> mailing list guidelines:
>
> http://tomcat.apache.org/lists.html
>
> (item 6 of the tomcat-users mailing list)
>
> . . . just my two cents
> /mde/
> >
> > On Wed, Nov 11, 2015 at 6:13 PM, Mark Eggers
> >  wrote:
> >
> > Yuval,
> >
> > On 11/11/2015 7:06 AM, Yuval Schwartz wrote:
>  Hello,
> 
>  I am using tomcat 8.0.22.0. My Catalina_Home is set to
>  "C:\tomcat". IDE: Netbeans. Language: Java.
> 
>  For some reason, when I deploy a web application in Netbeans
>  that has the name "applicationName" and context path:
>  "/applicationName" I do not see the application in the
>  c:\tomcat\webapps folder. Can someone help me figure out
>  what is not configured correctly? All I see is 4 folders
>  "docs, examples, host-manager, manager." Interestingly, if I
>  undeploy one of these 4 folders in netbeans, then this change
>  is reflected immediately in path c:\tomcat\webapps (ie: I see
>  3 folders). However, as I said, deploying "applicationName"
>  does not result in the folder being available in
>  c:\tomcat\webapps (as it should).
> 
>  The whole reason I got into this was because I stopped
>  seeing the tomcat favicon in my application all of a sudden
>  (I suspect because I changed the context path from
>  "/applicationName" to "/"). Now I would like to see the
>  favicon and would like to understand why I am not seeing the
>  deployed application where I should.
> 
>  My application is deployed successfully and runs fine (I just
>   don't see it in c:\tomcat\webapps).
> 
>  Thank you.
> 
> >
> > This is due to how NetBeans deploys to Tomcat. NetBeans creates a
> > config.xml file and copies it to
> > %CATALINA_BASE%\conf\Catalina\localhost\appname.xml
> >
> > Inside the appname.xml, there's a docBase that points to where you
> >  built your application (for me it's
> > ProjectName\target\artifact-id).
> >
> > This then makes use of Tomcat's default configuration to trigger
> > reloads of your web application when certain resources are
> > changed.
> >
> > Here's a link on how that deployment works:
> >
> > http://tomcat.apache.org/tomcat-8.0-doc/manager-howto.html
> >
> > Look for Deploy using a Context configuration ".xml" file.
> >
> > . . . just my two cents /mde/
> >>
> >> -
> >>
> >>
> >>
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> >> For additional commands, e-mail: users-h...@tomcat.apache.org
> >>
> >>
> >
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v2
>
> iQEcBAEBAgAGBQJWQ3drAAoJEEFGbsYNeTwtGrcIAJfZWPY6O3ZV8F39Dp4QkTHC
> zPm6Vldg330YcgNUbaECmvtgWMmkhdAf2CJUTnJJT5FM1m6PICMnl9RKzbCJi2KR
> 2nYlrMlY3J08cEPAKVn9Tac5UiPl7H+uSQOAxLL2IJ7RCcjFpyeLzbFJv/8Ii7Xd
> K7Y8C+FIw1iNpFYM+H+UqQhxdJZ3eYAzT3aBtdqZDdIOUAiiz8qLYTwC/pUNS5rn
> G5s0EJXQQk191870l4UtU8cIY6yW93dqeSEyANp132vFOdLTiI0jInqQmnEBZSYq
> LcCBAoJbOMufnxtrcmoJd+MzHx9XIQ5m5A61EJyr12zuUdSERKCCHCBwVEFDnZU=
> =pQNF
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: [PROPOSAL] Tomcat Webinar series

2015-11-12 Thread Cohen, Laurence
I'd be interested, but we are still using 7.0.59 at work, so if you could
tailor at least some of the presentations towards this, in very newbie
format I'd definitely be on board.

Larry

On Thu, Nov 12, 2015 at 5:29 PM, Mark Thomas  wrote:

> All,
>
> I've been wondering if there would be any interest in a Tomcat Webinar
> series. I'm thinking ~10 minutes of presentation followed by Q on
> topics of interest to this community with the webinars taking place
> every 1/2/4 weeks depending on interest. The webinars would also be
> recorded and uploaded somewhere - probably youtube - and linked from
> tomcat.apache.org.
>
> My initial thoughts on possible topics are:
>
> - Intro to Tomcat 9 (the first milestone release is in progress as
>   I type this)
>
> - TLS virtual hosting with Tomcat 9
>
> - Generating TLS keys for Tomcat
>
> - HTTP/2 and Tomcat 9
>
> - Connector selection: BIO vs NIO vs NIO2 vs APR
>
> - Proxy protocol choice HTTP vs AJP
>
> Other topics as requested by the users@ community.
>
> Presenters would be one of the Tomcat committers. Obviously, I'm happy
> to do these but I hope some of my fellow committers will agree to do
> some presentations as well.
>
> Thoughts, feedback, topic suggestions welcome.
>
> Mark
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>


Access application without giving port number and context root

2015-11-12 Thread Kikkeri, Amith
Hi..
I am trying to deploy a web application tomcat 7.0.61 . I have a DNS created 
and I want access the application without using port number and context root. 
Please suggest the best approach to achieve this.

I can change the Port in server.xml to default port 80, but I would still need 
to give the context root, else it would be redirected to tomcat home page. In 
PRODUCTION, I would have a DNS created to access my application and want to 
avoid port number and context root, hence want to know the steps and best 
approach to achieve this. If there are some tutorials/Links, please share the 
same.

Appreciate you assistance.

Regards,
Amith




[PROPOSAL] Tomcat Webinar series

2015-11-12 Thread Mark Thomas
All,

I've been wondering if there would be any interest in a Tomcat Webinar
series. I'm thinking ~10 minutes of presentation followed by Q on
topics of interest to this community with the webinars taking place
every 1/2/4 weeks depending on interest. The webinars would also be
recorded and uploaded somewhere - probably youtube - and linked from
tomcat.apache.org.

My initial thoughts on possible topics are:

- Intro to Tomcat 9 (the first milestone release is in progress as
  I type this)

- TLS virtual hosting with Tomcat 9

- Generating TLS keys for Tomcat

- HTTP/2 and Tomcat 9

- Connector selection: BIO vs NIO vs NIO2 vs APR

- Proxy protocol choice HTTP vs AJP

Other topics as requested by the users@ community.

Presenters would be one of the Tomcat committers. Obviously, I'm happy
to do these but I hope some of my fellow committers will agree to do
some presentations as well.

Thoughts, feedback, topic suggestions welcome.

Mark

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



Re: [PROPOSAL] Tomcat Webinar series

2015-11-12 Thread prashant sharma
Thanks Mark.
Sure that would be a very good knowledge sharing session.
Looking forward to the details.

On Thu, Nov 12, 2015 at 10:29 PM, Mark Thomas  wrote:

> All,
>
> I've been wondering if there would be any interest in a Tomcat Webinar
> series. I'm thinking ~10 minutes of presentation followed by Q on
> topics of interest to this community with the webinars taking place
> every 1/2/4 weeks depending on interest. The webinars would also be
> recorded and uploaded somewhere - probably youtube - and linked from
> tomcat.apache.org.
>
> My initial thoughts on possible topics are:
>
> - Intro to Tomcat 9 (the first milestone release is in progress as
>   I type this)
>
> - TLS virtual hosting with Tomcat 9
>
> - Generating TLS keys for Tomcat
>
> - HTTP/2 and Tomcat 9
>
> - Connector selection: BIO vs NIO vs NIO2 vs APR
>
> - Proxy protocol choice HTTP vs AJP
>
> Other topics as requested by the users@ community.
>
> Presenters would be one of the Tomcat committers. Obviously, I'm happy
> to do these but I hope some of my fellow committers will agree to do
> some presentations as well.
>
> Thoughts, feedback, topic suggestions welcome.
>
> Mark
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: [PROPOSAL] Tomcat Webinar series

2015-11-12 Thread David E. Filip
I think that is a great idea!  Another topic that I would add is clustering and 
session replication, which I have unfortunately avoided because of the 
perceived complexity (and instead have relied on cookie sticky to keep a web 
browser “stuck” to a particular cluster node).  I imagine that session 
replication might not be that complicated if I had a better understanding of 
whats all of the knobs and dials did, as it seems to be a lot to customize.

I would also be particularly interested in these:

> - Connector selection: BIO vs NIO vs NIO2 vs APR

> - Proxy protocol choice HTTP vs AJP

FWIW - I tend to be at least one major release behind, as I tend to focus more 
on stability and … just as important if not more … being able to rely on others 
who have found and solved any problems I might encounter … :-)

I’d be invested in what the rest of the community has to say … as I acknowledge 
I might be an outlier in this regard … but if not, if these sessions do move 
forward, I would encourage focus not just on the latest development release, 
but also on how to do the cool stuff with earlier releases as well.

Just my $0.02.

On Nov 12, 2015, at 5:29 PM, Mark Thomas  wrote:

> All,
> 
> I've been wondering if there would be any interest in a Tomcat Webinar
> series. I'm thinking ~10 minutes of presentation followed by Q on
> topics of interest to this community with the webinars taking place
> every 1/2/4 weeks depending on interest. The webinars would also be
> recorded and uploaded somewhere - probably youtube - and linked from
> tomcat.apache.org.
> 
> My initial thoughts on possible topics are:
> 
> - Intro to Tomcat 9 (the first milestone release is in progress as
>  I type this)
> 
> - TLS virtual hosting with Tomcat 9
> 
> - Generating TLS keys for Tomcat
> 
> - HTTP/2 and Tomcat 9
> 
> - Connector selection: BIO vs NIO vs NIO2 vs APR
> 
> - Proxy protocol choice HTTP vs AJP
> 
> Other topics as requested by the users@ community.
> 
> Presenters would be one of the Tomcat committers. Obviously, I'm happy
> to do these but I hope some of my fellow committers will agree to do
> some presentations as well.
> 
> Thoughts, feedback, topic suggestions welcome.
> 
> Mark
> 
> -
> 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



env-entry with mapped-name

2015-11-12 Thread Andrei Ivanov
Hi,
After reading https://bitbucket.org/sgarlick/demo/wiki/JNDI, I tried to
apply that to my app deployed on Tomcat:

Tomcat context.xml has this entry:


The application web.xml has this entry:

spring.profiles.active
java.lang.String
java:comp/env/env/enss/profile


>From what I understand, when Spring looks up
java:comp/env/spring.profiles.active Tomcat should find it using the value
provided in the mapped-name.

It doesn't work and by looking at the Tomcat 8.0.28 sources, the
mapped-name is just added in the properties of ContextEnvironment, but it's
never used.

Did I misunderstand what the mapped-name should do?
Or is it a bug in Tomcat that it doesn't use mapped-name for anything?

Thank you


Re: [PROPOSAL] Tomcat Webinar series

2015-11-12 Thread Jose María Zaragoza
2015-11-12 23:29 GMT+01:00 Mark Thomas :
> All,
>
> I've been wondering if there would be any interest in a Tomcat Webinar
> series. I'm thinking ~10 minutes of presentation followed by Q on
> topics of interest to this community with the webinars taking place
> every 1/2/4 weeks depending on interest. The webinars would also be
> recorded and uploaded somewhere - probably youtube - and linked from
> tomcat.apache.org.


+1



>
> My initial thoughts on possible topics are:
>
> - Intro to Tomcat 9 (the first milestone release is in progress as
>   I type this)
>
> - TLS virtual hosting with Tomcat 9
>
> - Generating TLS keys for Tomcat
>
> - HTTP/2 and Tomcat 9
>
> - Connector selection: BIO vs NIO vs NIO2 vs APR
>
> - Proxy protocol choice HTTP vs AJP
>
> Other topics as requested by the users@ community.
>
> Presenters would be one of the Tomcat committers. Obviously, I'm happy
> to do these but I hope some of my fellow committers will agree to do
> some presentations as well.
>
> Thoughts, feedback, topic suggestions welcome.
>
> Mark
>
> -
> 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: [PROPOSAL] Tomcat Webinar series

2015-11-12 Thread Filippo Machi
Ciao Mark,
it would be great!
Thanks for all your work :)

On Thu, Nov 12, 2015 at 11:29 PM, Mark Thomas  wrote:

> All,
>
> I've been wondering if there would be any interest in a Tomcat Webinar
> series. I'm thinking ~10 minutes of presentation followed by Q on
> topics of interest to this community with the webinars taking place
> every 1/2/4 weeks depending on interest. The webinars would also be
> recorded and uploaded somewhere - probably youtube - and linked from
> tomcat.apache.org.
>
> My initial thoughts on possible topics are:
>
> - Intro to Tomcat 9 (the first milestone release is in progress as
>   I type this)
>
> - TLS virtual hosting with Tomcat 9
>
> - Generating TLS keys for Tomcat
>
> - HTTP/2 and Tomcat 9
>
> - Connector selection: BIO vs NIO vs NIO2 vs APR
>
> - Proxy protocol choice HTTP vs AJP
>
> Other topics as requested by the users@ community.
>
> Presenters would be one of the Tomcat committers. Obviously, I'm happy
> to do these but I hope some of my fellow committers will agree to do
> some presentations as well.
>
> Thoughts, feedback, topic suggestions welcome.
>
> Mark
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Fwd:

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

Yuval,

On 11/12/2015 1:17 AM, Yuval Schwartz wrote:
> On Wed, Nov 11, 2015 at 7:14 PM, Mark Eggers 
>  wrote:
> 
> Yuval,
> 
> On 11/11/2015 8:34 AM, Yuval Schwartz wrote:
 Hello Mark,
 
 Thanks for the reply. I am interested in finding where the 
 Document Root is for my application ("applicationName"). As I
  understand, since my Catatlina_Home = "c:\tomcat" and the 
 "" tag in the server.xml specifies
 "appbase='webapps'", it should be under
 c:\tomcat\webapps...but it is not.
 
 Thanks again.
 
> 
> And it will only be there if you actually deploy the WAR file to 
> Tomcat (and unpackWARs is set to true).
> 
> It may be in a different directory if you use a context file. This 
> is how NetBeans operates. It may not even exist (if unpackWARs is
> set to false).
> 
> What are you doing that requires knowledge of Document Root? BTW, 
> document root is really an Apache HTTPD concept, and not an Apache
>  Tomcat concept.
> 
> 
>> I just want to place a favicon in the document root. How can I
>> do this? Again, the default tomcat favicon was shown up until (I 
>> think) when I changed one of my projects' context path from 
>> "applicationName" to "/". Since then, the favicon has
>> disappeared and I would like to see it again (and to have a
>> better understanding of these things since I hope to deploy to a
>> web server in the coming months).
> 
> 
> Also, it is the convention of this mailing list to either reply 
> inline or (preferably) at the end of the message. See the
> following for the mailing list guidelines:
> 
> http://tomcat.apache.org/lists.html
> 
> (item 6 of the tomcat-users mailing list)
> 
> . . . just my two cents /mde/
 
 On Wed, Nov 11, 2015 at 6:13 PM, Mark Eggers 
  wrote:
 
 Yuval,
 
 On 11/11/2015 7:06 AM, Yuval Schwartz wrote:
>>> Hello,
>>> 
>>> I am using tomcat 8.0.22.0. My Catalina_Home is set to
>>>  "C:\tomcat". IDE: Netbeans. Language: Java.
>>> 
>>> For some reason, when I deploy a web application in 
>>> Netbeans that has the name "applicationName" and
>>> context path: "/applicationName" I do not see the
>>> application in the c:\tomcat\webapps folder. Can
>>> someone help me figure out what is not configured
>>> correctly? All I see is 4 folders "docs, examples,
>>> host-manager, manager." Interestingly, if I undeploy
>>> one of these 4 folders in netbeans, then this change is
>>> reflected immediately in path c:\tomcat\webapps (ie: I
>>> see 3 folders). However, as I said, deploying
>>> "applicationName" does not result in the folder being
>>> available in c:\tomcat\webapps (as it should).
>>> 
>>> The whole reason I got into this was because I stopped
>>>  seeing the tomcat favicon in my application all of a 
>>> sudden (I suspect because I changed the context path 
>>> from "/applicationName" to "/"). Now I would like to
>>> see the favicon and would like to understand why I am
>>> not seeing the deployed application where I should.
>>> 
>>> My application is deployed successfully and runs fine
>>> (I just don't see it in c:\tomcat\webapps).
>>> 
>>> Thank you.
>>> 
 
 This is due to how NetBeans deploys to Tomcat. NetBeans
 creates a config.xml file and copies it to 
 %CATALINA_BASE%\conf\Catalina\localhost\appname.xml
 
 Inside the appname.xml, there's a docBase that points to
 where you built your application (for me it's 
 ProjectName\target\artifact-id).
 
 This then makes use of Tomcat's default configuration to 
 trigger reloads of your web application when certain
 resources are changed.
 
 Here's a link on how that deployment works:
 
 http://tomcat.apache.org/tomcat-8.0-doc/manager-howto.html
 
 Look for Deploy using a Context configuration ".xml" file.
 
 . . . just my two cents /mde/

You ended up deleting the ROOT web application that ships with Tomcat
when you set the Context Path to /, and then did any clean operation
(Clean, or Build and Clean) from NetBeans.

To restore the favicon, just copy a fresh copy of the ROOT directory
back into C:\Tomcat\webapps.

. . . just my two cents
/mde/
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQEcBAEBAgAGBQJWRLh+AAoJEEFGbsYNeTwt5qgH/j8pdEgSnQpZVUbve7ayAwp5
6VUfxDwqG2H/funuH+EjRLGOahsxNSFAZMigen/qL0RAN/aJxIANICpkkzyfjJyy
iWb3iks1Z0XXvIG1qdHgkYoBsEmW925ERcwEbwe0R5ZqRzfJHpgWPFlM0UilPl86
PYh47rxr2muy+v6p1hUC+9In+tlan81FrdIV4B/brvW7XzW1XkLA1v9P7qyzOb9J
3iwynp6T9EZNmI5EONFBV2qcjHmpAStNGz+oU1ws0lWSxU7nhzlIlgyTYFmsqj+t
se3B2xC9m5+w6bnAmi0oRed3vYzUhu8CEGfPTDQOvxLcnH7rM6Ohp7cL9ZeN85o=
=yljX
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: