commercetools / commercetools-sunrise-java-cms

Module for Sunrise Java to use CMS
Apache License 2.0
1 stars 2 forks source link

Document how to install in project #18

Open lauraluiz opened 8 years ago

ghost commented 8 years ago

Hi, I've tried as an early adapter to integrate the cms to our sunrise java demo fork upgrading to 0.9.0 but I think there has to be added a configuration for
final Configuration config = configuration.getConfig("application.cms.i18n"); in the application.conf for the CmsI18nResolverProvider

Do you have something prepared? Thank you in advance.

Our Error:

Error in custom provider, java.lang.NullPointerException
  while locating com.commercetools.sunrise.common.template.cms.filebased.CmsI18nResolverProvider
  at com.commercetools.sunrise.common.template.TemplateModule.configure(TemplateModule.java:22) (via modules: com.google.inject.util.Modules$OverrideModule -> com.commercetools.sunrise.common.template.TemplateModule)
  while locating com.commercetools.sunrise.common.template.i18n.I18nResolver annotated with @com.google.inject.name.Named(value=cms)
    for field at com.commercetools.sunrise.common.template.cms.filebased.FileBasedCmsService.i18nResolver(FileBasedCmsService.java:25)
  while locating com.commercetools.sunrise.common.template.cms.filebased.FileBasedCmsService
  while locating com.commercetools.sunrise.cms.CmsService
lauraluiz commented 8 years ago

@clearsky yes, you are right. To use the simple file-based CMS you need that config. There are still lots of changes involved here:

Still a lot of work to do that is directly involving this. Thanks for all the feedback!