Title: RE: Using Custom server.xml and Tomcat 4.1.24, War doesn't expand

Christoper,

Thanks for your help..  Here is my complete server.xml:

<Server port="8005" shutdown="SHUTDOWN" debug="0">
  <GlobalNamingResources>
    <Resource name="jdbc/fortius" scope="Shareable" type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/fortius">
          <parameter>
            <name>validationQuery</name>
            <value>SELECT 1</value>
          </parameter>
          <parameter>
            <name>url</name>
            <value>jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=fortius;SelectMethod=cursor</value>
          </parameter>
          <parameter>
            <name>password</name>
            <value>yertle</value>
          </parameter>
          <parameter>
            <name>maxActive</name>
            <value>40</value>
          </parameter>
          <parameter>
            <name>maxWait</name>
            <value>5000</value>
          </parameter>
          <parameter>
            <name>driverClassName</name>
            <value>com.microsoft.jdbc.sqlserver.SQLServerDriver</value>
          </parameter>
          <parameter>
            <name>username</name>
            <value>fortius</value>
          </parameter>
          <parameter>
            <name>maxIdle</name>
            <value>2</value>
          </parameter>
    </ResourceParams>
  </GlobalNamingResources>
  <Service name="Tomcat-Standalone">

    <Connector className="org.apache.catalina.connector.http.HttpConnector"
               port="8080" minProcessors="5" maxProcessors="75"
               acceptCount="10" debug="0"/>

    <Engine name="Standalone" defaultHost="localhost" debug="0">

      <Realm className="org.apache.catalina.realm.MemoryRealm" />

      <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true">
 
        <Context path="/fortius-cactus" docBase="C:\clients\Upstate\fortius\target\cactus\webapps\fortius-cactus" debug="0" reloadable="true">

          <Loader checkInterval="1"/>
          <ResourceLink name="jdbc/fortius" type="javax.sql.DataSource" global="jdbc/fortius"/> 
        </Context>
       
      </Host>

    </Engine>

  </Service>

</Server>


What seems to make things work is if I add in as a preGoal this:
  <preGoal name="cactus:test">
    <unwar src="" dest="C:\clients\Upstate\fortius\target\cactus\webapps\fortius-cactus"/> 

  </preGoal>


Then the war file is unpacked, but without it, it is never unpacked by Tomcat!  Argh!

Thanks,
Eric Pugh

Reply via email to