Hi,

I should have read my email before sending it as i doesn't make much sense. :-)

I'm using Tomcat-5.
I've set unpackwars to True.
I've deployed my war through the manager interface.

But as far as i can see the only way to redeploy the war is to undeploy it and the 
redeploy it again.
(I believe this has the effect of deleting the unpacked war, and the unzipping it 
again when you deploy it).

Is there a better way to set up Tomcat so that i can achieve this.

Owen

P.S. Thanks for the pointer to ClasspathResourceLoader I will have a look at that.

On Mon, 19 Apr 2004 16:13:43 +0000, Jacob Kjome <[EMAIL PROTECTED]> wrote:

Quoting Owen Fellows <[EMAIL PROTECTED]>:

Hi,

Cheers for that, I've unpacked the war now and it works fine.

Is there any way to redeploy an unpacked war with undeploying and then
redeploying.
It doesn't take that long to redeploy but it is a bit ennoying.


Upgrade to Tomcat-5. It explodes war files by default...even on a Tomcat manager deploy. I would still rethink using a technology that violates the J2EE by requriing access to the file sytem in order to work properly.

Jake

Cheers,
Owen

On Mon, 19 Apr 2004 15:15:57 +0000, Jacob Kjome <[EMAIL PROTECTED]> wrote:

> You've got unpackWars="false".  I don't use Velocity, but does it use File
IO to
> load .vm files?  If so, you will have to unpack wars to use Velocity.
Pretty
> stupid on Velocity's part if they use File IO in Webapps.
>
> Jake
>
> Quoting Owen Fellows <[EMAIL PROTECTED]>:
>
>> Hi,
>>
>> I've raised a bug online
>>    http://issues.apache.org/bugzilla/show_bug.cgi?id=28470
>> but though I would ask the question here as well.
>>
>> --
>> The problem i'm experiencing is this.
>>
>> org.apache.velocity.exception.ResourceNotFoundException: Unable to find
>> resource
>> '/index.vm'
>>
>> org.apache.velocity.exception.ResourceNotFoundException: Unable to find
>> resource
>> '/index.vm'
>> at org.apache.velocity.runtime.resource.ResourceManagerImpl.
>> loadResource(ResourceManagerImpl.java:501)
>>
>>
>> ---
>>
>> I've deployed a war through the manager interface.  It deploys fine, picks
up
>> the xml file with my context in it, datasource etc.
>> First time i go to a page i get the above error.
>>
>> I have unpackWARs set to false because i want to be able to reload my war
>> without undeploying (I believe this possible).
>> This is the Host tag in the server.xml
>>      <Host name="localhost" debug="0" appBase="webapps"
>>         unpackWARs="false" autoDeploy="false"
>>         xmlValidation="false" xmlNamespaceAware="false">
>>
>> Questions.
>> - Am i doing something wrong
>> - Is there another way i can get my war to redeploy (without having to
>> undeploy
>> redeploy)?
>>
>>
>> Any replies or advice would be great.
>>
>> Thanks,
>> Owen
>>
>>
>> ---------------------------------------------------------------------
>> 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