tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Monsorno <li...@exolution.de>
Subject cannot access my web application (resource is not available)
Date Wed, 19 Nov 2003 17:07:32 GMT
<!-- -*- xml -*- -->
<!-- Example Server Configuration File -->

<Server port="8005" shutdown="SHUTDOWN" debug="0">

  <!-- Global JNDI resources -->
  <GlobalNamingResources>
    <!-- Test entry for demonstration purposes -->
    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
  </GlobalNamingResources>

  <Service name="Tomcat-Standalone">

    <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
               port="8090" minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="8443"
               acceptCount="100" debug="0" connectionTimeout="20000"
               useURIValidationHack="false" disableUploadTimeout="true" />

    <!-- Define the top level container in our container hierarchy -->
    <Engine name="Standalone" defaultHost="localhost" debug="0">

      <!-- Define the default virtual host -->
      <Host name="localhost" debug="0" appBase="webapps"
            unpackWARs="true" autoDeploy="true">

        <Context
	  path="/myapp" 
	  docBase="myapp"
	  debug="0"
	  reloadable="true"
	  crossContext="true">

	  <!-- where (server-) logging goes to -->
          <Logger
	    className="org.apache.catalina.logger.FileLogger"
	    prefix="myapphost" 
	    suffix=".log"
	    timestamp="true"/>

	  <!-- properties for the app available over JNDI -->
	  <Environment name="simpleValue" type="java.lang.Integer" value="30"/>

	  <!-- datasource for intraPAS -->
          <Resource
	    name="jdbc/myappdb"
	    auth="Container"
	    type="javax.sql.DataSource"/>
          <ResourceParams name="jdbc/myappdb">
            <parameter>
	      <name>username</name>
	      <value>monsorno</value>
	    </parameter>
            <parameter>
	      <name>password</name>
	      <value>xxx</value>
	    </parameter>
            <parameter>
	      <name>driverClassName</name>
	      <value>org.postgresql.Driver</value>
	    </parameter>
            <parameter>
	      <name>url</name>
	      <value>jdbc:postgresql:myappdb</value>
	    </parameter>
          </ResourceParams>

	</Context>

      </Host>
    </Engine>
  </Service>
</Server>



-- 
Martin


Mime
View raw message