Then you'll definitely need to have org.apache.commons.lang.StringUtils in the classpath.
On Thu, Apr 22, 2010 at 3:56 PM, Matthew Harmsen <mharm...@redhat.com> wrote: > On 04/22/10 15:18, Nathan Bubna wrote: >> >> Well, it is somehow not in the classpath. The JVM isn't lying when it >> says that class isn't available, and Velocity 1.6.3 needs it. Are >> you perhaps using the velocity-1.4-dep.jar and then switching to >> velocity-1.6.3.jar? If so, you might try the velocity-1.6.3-dep.jar. >> >> > > We are not using any velocity-dep jars at all. >> >> On Thu, Apr 22, 2010 at 2:21 PM, Matthew Harmsen<mharm...@redhat.com> >> wrote: >> >>> >>> On 04/22/10 14:05, Nathan Bubna wrote: >>> >>>> >>>> excuse me, i meant 2.4+ >>>> >>>> On Thu, Apr 22, 2010 at 2:04 PM, Nathan Bubna<nbu...@gmail.com> >>>> wrote: >>>> >>>> >>>>> >>>>> http://velocity.apache.org/engine/devel/upgrading.html >>>>> >>>>> Are you sure you have Commons Lang 2.1+? >>>>> >>>>> >>>>> >>> >>> Yes: >>> >>> # rpm -q jakarta-commons-lang >>> jakarta-commons-lang-2.4-1.fc13.x86_64 >>> >>> >>>>> >>>>> On Thu, Apr 22, 2010 at 1:47 PM, Matthew Harmsen<mharm...@redhat.com> >>>>> wrote: >>>>> >>>>> >>>>>> >>>>>> Hi. >>>>>> >>>>>> We have a tomcat 5.5 java application which has been successfully >>>>>> using >>>>>> velocity 1.4 for a number of years (most recently on Fedora 12). >>>>>> >>>>>> When we attempted to run this application on Fedora 13 Beta (which >>>>>> uses >>>>>> velocity 1.6.3), we receive the following stack dump: >>>>>> >>>>>> Apr 21, 2010 11:38:54 PM org.apache.catalina.core.ApplicationContext >>>>>> log >>>>>> INFO: Use of the properties initialization parameter 'properties' has >>>>>> been >>>>>> deprecated by 'org.apache.velocity.properties' >>>>>> Apr 21, 2010 11:38:54 PM org.apache.catalina.core.ApplicationContext >>>>>> log >>>>>> SEVERE: StandardWrapper.Throwable >>>>>> java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils >>>>>> at >>>>>> >>>>>> >>>>>> org.apache.velocity.runtime.resource.ResourceManagerImpl.initialize(ResourceManagerImpl.java:165) >>>>>> at >>>>>> >>>>>> >>>>>> org.apache.velocity.runtime.RuntimeInstance.initializeResourceManager(RuntimeInstance.java:661) >>>>>> at >>>>>> >>>>>> >>>>>> org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:251) >>>>>> at >>>>>> >>>>>> >>>>>> org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:589) >>>>>> at >>>>>> >>>>>> >>>>>> org.apache.velocity.runtime.RuntimeSingleton.init(RuntimeSingleton.java:229) >>>>>> at org.apache.velocity.app.Velocity.init(Velocity.java:107) >>>>>> at >>>>>> >>>>>> >>>>>> org.apache.velocity.servlet.VelocityServlet.initVelocity(VelocityServlet.java:195) >>>>>> at >>>>>> >>>>>> >>>>>> org.apache.velocity.servlet.VelocityServlet.init(VelocityServlet.java:162) >>>>>> at >>>>>> >>>>>> >>>>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139) >>>>>> at >>>>>> >>>>>> >>>>>> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791) >>>>>> at >>>>>> >>>>>> >>>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:127) >>>>>> at >>>>>> >>>>>> >>>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) >>>>>> at >>>>>> >>>>>> >>>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) >>>>>> at >>>>>> >>>>>> >>>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) >>>>>> at >>>>>> >>>>>> >>>>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:548) >>>>>> at >>>>>> >>>>>> >>>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) >>>>>> at >>>>>> >>>>>> >>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) >>>>>> at >>>>>> >>>>>> >>>>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875) >>>>>> at >>>>>> >>>>>> >>>>>> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) >>>>>> at >>>>>> >>>>>> >>>>>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) >>>>>> at >>>>>> >>>>>> >>>>>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) >>>>>> at >>>>>> >>>>>> >>>>>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) >>>>>> at java.lang.Thread.run(Thread.java:636) >>>>>> Caused by: java.lang.ClassNotFoundException: >>>>>> org.apache.commons.lang.StringUtils >>>>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:217) >>>>>> at java.security.AccessController.doPrivileged(Native Method) >>>>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:205) >>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:319) >>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:264) >>>>>> at >>>>>> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332) >>>>>> ... 23 more >>>>>> >>>>>> We have verified that the jakarta-common-lang jar file exists and is >>>>>> readable from /usr/share/java, and when we downgraded velocity 1.6.3 >>>>>> to >>>>>> 1.4, >>>>>> the application began running successfully. >>>>>> >>>>>> Has anyone else encountered this or a similar issue? >>>>>> >>>>>> The application needs to continue to support velocity 1.4 --- are >>>>>> there >>>>>> migration guidelines for this sort of issue that will allow the >>>>>> application >>>>>> to continue to work with velocity 1.4, but also work with velocity >>>>>> 1.6? >>>>>> >>>>>> Thanks in advance, >>>>>> -- Matt >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org >>>> For additional commands, e-mail: user-h...@velocity.apache.org >>>> >>>> >>>> >>> >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org >> For additional commands, e-mail: user-h...@velocity.apache.org >> >> > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org For additional commands, e-mail: user-h...@velocity.apache.org