Question: I have built an application using Spring with Eclipse IDE. When I launch the project from Eclipse IDE everything is fine but when I package the maven project as a war file and deployed to separate tomcat I have this issue

```
The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

```

This is a configuration snippet from my xml file

```
<!-- View Resolver -->
    <beans:bean
        class="org.springframework.web.servlet.view.InternalResourceViewResolver">
        <beans:property name="prefix" value="/WEB-INF/pages/" />
        <beans:property name="suffix" value=".jsp" />
    </beans:bean>

```

I am trying to access this controller 

```
@RequestMapping(value = {"/welcome", "/"})
    public String defaultPage() {
            return "Web Service data successfuly consumed";

    }

```

anyone with an idea why this is failing on deployed to tomcat?

Answer: 
This issue can even occur when you try to run your project from controller page.
Run your project from the jsp page.
Go to your jsp page; right-click->Run As->Run on Server.
I faced the same issue.I was running my project from the controller page.
Run your project from jsp page.
**Check Java versions** That was a problem for me. IDE (Intellij in my case) could launch without the problem, but when I tried to run `war` inside tomcat docker image app didn't work. The reason was docker image had a different (lower) version compare to the development environment. There were no errors messages indicating any of this.