Accessing to AppComponent Entity

Hi
Can we perform CRUD function to the Entity of appComponent from the main application?

For example, I have an AppComonent named ContractManagement where I have an Entity named ContractParty. My main application Called CustomerManagement where I have an Entity named Customer. This CustomerManagement application is using the ContractManagement as appComponent. When I create a new Customer in CustomerManagement application, I want to update the same in ContractParty. Is it possible?

I tried to directly update but get the following error.

java.lang.IllegalArgumentException: MetaClass not found for cm$ContractParty
	at com.haulmont.cuba.core.sys.CachingMetadataSession.getClassNN(CachingMetadataSession.java:67)
	at com.haulmont.cuba.core.global.ExtendedEntities.getEffectiveClass(ExtendedEntities.java:86)

Hello @mortozakhan

Yes, it is possible to access entities from application component. Please check that CRUD operations can be performed in app component itself. Than try to reinstall app component into master app.

Could you clarify whether the problem is reproduced for test projects or not?

Regards,
Daniil

Check that you have added the app component correctly. Particularly that web.xml of the core and web modules contain the components in appComponents servlet context parameter.