3 Replies Latest reply on Jul 20, 2016 10:36 AM by nichisoft

    Wildfly 10

    nichisoft

      Hello,

      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.

      Help me.

      Please

        • 1. Re: Wildfly 10
          jaikiran

          Nicola Modugno wrote:

           

          Hello,

          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.

          Help me.

          Please

          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.

          • 2. Re: Wildfly 10
            mayerw01

            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

            <welcome-file-list>

                    <welcome-file>Hello.jsp</welcome-file>

                </welcome-file-list>

            • 3. Re: Wildfly 10
              nichisoft

              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>