Openshift Tomcat 404 not found

I'm new to OpenShift,

I created the Spring web application and deployed it to OpenShift in a non-scalable environment.

The application is built and deployed successfully, without errors in the tomcat application logs or in jenkins.

My application is deployed to OpenShift as ROOT.war, and I can see the war file in tomcat webapps, but when I try to open the url (" http://myapp-mydomain.rhcloud.com "), giving me 404 is not found, however I I can get data using my REST API calls.

Please help, I'm not sure what is happening.

The same application works well on my local tomcat.

+4
source share
3 answers

.

.openshift, .

.openshift/markers/java7

.openshift/markers/-

java7 -

- , openshift, java 1.7.

java 1.6, 3.0 java 1.7 . 404 tomcat-7.

0

. , , . - , "remote: " php/ ", DocumentRoot" phpScripts .

0

I had the same problem. I checked the logs at my application openshift team: rhc ssh -a appname --ssh C:\PROGRA~1\Git\usr\bin\ssh.exe. replace the application name in the command above.

I had the error "Unable to process Jar entry javassist". My sleep dependency used this javassist jar. therefore, I ruled out its use.

<dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-core</artifactId>
        <version>5.2.0.Final</version>
        <exclusions>
            <exclusion>
                <groupId>org.javassist</groupId>
                <artifactId>javassist</artifactId>
            </exclusion>
        </exclusions>
    </dependency>

You may have the same problem. Check out the magazines to help you.

0
source

Source: https://habr.com/ru/post/1547377/


All Articles