Bug 1286800 - Failed to start component due to wrong allowLinking="true" in context.xml
Summary: Failed to start component due to wrong allowLinking="true" in context.xml
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: tomcat
Version: 23
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Ivan Afonichev
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-30 18:35 UTC by Konstantin Volkov
Modified: 2016-05-02 20:30 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-02 20:30:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Konstantin Volkov 2015-11-30 18:35:23 UTC
Description of problem:

Failed to start component due to wrong allowLinking="true" in context.xml

Version-Release number of selected component (if applicable):
tomcat-webapps-8.0.26-1.fc23.noarch

How reproducible:
100%

Steps to Reproduce:
1. Try to open tomcat example
2. It fails

Actual results:

In tomcat logs:

---
30-Nov-2015 15:03:45.958 WARNING [localhost-startStop-1] org.apache.catalina.startup.SetContextPropertiesRule.begin  SetContextPropertiesRule]{Context} Setting property 'allowLinking' to 'true' did not find a matching property.
30-Nov-2015 15:03:45.992 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start: 
 org.apache.catalina.LifecycleException: Failed to start component  StandardEngine[Catalina].StandardHost[localhost].StandardContext[/examples]]
---

Expected results:
No failures

Additional info:
As described here:

https://tomcat.apache.org/migration-8.html#Web_application_resources

the /var/lib/tomcat/webapps/examples/META-INF/context.xml should contain

<Context>
  <Resources allowLinking="true" />
</Context>

instead of

<Context allowLinking="true"/>

Comment 1 Coty Sutherland 2016-02-10 21:01:09 UTC
https://github.com/csutherl/fedora-tomcat/commit/82310b6

I updated the context.xml that gets created in the tomcat.spec to reflect the syntax change. It works now on a local build for me.

Comment 2 Fedora Update System 2016-02-23 10:05:03 UTC
tomcat-8.0.32-3.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-5e0bb2f21a

Comment 3 Fedora Update System 2016-02-24 21:51:34 UTC
tomcat-8.0.32-3.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-5e0bb2f21a


Note You need to log in before you can comment on or make changes to this bug.