Bug 748015 - Tomcat 6.0.32-8 java.lang.IllegalArgumentException: Document base does not exist or is not a readable directory
Summary: Tomcat 6.0.32-8 java.lang.IllegalArgumentException: Document base does not ex...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: tomcat6
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
Assignee: David Knox
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 747731 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-21 17:44 UTC by Leif Gruenwoldt
Modified: 2015-11-02 00:16 UTC (History)
7 users (show)

Fixed In Version: tomcat6-6.0.32-10.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-10 17:33:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Leif Gruenwoldt 2011-10-21 17:44:34 UTC
Description of problem:

My system just auto updated (only does that for security fixes) and now Tomcat won't serve up anything.


Version-Release number of selected component (if applicable):

Updated from tomcat6-6.0.32-5.fc15.noarch to tomcat6-6.0.32-8.fc15.noarch.


How reproducible:

Everytime.


Steps to Reproduce:

1. Browse to http://localhost:8080/
  
Actual results:

"The requested resource () is not available."

Expected results:

The tomcat welcome screen.


Additional info:

None of my installed webapps work either.


Some info from /var/log/tomcat6/catalina.out


Oct 21, 2011 1:29:15 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Oct 21, 2011 1:29:15 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /usr/share/tomcat6/webapps/manager does not exist or is not a readable directory
	at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142)
	at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4319)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4488)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
	at org.apache.catalina.core.StandardService.start(StandardService.java:525)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Oct 21, 2011 1:29:15 PM org.apache.catalina.core.StandardContext start
SEVERE: Error in resourceStart()
Oct 21, 2011 1:29:15 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Oct 21, 2011 1:29:15 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/manager] startup failed due to previous errors
Oct 21, 2011 1:29:15 PM org.apache.catalina.core.StandardContext stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager] has not been started

Comment 1 Andy Madsen 2011-10-25 11:45:56 UTC
I was able to reproduce this bug. New installs of Tomcat6 do not fix the problem.

This was a working configuration until Sunday, 10/25/2011, and then just nothing.

Fedora 15
SELinux Disabled

Comment 2 David Knox 2011-10-25 15:38:10 UTC
I traced this down to a directory permission problem. /var/lib/tomcat6 requires group permission +x (0775). The correction will be posted on bodhi today. 

The permissions on basedir have been 0765 since at least May.

Comment 3 Leif Gruenwoldt 2011-10-25 15:50:16 UTC
Yes, `sudo chmod 775 /var/lib/tomcat6/` fixed things here. Thankyou!

Comment 4 Fedora Update System 2011-10-25 16:05:35 UTC
tomcat6-6.0.32-10.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/tomcat6-6.0.32-10.fc15

Comment 5 Andy Madsen 2011-10-25 16:18:33 UTC
Ha, can't believe I missed that!

Super, thanks so much David.

Comment 6 David Strauss 2011-10-25 17:42:03 UTC
*** Bug 747731 has been marked as a duplicate of this bug. ***

Comment 7 Fedora Update System 2011-10-27 04:01:55 UTC
Package tomcat6-6.0.32-10.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing tomcat6-6.0.32-10.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-15005
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2011-11-10 17:33:15 UTC
tomcat6-6.0.32-10.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.


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