velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Terry Steichen" <te...@net-frame.com>
Subject Velocity Conflict with Tomcat 4?
Date Mon, 09 Dec 2002 02:42:37 GMT
I have a servlet application that uses velocity 1.4-dev and in which I have an object 
(Session) that I'm inserting into the VelocityContext as "session".  Then I'm 
attempting to invoke the public method 'getSessionData()'.  It works perfectly with
Tomcat version 3.3.1 and earlier.  But when I try it under Tomcat 4.1.12, it
throws an exception (with the stack trace at the end of this message).

My application is fairly complex but everything works just fine - except invoking
this particular method.  It appears that Velocity is getting confused in
its introspection about the 'Context' object.

Any thoughts on how to deal with this would be *greatly* appreciated.

TIA,

Terry

 

java.lang.NoClassDefFoundError: org/apache/tomcat/core/Context

 at java.lang.Class.getMethods0(Native Method)

 at java.lang.Class.getMethods(Class.java:742)

 at org.apache.velocity.util.introspection.ClassMap.getAccessibleMethods(ClassMap.java:296)

 at org.apache.velocity.util.introspection.ClassMap.populateMethodCache(ClassMap.java:189)

 at org.apache.velocity.util.introspection.ClassMap.<init>(ClassMap.java:102)

 at org.apache.velocity.util.introspection.IntrospectorBase.createClassMap(IntrospectorBase.java:164)

 at org.apache.velocity.util.introspection.IntrospectorBase.getMethod(IntrospectorBase.java:150)

 at org.apache.velocity.util.introspection.Introspector.getMethod(Introspector.java:138)

 at org.apache.velocity.runtime.parser.node.PropertyExecutor.discover(PropertyExecutor.java:111)

 at org.apache.velocity.runtime.parser.node.PropertyExecutor.<init>(PropertyExecutor.java:85)

 at org.apache.velocity.util.introspection.UberspectImpl.getPropertyGet(UberspectImpl.java:194)

 at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:169)

 at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:218)

 at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:263)

 at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271)

 at org.apache.velocity.Template.merge(Template.java:296)

 at npg1.business.VelocityService.handleRequest(VelocityService.java:300)

 at npg1.business.VelocityService.handleRequest(VelocityService.java:256)

 at npg1.presentation.VelocityPO.getOutput(VelocityPO.java:81)

 at npg1.presentation.VTest.processRequest(VTest.java:27)

 at npg1.presentation.VelocityPO.run(VelocityPO.java:395)

 at com.lutris.appserver.server.httpPresentation.HttpPresentationManager.runPresentationObj(HttpPresentationManager.java:423)

 at com.lutris.appserver.server.httpPresentation.HttpPresentationManager.Run(HttpPresentationManager.java:231)

 at com.lutris.appserver.server.httpPresentation.servlet.HttpPresentationServlet.serviceDirect(HttpPresentationServlet.java:617)

 at com.lutris.appserver.server.httpPresentation.servlet.HttpPresentationServlet.service(HttpPresentationServlet.java:799)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)

 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)

 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)

 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

 at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)

 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)

 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)

 at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)

 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)

 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)

 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)

 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)

 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)

 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

 at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)

 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)

 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)

 at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)

 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)

 at java.lang.Thread.run(Thread.java:484)

 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message