1 Reply Latest reply on Aug 24, 2004 7:30 AM by theute

    Problem with deploying module

      Hi, I've searched on this forum but none quite answers my problem:

      I've written modules and compiled them succesfully, however I got the error messages below when I deployed them ( important points are boldened for easy reference )

      17:01:37,026 INFO [MainDeployer] Starting deployment of package: file:/usr/loca
      l/opt/appservers/jboss-3.2.3_nukes-1.0.0/server/default/nukes/nukes-template.sar
      17:01:37,125 WARN [ServiceConfigurator] Failed to complete install java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.nukes.component.NukesMbean

      17:01:37,274 ERROR [MainDeployer] could not create deployment: file:/usr/local/o
      pt/appservers/jboss-3.2.3_nukes-1.0.0/server/default/nukes/nukes-template.sar
      org.jboss.deployment.DeploymentException: create operation failed for package file:/usr/local/opt/appservers/jboss-3.2.3_nukes-1.0.0/server/default/nukes/nukes-template.sar; - nested throwable: (javax.management.InstanceNotFoundException: nukes.module:name=TemplateModule is not registered.)

      <?xml version="1.0" encoding="UTF-8"?>
      <server>
       <mbean
       code="org.jboss.nukes.addons.modules.linkmodule.LinkModule"
       name="nukes.modules:name=LinkModule"
       xmbean-dd=""
       xmbean-code="org.jboss.nukes.component.NukesMBean">
       <depends>nukes.modules:name=core</depends>
       <xmbean>
       <attribute name="DisplayName">Link Module</attribute>
       <attribute name="Description">The Link Module</attribute>
       </xmbean>
       </mbean>
      
       <mbean
       code="org.jboss.nukes.addons.modules.linkmodule.TemplateModule"
       name="nukes.module:name=TemplateModule"
       xmbean-dd=""
       xmbean-code="org.jboss.nukes.component.NukesMbean">
       <depends>nukes.modules:name=core</depends>
       <xmbean>
       <attribute name="DisplayName">Template Module</attribute>
       <attribute name="Description">The Template Module</attribute>
       </xmbean>
       </mbean>
      </server>
      


      the systems are:
      jboss-3.2.3_nukes-1.0.0/
      nukes-1.1.0-RC3-src
      eclipse-3.0

      I've compiled the modules with the libraries given in "nukes-1.1.0-RC3-src"
      then i created this "nukes-template.sar":

      0 Tue Aug 24 01:42:18 SGT 2004 META-INF/
      45 Tue Aug 24 01:42:18 SGT 2004 META-INF/MANIFEST.MF
      0 Mon Aug 23 03:17:00 SGT 2004 org/
      0 Mon Aug 23 03:17:00 SGT 2004 org/jboss/
      0 Mon Aug 23 03:32:32 SGT 2004 org/jboss/nukes/
      0 Mon Aug 23 03:32:18 SGT 2004 org/jboss/nukes/addons/
      0 Mon Aug 23 03:32:18 SGT 2004 org/jboss/nukes/addons/modules/
      0 Mon Aug 23 04:45:44 SGT 2004 org/jboss/nukes/addons/modules/linkmodule/
      814 Mon Aug 23 04:45:44 SGT 2004 org/jboss/nukes/addons/modules/linkmodule/LinkModule.class
      2016 Tue Aug 24 00:51:44 SGT 2004 org/jboss/nukes/addons/modules/linkmodule/TemplateModule.class
      0 Tue Aug 24 01:42:16 SGT 2004 META-INF/
      903 Tue Aug 24 01:41:38 SGT 2004 META-INF/jboss-service.xml

      Troubleshooting:
      If I use use the jboss-service.xml below, I can deploy and access http://localhost:8080/index.html?module=LinkModule&op=main

      <?xml version="1.0" encoding="UTF-8"?>
      <server>
       <mbean
       code="org.jboss.nukes.addons.modules.linkmodule.LinkModule"
       name="nukes.modules:name=LinkModule"
       xmbean-dd=""
       xmbean-code="org.jboss.nukes.component.NukesMBean">
       <depends>nukes.modules:name=core</depends>
       <xmbean>
       <attribute name="DisplayName">Link Module</attribute>
       <attribute name="Description">The Link Module</attribute>
       </xmbean>
       </mbean>
      </server>
      


      similarly if I use this, I can deploy my TemplateModule without error:
      <?xml version="1.0" encoding="UTF-8"?>
      <server>
       <mbean
       code="org.jboss.nukes.addons.modules.linkmodule.TemplateModule"
       name="nukes.module:name=TemplateModule"
       xmbean-dd=""
       xmbean-code="org.jboss.nukes.component.NukesMbean">
       <depends>nukes.modules:name=core</depends>
       <xmbean>
       <attribute name="DisplayName">Template Module</attribute>
       <attribute name="Description">The Template Module</attribute>
       </xmbean>
       </mbean>
      </server>
      


      I've stopped and restarted jboss to take care of the ClassLoader not found exception.

      So the puzzles are:

      1. why if there is > 1 mbean tag, the deployment failed? is it some syntax error or incompatibility problem due to the fact that "jboss-3.2.3_nukes-1.0.0"
      "nukes-1.1.0-RC3-src" are used?

      2. is there any support for eclipse to check the jboss-service.xml? Initially I wrote "nukes.module=" instead of "nukes.modules=" and the not-so-obvious "javax.management.InstanceNotFoundException" error message came out. that was before I realized the syntatic error and tried the 2 scenarios.


      My hunch is it's unlikely it's due to the incompatibility since I can deploy them individually without problems.

      If it's really the syntax problem, how to prevent this? - point 2

      Has anybody had this problem before? Thanks in advance for your input.