<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>175189</bug_id>
          
          <creation_ts>2007-04-19 09:08 0000</creation_ts>
          <short_desc>tomcat-6.0.10-r2 fails to run when started with init scripts</short_desc>
          <delta_ts>2007-04-19 16:36:09 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>adeel_n@yahoo.com</reporter>
          <assigned_to>wltjr@gentoo.org</assigned_to>
          <cc>java@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>adeel_n@yahoo.com</who>
            <bug_when>2007-04-19 09:08:39 0000</bug_when>
            <thetext>Tomcat 6.0.10 does not start when using the init scripts. It reports a successful startup, but on issuing an &apos;/etc/init.d/tomcat-6 status&apos; it reports stopped. However, if changing the tomcat_user setting in /etc/conf.d/tomcat-6 to &apos;root&apos; tomcat successfully starts. This implies a permissions problem. After some work, an error message is displayed:

WARNING: Can&apos;t load server.xml from /var/lib/tomcat-6/conf/server.xml
Apr 19, 2007 12:52:01 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 0 ms
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Unknown Source)
        at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
Caused by: java.lang.NullPointerException
        at org.apache.catalina.startup.Catalina.await(Unknown Source)
        at org.apache.catalina.startup.Catalina.start(Unknown Source)
        ... 6 more


Reproducible: Always

Steps to Reproduce:
1. emerge tomcat-6.0.10-r2
2. /etc/init.d/tomcat-6 start




Checking the permissions of /etc/tomcat-6 it turns out that it&apos;s permissions are:
    drwxr-x--- 3 root        root      4096 Apr 19 01:51 tomcat-6
while the permissions of /etc/tomcat-6/server.xml are:
    -rw-rw-r-- 1 tomcat tomcat  5164 Apr 19 01:27 server.xml
a simple solution is to change the group ownership of the folder to &apos;tomcat&apos;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wltjr@gentoo.org</who>
            <bug_when>2007-04-19 16:36:09 0000</bug_when>
            <thetext>Fixed in -r3, although updating to that version is not likely to resolve problem. You can either remove tomcat entirely, removing specifically /etc/tomcat-6. Or a much simpler solution would be to simply chown -R tomcat:tomcat /etc/tomcat-6. That should resolve problem, and has been addressed in ebuild.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>