2017-12-29 19:57 GMT+01:00 José Antonio Delgado Trujillo <jadt...@gmail.com> :
> I don’t know how to recompile lot with runtime jdk provided by JBOSS > I rm log, data, tmp folders > restart wildfly, clean and deploy basic-struts, and when i put in the > browser > localhost:8080/basic-struts/index.action > I see the Welcome to Struts 2 jsp > > But i read in the console of wildly the next .. > > 18:48:30,252 INFO [stdout] (default task-3) 2017-12-29 18:48:30,228 ERROR > [default task-3] dispatcher.Dispatcher (Dispatcher.java:609) - Could not > find action or result: /basic-struts/ > 18:48:30,253 INFO [stdout] (default task-3) > com.opensymphony.xwork2.config.ConfigurationException: > There is no Action mapped for namespace [/] and action name [] associated > with context path [/basic-struts]. > Probably because a browser is requesting "/" to check something and as there is no action named "" you see the error. ???? > Strust configuration > There is an action index !!! > I wrote localhost:8080/basic-struts/index.action !!! > I see the view index.jsp > but "index.action" != "/" that's why you see the error And please be aware that in classless configuration as above, a default action class is used and in this case it'll be ActionSupport [1]. Aso please be aware that only with the Convention plugin you will get automatic "index" action handling [2] [1] https://github.com/apache/struts/blob/master/core/src/main/resources/struts-default.xml#L391 [2] https://struts.apache.org/plugins/convention/#introduction Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/