Tomcat The origin server did not find a current representation for the target resource or is not willing to...











up vote
0
down vote

favorite












I checked this Error on google. But did not find correct solution.



For your Information, I'm using struts2, Tomcat version is 'Tomcat-8.5.30', OS is Ubuntu.



web.xml :



<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>


and project contains index.jsp at proper location i.e WebContent/index.jsp



Still it is showing above error. Please provide solution.



I tried commenting following code then it is working. But I need this lines of code to work my application.



<!-- 
<action name="UploadLeavesData">
<interceptor-ref name="authStack"></interceptor-ref>
<result name="error">view/common/error.jsp</result>
<result name="success">view/employees/uploadEmpLeavesFileFromGreytHr.jsp</result>
</action>

<action name="importLeaves" class="com.zCon.controller.LeaveFileUploadAction" method="execute">
<interceptor-ref name="fileUpload">
<param name="maximumSize">20971520</param>
<param name="allowedTypes">
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel, application/octet-stream
</param>
</interceptor-ref>
<interceptor-ref name="defaultStack"></interceptor-ref>
<result name="input">view/employees/uploadEmpLeavesFileFromGreytHr.jsp</result>
<result name="success" type="redirect">UploadLeavesData</result>
</action>
-->


Thanks in advance.










share|improve this question




























    up vote
    0
    down vote

    favorite












    I checked this Error on google. But did not find correct solution.



    For your Information, I'm using struts2, Tomcat version is 'Tomcat-8.5.30', OS is Ubuntu.



    web.xml :



    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>


    and project contains index.jsp at proper location i.e WebContent/index.jsp



    Still it is showing above error. Please provide solution.



    I tried commenting following code then it is working. But I need this lines of code to work my application.



    <!-- 
    <action name="UploadLeavesData">
    <interceptor-ref name="authStack"></interceptor-ref>
    <result name="error">view/common/error.jsp</result>
    <result name="success">view/employees/uploadEmpLeavesFileFromGreytHr.jsp</result>
    </action>

    <action name="importLeaves" class="com.zCon.controller.LeaveFileUploadAction" method="execute">
    <interceptor-ref name="fileUpload">
    <param name="maximumSize">20971520</param>
    <param name="allowedTypes">
    application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel, application/octet-stream
    </param>
    </interceptor-ref>
    <interceptor-ref name="defaultStack"></interceptor-ref>
    <result name="input">view/employees/uploadEmpLeavesFileFromGreytHr.jsp</result>
    <result name="success" type="redirect">UploadLeavesData</result>
    </action>
    -->


    Thanks in advance.










    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I checked this Error on google. But did not find correct solution.



      For your Information, I'm using struts2, Tomcat version is 'Tomcat-8.5.30', OS is Ubuntu.



      web.xml :



      <welcome-file-list>
      <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>


      and project contains index.jsp at proper location i.e WebContent/index.jsp



      Still it is showing above error. Please provide solution.



      I tried commenting following code then it is working. But I need this lines of code to work my application.



      <!-- 
      <action name="UploadLeavesData">
      <interceptor-ref name="authStack"></interceptor-ref>
      <result name="error">view/common/error.jsp</result>
      <result name="success">view/employees/uploadEmpLeavesFileFromGreytHr.jsp</result>
      </action>

      <action name="importLeaves" class="com.zCon.controller.LeaveFileUploadAction" method="execute">
      <interceptor-ref name="fileUpload">
      <param name="maximumSize">20971520</param>
      <param name="allowedTypes">
      application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel, application/octet-stream
      </param>
      </interceptor-ref>
      <interceptor-ref name="defaultStack"></interceptor-ref>
      <result name="input">view/employees/uploadEmpLeavesFileFromGreytHr.jsp</result>
      <result name="success" type="redirect">UploadLeavesData</result>
      </action>
      -->


      Thanks in advance.










      share|improve this question















      I checked this Error on google. But did not find correct solution.



      For your Information, I'm using struts2, Tomcat version is 'Tomcat-8.5.30', OS is Ubuntu.



      web.xml :



      <welcome-file-list>
      <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>


      and project contains index.jsp at proper location i.e WebContent/index.jsp



      Still it is showing above error. Please provide solution.



      I tried commenting following code then it is working. But I need this lines of code to work my application.



      <!-- 
      <action name="UploadLeavesData">
      <interceptor-ref name="authStack"></interceptor-ref>
      <result name="error">view/common/error.jsp</result>
      <result name="success">view/employees/uploadEmpLeavesFileFromGreytHr.jsp</result>
      </action>

      <action name="importLeaves" class="com.zCon.controller.LeaveFileUploadAction" method="execute">
      <interceptor-ref name="fileUpload">
      <param name="maximumSize">20971520</param>
      <param name="allowedTypes">
      application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel, application/octet-stream
      </param>
      </interceptor-ref>
      <interceptor-ref name="defaultStack"></interceptor-ref>
      <result name="input">view/employees/uploadEmpLeavesFileFromGreytHr.jsp</result>
      <result name="success" type="redirect">UploadLeavesData</result>
      </action>
      -->


      Thanks in advance.







      java struts2 web-deployment tomcat8






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 3 at 4:58

























      asked Aug 2 at 7:38









      Ashutosh Wadhvekar

      185




      185
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Please check your web app exists in C:Program FilesApache Software FoundationTomcat XXwebapps as somehow Tomcat folder exists both here and in C:tomcat-XXXX for my case.



          After moving my application inside there it works. It seems the real directory it is pointing is that one.






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51648077%2ftomcat-the-origin-server-did-not-find-a-current-representation-for-the-target-re%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            Please check your web app exists in C:Program FilesApache Software FoundationTomcat XXwebapps as somehow Tomcat folder exists both here and in C:tomcat-XXXX for my case.



            After moving my application inside there it works. It seems the real directory it is pointing is that one.






            share|improve this answer



























              up vote
              0
              down vote













              Please check your web app exists in C:Program FilesApache Software FoundationTomcat XXwebapps as somehow Tomcat folder exists both here and in C:tomcat-XXXX for my case.



              After moving my application inside there it works. It seems the real directory it is pointing is that one.






              share|improve this answer

























                up vote
                0
                down vote










                up vote
                0
                down vote









                Please check your web app exists in C:Program FilesApache Software FoundationTomcat XXwebapps as somehow Tomcat folder exists both here and in C:tomcat-XXXX for my case.



                After moving my application inside there it works. It seems the real directory it is pointing is that one.






                share|improve this answer














                Please check your web app exists in C:Program FilesApache Software FoundationTomcat XXwebapps as somehow Tomcat folder exists both here and in C:tomcat-XXXX for my case.



                After moving my application inside there it works. It seems the real directory it is pointing is that one.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Nov 8 at 9:26









                Unheilig

                11.9k165283




                11.9k165283










                answered Nov 8 at 9:08









                MuhammadMahmud

                356




                356






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51648077%2ftomcat-the-origin-server-did-not-find-a-current-representation-for-the-target-re%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    這個網誌中的熱門文章

                    Xamarin.form Move up view when keyboard appear

                    Post-Redirect-Get with Spring WebFlux and Thymeleaf

                    Anylogic : not able to use stopDelay()