You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Boris Klug <bo...@debeka.de> on 2005/09/20 11:55:29 UTC

Re: MyFaces 1.1.0 - problem redeploying apps - SOLVED

Hi!

I googled about the problem. It seems to be related to classloaders 
which hold resources like memory, tcp ports and files. The issue exists 
in Java 1.4.2, maby only on Windows. Java 1.5 fixed some but not all 
problems - havent tried it.
I also had always the problem that after some (around 30) redeploys I 
get an OutOfMemoryExecption... same problem ;-)

You can read more about the issue in the blog at (*1). For me personaly 
I solved the problem by adding the following to the META-INF\context.xml 
file:

	<Context antiResourceLocking="true" antiJARLocking="true">
	    <WatchedResource>
	      WEB-INF/web.xml
	    </WatchedResource>
	</Context>

When in Tomcat the antiXXXLocking are true, Tomcat copies all files from 
the application to its temp folder and uses this files - which means 
that deployment is slower (due copying) and your temp folder gets full.

Dont know why this didnt work the first time...

But, ok, its solved.

(*1) 
http://blog.exis.com/colin/archives/2005/08/23/i-put-a-spell-on-you-because-youre-mine-aka-why-is-tomcat-holding-onto-jars/


Re: MyFaces 1.1.0 - problem redeploying apps - SOLVED

Posted by Werner Punz <we...@gmx.at>.
Actually there is more than only one problem with Tomcat, especially
5.5.9 is pretty nasty, on one hand it requires a JDK 5.0 on the other
hand it refuses to compile 5.0 constructs due to the integrated jikes
compiler, guess it is time to open a tomcat quirks page ;-).

(It is not like Tomcat is the only app server with weird quirks, I had
my fair share of problems with Resin recently as well)

Werner


Martin Marinschek wrote:
> Thanks for keeping us updated!
> 
> I would be great if you could add this on the WIKI pages somewhere.
> 
> sounds like a problem more users could run into ;)
> 
> regards,
> 
> Martin
> 
> On 9/20/05, Boris Klug <bo...@debeka.de> wrote:
> 
>>Hi!
>>
>>I googled about the problem. It seems to be related to classloaders
>>which hold resources like memory, tcp ports and files. The issue exists
>>in Java 1.4.2, maby only on Windows. Java 1.5 fixed some but not all
>>problems - havent tried it.
>>I also had always the problem that after some (around 30) redeploys I
>>get an OutOfMemoryExecption... same problem ;-)
>>
>>You can read more about the issue in the blog at (*1). For me personaly
>>I solved the problem by adding the following to the META-INF\context.xml
>>file:
>>
>>        <Context antiResourceLocking="true" antiJARLocking="true">
>>            <WatchedResource>
>>              WEB-INF/web.xml
>>            </WatchedResource>
>>        </Context>
>>
>>When in Tomcat the antiXXXLocking are true, Tomcat copies all files from
>>the application to its temp folder and uses this files - which means
>>that deployment is slower (due copying) and your temp folder gets full.
>>
>>Dont know why this didnt work the first time...
>>
>>But, ok, its solved.
>>
>>(*1)
>>http://blog.exis.com/colin/archives/2005/08/23/i-put-a-spell-on-you-because-youre-mine-aka-why-is-tomcat-holding-onto-jars/
>>
>>
> 
> 
> 


Re: MyFaces 1.1.0 - problem redeploying apps - SOLVED

Posted by Boris Klug <bo...@debeka.de>.
Hi!

I am not so in this Wiki stuff... but everybody can find the postings in 
the mailing list archive.

Martin Marinschek wrote:
> Thanks for keeping us updated!
> 
> I would be great if you could add this on the WIKI pages somewhere.
> 
> sounds like a problem more users could run into ;)
> 
> regards,
> 
> Martin
> 
> On 9/20/05, Boris Klug <bo...@debeka.de> wrote:
> 
>>Hi!
>>
>>I googled about the problem. It seems to be related to classloaders
>>which hold resources like memory, tcp ports and files. The issue exists
>>in Java 1.4.2, maby only on Windows. Java 1.5 fixed some but not all
>>problems - havent tried it.
>>I also had always the problem that after some (around 30) redeploys I
>>get an OutOfMemoryExecption... same problem ;-)
>>
>>You can read more about the issue in the blog at (*1). For me personaly
>>I solved the problem by adding the following to the META-INF\context.xml
>>file:
>>
>>        <Context antiResourceLocking="true" antiJARLocking="true">
>>            <WatchedResource>
>>              WEB-INF/web.xml
>>            </WatchedResource>
>>        </Context>
>>
>>When in Tomcat the antiXXXLocking are true, Tomcat copies all files from
>>the application to its temp folder and uses this files - which means
>>that deployment is slower (due copying) and your temp folder gets full.
>>
>>Dont know why this didnt work the first time...
>>
>>But, ok, its solved.
>>
>>(*1)
>>http://blog.exis.com/colin/archives/2005/08/23/i-put-a-spell-on-you-because-youre-mine-aka-why-is-tomcat-holding-onto-jars/
>>
>>
> 
> 
> 

Re: MyFaces 1.1.0 - problem redeploying apps - SOLVED

Posted by Martin Marinschek <ma...@gmail.com>.
Thanks for keeping us updated!

I would be great if you could add this on the WIKI pages somewhere.

sounds like a problem more users could run into ;)

regards,

Martin

On 9/20/05, Boris Klug <bo...@debeka.de> wrote:
> Hi!
> 
> I googled about the problem. It seems to be related to classloaders
> which hold resources like memory, tcp ports and files. The issue exists
> in Java 1.4.2, maby only on Windows. Java 1.5 fixed some but not all
> problems - havent tried it.
> I also had always the problem that after some (around 30) redeploys I
> get an OutOfMemoryExecption... same problem ;-)
> 
> You can read more about the issue in the blog at (*1). For me personaly
> I solved the problem by adding the following to the META-INF\context.xml
> file:
> 
>         <Context antiResourceLocking="true" antiJARLocking="true">
>             <WatchedResource>
>               WEB-INF/web.xml
>             </WatchedResource>
>         </Context>
> 
> When in Tomcat the antiXXXLocking are true, Tomcat copies all files from
> the application to its temp folder and uses this files - which means
> that deployment is slower (due copying) and your temp folder gets full.
> 
> Dont know why this didnt work the first time...
> 
> But, ok, its solved.
> 
> (*1)
> http://blog.exis.com/colin/archives/2005/08/23/i-put-a-spell-on-you-because-youre-mine-aka-why-is-tomcat-holding-onto-jars/
> 
> 


-- 

http://www.irian.at
Your JSF powerhouse - 
JSF Trainings in English and German