-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Joel,
On 2/4/19 16:35, Joel Griffith wrote: > I've installed Tomcat 8.0.32 a local Ubuntu 16.04 VM (Oracle > VirtualBox) and I'm using it to access a webapp through the laptop > the VM is local to. The VM port-forwards 3081 to 8080, so I can > access Tomcat as ` http://127.0.0.1:3081/` in my laptop browser. Are you sure it's going to the Tomcat you think it's going to? > Accessing `http://127.0.0.1:3081/` gives the default page stored > in `/var/lib/tomcat8/webapps/ROOT/index.html`. So, Tomcat is able > to find and serve from the `webapps/` directory. > > However, if I try to access > `http://127.0.0.1:3081/myWebapp/index.html`, which exists as > `/var/lib/tomcat8/webapps/myWebapp/index.html`, Tomcat returns a > 404, reporting that the requested resource in unavailable. > > `/var/lib/tomcat8/webapps/myWebapp/WEB-INF/web.xml` exists and is > identical to that used in a functioning setup on a different > server. It was originally written for a Tomcat 7 deployment, I > think, but there's nothing in it that seems to have anything to do > with these URLs, so I don't think it's a problem with that file. > Similarly, `/var/lib/tomcat8/conf/server.xml` exists and is > virtually identical to that used in the other (functioning) > deployment. > > All of the information I've been able to scrape together from web > searches over the past two days indicate that the presence of a > folder within the `webapps/` directory is sufficient for Tomcat to > recognize and register it as a Context. I'm at a complete loss for > what else I need to do to have Tomcat serve the file > `webapps/myWebapp/index.html` > > What am I missing? Why can Tomcat find `webapps/ROOT/index.html` > but not `webapps/myWebapp/index.html`? Do you have an AccessLogVave enabled for the server? Is it showing your requests and the 404 response when you make a request? - -chris -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlxYs5gACgkQHPApP6U8 pFgDGQ//VQnrKG77d+ciLUx5hgapoTR73DEHIIXD1vrbkPR9XLydjRcgnbTXFWzf xIH2rB2hROWAsA0T/GjaG87EfqFehlGmqa5isFNLqoah6Ss3wCvjvquwtdS+1OPX 0wxl2uqxgDmFVpMAOgmYGmp3HLi87nP/8h5Rn/Ef/Iqg3Z4CTKjvcUUhKRf3Lupw CYoPe3AFUOXTG40EKBDqzJ8IW2+Mt0rNfkU3T5v4BUtrKKc3ARof5CygVvgVS+5Q qpjH/p+hskvXWWuAz9is6+qAgu7WPyoV7KhOq93M9yQQ/bR7fNMfjVYg9q6z+UKO m6bNf+eQCtXfaHnDJp5Bytied0nUlCfBbHP6tvvNNl9B2jdaV4nT+9ZQIykOXN4E p64PvpHk8V2v/6GIlJ04E1LNiMwNycu3l24DnSn27sVxD6JKIMoTlyf4dvPK+zsw Jp8Bguiqog6geBpo+CNU1vzToWpiGHP/8rSwh9pbX7xpyTfWgq3bnvJmzNaVYJQ5 ggPCRiMRFgPurIr5edvvlyaGp8gfeFtb1FgCTKNTg2J9j8yxVI2p30lT8L+I+Rxp Tpapvum6q1/NAtKigCuq7ylXpN3XQnOmJq7fb1a7+lYwzA0NQ3IC8uooSys4GNBb ijeTnYsCTJqXNZ9k5BiCkUgMEr5yo4qiAtmppTbelGoNsWno+Jc= =VZa6 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org