I have an MBean contained in a SAR that depends on a session bean in a separate 
EJB jar file, and I have included the appropriate depends element in 
jboss-service.xml. I would like my SAR file to contain ONLY the MBean, but I 
get a NoClassDefFoundError for my session bean's local interface from 
ServiceConfigurator.install. This is surprising to me, since I would assume 
that the class wouldn't need to be loaded until the start method on my MBean is 
called, presumably after my EJB jar file has been deployed, as there is no 
static initialization that requires the session bean in the MBean. The MBean 
also uses a lot of other utility classes (which are also contained in the EJB 
jar file that it depends on), but I don't have to include those in the SAR file 
in order to get it to deploy properly. After I include the EJB local interface, 
I can see that all the proper dependency checking is happening in the JBoss 
debug output on startup and the deployment succeeds. Why do I need to include 
the EJB's local interface? This is all on 4.0.2.

--Steven

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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to