jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@pivolis.com>
Subject RE: Using Custom server.xml and Tomcat 4.1.24, War doesn't expand
Date Sat, 13 Sep 2003 15:21:48 GMT
Hi Eric,

Is this still an issue with the latest version of the Maven Cactus
plugin?

Thanks
-Vincent

-----Original Message-----
From: EPugh@upstate.com [mailto:EPugh@upstate.com] 
Sent: 10 July 2003 12:46
To: cmlenz@gmx.de; cactus-user@jakarta.apache.org
Subject: 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;Se
lectMethod=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="c:\clients\upstate\fortius\target\fortius-cactus.war"
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 


Mime
View raw message