2 Replies Latest reply on Feb 20, 2012 11:44 AM by miguelzp

    Is it possible to disable SEAM Catch entirely?

    miguelzp

      As TomEE container's OWB has a bug with events:

       

      https://issues.apache.org/jira/browse/OWB-628

       

      I'd actually need to disable SEAM Catch entirely:

       

       

      Would it be enough to override the respective handler factory and filter in

       

      faces-config.xml (seam-faces.jar)

       

      web-fragment.xml (solder.jar)

       

       

      Could this be done without changing the jar files?

       

       

      Thx. Miguel

        • 1. Re: Is it possible to disable SEAM Catch entirely?
          lightguard

          miguelzp wrote:

           

          As TomEE container's OWB has a bug with events:

           

          https://issues.apache.org/jira/browse/OWB-628

           

          I'd actually need to disable SEAM Catch entirely:

           

           

          Would it be enough to override the respective handler factory and filter in

           

          faces-config.xml (seam-faces.jar)

           

          web-fragment.xml (solder.jar)

           

           

          Could this be done without changing the jar files?

           

           

          Thx. Miguel

          Probably not. You'd have to explode the jars and make the changes.

           

          Looking at your bug report, what is it that you're trying to do? There is never an event with ExceptionStack as the payload. You could manually fire the event frome the bean manager though, provided you create the ExceptionStack.

          • 2. Re: Is it possible to disable SEAM Catch entirely?
            miguelzp

            My comment on the bug report (https://issues.apache.org/jira/browse/OWB-628) refers to the SOLDER Catch implementation class ExceptionHandlerDispatch:

             

            ###

             

            public class ExceptionHandlerDispatch {

             

            ...

                

                 public void executeHandlers(@Observes @Any ExceptionToCatch eventException, final BeanManager bm,

                                             CatchExtension extension, Event<ExceptionStack> stackEvent) throws Throwable {

             

            ...

             

            ###

             

            I discovered that stackEvent is always null using OWB and found the reason in the mentioned Apache JIRA issue.