0

我创建了这个类组件 MySourcedPropertyGetterSubClasser 通过 SiteSourcedPropertyGetterSubClasse 扩展。我的另一个类 TestClass.java 注入 atg/uerprofiling/Profile 类。如果我提到类都是全局的,它是工作文件,但配置文件是抛出错误

**** Error  Wed Mar 10 08:34:29 EST 2021    1615383269549   /   Unable to set configured property "/my/integrations/punchout/MySourcedPropertyGetterSubClasser.profile" atg.nucleus.ConfigurationException: Unable to resolve component /atg/userprofiling/Profile 

如果我将范围更改为请求或会话,我会收到此错误

**** Warning    Wed Mar 10 08:41:52 EST 2021    1615383712600   /   Invalid attempt to resolve component /my/integrations/punchout/MySourcedPropertyGetterSubClasser in scope global.  It is defined in scope session 
**** Error  Wed Mar 10 08:41:52 EST 2021    1615383712600   /   InstanceFactory or SubClasser component: "/my/integrations/punchout/MySourcedPropertyGetterSubClasserMySourcedPropertyGetterSubClasser" does not exist.
**** Warning    Wed Mar 10 08:41:52 EST 2021    1615383712618   /   Invalid attempt to resolve component /my/integrations/punchout/MySourcedPropertyGetterSubClasserMySourcedPropertyGetterSubClasserMySourcedPropertyGetterSubClasser in scope global.  It is defined in scope session 
**** Error  Wed Mar 10 08:41:52 EST 2021    1615383712618   /   Component: "/my/integrations/punchout/MySourcedPropertyGetterSubClasserMySourcedPropertyGetterSubClasserMySourcedPropertyGetterSubClasserMySourcedPropertyGetterSubClasserMySourcedPropertyGetterSubClasser" in "/my/integrations/punchout/MySourcedPropertyGetterSubClasserMySourcedPropertyGetterSubClasserMySourcedPropertyGetterSubClasserMySourcedPropertyGetterSubClasser" specified as a subclasser but does not exist.
**** Error  Wed Mar 10 08:41:52 EST 2021    1615383712618   /   Component "/my/integrations/punchout/MySourcedPropertyGetterSubClasserMySourcedPropertyGetterSubClasserMySourcedPropertyGetterSubClasserMySourcedPropertyGetterSubClasserMySourcedPropertyGetterSubClasserMySourcedPropertyGetterSubClasser" was not found or is not an instance of InstanceFactory
4

0 回答 0