openshiftopenshift-client-toolsopenshift-cartridgeopenshift-enterprise

Web App works fine on locat tomcat server but giving 404 after pushing on shift


I have been working on a web app with spring mvc and jersey and almost complete the functionality. I was testing it on local tomcat server but today when i pushed it to openshift server its not working and giving me 404 not found. I have no idea whats wrong with it. What can be the prossible reason for this kindly help


Solution

  • Openshift server required a specific dependency to run webapp online defined in pom.xml and I deleted it accidently after including that dependency again my app has started working again. Here is the dependency

        <dependency>
            <groupId>org.jboss.spec</groupId>
            <artifactId>jboss-javaee-6.0</artifactId>
            <version>3.0.2.Final-redhat-4</version>
            <type>pom</type>
            <scope>provided</scope>
        </dependency>