Re: Annotation example

2015-11-10 Thread José Antonio Delgado Trujillo
I did it ( put the relative path). Now the error is another. The web page has a redirect loop ERR_TO_MANY_REDIRECT. I don’t understand what’s happening. If i delete the /webapp/index.jsp and the welcome file list in web.xml then all it’s OK I put in the browser localhost:8080/annotations or

Re: Annotation example

2015-11-10 Thread José Antonio Delgado Trujillo
I use mvn package and then put the war in the deployment folder of wildfly 9. El 10/11/2015 6:42, "Lukasz Lenart" escribió: > 2015-11-09 21:13 GMT+01:00 José Antonio Delgado Trujillo < > jadt...@gmail.com>: > > i have the same in the /webapp/index > > But i have modified

Re: Annotation example

2015-11-10 Thread Chris
Hello, There are two index.jsp files , but not in the same directory. The web.xml defines the welcome file webapp/index.jsp         index.jsp     If welcome-file-list entry doesn't exist in web.xml file, priority goes to index.html file then index.htm and at last index.jsp file. Here,

Re: Annotation example

2015-11-10 Thread Lukasz Lenart
2015-11-10 22:38 GMT+01:00 José Antonio Delgado Trujillo : > I did it ( put the relative path). > Now the error is another. > The web page has a redirect loop > ERR_TO_MANY_REDIRECT. Use incognito mode in your browser, Chrome does stupid things and tries to predict user's

Re: Annotation example

2015-11-10 Thread Lukasz Lenart
Issue fixed, do as Chris said! Just pushed fix to Git with relative path (<% response.sendRedirect("index"); %>) instead of absolute (<% response.sendRedirect("/index"); %>) - thanks Chris! 2015-11-10 9:04 GMT+01:00 José Antonio Delgado Trujillo : > I use mvn package and then