Skip to main content
10 votes

Web 8 DXA 1.5 Java web site failing with "Unable to get response from OData service"

It turns out this is all to do with encoding. In each microservice bin/start.sh script replace the JVM_OPTIONS with this: JVM_OPTIONS="-Xrs -Xms256m -Xmx512m -Dorg.apache.tomcat.util.buf.UDecoder....
M Roweth's user avatar
  • 471
9 votes
Accepted

DXA & DD4T: Activate json compression

You can turn it back on in your Spring dispatcher servlet XML: <!-- DD4T Provider beans --> <bean id="binaryProvider" class="org.dd4t.providers.impl.BrokerBinaryProvider"> <...
Raimond's user avatar
  • 7,253
8 votes
Accepted

Custom Link and Richtext processing in DXA Java 1.7

Some time ago, we also worked on a DXA implementation where we customized the link resolver (I think we were using DXA 1.5 or 1.6, but the approach should be similar). The Spring framework should ...
Harald Hoffelinck's user avatar
7 votes
Accepted

DXA Java Model mapping issue

I think the problem here is that the implicit semantic mapping "de-pluralizes" the name of a list-type property. So, a property called "items" implicitly maps to a CM field called "item". However, as ...
Rick Pannekoek's user avatar
7 votes
Accepted

DXA with Java | Cannot detect ViewModel for ViewData MvcDataImpl

The first issue clearly states that the custom models and views have not been registered with DXA. You'd have to create a class that extends AbstractModuleInitializer and register all views and custom ...
Sabarish Senthilnathan's user avatar
6 votes
Accepted

DXA Java 1.5 on Web 8.1.1 | Localization not found error when browsing homepage

You are requesting http://10.9.5.175:8080 You have your BaseUrls set as http://localhost:8080 Add a Base URL of http://10.9.5.175:8080 You can add a BaseURL with the Powershell command (assuming ...
Chris Morgan's user avatar
  • 7,327
6 votes

Can we upgrade spring version in dxa from current 3.2.8 version

If you are using Tridion 2013 SP1, that implies that the CD libraries are used in-process and hence the version of Spring is dictated by CD (or at least: the version of Spring you use should be 100% ...
Rick Pannekoek's user avatar
6 votes

DXA: Disable DD4T EHCache

That EHCache uses a lot of memory makes sense, since when caching is turned on, it will use the configured amount of memory to store items. If you disable cache, be prepared to take a big ...
Raimond's user avatar
  • 7,253
6 votes

How to redirect to a static (present in file system) 404 error page in DXA 1.5 Java instead of error-404.html

In case of 404 exception DXA indeed resolves a page error-404 and shows it. Such a case is handled by @ExceptionHandler(NotFoundException.class) annotation in PageController. I don't see any way how ...
Alexey's user avatar
  • 646
6 votes

DXA 1.7 dependencies not in Maven Central / not needed

You don't need easylicense, that's right. There were some known (and fixed in some later versions) bugs in CIL when some artifacts were still dependent on CIS stuff. Simply exclude easylicense from ...
Alexey's user avatar
  • 646
6 votes
Accepted

Target Groups Not Excluding Component Presentations

Bart, your comment was correct. It seemed that the target groups were published, but the extension dao (<Bundle src="storage_extension_dao_bundle.xml" />) wasn't properly set up, and the ...
Harald Hoffelinck's user avatar
6 votes

DXA JAVA Custom controller for PageModel

The solution is surprisingly simple. @Controller public class MyPageController { @Autowired private PageController pageController; @RequestMapping(value = "/articles") public String ...
Alexey's user avatar
  • 646
6 votes
Accepted

Is DXA-2.1 available with Java?

DXA 2.1 is avaliable for .NET only, see here The Java version is planned for release soon after 2.1 in the subsequent 2.2 release Also, here (in the comment):
Atila Sos's user avatar
  • 6,290
6 votes
Accepted

The very first time Page loading takes too much time

There are various reasons to your page loading for the first time call will get slow. The first request to a publication requires downloading & parsing of a lot of binary files with publication ...
Velmurugan's user avatar
  • 8,205
5 votes
Accepted

Universe must not be null or empty Error SmartTarget

The error indicates that something went wrong when loading your configuration file (e.g. it is invalid). To resolve it, make sure your smarttarget_conf.xml file has a value for the DefaultUniverse ...
Peter Kjaer's user avatar
  • 19.8k
5 votes
Accepted

DXA 1.7 dependencies not in Maven Central / not needed

For future reference: We had to put the artifacts from #3 in the local repository, after that the build worked. We did not need to exclude #1 and #2. (I must post this as an anwser since I am not ...
mdeen's user avatar
  • 66
5 votes
Accepted

DXA 1.7: Custom Configuration / Resource Schema

Whether you use a key value pair or a specific Schema doesn't matter, the configuration is serialized the exact same way. You can for example take a look at the Google Analytics module, it has a ...
Bart Koopman's user avatar
  • 29.6k
5 votes
Accepted

How to remove the HTML content from a Page when Region is used in DXA 1.5 Java?

As Bart says, DXA in general is designed to generate HTML, but in your case particularly the use of the dxa:region tag causes issues. You could let the Page View output the content from the "Code ...
Rick Pannekoek's user avatar
5 votes
Accepted

Content Broker database - Using non relational database with DXA

SDL doesn't currently support any non-relational database for the broker, so the answer is "it depends". If you want to you can use a different storage layer altogether by extending the deployer to ...
Nuno Linhares's user avatar
  • 29.1k
5 votes

SDL DXA Model Service cache not getting invalidated

The default configuration of all caches in the DXA source code is set on production/live values, to ensure the performance is optimal in case no changes are being made. However, when you want to ...
Bart Koopman's user avatar
  • 29.6k
5 votes

How DXA is different than having a Dynamic Component Template which serves the response in JSON?

DXA is so much more than just outputting content to JSONs. There is a lot of material about DXA and its features, but some of the most interesting/valuable are : it's SDL supported the framework has ...
Atila Sos's user avatar
  • 6,290
5 votes

Optimal way to expose Tridion content to external systems?

Whether creating a REST API over OData is a good option for you, nobody can answer but you I would say. Simply using a REST service is commonly accepted as one of the easier ways for external systems ...
Bart Koopman's user avatar
  • 29.6k
5 votes
Accepted

Page Model is null after model pipeline

Have you enabled the core-module maven profile? Otherwise check this and all the steps in Nunos excellent step by step guide for DXA Java: http://www.tridiondeveloper.com/using-and-debugging-dxa-java-...
Will Price's user avatar
  • 16.4k
5 votes

DXA 1.8 Java Application Error

Let me explain how to interpret such a Stack Trace: The exception is a NullPointerException, meaning that the code tried to dereference a pointer which is null. This generally means the code is not ...
Rick Pannekoek's user avatar
5 votes
Accepted

How to add the same http://localhost:9080 as a 'BaseUrls' in "preview and live" target in topology manger

This is expected behaviour as you shouldn’t be able to use the same url for two sites (within Topology Manager). You’re going to have to either: Specify a different port Use a different hosts name (...
Jonathan Williams's user avatar
5 votes
Accepted

SDL Web 8.5 with DXA JAVA 2.0

This is used to inject markup from entity views to placeholders in page views, for example additional CSS/JS includes, JS snippets to be executed after jQuery has been initialised etc. This makes it ...
Niclas Cedermalm's user avatar
5 votes
Accepted

oAuth is disabled but DXA Webapp gives an error "Client id is required"

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 ...
Reynold Bhatia's user avatar
5 votes

Changing xml field name makes content to disappear from components in SDL WEB 8.5

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 ...
Dylan .. Mark Saunders's user avatar
4 votes
Accepted

DXA 1.4 Managing empty regions

It is recommended to delegate rendering of a Region to a Region View. If, for whatever reason, you want to render all Entities in a Region without using a Region View, you can use a foreach loop to ...
Rick Pannekoek's user avatar
4 votes
Accepted

Customize 500 Error Page in DXA 1.4 Java

Although there is no a normal way to override the view for 500 error, there is a possible workaround to solve the issue. Since view is resolved with a ViewResolver instance, you can specify your own ...
Alexey's user avatar
  • 646

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