Module won't deploy / run
waldi Oct 23, 2004 1:07 PMHi everyone,
I spent the last couple of hours with a rather simple question: how do I deploy and run my own "hello world" module in nukes?
When I deploy my .sar-file (compressed with the JDK's jar.exe) into the nukes directory I get this:
18:52:36,796 ERROR [MainDeployer] could not create deployment: file:/C:/Programme/jboss-3.2.3_nukes-1.1.0-RC3/server/default/nukes/fsinfo-module.sar
org.jboss.deployment.DeploymentException: create operation failed for package file:/C:/Programme/jboss-3.2.3_nukes-1.1.0-RC3/server/default/nukes/fsinfo-module.sar; - nested throwable: (org.jboss.deployment.DeploymentException: Class org.jb
oss.mx.server.MBeanServerImpl can not access a member of class edu.unika.fswiwi.fsinfo.module.FSInfoModule with modifiers "public"; - nested throwable: (java.lang.IllegalAccessException: Class org.jboss.mx.server.MBeanServerImpl can not access a member of class edu.unika.fswiwi.fsinfo.module.FSInfoModule with modifiers "public"))
[... and so on]
My actual file (FSInfoModule) looks like this:
package edu.unika.fswiwi.fsinfo.module; import org.jboss.nukes.html.Page; import org.jboss.nukes.module.ModuleSupport; class FSInfoModule extends ModuleSupport{ public FSInfoModule(){ super("FS-Info"); } public void main(Page page) { page.print("<h1>Hello! :-) MAIN</h1>"); } public void action(Page page) { page.print("<h1>Hello! :-) ACTION</h1>"); } }
Together with this jboss-service.xml:
<?xml version="1.0" encoding="UTF-8"?> <mbean code="edu.unika.fswiwi.fsinfo.module.FSInfoModule" name="nukes.modules:name=FSInfoModule" xmbean-dd="" xmbean-code="org.jboss.nukes.component.NukesMBean"> <depends>nukes.modules:name=core</depends> <xmbean> <attribute name="DisplayName">FS-Info</attribute> <attribute name="Description">FSWIWI::WIMA</attribute> <attribute name="Configuration"> <module> <operation name="FSInfoModule" display-name="FS-Info" description="" image="" hint=""/> </module> </attribute> </xmbean> </mbean>
I have no clue where this IllegalAccessException is thrown and I am running pretty much out of ideas...
Any suggestions would be appreciated!!
Regards,
Waldi