3 Replies Latest reply on May 10, 2004 6:20 PM by gorano

    Deployment scanner fails

    gorano

      Hi guys,

      I have run into some trouble. I have developed a system with 3 ear files.
      Admin, ModA and ModB.

      Admin contains a web interface and the model interact via RMI to
      session beans in ModA and ModB.

      Everything was fine until I implemented ModB. The admin interface
      showed all views as expected and Eclipse had no problems to
      redeploy my code.

      I implemented ModB and everything is fine (redeploy) until I access
      one of the views accesing data in ModB.

      If I do this I can't redeploy anymore. Jboss 3.2.3 throws the following
      exception (and repeats every 10 sec) :

      23:20:17,578 ERROR [AbstractDeploymentScanner$ScannerThread] Scanning failed; co
      ntinuing
      java.lang.NullPointerException
      at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:119)
      at org.jboss.mx.loading.UnifiedClassLoader3.loadClassImpl(UnifiedClassLoader3.j
      ava:169)
      at org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.java:
      123)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
      at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:575)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
      at org.jboss.net.protocol.URLListerFactory.createURLLister(URLListerFactory.jav
      a:57)
      at org.jboss.net.protocol.URLListerFactory.createURLLister(URLListerFactory.jav
      a:41)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.
      java:373)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(
      AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(Ab
      stractDeploymentScanner.java:212)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(Abs
      tractDeploymentScanner.java:191)

      I have never seen this error before. I am using commit option D and
      caching on my entity beans.

      If I stop and start Jboss it will deploy again until my first access of
      the session bean (that calls some entity beans) in ModB.

      ModA has some Entity beans mapped to the same tables as some entity beans in ModB.

      In production Admin, ModA and ModB will go on different servers (explains the different ears). at the moment all is in one JVM.

      Help! what is causing this. Entity Cahce or maybe the session I create
      via IE??

      Thanks in advance for anyone who have some ideas.

      /Goran

        • 1. Re: Deployment scanner fails
          peter_f

          why RMI to talk between web tier and ejb tier ???

          then some ...

          • 2. Re: Deployment scanner fails
            gorano

            3 Different servers.

            WEB -> APP -> DB (3 tier model)

            Normally you might not use JBoss as a "web server" in the web tier, but in this case we will.

            For security reasons the app server is not accecible at all from the public IP and the web tier can of course not see the DB (good security model).

            Hmmm.....doesn't answer my question...

            Cheers

            Goran



            • 3. Re: Deployment scanner fails
              gorano

              ....ok more on my choice of RMI.

              I am using one instance of JBoss for development, but 3 instances for deployment.

              The error just causing a lot of annoying stops and starts of my Jboss between deployment of code. Still have 50 entities to implement into
              the admin tool....so..."hot deployment" would be nice.

              /Goran