0 Replies Latest reply on Sep 22, 2004 9:56 AM by roberto72

    EAR with scheduled call

      Hi,
      I have a EAR with this structure:
      |-- META-INF
      | |-- application.xml
      | `-- jboss-app.xml
      |-- ecom-ejb.jar
      `-- ecom.sar

      in the .SAR there is a jboss-service.xml which
      force a call to an object every N sec. When
      I build .EAR and deploy it it's all ok (i see
      a log-line from scheduled method).

      But when I re-deploy EAR file ad the first
      scheduled method call I obtain a class-cast
      exception. I suppose that there is a
      class-version problem. How can I force
      scheduler to acquire nel classLoader?

      TIA
      Roberto Colmegna

      ---- META-INF/application.xml ---

      <display-name>ecom</display-name>
      ecom

      ecom-ejb.jar



      ---META-INF/ jboss-app.xml ---
      <jboss-app>
      <loader-repository>
      ecomClassLoader:loader=ecom.ear
      <loader-repository-config>
      java2ParentDelegation=false
      </loader-repository-config>
      </loader-repository>

      ecom-ejb.jar


      ecom.sar

      </jboss-app>

      --- <ecom.sar>/META-INF/jboss-service.xml ---


      true
      it.fm.ecom.srv.appsrv.ejb.schedulable.AdvertiserSchedule

      20
      int
      NOW
      10000
      -1