You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by hisameer <co...@yahoo.com> on 2008/08/01 01:17:02 UTC

Re: Hot deployment Using Tomcat

There is no permission issue as for as I know. I am using the following error
:

C:\workspace\scripts\build.abstract.xml:23: The following error occurred
while executing this line:
C:\workspace\scripts\build.xml:27: The following error occurred while
executing this line:
C:\workspace\scripts\build.xml:20: The following error occurred while
executing this line:
C:\workspace\scripts\build.xml:9: The following error occurred while
executing this line:
C:\workspace\tomcat\build.xml:23: Unable to delete file
C:\workspace\tomcat\webapps\websupport\WEB-INF\lib\antlr-2.7.6.jar

where tomcat is my server directory. I am using sysdeo plugin to start and
stop the server.

This happens whenever I try to delete all the files when the tomcat is
running.

Some forums say change the context file under conf/ folder or some say
change server.xml file. But still there is no proper solution neither there
is not any example shown how would you do it. So this thing amazes me. I am
sure there would almost 99% people who are using hotdeploment but I couldn't
get a single article which explains how you would do that.






Alessandro Ferrucci-3 wrote:
> 
> This assumes that the manager application has been correctly configured
> for
> authentication, rarely the case.  What did you mean by
> "I cannot delete them unless until I stop the server".  Is it some
> permissions issue? Why can't you delete those files?
> 
> -- 
> Signed,
> Alessandro Ferrucci
> 
> On Thu, Jul 31, 2008 at 1:44 PM, Johnny Kewl <jo...@kewlstuff.co.za> wrote:
> 
>>
>> ----- Original Message ----- From: "hisameer"
>> <cool_sameer_for_u@yahoo.com
>> >
>> To: <us...@tomcat.apache.org>
>> Sent: Thursday, July 31, 2008 4:29 PM
>> Subject: Re: Hot deployment Using Tomcat
>>
>>
>>
>>> Thanks for your reply Alessandro
>>>
>>> The autodeploy is set to true but but whenever my build process tries to
>>> delete the previous .war file and
>>> the exploded war (which is exploded by tomcat) from webapps directory I
>>> cannot delete them unless until I
>>> stop the server. I want to do this on the fly.
>>>
>>> This is where I am failing.
>>>
>>
>> Try this... maybe it does what you want
>>
>>
>> http://localhost:8080/manager/deploy?localWar=file://PathToYourUnpackedWar&path=/ContextNameYouWant
>>
>>
>> and thats it... TC should do the rest ;)
>>
>>
>> ---------------------------------------------------------------------------
>> HARBOR : http://www.kewlstuff.co.za/index.htm
>> The most powerful application server on earth.
>> The only real POJO Application Server.
>> See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
>> ---------------------------------------------------------------------------
>>
>>
>>  Alessandro Ferrucci-3 wrote:
>>>
>>>>
>>>> autoDeploy is set to true by default in tomcat 6, make sure that this
>>>> attribute is set to "true" in the conf/server.xml.  If it is set to
>>>> true,
>>>> then no matter if you're re-deploying a packed or un-packed war, it
>>>> will
>>>> re-deploy should the timestamps on the web deployment descriptor
>>>> change.
>>>>
>>>> On Wed, Jul 30, 2008 at 5:30 PM, hisameer
>>>> <co...@yahoo.com>wrote:
>>>>
>>>>
>>>>> Hello Everyone
>>>>>
>>>>>
>>>>> I am using the following versions :
>>>>>
>>>>> Eclipse Version : Ganemede
>>>>> Tomcat Sysdeo Plugin(version 3.2.1)
>>>>> Tomcat Server(version 6.0.16)
>>>>>
>>>>> I have a build.xml file created which basically puts all the contents
>>>>> of
>>>>> a
>>>>> webproject.war into the location /workspace/dist/webproject or I can
>>>>> say
>>>>> I
>>>>> have an exploded war. I don't know what should I do inorder to deploy
>>>>> that
>>>>> exploded war to the tomcat server. Also I want to get rid of starting
>>>>> and
>>>>> stoping the server over and over again. I should be able to delete the
>>>>> previous exploded war file and place the new one without stopping the
>>>>> server. Previously I was creating a war file and I was stopping the
>>>>> server
>>>>> manually and then I was deleting the war file under /webapps folder of
>>>>> Tomcat and then I was placing the new war file there and then I had to
>>>>> start
>>>>> the server again. But now as the project is growing big and we  want
>>>>> to
>>>>> have
>>>>> the flexibility in our project.
>>>>>
>>>>> We need the help regarding HOT Deployment. I read some online
>>>>> tutorials
>>>>> and
>>>>> tried to use them but no progress so for.
>>>>>
>>>>> Can you please tell me step by step process to achieve that goal.
>>>>>
>>>>>  Right now, I have the functionality of deleting the previous exploded
>>>>> war
>>>>> file and making a new exploded war file using my build.xml and placing
>>>>> it
>>>>> into the /workspace/dist/ folder if there is some additional
>>>>> functionality
>>>>> needed please do let me know related to build.
>>>>>
>>>>> Thanks for YOUR help in advance . Please help me!
>>>>> --
>>>>> View this message in context:
>>>>>
>>>>> http://www.nabble.com/Hot-deployment-Using-Tomcat-tp18743255p18743255.html
>>>>> Sent from the Tomcat - User mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To start a new topic, e-mail: users@tomcat.apache.org
>>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> Signed,
>>>> Alessandro Ferrucci :)
>>>>
>>>>
>>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Hot-deployment-Using-Tomcat-tp18743255p18755883.html
>>> Sent from the Tomcat - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Hot-deployment-Using-Tomcat-tp18743255p18765495.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Hot deployment Using Tomcat

Posted by Alessandro Ferrucci <al...@gmail.com>.
Yes, the issue is that windows is extremely picky about locked files and
deleting those files, check the antiJARLocking and
antiResourceLocking attributes.


-- 
Signed,
Alessandro Ferrucci


On Thu, Jul 31, 2008 at 7:43 PM, Hassan Schroeder <
hassan.schroeder@gmail.com> wrote:

> On Thu, Jul 31, 2008 at 4:17 PM, hisameer <co...@yahoo.com>
> wrote:
>
> > C:\workspace\tomcat\build.xml:23: Unable to delete file
>
> Ah, Windoze  --- see the Context attributes antiJARLocking and
> antiResourceLocking.
>
> HTH,
> --
> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Hot deployment Using Tomcat

Posted by Hassan Schroeder <ha...@gmail.com>.
On Thu, Jul 31, 2008 at 4:17 PM, hisameer <co...@yahoo.com> wrote:

> C:\workspace\tomcat\build.xml:23: Unable to delete file

Ah, Windoze  --- see the Context attributes antiJARLocking and
antiResourceLocking.

HTH,
-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org