Nicola Modugno wrote:
my j2ee application is deployed succesful in wildfly 10 (with no one error), but when I'm type my context root url application in all browser "localhost:8080/myapp-context", wildfly start download of my index page.
When you say "WildFly starts download of your index page", do you really mean you are presented with a "Save" dialog which you can then use to save the source of that page?
If yes, can you add a bit more details about your application? What kind of packaging does it have? Is it a plain .war file? What does the index page look like? What does the web.xml (if any) look like for this application?
Also, what operating system is the server running on and what vendor and version of Java runtime is being used on the server? You can run "java -version" on the server and post the output here.
This is standard behaviour. If you want WildFly to load anything else you should either append this context root with your application URL (eg from @WebServlet) or mention the welcome file in your web.xml like
Ok I solved.
the problem was caused by the following statement in web.xml
<servlet> <servlet-name>jsp</servlet-name> <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class> <init-param> <param-name>development</param-name> <param-value>true</param-value> </init-param> <load-on-startup>3</load-on-startup> </servlet>