Estou tendo uns erros muito esquisitos trabalhando com Xwork como controller para swing. fui cercando o problema até chegar a conclusão que ele nao esta carregando o xwork.xml
Alguem tem alguma ideia de como resolver isso ?
1 - o xwork ta no classpath
2 - as ações requisitadas estao no xwork
3 - alerta esquisito com.opensymphony.xwork.config.ConfigurationException: There is no result type defined for type ‘mainFrame’ mapped with name ‘success’
Erros
SEVERE: Could not load XWork configuration file, failing
com.opensymphony.xwork.config.ConfigurationException: Error building results for action launch in namespace with nested exception
com.opensymphony.xwork.config.ConfigurationException: There is no result type defined for type 'mainFrame' mapped with name 'success'
at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:186)
at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:228)
at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.loadConfigurationFile(XmlConfigurationProvider.java:567)
at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:124)
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.netconsys.main.MainClass$1.run(MainClass.java:23)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
xwork.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN" "http://www.opensymphony.com/xwork/xwork-1.0.dtd">
<xwork>
<include file="xwork-default.xml"/>
<package name="default" extends="xwork-default">
<result-types>
<result-type name="exitApplication" class="com.netconsys.controller.result.ExitApplication" />
<result-type name="mainFrame" class="com.netconsys.controller.result.MainResult" />
</result-types>
<action name="TestAction" class="com.netconsys.controller.action.TestAction">
<result name="sucess" type="exitApplication" />
</action>
<action name="launch" class="com.netconsys.controller.action.LaunchAction">
<result name="success" type="mainFrame" />
</action>
<action name="exit" class="com.netconsys.controller.action.LaunchAction">
<result name="success" type="mainFrame" />
</action>
</package>
</xwork>