History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XW-224
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Mathias Bogaert
Reporter: Bruce Ritchie
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XWork

XMLConfigurationProvider should not fail if it cannot load a result type

Created: 16/Sep/04 04:50 PM   Updated: 08/Dec/04 06:26 AM
Component/s: Configuration
Affects Version/s: 1.0.3
Fix Version/s: 1.0.5

Environment: orion 2.0.3


 Description  « Hide
I receive the following stack trace when deploying into orion

java.lang.NoClassDefFoundError: dori/jasper/engine/JRException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.evermind[Orion/2.0.3 (build 11188)]._io.loadClass(.:19)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.opensymphony.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:96)
at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.addResultTypes(XmlConfigurationProvider.java:235)
at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:203)
at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.loadConfigurationFile(XmlConfigurationProvider.java:549)
at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.loadConfigurationFile(XmlConfigurationProvider.java:552)
at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:123)
at com.opensymphony.xwork.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:85)
at com.opensymphony.xwork.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:56)
at com.opensymphony.xwork.DefaultActionProxyFactory.setupConfigIfActionIsCommand(DefaultActionProxyFactory.java:58)
at com.opensymphony.xwork.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:43)
at com.opensymphony.webwork.dispatcher.ServletDispatcher.serviceAction(ServletDispatcher.java:278)
at com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:250)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)

The cause of this is that the jasperreports and freemarker result types use classes which are not normally included but are defined in the webwork-default.xml file. The XMLConfigurationProvider should really handle this much cleaner than just dying with the above exception.

 All   Comments   Change History      Sort Order:
There are no comments yet on this issue.