On Wed, Nov 11, 2015 at 7:14 PM, Mark Eggers <its_toas...@yahoo.com.invalid>
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 "<host>"
> > 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
> > <its_toas...@yahoo.com.invalid> 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
>
>

Reply via email to