Summary: | www-servers/tomcat-6.0.20 - ClassNotFoundException: ContextListener | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Michał Kudła <m1k0> |
Component: | [OLD] Java | Assignee: | Java team <java> |
Status: | RESOLVED DUPLICATE | ||
Severity: | major | CC: | afansky, ap, cedric.godin, hholt, mike |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
this tomcat patch adds build-examples ant task and overrides allowLinking parameter for /examples
tomcat ebuild with examples bugfix |
Description
Michał Kudła
2009-08-20 08:05:33 UTC
Where did you get the examples app from? http://www.gentoo.org/proj/en/java/tomcat6-guide.xml#doc_chap4_sect5 from =www-servers/tomcat-6.0.20 I find, that examples are not compiled. Directory classes contains ony .java files I am also experiencing this bug. It seems that nothing is built other than the basic Tomcat container stuff. If you run ant from the /var/lib/tomcat-6/webapps directory, it will build the ROOT application. You can then do `'ln -s ../build/ROOT ROOT' in that directory and you'll have a working ROOT application. The build scripts for the docs application is nowhere to be found after the install. Looking at the ebuild it appears to not even try to build them, it just copies the raw files from the upstream source into the directories, so you end up with junk in there instead of a working application. I have the same bug. I did cd /var/lib/tomcat-6/webapps && ant && ln -s ../build/ROOT ROOT . Tomcat shows it's interface. But now I have who identical set of files: - one under folder /var/lib/tomcat-6/webapps - another under /var/lib/tomcat-6/webapps/ROOT This bug only effects the examples, the summary should be changed to reflect that. Comment#4 is correct, the example applications are NOT built during the build of the Catalina Core like they have in the past, this is in part to the security issues with the example applications, by default we shouldn't install applications that are insecure, that should be a user decision. -weisso (In reply to comment #6) > This bug only effects the examples, the summary should be changed to reflect > that. > > Comment#4 is correct, the example applications are NOT built during the build > of the Catalina Core like they have in the past, this is in part to the > security issues with the example applications, by default we shouldn't install > applications that are insecure, that should be a user decision. > > -weisso > Comment#4 was not about the example applications. The ROOT tomcat app is different from the example webapp (and the manager and host-manager, which work, but are installed in odd locations, without making the required changes to the ROOT app, so all the links end up broken. The ROOT may or may have some security issues, but with the default install without any users configured, the functionality won't work anyway without setting up users first. As far as the examples go, I haven't figured out yet how to get those to work yet. There is a USE flag to install it or not, but that just adds the files. Tomcat sees it as a valid stopped application, but is unable to start it (results in FAIL - Application at context path /examples could not be started ) Created attachment 245213 [details, diff]
this tomcat patch adds build-examples ant task and overrides allowLinking parameter for /examples
Created attachment 245214 [details]
tomcat ebuild with examples bugfix
Closing per William's request. *** This bug has been marked as a duplicate of bug 283273 *** |