Seam에서 trap
동기식 예외가 발생하면 Seam에서 Exceptions
클래스를 확장합니다.
@Name("org.jboss.seam.exception.exceptions")
@Scope(ScopeType.APPLICATION)
@Install(precedence = Install.APPLICATION)
@BypassInterceptors
@Transactional
public class ExceptionHandler extends Exceptions {
private static final LogProvider log = Logging.getLogProvider(ExceptionHandler.class);
public void handle(Exception ex) throws Exception {
//Here you can do whatever you want with the exception
log.error("Exception occurred : " + ex.getMessage());
super.handle(ex);
}
로그 파일 또는 서버 콘솔에 표시된 ServletException의 스택 추적을 게시하십시오. –