Mike2: Tomcat 5

Hi, ich hab mir Tomcat auf nem Gentoo installiert. Er startet scheinbar problemlos. Allerdings erscheint, wenn ich die Seite localhost:8080 nichts.Wenn ich dann in catalina_log schaue, dann steht:

2004-08-05 18:58:44 UserDatabaseRealm[Catalina]: Exception looking up UserDatabase under key UserDatabase
javax.naming.NamingException: /opt/tomcat5/conf/tomcat-users.xml.new (Permission denied)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:803)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:151)
        at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:252)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1075)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
        at org.apache.catalina.core.StandardService.start(StandardService.java:480)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
        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:324)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)

Die Datei /opt/tomcat5/conf/tomcat-users.xml.new existiert nichtmal. Ich habe dann eine Kopie von /opt/tomcat5/conf/tomcat-users.xml auf /opt/tomcat5/conf/tomcat-users.xml.new gemacht, der Fehler besteht jedoch weiterhin.

WOran liegts?

  1. Hast du deine web.xml auf Fehler ueberprueft?

    1. ne, bisher nicht. bin noch der absolute tomcat noob :)

      Inhalt ist:

      <?xml version="1.0" encoding="ISO-8859-1"?>
      <!DOCTYPE web-app
           PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
          "http://java.sun.com/dtd/web-app_2_3.dtd">
      <web-app>

      <servlet>
              <servlet-name>default</servlet-name>
              <servlet-class>
                org.apache.catalina.servlets.DefaultServlet
              </servlet-class>
              <init-param>
                  <param-name>debug</param-name>
                  <param-value>0</param-value>
              </init-param>
              <init-param>
                  <param-name>listings</param-name>
                  <param-value>true</param-value>
              </init-param>
              <load-on-startup>1</load-on-startup>
          </servlet>

      <!--
          <servlet>
              <servlet-name>invoker</servlet-name>
              <servlet-class>
                org.apache.catalina.servlets.InvokerServlet
              </servlet-class>
              <init-param>
                  <param-name>debug</param-name>
                  <param-value>0</param-value>
              </init-param>
              <load-on-startup>2</load-on-startup>
          </servlet>
      -->

      <!--
          <servlet>
              <servlet-name>ssi</servlet-name>
              <servlet-class>
                org.apache.catalina.ssi.SSIServlet
              </servlet-class>
              <init-param>
                <param-name>buffered</param-name>
                <param-value>1</param-value>
              </init-param>
              <init-param>
                <param-name>debug</param-name>
                <param-value>0</param-value>
              </init-param>
              <init-param>
                <param-name>expires</param-name>
                <param-value>666</param-value>
              </init-param>
              <init-param>
                <param-name>isVirtualWebappRelative</param-name>
                <param-value>0</param-value>
              </init-param>
              <load-on-startup>4</load-on-startup>
          </servlet>
      -->

      <!--
          <servlet>
              <servlet-name>cgi</servlet-name>
              <servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class>
              <init-param>
                <param-name>clientInputTimeout</param-name>
                <param-value>100</param-value>
              </init-param>
              <init-param>
                <param-name>debug</param-name>
                <param-value>6</param-value>
              </init-param>
              <init-param>
                <param-name>cgiPathPrefix</param-name>
                <param-value>WEB-INF/cgi</param-value>
              </init-param>
               <load-on-startup>5</load-on-startup>
          </servlet>
      -->

      <!-- The mapping for the default servlet -->
          <servlet-mapping>
              <servlet-name>default</servlet-name>
              <url-pattern>/</url-pattern>
          </servlet-mapping>

      <!-- The mapping for the invoker servlet -->
      <!--
          <servlet-mapping>
              <servlet-name>invoker</servlet-name>
              <url-pattern>/servlet/*</url-pattern>
          </servlet-mapping>
      -->

      <!-- The mapping for the JSP servlet -->
          <servlet-mapping>
              <servlet-name>jsp</servlet-name>
              <url-pattern>*.jsp</url-pattern>
          </servlet-mapping>

      <servlet-mapping>
              <servlet-name>jsp</servlet-name>
              <url-pattern>*.jspx</url-pattern>
          </servlet-mapping>

      <!-- The mapping for the SSI servlet -->
      <!--
          <servlet-mapping>
              <servlet-name>ssi</servlet-name>
              <url-pattern>*.shtml</url-pattern>
          </servlet-mapping>
      -->

      <!-- The mapping for the CGI Gateway servlet -->

      <!--
          <servlet-mapping>
              <servlet-name>cgi</servlet-name>
              <url-pattern>/cgi-bin/*</url-pattern>
          </servlet-mapping>
      -->

      <session-config>
              <session-timeout>30</session-timeout>
          </session-config>

      <mime-mapping>
              <extension>tsv</extension>
              <mime-type>text/tab-separated-values</mime-type>
          </mime-mapping>

      DAVON MEHRERE, MÖCHTE SIE JETZT NICHT ALLE HIER REIN KOPIEREN!

      <welcome-file-list>
              <welcome-file>index.html</welcome-file>
              <welcome-file>index.htm</welcome-file>
              <welcome-file>index.jsp</welcome-file>
          </welcome-file-list>

      </web-app>