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.
java struts2 web-deployment tomcat8
add a comment |
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.
java struts2 web-deployment tomcat8
add a comment |
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.
java struts2 web-deployment tomcat8
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
java struts2 web-deployment tomcat8
edited Aug 3 at 4:58
asked Aug 2 at 7:38
Ashutosh Wadhvekar
185
185
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
edited Nov 8 at 9:26
Unheilig
11.8k165283
11.8k165283
answered Nov 8 at 9:08
MuhammadMahmud
356
356
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password