1. java
  2. android
  3. c#
  4. .net
  5. javascript
  6. php
  7. jquery
  8. html
  9. sql

erro de struts no consoles

ao clicar no botão ele gera um erro.

https://www.filepicker.io/api/file/siBqaCc3Qri0JSzKkikW

o erro é esse abaixo. ele aparece no consoles.

2013-09-05 20:18:02,408 INFO  com.opensymphony.xwork2.config.ConfigurationManager.% M:42 - Detected container provider [Struts XML configuration provider (struts.xml)] needs to be reloaded. Reloading all providers.
2013-09-05 20:18:02,419 DEBUG org.apache.struts2.util.fs.JBossFileManager.% M:72 - Cannot load [org.jboss.vfs.VirtualFile] class, not a JBoss 7!
2013-09-05 20:18:02,422 DEBUG org.apache.struts2.util.fs.JBossFileManager.% M:72 - Cannot load [org.jboss.virtual.VirtualFile] class, not a JBoss 5!
2013-09-05 20:18:02,437 DEBUG org.apache.struts2.util.fs.JBossFileManager.% M:72 - Cannot load [org.jboss.vfs.VirtualFile] class, not a JBoss 7!
2013-09-05 20:18:02,440 DEBUG org.apache.struts2.util.fs.JBossFileManager.% M:72 - Cannot load [org.jboss.virtual.VirtualFile] class, not a JBoss 5!
2013-09-05 20:18:02,457 DEBUG org.apache.struts2.util.fs.JBossFileManager.% M:72 - Cannot load [org.jboss.vfs.VirtualFile] class, not a JBoss 7!
2013-09-05 20:18:02,459 DEBUG org.apache.struts2.util.fs.JBossFileManager.% M:72 - Cannot load [org.jboss.virtual.VirtualFile] class, not a JBoss 5!
2013-09-05 20:18:02,645 INFO  com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.% M:42 - Parsing configuration file [struts-default.xml]
2013-09-05 20:18:02,663 DEBUG org.apache.struts2.util.fs.JBossFileManager.% M:72 - Cannot load [org.jboss.vfs.VirtualFile] class, not a JBoss 7!
2013-09-05 20:18:02,666 DEBUG org.apache.struts2.util.fs.JBossFileManager.% M:72 - Cannot load [org.jboss.virtual.VirtualFile] class, not a JBoss 5!
2013-09-05 20:18:02,671 INFO  com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.% M:42 - Unable to locate configuration files of the name struts-plugin.xml, skipping
2013-09-05 20:18:02,672 INFO  com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.% M:42 - Parsing configuration file [struts-plugin.xml]
2013-09-05 20:18:02,675 DEBUG org.apache.struts2.util.fs.JBossFileManager.% M:72 - Cannot load [org.jboss.vfs.VirtualFile] class, not a JBoss 7!
2013-09-05 20:18:02,678 DEBUG org.apache.struts2.util.fs.JBossFileManager.% M:72 - Cannot load [org.jboss.virtual.VirtualFile] class, not a JBoss 5!
2013-09-05 20:18:03,156 INFO  com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.% M:42 - Parsing configuration file [struts.xml]
2013-09-05 20:18:03,160 DEBUG org.apache.struts2.config.PropertiesSettings.% M:72 - struts.properties missing
2013-09-05 20:18:03,161 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (com.opensymphony.xwork2.ObjectFactory)
2013-09-05 20:18:03,162 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (com.opensymphony.xwork2.FileManagerFactory)
2013-09-05 20:18:03,163 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.XWorkConverter)
2013-09-05 20:18:03,164 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.CollectionConverter)
2013-09-05 20:18:03,172 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.ArrayConverter)
2013-09-05 20:18:03,174 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.DateConverter)
2013-09-05 20:18:03,175 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.NumberConverter)
2013-09-05 20:18:03,176 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.StringConverter)
2013-09-05 20:18:03,176 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionPropertiesProcessor)
2013-09-05 20:18:03,177 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionFileProcessor)
2013-09-05 20:18:03,178 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionAnnotationProcessor)
2013-09-05 20:18:03,179 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.TypeConverterCreator)
2013-09-05 20:18:03,180 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.TypeConverterHolder)
2013-09-05 20:18:03,181 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (com.opensymphony.xwork2.TextProvider)
2013-09-05 20:18:03,181 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (com.opensymphony.xwork2.LocaleProvider)
2013-09-05 20:18:03,182 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (com.opensymphony.xwork2.ActionProxyFactory)
2013-09-05 20:18:03,183 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ObjectTypeDeterminer)
2013-09-05 20:18:03,189 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (org.apache.struts2.dispatcher.mapper.ActionMapper)
2013-09-05 20:18:03,190 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (jakarta) for (org.apache.struts2.dispatcher.multipart.MultiPartRequest)
2013-09-05 20:18:03,191 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (org.apache.struts2.views.freemarker.FreemarkerManager)
2013-09-05 20:18:03,194 DEBUG org.apache.struts2.config.BeanSelectionProvider.% M:72 - Choosing bean (struts) for (org.apache.struts2.views.velocity.VelocityManager) to be loaded from the ObjectFactory
2013-09-05 20:18:03,195 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (org.apache.struts2.components.UrlRenderer)
2013-09-05 20:18:03,196 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (com.opensymphony.xwork2.validator.ActionValidatorManager)
2013-09-05 20:18:03,197 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (com.opensymphony.xwork2.util.ValueStackFactory)
2013-09-05 20:18:03,197 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionProvider)
2013-09-05 20:18:03,198 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionContextFactory)
2013-09-05 20:18:03,199 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (com.opensymphony.xwork2.util.PatternMatcher)
2013-09-05 20:18:03,199 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (org.apache.struts2.dispatcher.StaticContentLoader)
2013-09-05 20:18:03,201 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (com.opensymphony.xwork2.UnknownHandlerManager)
2013-09-05 20:18:03,201 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (org.apache.struts2.views.util.UrlHelper)
2013-09-05 20:18:03,202 INFO  org.apache.struts2.config.BeanSelectionProvider.% M:42 - Choosing bean (struts) for (com.opensymphony.xwork2.util.TextParser)
2013-09-05 20:18:03,203 INFO  com.opensymphony.xwork2.config.impl.DefaultConfiguration.% M:42 - Overriding property struts.i18n.reload - old value: false new value: true
2013-09-05 20:18:03,204 INFO  com.opensymphony.xwork2.config.impl.DefaultConfiguration.% M:42 - Overriding property struts.configuration.xml.reload - old value: false new value: true
2013-09-05 20:18:03,218 DEBUG org.apache.struts2.util.fs.JBossFileManager.% M:72 - Cannot load [org.jboss.vfs.VirtualFile] class, not a JBoss 7!
2013-09-05 20:18:03,221 DEBUG org.apache.struts2.util.fs.JBossFileManager.% M:72 - Cannot load [org.jboss.virtual.VirtualFile] class, not a JBoss 5!
2013-09-05 20:18:03,233 DEBUG org.apache.struts2.util.fs.JBossFileManager.% M:72 - Cannot load [org.jboss.vfs.VirtualFile] class, not a JBoss 7!
2013-09-05 20:18:03,236 DEBUG org.apache.struts2.util.fs.JBossFileManager.% M:72 - Cannot load [org.jboss.virtual.VirtualFile] class, not a JBoss 5!
2013-09-05 20:18:03,242 DEBUG org.apache.struts2.util.fs.JBossFileManager.% M:72 - Cannot load [org.jboss.vfs.VirtualFile] class, not a JBoss 7!
2013-09-05 20:18:03,244 DEBUG org.apache.struts2.util.fs.JBossFileManager.% M:72 - Cannot load [org.jboss.virtual.VirtualFile] class, not a JBoss 5!
2013-09-05 20:18:03,291 DEBUG org.apache.struts2.util.fs.JBossFileManager.% M:72 - Cannot load [org.jboss.vfs.VirtualFile] class, not a JBoss 7!
2013-09-05 20:18:03,295 DEBUG org.apache.struts2.util.fs.JBossFileManager.% M:72 - Cannot load [org.jboss.virtual.VirtualFile] class, not a JBoss 5!
2013-09-05 20:18:03,392 DEBUG org.apache.struts2.util.fs.JBossFileManager.% M:72 - Cannot load [org.jboss.vfs.VirtualFile] class, not a JBoss 7!
2013-09-05 20:18:03,396 DEBUG org.apache.struts2.util.fs.JBossFileManager.% M:72 - Cannot load [org.jboss.virtual.VirtualFile] class, not a JBoss 5!
2013-09-05 20:18:03,406 DEBUG org.apache.struts2.util.fs.JBossFileManager.% M:72 - Cannot load [org.jboss.vfs.VirtualFile] class, not a JBoss 7!
2013-09-05 20:18:03,409 DEBUG org.apache.struts2.util.fs.JBossFileManager.% M:72 - Cannot load [org.jboss.virtual.VirtualFile] class, not a JBoss 5!
2013-09-05 20:18:03,412 DEBUG org.apache.struts2.util.fs.JBossFileManager.% M:72 - Cannot load [org.jboss.vfs.VirtualFile] class, not a JBoss 7!
2013-09-05 20:18:03,415 DEBUG org.apache.struts2.util.fs.JBossFileManager.% M:72 - Cannot load [org.jboss.virtual.VirtualFile] class, not a JBoss 5!
2013-09-05 20:18:03,704 DEBUG org.apache.struts2.components.UIBean.% M:72 - Rendering template /template/xhtml/form
2013-09-05 20:18:03,910 DEBUG org.apache.struts2.views.freemarker.FreemarkerManager.% M:72 - Using object wrapper of class org.apache.struts2.views.freemarker.StrutsBeanWrapper
2013-09-05 20:18:04,412 DEBUG org.apache.struts2.components.template.FreemarkerTemplateEngine.% M:72 - Rendering template /template/xhtml/form.ftl
2013-09-05 20:18:04,709 DEBUG org.apache.struts2.components.UIBean.% M:76 - Cannot determine id attribute for [org.apache.struts2.components.Label@6912d7ae], consider defining id, name or key attribute!
2013-09-05 20:18:04,711 DEBUG org.apache.struts2.components.UIBean.% M:72 - Rendering template /template/xhtml/label
2013-09-05 20:18:04,726 DEBUG org.apache.struts2.components.template.FreemarkerTemplateEngine.% M:72 - Rendering template /template/xhtml/label.ftl
2013-09-05 20:18:05,199 DEBUG org.apache.struts2.components.UIBean.% M:72 - Rendering template /template/xhtml/text
2013-09-05 20:18:05,215 DEBUG org.apache.struts2.components.template.FreemarkerTemplateEngine.% M:72 - Rendering template /template/xhtml/text.ftl
2013-09-05 20:18:05,359 DEBUG org.apache.struts2.components.UIBean.% M:72 - Rendering template /template/xhtml/submit
2013-09-05 20:18:05,392 DEBUG org.apache.struts2.components.template.FreemarkerTemplateEngine.% M:72 - Rendering template /template/xhtml/submit.ftl
2013-09-05 20:18:05,485 DEBUG org.apache.struts2.components.UIBean.% M:72 - Rendering template /template/xhtml/submit-close
2013-09-05 20:18:05,497 DEBUG org.apache.struts2.components.template.FreemarkerTemplateEngine.% M:72 - Rendering template /template/xhtml/submit-close.ftl
2013-09-05 20:18:05,524 DEBUG org.apache.struts2.components.UIBean.% M:72 - Rendering template /template/xhtml/form-close
2013-09-05 20:18:05,542 DEBUG org.apache.struts2.components.template.FreemarkerTemplateEngine.% M:72 - Rendering template /template/xhtml/form-close.ftl
2013-09-05 20:18:49,359 DEBUG org.apache.struts2.interceptor.FileUploadInterceptor.% M:72 - Ignorando // NumeroAleatorio
2013-09-05 20:18:49,402 DEBUG org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.% M:72 - Validating //NumeroAleatorio with method execute.
2013-09-05 20:18:49,520 ERROR org.apache.struts2.dispatcher.Dispatcher.% M:38 - Could not find action or result
/ProjectStruts/NumeroAleatorio.action
No result defined for action br.com.k19.actions.NumeroAleatorioAction and result success
    at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:373)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:275)
    at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:167)
    at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
    at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
    at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:239)
    at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:239)
    at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)
    at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:161)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
    at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:563)
    at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
    at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
2013-09-05 20:18:49,526 DEBUG org.apache.struts2.dispatcher.Dispatcher.% M:80 - Exception occurred during processing request: No result defined for action br.com.k19.actions.NumeroAleatorioAction and result success
No result defined for action br.com.k19.actions.NumeroAleatorioAction and result success
    at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:373)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:275)
    at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:167)
    at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
    at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
    at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:239)
    at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:239)
    at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)
    at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:161)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
    at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:563)
    at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
    at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

essa é minha classe

package br.com.k19.actions;

import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class NumeroAleatorioAction extends ActionSupport {

    private int maximo;
    private int numeroAleatorio;

    public String execute() throws Exception{
        this.numeroAleatorio = (int) (Math.random() * this.maximo);
        return  NumeroAleatorioAction.SUCCESS;
    }

    public int getMaximo() {
        return maximo;
    }
    public void setMaximo(int maximo) {
        this.maximo = maximo;
    }
    public int getNumeroAleatorio() {
        return numeroAleatorio;
    }
    public void setNumeroAleatorio(int numeroAleatorio) {
        this.numeroAleatorio = numeroAleatorio;
    }

}

esse arquivo log4j.xml estar no src

<?xml version="1.0" encoding="UTF-8"?>

 <!DOCTYPE log4j:configuration PUBLIC "-//log4j/log4j Configuration //EN" "log4j.dtd">

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">

    <appender name=" STDOUT " class="org.apache.log4j.ConsoleAppender">
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%d %-5p %c.% M:%L - %m%n" />
        </layout>
    </appender>
    <logger name="org.apache.struts2">
        <level value="DEBUG"/>
    </logger>

    <root>
        <priority value=" INFO"/>
        <appender-ref ref="STDOUT"/>
    </root>
</log4j:configuration>

esse aqui também struts.xml

<?xml version ="1.0" encoding ="UTF-8"?>
 <!DOCTYPE struts PUBLIC
 " -// Apache Software Foundation//DTD Struts Configuration 2.0// EN"
 " http://struts.apache.org/dtds/struts-2.0.dtd">

<struts>
    <constant name="struts.devMode" value="true" />
    <package name="default" extends="struts-default">

    <action name="NumeroAleatorio"
    class="br.com.k19.actions.NumeroAleatorioAction">
    <result name="sucesso">NumeroAleatorio.jsp</result><!-- o que é sucesso -->
    </action>

    </package>
</struts>

formulario pagina jsp


<%@ taglib prefix="s" uri="/struts-tags"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
    <s:form action="NumeroAleatorio">
        <s:label value="numero maximo" />
        <s:textfield name="maximo" />
        <s:submit value="Gera numero aleatorio" />

    </s:form>


</body>
</html>

o arquivo web.xml estar no WEB-INF

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
    id="WebApp_ID" version="3.0">
    <display-name>ProjectStruts</display-name>
    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
        <welcome-file>default.html</welcome-file>
        <welcome-file>default.htm</welcome-file>
        <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>


    <filter>
        <filter-name>struts2</filter-name>
        <filter-class>
            org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
            </filter-class>
    </filter>

    <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

</web-app>

no browser aparece isso

Struts Problem Report

Struts has detected an unhandled exception:

Messages:    
No result defined for action br.com.k19.actions.NumeroAleatorioAction and result success
Stacktraces

No result defined for action br.com.k19.actions.NumeroAleatorioAction and result success
    com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:373)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:275)
    org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:167)
    com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
    org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
    com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:239)
    com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:239)
    com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)
    com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:161)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
    org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
    org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:563)
    org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
    org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    java.lang.Thread.run(Unknown Source)

You are seeing this page because development mode is enabled. Development mode, or devMode, enables extra debugging behaviors and reports to assist developers. To disable this mode, set:

  struts.devMode=false
in your WEB-INF/classes/struts.properties file.

porque estar gerando esse erro no consoles?

  1. Você vai ver essas setas em qualquer página de pergunta. Com elas, você pode dizer se uma pergunta ou uma resposta foram relevantes ou não.
  2. Edite sua pergunta ou resposta caso queira alterar ou adicionar detalhes.
  3. Caso haja alguma dúvida sobre a pergunta, adicione um comentário. O espaço de respostas deve ser utilizado apenas para responder a pergunta.
  4. Se o autor da pergunta marcar uma resposta como solucionada, esta marca aparecerá.
  5. Clique aqui para mais detalhes sobre o funcionamento do GUJ!

1 resposta

Não é a resposta que estava procurando? Procure outras perguntas com as tags tags ou faça a sua própria pergunta.