-
1. Re: Drone invoking JSP extensions
kpiwko Aug 8, 2012 4:51 AM (in response to iapazmino)Hello Ivan,
can you try to output @Deployment war to a file and deploy it manually and check if you get the same error?
I guess there is some mapping problem in you application, maybe not all resources are packaged.
-
2. Re: Drone invoking JSP extensions
iapazmino Aug 8, 2012 11:03 PM (in response to kpiwko)Hello Karel, thank you for your reply.
I've deployed the test war and got the same HTTP 404 error for the registration/index.jsp page, even when I've typed the right page in the URL box.
I've run the test again and payed more attention and found that in the Selenium command history that it's also calling the right page
getTitle()
setContext(2a7268399f2d4c9bbafa202e77cec3bd)
setTimeout(60000)
open(http://127.0.0.1:8080/test-war/registration/index.jsf)
...
but the error message is the one changing the extension
Message HTTP Status 404 - /test-war/registration/index.jsp
Checking the server log there are no problems. I've pasted it here.
Thanks in advance.
-
3. Re: Drone invoking JSP extensions
kpiwko Aug 9, 2012 3:01 AM (in response to iapazmino)In that case, can you compare archive generated by ShrinkWrap and archive generated via Maven/IDE (e.g. the app you know it works correctly)? The must be some resource missing in the first, so jsp redirect is triggered. You might be missing JSF impl, or a default suffix settings, or something JSF related (maybe this can help: http://stackoverflow.com/questions/9559430/jsf-xhtml-mapping-not-working-redirected-to-jsp ).
I expect this has nothing to do with Drone/Selenium.
-
4. Re: Drone invoking JSP extensions
iapazmino Aug 9, 2012 7:07 PM (in response to kpiwko)As you expected the problem wasn't Drone/Selenium but an incorrect prefix.
Thank you very much.