Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for 
change notification.

The following page has been changed by DanielJue:
http://wiki.apache.org/tapestry/Tapestry5Caveats

The comment on the change is:
Added my story about Tomcat OutOfMemoryError 

------------------------------------------------------------------------------
  
  Names of properties inside the *.properties files are not case sensitive 
  
+ 
+ 
+ == Tomcat OutOfMemoryError ==
+ For now I've only encountered this in Tomcat 5.5 under Windows, and it really 
has nothing to do with Tapestry 5.
+ 
+ ==== Cause & Solution ====
+ With T5 you may find youself being so productive that you create packages 
that are too deep.  This happened to me when I added Yahoo's YUI library to a 
component library I was building.  I'm guessing because the depth of characters 
in the package went beyond some magic number (maybe something like "255" 
characters), Tomcat could not load the application.  What is distressing is 
that the error I received was "OutOfMemoryError" which made me '''''think''''' 
it may be Tapestry. 
+ 
+ I fixed the problem by refactoring my components to a separate project, which 
had a shorter package depth. Now my main project references the new component 
library in it's POM.  When I make changes to the component library, I run 
+ {{{
+ c:\projects\wtpworkspace\T5MyCompany\mvn install
+ }}}
+ 
+ And the component library is copied to my local repository.  Make sure the 
component library is being packaged as a '''JAR''' not a '''WAR'''.
+ Then I stop the main application if it was running, and restart it. (Tomcat 
doesn't reload the library for me, so this forces it to use the new jar.)
+ 

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

Reply via email to