The app works fine running from the war, it's just sometimes we have to send
a hotfix and it's easier for someone to be able to just drop a jsp or a
class file in the directory.

I'll take a look at TC5, we'd probably switch to that eventually anyway.

Thanks,
        Jesse

-----Original Message-----
From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 18, 2004 10:24 AM
To: Tomcat Users List
Subject: RE: Context mapping and war


Is there a need to?  Unless your accessing files directly through the file
system, it is not required... In TC5, you can add this context to your war,
and it should expand (given the host configuration options defined).

-----Original Message-----
From: Jesse Vitrone [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 18, 2004 10:14 AM
To: 'Tomcat Users List'
Subject: RE: Context mapping and war

That works!  There's no way to make it extract though?

Jesse

-----Original Message-----
From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 18, 2004 9:53 AM
To: Tomcat Users List
Subject: RE: Context mapping and war


Change you docbase to 'mywebapp.war'  and retry.

-----Original Message-----
From: Jesse Vitrone [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 18, 2004 9:52 AM
To: 'Tomcat Users List'
Subject: RE: Context mapping and war

I'm running Tomcat 4.1.30

When I try to hit the app, I get a 404.

>> I believe this is known behavior for Tomcat 4

Is it different for Tomcat 5?

Thanks,
        Jesse

-----Original Message-----
From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 18, 2004 9:43 AM
To: Tomcat Users List
Subject: RE: Context mapping and war


Which version of Tomcat?  I believe this is known behavior for Tomcat 4, if
you define a context element pointing to a war fail. There should be no
problem with functionality; can you verify?  A War is not required to be
extracted in order for it to load properly. 

-----Original Message-----
From: Jesse Vitrone [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 18, 2004 9:42 AM
To: [EMAIL PROTECTED]
Subject: Context mapping and war

When I try to install my application, I put the war file in the webapps
directory, and in the server.xml I add a <context> mapping.  When I start
Tomcat, my war file isn't getting extracted.
 
Unpack wars is set to true:
 
      <Host name="localhost" debug="0" appBase="webapps" 
       unpackWARs="true" autoDeploy="true">
 
If I comment out my <context>, the war gets extracted, but I need the
context mapping.  Once the war is extracted, I can put the <context> mapping
in and everything works fine.  
 
Any idea why my war isn't getting extracted when the mapping is in there?
 
My mapping looks like this:
 
        <Context path="/mywebapp" docBase="mywebapp" debug="99"
reloadable="true">
                <Resource name="jdbc/pmisDS" auth="Container"
type="javax.sql.DataSource"/>
                <ResourceParams name="jdbc/mywebappDS">
                    <parameter>
                        <name>factory</name>
 
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
                    </parameter>
 
                    <parameter>
                        <name>maxActive</name>
                        <value>50</value>
                    </parameter>
 
                    <parameter>
                        <name>maxIdle</name>
                        <value>5</value>
                    </parameter>
 
                    <parameter>
                        <name>maxWait</name>
                        <value>10000</value>
                    </parameter>
 
                    <parameter>
                        <name>logAbandoned</name>
                        <value>true</value>
                    </parameter>
 
                    <parameter>
                        <name>removeAbandoned</name>
                        <value>true</value>
                    </parameter>
 
                    <parameter>
                        <name>removeAbandonedTimeout</name>
                        <value>60</value>
                    </parameter>
 
                    <parameter>
                        <name>username</name>
                        <value>user</value>
                    </parameter>
                    <parameter>
                        <name>password</name>
                        <value>pass</value>
                    </parameter>
                    <parameter>
                        <name>driverClassName</name>
                        <value>com.jnetdirect.jsql.JSQLDriver</value>
                    </parameter>
                    <parameter>
                        <name>url</name>
 
<value>jdbc:JSQLConnect://mydb/database=name</value>

                    </parameter>
                </ResourceParams>
        </Context>

Any suggestions would be greatly appreciated.
 
Thanks,
    Jesse
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to