Questions tagged [dxa-java]
The dxa-java tag has no usage guidance.
297
questions
0
votes
0
answers
19
views
Java DXA version on Tridion 10
We are migrating from Tridion Sites 9.5 to Tridion 10.
What version of DXA is adapted to Sites 10?
1
vote
0
answers
27
views
Excessive logging after DXA 2.2.35 build update?
A developer has reported that there is excessive application logging after updating to DXA build 2.2.35. The environment is Sites 9.5, microservices are hosted by RWS.
08:50:10.108 [https-jsse-nio-...
1
vote
0
answers
36
views
Caching is not working properly in paginated view
We are facing an issue with DXA cache in below usecase.
SDL 9.6 DXA version: 2.2.33
Usecase
We have a paginated view and each page will have a list of items.
On each paginated links (ex. Jan, Feb etc)...
2
votes
1
answer
29
views
Creating a custom model builder DXA Java | XPM Issue
I have a requirement similar to this question: Disable Experience Manager (XPM) DXA 2.0 Java, for specific CT
Rick has mentioned in his answer to create a custom model builder to achieve this. However,...
2
votes
1
answer
48
views
DXA flagged with Path Traversal Vulenerability
How can we resolve a path traversal vulnerability that has been flagged in our DXA code? Any insights or solutions on how take to address this issue would be greatly appreciated.
URI: HEAD /path/to/...
0
votes
0
answers
34
views
Can we upgrade to latest dxa-version from 2.2.16 version for JavaSpringboot app - application is breaking
When upgrading the dxa-version from 2.2.16 to 2.2.28 and 2.2.3 we see the below issue and breaking application.
error log below:
13:07:54.824 [main] ERROR o.s.boot.SpringApplication - Application run ...
2
votes
0
answers
42
views
DXA Java 2.2 Unable to create localization error
I'm trying to use the latest DXA Java 2.2 (the latest develop branch) with Tridion 9.6 (upgraded from 8.5),
I'm able to see page query results using graphQL POST requests either from postman/curl
But ...
0
votes
0
answers
32
views
com.sdl.webapp.common.controller.exception.NotFoundException: Page not found
We are using dxa 2.2 java with Tridion sites 9.5
While fetching a published page we are getting below error
10:12:00.167 [ajp-nio-172.31.50.0-9014-exec-7] ERROR c.s.d.m.c.c.CommonsPageController - ...
1
vote
1
answer
117
views
Static resource not found in static content provider for published binary
We have upgraded from SDL Web 8.5 to Tridion Sites 9.6 and using dxa java 2.2.3 . We are encountring a strange issue while fetching published binary from broker database dxa is giving below error ...
0
votes
1
answer
53
views
DXA version 2.2.18. Upgrade to Jackson 2.13.4 results in the exception: Cannot get a source converter for class java.util.LinkedHashMap
Using DXA version 2.2.18. When I tried to upgrade to Jackson 2.13.4, getting the following exception. Jackson 2.10.0 works fine. Does DXA not support Jackson 2.13.4?:
[http-nio-8080-exec-10] WARN
c.s....
1
vote
1
answer
52
views
How to handle null exception for values mapping through dxa?
I have a dxa field which comes from customMetadataPageModelbuilder code but to get this value i have to publish all the pages i want to handle this error for the pages which aren't republished so if ...
3
votes
1
answer
137
views
Field Operators in PCA GraphQL?
We are rewriting our existing CIL client code by replacing it with PCA/GraphQL client code.
To retrieving Dynamic Component Presentations, we are using API method apiClientProvider.getClient()....
2
votes
0
answers
92
views
Binary file recreating on each request in DXA 2.2.16 java
I m using DXA 2.2.16 Java with SDL Tridion Sites 9.5. I have noticed when all binary files like css, javascript, images are recreating with each request in BinaryData folder. This is happening with ...
0
votes
1
answer
51
views
DXA java setup configuration in Headless environment?
Question 1:
Can we in the integration layer (DXA Java application) take the topology domain(Base Url) from the browser URL(Angular Website), instead of the proxy URL(DXA Integration layer configured ...
3
votes
0
answers
82
views
how to resolve component link in in entity
we are creating a schema with a component link and component link is using same schema. now while reading the component in EntityController we are not getting the component link data.
Model Class ...
3
votes
1
answer
60
views
Localization Error while requesting DXA page using registered Domain URL configured in Docker
Recently we have deployed a DXA site with a dev domain. After deployment when we have requested to the site suing dev domain an error logged saying no localization found error.
Please find the error ...
0
votes
1
answer
44
views
DXA-2.2 java could not able to load entity from custom module
We are currently having application in dxa-2.2 java and we are trying to separate out common code out of it as separate dxa module.
It is not getting registered on viewEntryMap
here is a initializer ...
1
vote
0
answers
33
views
StaticContentInterceptor | Static resource xpm.js not found
While running(start) the server in Eclipse, I see below Error being logged in console. While it is able to locate one of the xpm.js, it is unable to locate the 2nd xpm.js as highlighted in RED below.
...
7
votes
1
answer
283
views
Getting Page Presentations from GraphQL. In order, with Content
I have pages being published using DXA Page Templates and include CPs added to the page directly (again, using standard DXA CTs).
I want to get the Component Presentations from a Page (with the ...
2
votes
2
answers
196
views
DXA with Java | Cannot detect ViewModel for ViewData MvcDataImpl
I am trying to setup a basic DXA application as steps given here: http://www.tridiondeveloper.com/using-and-debugging-dxa-java-with-web-8-5-on-amazon
However, I am facing two issues:
1.)
java.lang....
1
vote
2
answers
196
views
DXA 2.2.3 Component links multiple value
Implementation:
Currently we have schema with a component link field called 'link'. I've enabled multiple value, so authors can have multiple component links from now on instead of only 1 (there's ...
2
votes
1
answer
120
views
Runtime error when using InheritMetadataPageModelBuilder
I want to access Structure Group metadata in my DXA 2.2 java page models. Following the DXA documentation I have added the InheritMetadataPageModelBuilder model builder to the pipeline in my Page ...
1
vote
1
answer
87
views
Read timed out at executing executeEntityQuery()
I am working on a query that excludes items based on the value of one of its metadata.
The problem is that sometimes I get the result, but sometimes not. Error stack trace shows the following:
com.sdl....
5
votes
3
answers
221
views
Link resolving doesn't use page context for Dynamic Component Presentations
My Java DXA application renders dynamic component presentations across the site, similar to 'Teaser' functionality in the Reference implementation of DXA.
One of the Rich text field of DCP contains ...
3
votes
2
answers
115
views
Manage and Publish css and JS from tridion sites 9.5 and use them on dxa 2.2 java web application
I came up on scenario where css and js are not handled through html-build.zip,
Instead we need to store css and js on cm and publish those publication wise.
also I need to use those css file and js ...
0
votes
1
answer
133
views
How to install DXA Java's latest version?
I want to use DXA Java's latest version.
So I downloaded DXA 2.2.8 from following page.
https://github.com/sdl/dxa-web-application-java/releases/tag/DXA_2.2.8_Hotfix
Then I read following manual to ...
0
votes
1
answer
60
views
Issue in retrieving core.json attributes from BinaryData folder
I'm trying to access the value in core.json file which is under BinaryData folder.
Below is the way I'm trying to retrieve the value:
${requestScope.localization.getResource('core.keyname')}
But ...
1
vote
0
answers
32
views
Custom data format in DXA in Java
We need to create a Custom Data Format for our Java application.
In the documentation for serving data in another format than html, seems easy in C# application, but in our Java / Spring application ...
1
vote
2
answers
71
views
Error when building DXA 2.2 Java webapp for Sites 9.5
I have the installer for SDL DXA Java 2.2, and would like to build a webapp for Sites 9.5. When running prepare.bat from PS cmdlet, I initially saw this error:
> Could not resolve all artifacts ...
1
vote
2
answers
165
views
Custom Metadata from publication Tridion
I'm trying to read the value of Custom Metadata from a Publication using ApiClient API.
Below is the code which I'm trying to get the Publication information:
ApiClientProvider pcaClientProvider;
...
3
votes
1
answer
160
views
Efficient way of getting list of EntityModel (Java, DXA 2.0)
We have a page that queries entities with certain criteria.
The way we implement it is by getting list of entity IDs, loop the IDs retrieve the entity model per ID and add it into the list.
Pseudo ...
1
vote
1
answer
62
views
DXA-2.2.5 java how to resolve page url for current Model entity
We are using dxa-2.2.5 Java and we are using GraphQlLinkresolver. We want to get url of detail page of Component TCM, how can we achieve it?
On Model class I have tried something like this:
public ...
2
votes
2
answers
227
views
Compiling DXA 2.2 Java fails with 'Could not find dxa-builder:2.2.0-SNAPSHOT'
I tried to install DXA 2.2 Java to Red Hat Linux 8.2.
However, When Executing prepare.sh, the Following build Error Occurred:
There is no '2.2.0-SNAPSHOT' on following URL, which is seen in error ...
3
votes
0
answers
170
views
DXA Java 2.0: How do I access a field value in a component linked in DXA page metadata?
In order to avoid translating pages we've added a linked component in our page metadata.
I've created a custom page model:
@Data
@SemanticEntity(entityName = "MyPageModel", vocabulary = ...
1
vote
1
answer
94
views
DXA-2.2.5 Java model service clients says 400 bad request
We are using Java DXA-2.2.5 and Model service to render content, we came across one issue when we request for page model, it says 400 bad request since it is not able to understand encoded page url.
...
1
vote
2
answers
74
views
Getting access to Categories in DXA
I'm porting a site to DXA. We use categories/keywords to populate dropdowns. Previously this was done in the Content Manager templating. In DXA that should happen application-side so I've published ...
2
votes
2
answers
58
views
How should the mappings be set up for a custom entity controller?
The DXA documentation (Java) at https://docs.sdl.com/784837/748207/sdl-digital-experience-accelerator-2-2/creating-custom-models-and-controllers gives this example of how to create a custom entity ...
2
votes
1
answer
97
views
Anchor in component link not showing on Java application (dxa 2.0.3) with dxa model service 2.2.2
We're trying to implement Anchor Link on our existing Link Component by Enabling Anchor Feature in cd_link_conf.xml
This is our configuration looks like
<Publications OverrideDiscoveryService="...
1
vote
1
answer
38
views
Why does SiteLocalization.getLanguage() return null
I've been looking at the methods on the SiteLocalization class in DXA. I'd like to get the language of each site but getLanguage() returns null. This doesn't surprise me much, because I haven't ...
3
votes
1
answer
92
views
What do I have to configure to prevent a StaticContentNotFoundException for version.json?
I am setting up a new DXA2.2 site. When I do an admin refresh, I can see in the logging that various items are downloaded over the service and written to disk, and if I look in the application ...
1
vote
0
answers
74
views
Dependencies missing in DXA 2.2 - Java
We are trying to upgrade DXA 2.0 to DXA 2.2 with SDL 9.1. We are including DXA 2.2.5 as a dependency with no exclusions.
[WARNING] The POM for com.sdl.web:content-client-api:jar:8.5.0-1046 is missing, ...
2
votes
1
answer
111
views
Where does the dependency on com.sdl.delivery:cil:pom:11.0.0.0-1064 come from?
When attempting to build a Java DXA 2.2.3 application, we see warnings about a dependency on com.sdl.delivery:cil:pom:11.0.0.0-1064 and com.sdl.web:cil:pom:11.0.0.0-1064 which can not be resolved. ...
0
votes
3
answers
52
views
Benefits of migrating DWT or Razor templates to DXA in SDL web 8
I know there are benefits of migrating existing templates to DXA, like no more need to know Tridion syntax, instead of use Spring MVC in application side, no need to use file system or legacy system ...
2
votes
1
answer
47
views
Registering view for MediaItem (DXA 2.0.3, Java)
We have a Download entity which extends MediaItem. The download link is used inside RichText component.
This is how the class looks like:
@Data
public class Download extends MediaItem {
@Override
...
2
votes
1
answer
123
views
Component link is not resolved for a field with "_self" annotation in combination with dynamic component presentation (DXA 2.0.3 Java, SDL Web 8.5)
I have two different view model for the same schema, one view is to display a Summary page and other view is meant for a Details page.
Summary page displays dynamic component presentations, which are
...
1
vote
2
answers
191
views
DXA - Resolving Publication mapping incorrectly when having multiple websites
We have 2 websites (brands) with different domains.
In Topology, the 2 websites are configured with base urls as : http://domain1 and http://domain2
And mapping for UK publication exists only in ...
1
vote
0
answers
38
views
DXA 2.2 - JAVA Unable to use Jackson default naming strategy, it always applies UpperCamelCase naming strategy on request and response
I am using dxa-2.2 java, there is rest controller which takes some request and return response.
After investigation i found DxaSpringInitialization.class on dxa framework initializing objectMapper ...
1
vote
1
answer
45
views
Upgrade from Web 8.5 to Sites 9, is DXA update from 1.8 needed?
Our customer wants to upgrade from SDL Web 8.5 to SDL Tridion Sites 9.0. We are currently running the DXA 1.8 Java version.
My question is: Can we upgrade to SDL Tridion Sites 9.0 and keep running ...
2
votes
0
answers
60
views
dxa2.2 java tridion docs implementation graph ql is not giving filtered response based on ish:conditions
we are using dxa-2.2 java and adding userconditions to claimstore, when it goes to fetch response with condition using graphql client it does't give filtered response
In code we are setting up ...
1
vote
1
answer
81
views
Java DXA 2.2 with Tridion docs java.lang.IllegalStateException: Cannot detect ViewModel for ViewData MvcDataImpl while preparing Pagemodel Object
We are upgrading java dxa from dxa-1.8 to dxa-2.2
I am facing problem generating PageModel object as it is failing to map viewdata information,
we mainly need Pagemodel content information , could ...