grails / grails-core

The Grails Web Application Framework
http://grails.org
Apache License 2.0
2.79k stars 950 forks source link

Remove deprecated mimetypes which are overriding MimeTypesConfiguration #13848

Closed codeconsole closed 4 days ago

codeconsole commented 4 days ago

The deprecated plugin is overriding the existing configuration. It needs to be removed or disabled.

Fixes

Overriding bean definition for bean 'mimeTypes' with a different definition: replacing [Root bean: class=null; scope=; abstract=false; lazyInit=null; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=true; fallback=false; factoryBeanName=org.grails.plugins.web.mime.MimeTypesConfiguration; factoryMethodName=mimeTypes; initMethodNames=null; destroyMethodNames=[(inferred)]; defined in class path resource [org/grails/plugins/web/mime/MimeTypesConfiguration.class]] with [Generic bean: class=org.grails.plugins.web.mime.MimeTypesFactoryBean; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; fallback=false; factoryBeanName=null; factoryMethodName=null; initMethodNames=null; destroyMethodNames=null]
Overriding bean definition for bean 'grailsMimeUtility' with a different definition: replacing [Root bean: class=null; scope=; abstract=false; lazyInit=null; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=true; fallback=false; factoryBeanName=org.grails.plugins.web.mime.MimeTypesConfiguration; factoryMethodName=mimeUtility; initMethodNames=null; destroyMethodNames=[(inferred)]; defined in class path resource [org/grails/plugins/web/mime/MimeTypesConfiguration.class]] with [Generic bean: class=org.grails.web.mime.DefaultMimeUtility; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; fallback=false; factoryBeanName=null; factoryMethodName=null; initMethodNames=null; destroyMethodNames=null]
Overriding bean definition for bean 'mimeTypeResolver' with a different definition: replacing [Root bean: class=null; scope=; abstract=false; lazyInit=null; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=true; fallback=false; factoryBeanName=org.grails.plugins.web.mime.MimeTypesConfiguration; factoryMethodName=mimeTypeResolver; initMethodNames=null; destroyMethodNames=[(inferred)]; defined in class path resource [org/grails/plugins/web/mime/MimeTypesConfiguration.class]] with [Generic bean: class=org.grails.web.mime.DefaultMimeTypeResolver; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; fallback=false; factoryBeanName=null; factoryMethodName=null; initMethodNames=null; destroyMethodNames=null]

What a nightmare lol.

codeconsole commented 4 days ago

https://github.com/grails/grails-core/issues/13843