cancel
Showing results for 
Search instead for 
Did you mean: 

Custom mimetypes ok in release 1.4 but error on 2.0 preview

alexr
Champ in-the-making
Champ in-the-making
This concerns Alfresco 2.0 Community Edition Preview (Tomcat/Windows Setup)

For Visio and MSProject files I created 16x16 gifs and 32x32 gifs
which are copied to
D:\Alfresco\tomcat\webapps\alfresco\images\filetypes  (and filetypes32)

Furthermore my version of custom-services-context.xml is copied to:
D:\Alfresco\tomcat\shared\classes\alfresco\extension

And the file mimetype-custom-extensions.xml is copied to:
D:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco.


When Apache\Tomcat is restarted and Alfresco webclient is started
I get the following error:

HTTP Status 404 - /alfresco/

type Status report

message /alfresco/

description The requested resource (/alfresco/) is not available.
Apache Tomcat/5.5.20


Again this worked fine in Alfresco 1.4 preview (Tomcat/Windows) but apparently not in version 2.0 preview. What has changed in the way one has to customize this. Can I find this in a version 2.0 spec?

Please help me Smiley Happy

Kind regards,

Alex
4 REPLIES 4

kevinr
Star Contributor
Star Contributor
I assume if you remove your extension xml files then the server starts ok? If so, check the original versions of the files to make sure that the config you need to extend has not changed.

Thanks,

Kevin

alexr
Champ in-the-making
Champ in-the-making
Hi Kevin,

The original files don't seem to have changed. However i noticed some definition files with mimetype-map*.xml in the filename.  I didn't have to touch these files in version 1.4 however it could be that the way to define custom mimetypes has changed between the 1.4 Preview version and the current 2.0 Preview version (community edition).
Can you verify whether the way to define custom mimetypes has changed
between Alfresco versions mentioned and if so Is there a document on how to implement my modifications in the new way to define them (i.e. different entries in new definition files)????


Kind regards,

Alex

derek
Star Contributor
Star Contributor
Hi,

There were a few changes to the bean names around mimetypes.  I thought they were done before 1.4, but it doesn't matter.  It is likely that you need to check your bean overrides in your custom-services-context.  Your mimetype config file can go in shared/classes too.

The WIKI page is up to date: http://wiki.alfresco.com/wiki/Adding_a_Mime_Type

Regards

alexr
Champ in-the-making
Champ in-the-making
Hi Derek,

Thanks, I will have a look at that Wiki entry and then apply any appropriate
changes.

Kind regards,

Alex