Hi Martijn,
I'm using the latest svn version and I find the same problem with all of my modules: Unknown entity class
What changed in the last couple of months that could cause this?
Thanks.
Patrick
The way modules are loaded has changed. In Cuyahoga 1.5 and before, modules were loaded on demand and that caused some strange issues, especially under high load. Also we had to do some ugly hack to make this work at all.
In the current svn version, the modules have an extra flag (AutoActivate) that indicates if modules are being loaded on application startup. In the module admin page, you have to set that flag per module.
Note that there isn't a database migration script yet for the latest SVN version, only a script that creates empty tables (SQL Server only).
It's not recommended to use the SVN trunk for anything serious at the moment because it's not guaranteed to be stable at all.
It shouldn't affect your module db tables, though. Just add the new parameter to your install script that registers your module type:
INSERT INTO cuyahoga_moduletype (moduletypeid, name, assemblyname, classname, path, editpath, autoactivate, inserttimestamp, updatetimestamp) VALUES (... )
Regards,
Max
Hi Martijn,
We are about a month away from a production deployment, using Cuyahoga 1.5.
You mentioned,
"In Cuyahoga 1.5 and before, modules were loaded on demand and that caused some strange issues, especially under high load. Also we had to do some ugly hack to make this work at all."
Can you elaborate as to what these strange issues are?
Under what scenarios do these issues appear?
Thanks,
Jmas
jmasCan you elaborate as to what these strange issues are?
Under what scenarios do these issues appear?
The problem was that under high traffic, users sometimes got strange error messages just after a fresh application startup. This was caused by the way modules were loaded and the NHibernate SessionFactory was rebuilt everytime after a new module was loaded.
See
http://sourceforge.net/mailarchive/forum.php?thread_name=27d8d0930705201708o65a278e0lcfa142d4adfa3d4a%40mail.gmail.com&forum_name=cuyahoga-devel for the thread on the dev list.
For the best stability, you might want to check out the current 1.5.x branch from SVN (
https://cuyahoga.svn.sourceforge.net/svnroot/cuyahoga/branches/1.5.x). It has extra code to make loading modules more safe, but doesn't entirely fix the issue. It also has a fix for the RemoteContent module that caused an error in background refreshing of feeds in a separate thread.
On the other hand, for a moderately busy site, a plain Cuyahoga 1.5.x installation works well enough (as long as the ASP.NET process isn't recycled too often).
Thanks Martijn,
I will switch to the 1.5 branch.
Patrick.