You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Vincent Massol <vm...@pivolis.com> on 2003/09/13 17:21:48 UTC

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

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 


RE: Ear files

Posted by Vincent Massol <vm...@pivolis.com>.
Not yet... :-)

However you can check:

http://cvs.apache.org/viewcvs.cgi/jakarta-cactus/samples/ejb/src/scripts
/share/build.xml?rev=1.2&content-type=text/vnd.viewcvs-markup

(especially the ear and test.war targets)

-Vincent

> -----Original Message-----
> From: Bret Kumler [mailto:bkumler@firstam.com]
> Sent: 15 September 2003 17:47
> To: Cactus Users List
> Subject: Ear files
> 
> I want to create an ear file.
> Is there a CactifyEar ?
> Or can I use something like this?
> 
> <cactifywar srcfile="${target.dir}/${project.name.file}.ear"
>         destfile="${target.dir}/test.ear"
>         mergewebxml="${src.webapp.dir}/WEB-INF/cactus-web.xml">
> 
> 
> Thanks
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org



Ear files

Posted by Bret Kumler <bk...@firstam.com>.
I want to create an ear file.
Is there a CactifyEar ?
Or can I use something like this?

<cactifywar srcfile="${target.dir}/${project.name.file}.ear"
        destfile="${target.dir}/test.ear"
        mergewebxml="${src.webapp.dir}/WEB-INF/cactus-web.xml">


Thanks