title: Java servlet app worked on my pc local but not working on my server development
body: <p>I already deploy my java servlet web app to my server . My web interface was shown but when I try to register/login from my webpage its thrown <code>HTTP Status 500 ? Internal Server Error exception like below</code></p>
  <blockquote>
  <p>Root Cause</p>
  <p>java.lang.NoClassDefFoundError:
  org/apache/commons/codec/digest/DigestUtils
  com.mockup.Register.doPost(Register.java:38)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:652)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
  org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  Root Cause</p>
  <p>java.lang.ClassNotFoundException:
  org.apache.commons.codec.digest.DigestUtils
  org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1358)
  org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1180)
  com.mockup.Register.doPost(Register.java:38)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:652)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
  org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)</p>
  </blockquote>
  <p>The description says that</p>
  <blockquote>
  <p>The server encountered an unexpected condition that prevented it from
  fulfilling the request.</p>
  </blockquote>
  <p>pom.xml</p>
  <pre><code>&lt;project&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;com.googlecode.json-simple&lt;/groupId&gt;
      &lt;artifactId&gt;json-simple&lt;/artifactId&gt;
      &lt;packaging&gt;bundle&lt;/packaging&gt;
      &lt;name&gt;JSON.simple&lt;/name&gt;
      &lt;version&gt;1.1.1&lt;/version&gt;
      &lt;description&gt;A simple Java toolkit for JSON&lt;/description&gt;
      &lt;url&gt;http://code.google.com/p/json-simple/&lt;/url&gt;
      &lt;licenses&gt;
          &lt;license&gt;
              &lt;name&gt;The Apache Software License, Version 2.0&lt;/name&gt;
              &lt;url&gt;http://www.apache.org/licenses/LICENSE-2.0.txt&lt;/url&gt;
          &lt;/license&gt;
      &lt;/licenses&gt;
      &lt;developers&gt;
          &lt;developer&gt;
              &lt;id&gt;Yidong&lt;/id&gt;
              &lt;name&gt;Yidong Fang&lt;/name&gt;
              &lt;roles&gt;
                  &lt;role&gt;architect&lt;/role&gt;
                  &lt;role&gt;developer&lt;/role&gt;
              &lt;/roles&gt;
              &lt;timezone&gt;+8&lt;/timezone&gt;
          &lt;/developer&gt;
      &lt;/developers&gt;
      &lt;scm&gt;
          &lt;connection&gt;scm:svn:http://json-simple.googlecode.com/svn/trunk/&lt;/connection&gt;
          &lt;developerConnection&gt;scm:svn:http://json-simple.googlecode.com/svn/trunk/&lt;/developerConnection&gt;
          &lt;url&gt;http://json-simple.googlecode.com/svn/trunk/&lt;/url&gt;
      &lt;/scm&gt;
  
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;4.10&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
      
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-bundle-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.3.6&lt;/version&gt;
                  &lt;extensions&gt;true&lt;/extensions&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.3.2&lt;/version&gt;
                  &lt;configuration&gt;
                    &lt;source&gt;1.2&lt;/source&gt;
                    &lt;target&gt;1.2&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  <p>I installed tomcat 8.5 to my server which is using centos 8 OS . Everything worked fine in my computer local but when i deploy to my server it thrown this error . Sorry if i cant't deliver my message clearly but hope its help</p>