java-war

ClassNotFoundException/NoClassDefFoundError in my Java web application

╄→гoц情女王★ 提交于 2019-11-26 06:47:37
问题 I developer a web application using Java. When I deploy it to my application server (Jetty, Tomcat, JBoss, GlassFish, etc.) throws an error. I can see this error message in the stacktrace: java.lang.ClassNotFoundException Or java.lang.NoClassDefFoundError What does this mean and how can I fix it? 回答1: What does this mean? First, let's see the meaning of java.lang.ClassNotFoundException: Thrown when an application tries to load in a class through its string name using: The forName method in