1 Reply Latest reply on Jul 22, 2005 2:59 PM by jactor

    java.lang.NoClassDefFoundError when deploying as ear

      I have transformed my deploy-code to incorporate ajb3 and does therefore deploy as ear-file where I earlier deployed as a war-file.

      I now receive this NoClassDefFoundError and I earlier did not receive this: 2005-07-21 20:24:50,403 ERROR [ApplicationDispatcher.java - 704] Servlet.service() for servlet jsp threw exception
      java.lang.NoClassDefFoundError...

      The classname which is stated in the trace is commonly used (not among the different jar files containing ejb's - ejb3, par) and I was wondering if this is a common problem for people like me (who don't know the ejb/par-environment).

      I am also looking for a way to see what was trying to be executed when the error occured. As the log file states: [ApplicationDispatcher.java - 704] Servlet.service() for servlet jsp threw exception, so that is obvious... But what code did this code try to run? The class which can't be found is part of the web-inf/classes directory in the war-file but it is not located. Is JBoss especting to find the file elsewhere?

      Regards from "baffled"