"scott.stark(a)jboss.org" wrote : 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);
| |
|
That is the change I am doing now. Rather than the use of metaData.getClass().getName(),
I am doing getMetaDataClassType() which is an overridden method in the sub-deployers
(EarSecurityDeployer will pass JBossAppMetaData as the meta data class type).
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131485#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...