anonymous wrote : 
  | Ok, i will try to help but the build is pretty complex: 
  | You don't have to modify anything but the build.xml of your project 
  | 
  | I think (i could and proably am wrong but it may worth the try if you couldn't fix 
your problem) that you just have to add your library to the target "configure" it the 
"library.classpath" path. 
  | 
  | Let me know if it worked, otherwise i will try to look closer. Or maybe someone 
else can tell you.  
  | 
  | _________________
  | Regards, 
  | Thomas Heute
  | 

Thanks to theute, I've tried his suggestions and it works. 

However, after re-building the src and deploying it, I can't access the modules. It 
turns out the jmx-console doesn't register the modules. It's possible that there's 
something wrong with my modifications of the jboss-service.xml.

These are the steps I've done:

1. this is the new modification I've made to $NUKES_HOME/nukes/build.xml where 
$NUKES_HOME is "path_to/nukes-1.1.0-RC3-src/".


  |       <!-- Configure thirdparty libraries -->
  |       <call target="configure-libraries"/>
  |       <path id="library.classpath">
  |          <fileset dir="${jboss.home}/client" includes="*.jar"/>
  |          <fileset dir="${jboss.home}/lib" includes="*.jar"/>
  |          <fileset dir="${jboss.home}/server/default/lib" includes="*.jar"/>
  |          <fileset dir="/opt/java/lib/addons" includes="*.jar"/>
  |          <path refid="apache.commons.classpath"/>
  |          <path refid="apache.lucene.classpath"/>
  |          <path refid="dom4j.dom4j.classpath"/>
  |          <path refid="informa.rss.classpath"/>
  |          <path refid="javassist.classpath"/>
  |          <path refid="jregex.jregex.classpath"/>
  |          <path refid="sourceforge.dnsjava.classpath"/>
  |       </path>
  | 

In /opt/java/lib/addons I've put ldapjdk.jar and ldapsp.jar.

2. Modify $NUKES_HOME/nukes/output/resources/nukes-sar/META-INF/jboss-service.xml

I've put these lines to declare the new Modules: TemplateModule, LinkModule and 
GetAttrModule:


  |    <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.modules: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>
  | 
  |     <mbean
  |        code="org.jboss.nukes.addons.modules.linkmodule.GetAttrModule"
  |           name="nukes.modules:name=GetAttrModule"
  |           xmbean-dd=""
  |           xmbean-code="org.jboss.nukes.component.NukesMBean">
  |           <depends>nukes.modules:name=core</depends>
  |           <xmbean>
  |                 <attribute name="DisplayName">Get Attribute Module</attribute>
  |                 <attribute name="Description">The Get Attribute Module</attribute>
  |          </xmbean>
  |    </mbean>
  | 
  | 

3. The next step is to re-build the module and deploy it. 

Problem is I don't see the module on the jboss jmx-console. I checked that 
nukes-lib.jar contains the classes of the modules with the new jboss-service.xml.

Thanks for the reply.

nb. I'm not too sure now whether I may post this on the devel forum or on the nukes 
user forum. Maybe the more exprerienced nukes users could point out? Thanks




View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3846530#3846530

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3846530


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to