<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements.  See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License.  You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed  under the  License is distributed on an "AS IS" BASIS,
WITHOUT  WARRANTIES OR CONDITIONS  OF ANY KIND, either  express  or
implied.

See the License for the specific language governing permissions and
limitations under the License.
-->
<web-app xmlns="http://java.sun.com/xml/ns/javaee" version="2.5" metadata-complete="true">
    <display-name>system-database</display-name>
    
    <servlet>
      <servlet-name>dwr-invoker</servlet-name>
      <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
      <init-param>
        <param-name>classes</param-name>
        <param-value>
            org.apache.geronimo.console.ajax.ProgressMonitor,
            org.apache.geronimo.console.ajax.ProgressInfo
        </param-value>
      </init-param>
      <init-param>
          <param-name>activeReverseAjaxEnabled</param-name>
          <param-value>true</param-value>
      </init-param>
    </servlet>
    
    <servlet>
        <display-name>Pluto Wrapper for Internal DB Portlet</display-name>
        <servlet-name>InternalDB</servlet-name>
        <servlet-class>org.apache.pluto.core.PortletServlet</servlet-class>
        <init-param>
            <param-name>portlet-name</param-name>
            <param-value>InternalDB</param-value>
        </init-param>
    </servlet>

    <servlet>
        <display-name>Pluto Wrapper for DB Viewer Portlet</display-name>
        <servlet-name>DBViewer</servlet-name>
        <servlet-class>org.apache.pluto.core.PortletServlet</servlet-class>
        <init-param>
            <param-name>portlet-name</param-name>
            <param-value>DBViewer</param-value>
        </init-param>
    </servlet>

    <servlet>
        <display-name>Pluto Wrapper for Run SQL Portlet</display-name>
        <servlet-name>RunSQL</servlet-name>
        <servlet-class>org.apache.pluto.core.PortletServlet</servlet-class>
        <init-param>
            <param-name>portlet-name</param-name>
            <param-value>RunSQL</param-value>
        </init-param>
    </servlet>

    <servlet>
        <display-name>Pluto Wrapper for DataSource Run SQL Portlet</display-name>
        <servlet-name>RunSQLDS</servlet-name>
        <servlet-class>org.apache.pluto.core.PortletServlet</servlet-class>
        <init-param>
            <param-name>portlet-name</param-name>
            <param-value>RunSQLDS</param-value>
        </init-param>
    </servlet>

   <servlet>
        <display-name>Pluto Wrapper for Derby Log Viewer Portlet</display-name>
        <servlet-name>DerbyLogViewer</servlet-name>
        <servlet-class>org.apache.pluto.core.PortletServlet</servlet-class>
        <init-param>
            <param-name>portlet-name</param-name>
            <param-value>DerbyLogViewer</param-value>
        </init-param>
    </servlet>

    <servlet>
        <display-name>Pluto Wrapper for Database Wizard Portlet</display-name>
        <servlet-name>DBWizard</servlet-name>
        <servlet-class>org.apache.pluto.core.PortletServlet</servlet-class>
        <init-param>
            <param-name>portlet-name</param-name>
            <param-value>DBWizard</param-value>
        </init-param>
    </servlet>

    <servlet-mapping>
        <servlet-name>dwr-invoker</servlet-name>
        <url-pattern>/dwr3/*</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>InternalDB</servlet-name>
        <url-pattern>/PlutoInvoker/InternalDB/*</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>DBViewer</servlet-name>
        <url-pattern>/PlutoInvoker/DBViewer/*</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>RunSQL</servlet-name>
        <url-pattern>/PlutoInvoker/RunSQL/*</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>RunSQLDS</servlet-name>
        <url-pattern>/PlutoInvoker/RunSQLDS/*</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>DerbyLogViewer</servlet-name>
        <url-pattern>/PlutoInvoker/DerbyLogViewer/*</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>DBWizard</servlet-name>
        <url-pattern>/PlutoInvoker/DBWizard/*</url-pattern>
    </servlet-mapping>

    <security-constraint>
        <web-resource-collection>
            <web-resource-name>system-database</web-resource-name>
            <url-pattern>/PlutoInvoker/*</url-pattern>
            <url-pattern>/dwr3/*</url-pattern>
            <http-method>GET</http-method>
            <http-method>POST</http-method>
            <http-method>PUT</http-method>
        </web-resource-collection>
        <auth-constraint>
            <role-name>admin</role-name>
        </auth-constraint>
    </security-constraint>
    <login-config>
        <auth-method>BASIC</auth-method>
        <realm-name>geronimo-admin</realm-name>
    </login-config>
    <security-role>
        <role-name>admin</role-name>
    </security-role>
    
    <!--
    For security reasons requests to the dwr servlet go through
    the "/console" web-app context. The purpose of dwr-filter is
    to map the attributes such as pathInfo, requestURI, etc. of
    the original request into the request that is delivered to
    the dwr-invoker servlet.  The dwr-invoker servlet uses those
    attributes to create URLs that it sends back to the client.
     -->
    <filter>
        <filter-name>dwr-filter</filter-name>
        <filter-class>org.apache.geronimo.console.servlet.ForwardDispatchFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>dwr-filter</filter-name>
        <servlet-name>dwr-invoker</servlet-name>
        <dispatcher>FORWARD</dispatcher>
    </filter-mapping>

<!--
Automatically created by Apache Jakarta Tomcat JspC.
Place this fragment in the web.xml before all icon, display-name,
description, distributable, and context-param elements.
-->

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.internaldb.dbViewerHelp_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.internaldb.dbViewerHelp_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.internaldb.internalDBHelp_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.internaldb.internalDBHelp_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.internaldb.internalDBMaximized_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.internaldb.internalDBMaximized_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.internaldb.internalDBNormal_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.internaldb.internalDBNormal_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.internaldb.listDatabases_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.internaldb.listDatabases_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.internaldb.listDatabasesMaximized_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.internaldb.listDatabasesMaximized_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.internaldb.listTables_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.internaldb.listTables_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.internaldb.listTablesMaximized_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.internaldb.listTablesMaximized_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.internaldb.runSQLHelp_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.internaldb.runSQLHelp_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.internaldb.runSQLMaximized_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.internaldb.runSQLMaximized_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.internaldb.runSQLNormal_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.internaldb.runSQLNormal_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.internaldb.viewTableContents_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.internaldb.viewTableContents_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.internaldb.viewTableContentsMaximized_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.internaldb.viewTableContentsMaximized_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.derbylogmanager.help_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.derbylogmanager.help_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.derbylogmanager.view_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.derbylogmanager.view_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.dbwizard.basicParams_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.dbwizard.basicParams_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.dbwizard.confirmURL_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.dbwizard.confirmURL_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.dbwizard.downloadStatus_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.dbwizard.downloadStatus_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.dbwizard.edit_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.dbwizard.edit_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.dbwizard.importStatus_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.dbwizard.importStatus_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.dbwizard.importUpload_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.dbwizard.importUpload_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.dbwizard.list_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.dbwizard.list_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.dbwizard.selectDatabase_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.dbwizard.selectDatabase_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.dbwizard.selectDownload_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.dbwizard.selectDownload_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.dbwizard.showPlan_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.dbwizard.showPlan_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.dbwizard.testConnection_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.dbwizard.testConnection_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.dbwizard.usage_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.dbwizard.usage_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.ajax.progressbar_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.ajax.progressbar_jsp</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.internaldb.dbViewerHelp_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/internaldb/dbViewerHelp.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.internaldb.internalDBHelp_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/internaldb/internalDBHelp.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.internaldb.internalDBMaximized_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/internaldb/internalDBMaximized.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.internaldb.internalDBNormal_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/internaldb/internalDBNormal.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.internaldb.listDatabases_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/internaldb/listDatabases.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.internaldb.listDatabasesMaximized_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/internaldb/listDatabasesMaximized.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.internaldb.listTables_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/internaldb/listTables.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.internaldb.listTablesMaximized_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/internaldb/listTablesMaximized.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.internaldb.runSQLHelp_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/internaldb/runSQLHelp.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.internaldb.runSQLMaximized_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/internaldb/runSQLMaximized.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.internaldb.runSQLNormal_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/internaldb/runSQLNormal.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.internaldb.viewTableContents_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/internaldb/viewTableContents.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.internaldb.viewTableContentsMaximized_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/internaldb/viewTableContentsMaximized.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.derbylogmanager.help_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/derbylogmanager/help.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.derbylogmanager.view_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/derbylogmanager/view.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.dbwizard.basicParams_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/dbwizard/basicParams.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.dbwizard.confirmURL_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/dbwizard/confirmURL.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.dbwizard.downloadStatus_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/dbwizard/downloadStatus.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.dbwizard.edit_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/dbwizard/edit.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.dbwizard.importStatus_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/dbwizard/importStatus.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.dbwizard.importUpload_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/dbwizard/importUpload.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.dbwizard.list_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/dbwizard/list.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.dbwizard.selectDatabase_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/dbwizard/selectDatabase.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.dbwizard.selectDownload_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/dbwizard/selectDownload.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.dbwizard.showPlan_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/dbwizard/showPlan.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.dbwizard.testConnection_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/dbwizard/testConnection.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.dbwizard.usage_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/dbwizard/usage.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.ajax.progressbar_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/ajax/progressbar.jsp</url-pattern>
    </servlet-mapping>

<!--
All session-config, mime-mapping, welcome-file-list, error-page, taglib,
resource-ref, security-constraint, login-config, security-role,
env-entry, and ejb-ref elements should follow this fragment.
-->

</web-app>