The problem is the use of metaData.getClass().getName() as this returns the implementation
class. You need to use JBossAppMetaData.class.getName() since that is the signature. Its
the metaData instance that has to be an implementation of this. The ctor parameters also
look incorrect that it should be metaData rather than deployment:
| ServiceConstructorMetaData serviceConstructor = new ServiceConstructorMetaData();
| serviceConstructor.setSignature(new String[] { String.class.getName(),
| JBossAppMetaData.class.getName(),Boolean.class.getName()});
| serviceConstructor.setParameters(new Object[] {contextId, metaData,
Boolean.TRUE});
| createJaccPolicyBean(serviceConstructor, unit);
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131432#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...