Hi all,

I am working with the version of Cactus and Maven in CVS head.  At this
point, my remaining headache is with using my own server.xml and tomcat
4.1.x...

If I don't specify a server.xml, then my war file is unpacked, and the tests
all run.  The only issue is that this causes things to fail as I need
settings from my server.xml.  If I specify one via:   
  cactus.tomcat4x.config = ${basedir}/src/conf/cactus-server.xml

Then my cactus-server.xml is copied over as the server.xml.  However, the
war file is never unpacked, and eventually I time out.  Here is my relavant
portion:

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

<GlobalNamingResources>
    <Environment name="upstateGlobal/mail.to.errors" override="true"
type="java.lang.String" description="Who to email when there are errors."
value="[EMAIL PROTECTED]"/>
    
    <Resource name="jdbc/fortius" scope="Shareable"
type="javax.sql.DataSource"/>
    
    <Resource name="UpstateMailServer" scope="Shareable"
type="javax.mail.Session"/>
    <ResourceParams name="UpstateMailServer">
          <parameter>
            <name>mail.smtp.host</name>
            <value>hqitapp01</value>
          </parameter>
    </ResourceParams>    
    
    <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;Select
Method=cursor</value>
      </parameter>
      <parameter>
        <name>password</name>
        <value>yertle</value>
      </parameter>
      <parameter>
        <name>maxActive</name>
        <value>18</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="2" appBase="webapps" unpackWARs="true"
        autoDeploy="true">

        <Context path="/fortius-cactus" docBase="C:\Documents and
Settings\Eric Pugh\Local
Settings\Temp\cactus\tomcat4x\webapps\fortius-cactus" debug="2"
reloadable="true">
          
          <ResourceLink name="jdbc/fortius" type="javax.sql.DataSource"
global="jdbc/fortius"/>  
          <ResourceLink name="mail/Upstate" type="javax.mail.Session"
global="UpstateMailServer"/>
          
        </Context>

      </Host>

    </Engine>

  </Service>

</Server>

Am I somehow not specifing my context correctly?  I know it is something
small, I just don't see it...

Eric Pugh

Reply via email to