Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-1782

Remote RMI classloading is not download classes inside non-EJB jars in the deploy folder

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JBossAS-4.0.3RC2
    • JBossAS-4.0.1 Final, JBossAS-4.0.1 SP1, JBossAS-4.0.2RC1, JBossAS-4.0.2 Final
    • Remoting
    • None

      The Remote RMI classloading is not downloading classes that are
      inside packed hot-deployed jars which are not EJB jars.

      The problem is the way it is trying to construct the url is wrong, e.g.

      // NOT AN EJB CLASS
      2005-05-05 15:59:43,288 TRACE [org.jboss.web.WebServer] No loader, reset filePath = test/jboss/rmi/server/rmiServer_Stub.class

      // TRIES TO LOAD THE BYTECODE
      2005-05-05 15:59:43,288 TRACE [org.jboss.web.WebServer] loader = org.jboss.mx.loading.UnifiedClassLoader3@1632847

      { url=file:/home/ejort/temp/jboss-4.0.2/server/default /tmp/deploy/tmp27188jboss-service.xml ,addedOrder=2}

      2005-05-05 15:59:43,288 TRACE [org.jboss.web.WebServer] loading className = test.jboss.rmi.server.rmiServer_Stub

      // CORRECT
      2005-05-05 15:59:43,288 TRACE [org.jboss.web.WebServer] clazzUrl = file:/home/ejort/temp/jboss-4.0.2/server/default/tmp/deploy/tmp27229testRMIServer.sar

      // WRONG
      2005-05-05 15:59:43,288 TRACE [org.jboss.web.WebServer] new clazzUrl: file:/home/ejort/temp/jboss-4.0.2/server/default/tmp/deploy/test/jboss/rmi/server/rmiServer_Stub.
      class
      2005-05-05 15:59:43,289 TRACE [org.jboss.web.WebServer] HTTP code=404 /home/ejort/temp/jboss-4.0.2/server/default/tmp/deploy/test/jboss/rmi/server/rmiServer_Stub.class

      It should more like:
      new clazzUrl: jar:file:/home/ejort/temp/jboss-4.0.2/server/default/tmp/deploy/tmp27229testRMIServer.sar!test/jboss/rmi/server/rmiServer_Stub.
      class

            adrian.brock Adrian Brock (Inactive)
            adrian.brock Adrian Brock (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: