开发者

Cannot load the target CFC abc for the relation property abc in CFC xyz

开发者 https://www.devze.com 2023-02-19 07:27 出处:网络
I\'m running two Applications with different Application names. Both use the different datasources (but same database behind) and have almost the same ORM objects, but both

I'm running two Applications with different Application names. Both use the different datasources (but same database behind) and have almost the same ORM objects, but both in their own webroot/orm folder.

While the admin app runs fine, I sometimes get an er开发者_如何学运维ror in the public app: Cannot load the target CFC abc for the relation property abc in CFC xyz.

If I look into the orm folder, all cfc are there and permissions are set properly.

After restarting ColdFusion n-times i figured out: admin_app runs first public_app runs second all fine

public_app runs first admin_app runs second public fails until admin_app is run once

Any idea what I'm missing?


Okay I figured out, that the error occures before onApplicationStart() gets fired. Tried to clone the database, so each app has different DSN and database. Also renamed the ORM CFCs of the public app and disabled component caching. Still the same...

I reduced the Application.cfc of the public app to minimum: http://pastebin.com/mJhSDFDi And put a test.cfm onto the server which just outputs #now()#. Still the same...

0

精彩评论

暂无评论...
验证码 换一张
取 消