[ http://issues.apache.org/jira/browse/VELTOOLS-35?page=all ]
Tim Colson moved VELOCITY-377 to VELTOOLS-35: --------------------------------------------- Project: VelocityTools (was: Velocity) Key: VELTOOLS-35 (was: VELOCITY-377) Component: (was: Tools) Version: (was: 1.5) > ClassCastException at getMessageResources() > ------------------------------------------- > > Key: VELTOOLS-35 > URL: http://issues.apache.org/jira/browse/VELTOOLS-35 > Project: VelocityTools > Type: Bug > Environment: Operating System: Windows 2000 > Platform: PC > Reporter: Roberto Carrillo > Priority: Blocker > > I get the following exception and I dont have a clue why, I use velocity + > struts. I have an ApplicationResources.properties file in the right > directory, i > have a toolbox.xml file that is being loaded well according to tomcat's log, > but > still > I get this exception. (read below) > org.apache.struts.config.impl.ModuleConfigImpl > java.lang.ClassCastException: org.apache.struts.config.impl.ModuleConfigImpl > at > org.apache.struts.util.ModuleUtils.getModuleConfig(ModuleUtils.java:78) > at > org.apache.struts.util.ModuleUtils.getModuleConfig(ModuleUtils.java:129) > at > org.apache.struts.util.RequestUtils.getModuleConfig(RequestUtils.java:1109) > at > org.apache.velocity.tools.struts.StrutsUtils.getMessageResources(StrutsUtils.java:210) > at > org.apache.velocity.tools.struts.MessageResourcesTool.init(MessageResourcesTool.java:59) > at > org.apache.velocity.tools.view.ViewToolInfo.getInstance(ViewToolInfo.java:133) > at > org.apache.velocity.tools.view.servlet.ServletToolboxManager.getToolboxContext(ServletToolboxManager.java:354) > at > org.apache.velocity.tools.view.servlet.VelocityViewServlet.createContext(VelocityViewServlet.java:519) > at > org.apache.velocity.tools.view.servlet.VelocityViewServlet.doRequest(VelocityViewServlet.java:401) > at > org.apache.velocity.tools.view.servlet.VelocityViewServlet.doGet(VelocityViewServlet.java:373) > Some other times (when I call a velocity template before calling for the first > struts action, I get a null pointer exception) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]