I've been able to get rid of this error by putting the velocity-1.3.jar into my weblogic classpath within the startWebLogic.cmd script. It's pretty odd that the org/apache/velocity/context/Context cannot be found from its location in the WEB-INF/lib folder of my webapp after it's part of a ear file.
> -----Original Message----- > From: Mark Lybarger > Sent: Monday, December 29, 2003 3:26 PM > To: 'Turbine Users List' (E-mail) > Subject: screen object unable to find velocity context > > > i'm moving our turbine web application from a standalone > exploded app to be an exploded app within a ear file (coupled > with ejb's). turbine seems to init ok, and some pages can > display ok, which shows me that velocity is in the classpath > and generating the template output. for some reason, it's > unable to find the velocity context class (that class is in > the velocity-1.3.jar Here's the error I am seeing trying to > load a page which accesses the Context from a screen class. > i have action classes that access the Velocity context just > fine, but the screen classes seem to have troubles. any > ideas why i might see this behavior? (i'm on turbine 2.1/wls 6.1) > > 2003-12-29 10:28:25,468 [ExecuteThread: '10' for queue: > 'default'] ERROR system - > java.lang.NoClassDefFoundError: org/apache/velocity/context/Context > at > com.cbc.isac.toolkit.ContextManager.getManager(ContextManager. > java:164) > at > com.cbc.isac.toolkit.ContextManager.getManager(ContextManager. > java:145) > at > com.cbc.codi.modules.actions.disclosure.EventMaintenanceAction > .doAdd(EventMaintenanceActi > on.java:75) > at java.lang.reflect.Method.invoke(Native Method) > at > org.apache.turbine.util.velocity.VelocityActionEvent.executeEv > ents(Unknown Source) > at > org.apache.turbine.util.velocity.VelocityActionEvent.perform(U > nknown Source) > at > org.apache.turbine.modules.actions.VelocityAction.perform(Unkn > own Source) > at > org.apache.turbine.modules.actions.VelocitySecureAction.perfor > m(Unknown Source) > at > org.apache.turbine.modules.ActionLoader.exec(Unknown Source) > at > org.apache.turbine.modules.pages.DefaultPage.doBuild(Unknown Source) > at org.apache.turbine.modules.Page.build(Unknown Source) > at org.apache.turbine.modules.PageLoader.exec(Unknown Source) > at org.apache.turbine.Turbine.doGet(Unknown Source) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servle > tStubImpl.java:265) > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servle > tStubImpl.java:200) > at > weblogic.servlet.internal.WebAppServletContext.invokeServlet(W > ebAppServletContext.java:24 > 95) > at > weblogic.servlet.internal.ServletRequestImpl.execute(ServletRe > questImpl.java:2204) > at > weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.553 / Virus Database: 345 - Release Date: 12/18/2003 > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.553 / Virus Database: 345 - Release Date: 12/18/2003 > > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.553 / Virus Database: 345 - Release Date: 12/18/2003 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
