I'm not familiar with your enviro, but I think your listing of shared/lib jar files is a bit large.
Specifically, servlet.jar doesn't belong, and I'm surprised it's not causing problems. And commons-logging.jar is asking for trouble (though I admit, that's with TC5.0.x, and 5.5 is a different beast). And unless something has changed in Velocity, it's not a good idea to be sharing velocity jars either. As for memory, the JVM defaults are quite small, so it's not *really* a Tomcat problem, so much as it's a "JVM Defaults" problem. > -----Original Message----- > From: Barbara Baughman [mailto:[EMAIL PROTECTED] > Sent: Friday, March 04, 2005 3:11 PM > To: Velocity Users List > Subject: Re: question on velocity-tools-1.1 examples :: simple.war > > > This is a Tomcat problem. I find if there are too many web > applications under tomcat, at some point I get an out of > memory error. My guess is that this could be the > one-more-application that broke the camel's back. > > Barbara Baughman > X2157 > > On Fri, 4 Mar 2005, Ryan M. Waters wrote: > > > I've read through the list (and online/offline documentation) in an > > effort to rule out a lazy question, so I hope that this > particular one > > hasn't been asked before. > > > > What I'm trying to do is get the velocity-tools simple.war example > > application to work. I'm running a fresh install of Tomcat 5.5 on > > Windows (bleh) XP, velocity 1.4 and velocity-tools-1.1 > > > > Tomcat runs fine. Also, I can successfully drop in the layout.war > > example application and it runs fine, too(!). When I drop in > > simple.war, tomcat wigs with the following: > > > > <from tomcat's stdout_20050304.log> > > -------------------------------------------------------------- > > Mar 4, 2005 2:39:06 PM org.apache.catalina.startup.HostConfig > > deployWAR > > INFO: Deploying web application archive simple.war > > Mar 4, 2005 2:39:08 PM > org.apache.catalina.startup.HostConfig deployWAR > > SEVERE: Error deploying web application archive simple.war > > java.lang.OutOfMemoryError > > -------------------------------------------------------------- > > > > For more information on my environment, I have the following .jar > > files, copied from velocity and velocity-tools, in > %tomcat%/shared/lib > > : > > > > commons-beanutils.jar > > commons-collections.jar > > commons-digester.jar > > commons-logging.jar > > commons-validator.jar > > servlet.jar > > sslext.jar > > velocity-dep-1.4.jar > > velocity-tools-view-1.1.jar > > > > My JDK is Sun's Java 2 SDK, SE v1.4.2_06 > > > > = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = > > > > I very much look forward to using Velocity. As an aside, I > found it > > confusing that velocity-1.4 ships with servlet examples but > a newbie > > has no hope of running them "out of the box". For > starters, there's > > no web.xml to tell Tomcat how to deal with *.vm files. Perhaps > > there's more that's missing ... I'm still quite ignorant of > velocity > > internals/requirements. After reading the mailing list, I saw that > > velocity-tools contains everything needed for running example > > applications. Along with the good documentation on how to use > > Velocity, examples are really what's helpful to a newb teaching > > themselves a new thing. If the servlet examples in > velocity-1.4 don't > > run as-is, why include them? > > > > Thank you for Velocity, and thank you for your time. > > > > - Ryan > > > > > --------------------------------------------------------------------- > > 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]