2 Replies Latest reply on Oct 12, 2004 9:54 AM by starksm64

    sar archive deployment dependency

    hovaje

      I have got an MBean created like the JNDIMap example.
      Unfortunately one of my classes implements

      HttpSessionBindingListener,

      which is included in the Tomcat-jars
      (using JBoss 3.2.5 with Tomcat).

      In addition my sar-archive is deployed before tomcat and the
      HttpSessionBindingListener class could not be found.

      My first approach was to use the j2ee.jar in my sar-archive
      but that seems to create an conflict with the ones from tomcat!?

      The next was to use the depends tag in the mbean deployment
      descriptor. But this doesn't work either or I make any mistakes...

      My MBean is a standard MBean with its own Interface, should I
      use one extended from StandardServices instead?

      Any help is appreciated

        • 1. Re: sar archive deployment dependency
          hovaje

          is noboby here who could help me?

          The problem is, as far as I could image, that the
          HttpSessionBindingListener is included in the jbossweb-tomcat50.sar.

          But during startup, JBoss (SARDeployer) first take my service.sar and
          the needed class could not be found and the deployment fails.

          So my question is:

          Is there a possibility to config my service that JBoss deploys tomcat first

          or

          Should I take a package with HttpSessionBindingListener.class into
          my service.sar??

          • 2. Re: sar archive deployment dependency
            starksm64

            Either move the servlet-api.jar into the server lib directory or move your session listener into a war.