After installing tomcat with examples, TOMCAT_BASE/webapps/examples/WEB-INF/classes contains only source files (*.java). These files must be compiled to make the examples work.
Steps to Reproduce:
1. USE="examples" emerge -av tomcat
2. Browse: http://localhost:8080/examples
Before the compilation, resource unavailble page is shown.
Examples should work out of the box.
Created attachment 202738 [details]
ant script to build the examples
To compile, put this file in TOMCAT_BASE/webapps/examples/WEB-INF and run ant.
Duplicate of bug 282071 which has a bad summary, this bug has a much better summary, and I will look into resolving this ASAP time permitting.
*** Bug 282071 has been marked as a duplicate of this bug. ***
Same here, but solution above don't bring me the examples page. I had copied the build.xml in /var/lib/tomcat-6/webapps/examples/WEB-INF go into that directory and start ant. Message was: BUILD SUCCESSFUL. Than restart tomcat server.
Same with using below the "/usr/share/tomcat-6/" directory.
I'm using the "www-servers/tomcat-6.0.32-r1".
------- the page show me that content: --------
HTTP Status 404 -
type Status report
description The requested resource () is not available.
Using the new ebuilds the setup is done differently. See https://wiki.gentoo.org/wiki/Apache_Tomcat for more info. If you build tomcat with USE=extra-webapps, deployed instances will have the examples up and running.
Thanks for the report.