Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 363931 - build tomcat-7 properly with docs/examples
Summary: build tomcat-7 properly with docs/examples
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on: 428002
Blocks: 322979
  Show dependency tree
 
Reported: 2011-04-17 15:33 UTC by Marc Arens
Modified: 2012-12-07 16:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for already existing build.xml patch (7.0.12-build-xml.patch,5.65 KB, patch)
2011-04-17 15:34 UTC, Marc Arens
Details | Diff
patch for the ebuild of tomcat-7.0.12 (tomcat-7.0.12.ebuild.patch,1.73 KB, patch)
2011-04-17 15:34 UTC, Marc Arens
Details | Diff
context.xml needed to allow symlinking in examples webapp (context.xml,99 bytes, application/xml)
2011-04-17 15:35 UTC, Marc Arens
Details
fixes reference to file in earlier patch (tomcat-7.0.12.ebuild.patch,1.56 KB, patch)
2011-04-22 23:00 UTC, Marc Arens
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Arens 2011-04-17 15:33:15 UTC
Currently there are problems when users try to install tomcat with useflags +doc/+examples see #357437 and #283273

Reproducible: Always

Steps to Reproduce:
1. emerge tomcat with +docs +examples
2.
3.
Actual Results:  
1, xml files instead of html files for docs are installed
2, examples aren't compiled, symlinks to needed links don't work

Expected Results:  
docs and examples are usable 

See the added patches to solve both problems. To make the examples work i had to add a context.xml to examples/META-INF with allowLinking="true". The docu mentions:

"NOTE: This flag MUST NOT be set to true on the Windows platform (or any other OS which does not have a case sensitive filesystem), as it will disable case sensitivity checks, allowing JSP source code disclosure, among other security problems."
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html


So please doublecheck this solution. Another solution is to simply copy the jars instead of linking them.

Btw. the ebuild still mentions CVE 2007-2449,2007-2450 which are both fixed since tomcat-6.0.14 according to http://tomcat.apache.org/security-6.html#Fixed_in_Apache_Tomcat_6.0.14 so you could remove those warning, too.
Comment 1 Marc Arens 2011-04-17 15:34:13 UTC
Created attachment 270275 [details, diff]
patch for already existing  build.xml patch
Comment 2 Marc Arens 2011-04-17 15:34:41 UTC
Created attachment 270277 [details, diff]
patch for the ebuild of tomcat-7.0.12
Comment 3 Marc Arens 2011-04-17 15:35:16 UTC
Created attachment 270279 [details]
context.xml needed to allow symlinking in examples webapp
Comment 4 Marc Arens 2011-04-22 23:00:18 UTC
Created attachment 270925 [details, diff]
fixes reference to file in earlier patch
Comment 5 Mark H. Wood 2012-09-25 23:17:10 UTC
Still broken in 7.0.27.  Here's another way to make /docs/ work:

toolshed localhost # cat /etc/tomcat-7/Catalina/localhost/docs.xml 
<?xml version='1.0'?>
<Context docBase='/usr/share/tomcat-7/webapps/docs'>
</Context>

I haven't wanted /examples/ but something similar might serve.
Comment 6 Ralph Sennhauser (RETIRED) gentoo-dev 2012-12-07 16:48:50 UTC
docs and examples are now properly built and installed with USE=extra-webapps set. See https://wiki.gentoo.org/wiki/Apache_Tomcat for more information.

Thanks for the report.