[
https://issues.apache.org/jira/browse/VELTOOLS-35?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nathan Bubna closed VELTOOLS-35.
--------------------------------
This case was resolved prior to the 1.2 release. It was never actually a legit
bug. Time to close.
> ClassCastException at getMessageResources()
> -------------------------------------------
>
> Key: VELTOOLS-35
> URL: https://issues.apache.org/jira/browse/VELTOOLS-35
> Project: Velocity Tools
> Issue 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.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]