5

I got rid of that error from the logs by adding the TokenService back to the cd_client_conf.xml on the webapp side. <TokenService ClientId="clientID" ClientSecret="encrypted:password"/> This seems like a bug with DXA where even after you have the oAuth disabled, you need the token service tag with client id and client secret in the webapp. For some ...


4

The Component content is stored in XML format in the DB. If you update a schema XML name then the XML for that component no longer maps to that new field[1]. You can synchronize the content against the updated schema. [2] [3] If you're not allowed to do that, then you could create a new field and write something to copy the content of the original field (...


4

This is a bug with DXA 2.0 release - see https://github.com/sdl/dxa-content-management/issues/14. The issue has been closed, as there has been a fix made, but this is post 2.0. You will either have to upgrade your TBBs to DXA 2.1, or bake your own TBBs containing the (simple) code fix: https://github.com/sdl/dxa-content-management/pull/15


3

After doing a lot of trial and error, I was finally able to cache my object. Here are my findings for anyone trying to implement caching in DXA. These are not specific to DXA but common for Springs+EHCache. @EnableCaching annotation on your context configuration class, provide appropriate cache manager beans, separate service bean into interface and ...


3

Yes. It's good to apply and important to understand the new changes and fixes included in the hotfix. @Rick Pannekoek did a great presentation about "Beyond SDL Tridion Sites DXA 2.0" and explained about this Hotfix releases of DXA 2.0 changes. DXA Model Service "in-process" Much better performance using in-process CD APIs instead of CIL No HTTP/OData (...


3

Found the problem, an extra UrlBasedViewResolver bean is in place with viewClass JstlView and order 5. Because of this new UrlBasedViewResolver the BeanNameViewResolver is never reached. This is why we get HTTP Status 404 – Not Found.


3

change the mapping of the jsp servlet to /WEB-INF/Views/* so that the JSP servlet is only used for views, and leaves all other requests for the dispatcher servlet. update the web.xml on webapp level <servlet-mapping> <servlet-name>jsp</servlet-name> <url-pattern>/WEB-INF/Views/</url-pattern>* </servlet-mapping&...


2

If you don’t need to (immediately) use the new Sites 9 architecture/features, I would recommend upgrading to DXA 2.0 first. The upgrade from DXA 2.0 to 2.2 should be low impact.


2

Try enabling these following properties in dxa.properties file #adf.context.provider - Activates ADF instead of Context Service for context claims. spring.profiles.active=adf.context.provider spring.profiles.include=adf.context.provider ADF is needed for XPM Session Preview, Experience Optimization and Context Expressions. Values: [true, false]: dxa.web....


2

The issue here was that the content was being cached at multiple locations and so the services and the webapp needed a proper restart and in the correct order. We are using JMS for the CD services so here is the order in which we restarted and it worked JMS Caching services Discovery Service Content Service DXA Model service Deployer Service The webapp Now ...


1

I was getting issues because i was not using dynamic documentation module here, And this is Tridion docs implementation so after addition ofdynamic documentation moduler and update of few references to dynamic documentation module classes now I am able to get the pagemodel object.


1

I was able to fix this problem by updating jackson apis to version 2.10.0, previously it was refering to version 2.8.10 jacksonversion = '2.10.0' com.fasterxml.jackson.core:jackson-annotations:${jacksonversion} com.fasterxml.jackson.core:jackson-core:${jacksonversion} com.fasterxml.jackson.core:jackson-databind:${jacksonversion} com.fasterxml.jackson....


1

The DXA Resolver uses a non-standard logging mechanism which can be activated by setting an environment variable called DXA_LOGGING with the path of the log file. See https://github.com/sdl/dxa-content-management/blob/master/Sdl.Web.DXAResolver/LogAdaptor.cs


1

In my understanding, DXA caches the resources (jsons and other files) on the filesystem of the webserver. By doing an admin/refresh you instruct the application to reload those resources from the DB. But, this is not a global operation, it only applies to that specific server. Having that in mind, the most straight forward solution is to call the admin/...


1

You cannot prevent an exception or error being thrown by the application for pages or items that does not exist. However, you can customize the error message or throw errors differently to create a better user experience. You can look through the example for DXA 1.4. It should be pretty similar to the DXA version that you are using, though. The other way ...


1

DXA offers 2 OOTB ways of generating the sitemap, static and dynamic. You can read more here. Now depending on which type you use, the default one is static, you will have to do different actions. Either adjust the numeric prefixes or adjust the taxonomy and keywords used by pages. Yes, but you will have to custom code this yourself and since you want this ...


1

I found the problem and the solution :) just to refresh CIS configuration executing: java -jar discovery-registration.jar forceSync and java -jar discovery-registration.jar update


1

The Component Link doesn’t get resolved (to a Page URL) because of setting dxa.defaults.rich-text-resolve=false. If that setting is changed to true, the DXA Model Service will resolve Component Links to Page URL, assuming the linked Component is on a published Page. If not, hyperlinks in Rich Text are suppressed (i.e. the HTML a tag is removed). However, ...


1

You should use type com.sdl.webapp.common.api.model.RichText (instead of String) for the RTF fields. This should resolve links correctly.


1

Note that the img XHTML element is supposed to be converted to an Entity Model (MediaItem-derived) which in turn should get rendered to HTML (using an appropriate View). From what you are showing, it seems that the MediaItem-derived Entity Model is properly constructed (class Image), but it is not properly rendered as HTML, but instead its toString ...


Only top voted, non community-wiki answers of a minimum length are eligible