4 Replies Latest reply on Mar 24, 2009 8:56 PM by Gregory Nikle

    Can't find exception class for exception handler

    Gregory Nikle Apprentice

      Hi,
      I wrote my own exception class:



      @ApplicationException(rollback=true)
      @HttpError(errorCode=HttpServletResponse.SC_NOT_FOUND)
      public class SGUniUncheckedException extends RuntimeException {
              private static final long serialVersionUID = 2214045063755519559L;
      
              public SGUniUncheckedException() {
                      super();
              }
              
              public SGUniUncheckedException(String err) {
                      super(err);
              }
      }



      and when i thrown it in catch statement


      throw new SGUniUncheckedException(somethink);


      i get in servet log:



      2009-03-24 09:42:14,455 ERROR [org.jboss.seam.exception.Exceptions] Can't find exception class for exception handler
      java.lang.ClassNotFoundException: No ClassLoaders found for: pl.sguni.SGUniUncheckedException



      Can anybody help me what could be wrong? Class exception is in same jar (ear) as whole project app.