cancel
Showing results for 
Search instead for 
Did you mean: 

Com 2.1 to Ent 2.1:Error loading custom content type

eg
Champ in-the-making
Champ in-the-making
Scenario:
I created a custom content type in the 2.1 community edition (custommodel.xml and web-client-config-custom.xml files). Everything worked fine.

I installed the Enterprise 2.1 version.

I copied the custommodel.xml and web-client-config-custom.xml  files from the community version - hoping to see the new content types.

When I go to add content through the web app the new content type does not appear in the dropdown and a warning message appears on the server  as follows:

WARN [bean.content.BaseContentWizard] Failed to add 'custom:ClaimDocument' to the list of content types as the type is not recognised.
I also reverted to the original xml files and manually edited them but got the same result.

Any idea what I might be missing?
2 REPLIES 2

mikef
Champ in-the-making
Champ in-the-making
Sounds like you are missing the spring config to load your custom model.

It's probably called something like custommodel-context.xml. This will contain an entry that references the actual model definintion (in this case custommodel.xml). Spring will automatically load anything with *-context.xml which will then load your model.

eg
Champ in-the-making
Champ in-the-making
Thanks. That was it. I had forgotten to copy/create  the custom-model-context.xml file into the extension folder.