I'm attempting to write an MBean that queryies the MBeanServer for 
ObjectNames, based on a QueryExpression.  I have the following block of 
code in my class ->

*** Code Snipet ***
QueryExp query = Query.and(
     Query.match(Query.attr("EJBModule"),
         Query.value("*")
     ),
     Query.match(Query.attr("J2EEApplication"),
         Query.value(fileName)
     )
);

Set objectNames = this.mBeanServer.queryNames(null, query);

*** End of Code Snipet ***

When I run this code I get the following error. ->

---
18:56:26,778 ERROR [MainDeployer] could not start deployment: 
file:/C:/java/jboss-3.0.0/server/all/conf/jboss-service.xml
java.lang.NoClassDefFoundError: gnu/regexp/UncheckedRE
         at javax.management.MatchQueryExp.<init>(MatchQueryExp.java:117)
         at javax.management.Query.match(Query.java:268)
         at 
org.mitre.profile.tools.jmx.plugin.BlockDeploymentListener.findBlockJ
ndiNames(BlockDeploymentListener.java:89)
         at 
org.mitre.profile.tools.jmx.plugin.BlockDeploymentListener.handleNoti
fication(BlockDeploymentListener.java:68)

.... Stack trace continues ....

I've looked at the MatchQueryExp, and the line that's throwing the error 
is ->

re = new UncheckedRE(buffer);

The gnu-regexp.jar is in the lib directory as well.  Any ideas on what 
may be causing this exception to be thrown?

Thanks,
-- 
<Mike/>




-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to