Questions tagged [dxa-java]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
177 views

Get Component/entity model from the component tcm id

If I have a component id (for example tcm:9-123), is there a way to get its content? How can this be achieved in java ?
4
votes
2answers
138 views

DXA 1.7: Nullpointer exception when using SVG images in MultimediaComponent

I have created a new MultimediaComponent and uploaded a SVG image to it. When using this MultimediaComponent in a Component and publish it to my page, the image wont be displayed. A nullpointer ...
1
vote
3answers
371 views

SDL DXA Model Service cache not getting invalidated

We are using SDL Web 8.5 and DXA CTP 2.0 Java. DXA Model Service is configured on Linux server. When we publish any Page or Component the cache for PageModel and EntityModels are not getting ...
3
votes
1answer
108 views

DXA Java 1.7 / 2.0 CTP: Broken images with special characters in file name

I see this question already being discussed and answered in the community also refering to this known and fixed issue: https://github.com/sdl/dxa-web-application-java/issues/32 However we are ...
1
vote
1answer
70 views

DXA Java CTP 2.0 Model Service problem modelData is null

We have just installed the CTP 2.0 Model Service (CD Microservice) from the official SDL documentation: Model Service Documentation After successfully installing the service and calling the PageModel ...
1
vote
0answers
158 views

Java DXA 1.4, Linux server issue Tomcat is not starting

We are facing issue with SDL Web 8.1.1 and DXA Java 1.4 hosted on one of our Linux Tomcat servers. All microservices are working fine and we are able to get full page on Windows developer machine ...
3
votes
2answers
273 views

Can any body please direct me to Step by Step guide to setup example website of DXA 1.3 JAVA using SDL Tridion 2013 sp1 in eclipse

Can any body please direct me to Step by Step guide to setup example website of DXA 1.3 JAVA using SDL Tridion 2013 sp1 in eclipse. I have tried referring to following blogs. https://community.sdl....
4
votes
2answers
203 views

DXA JAVA Custom controller for PageModel

I want to customize the page controller in a DXA JAVA implementation. Is that possible, and how? I tried to extend the DXA PageController, but of course that does not work @Controller public class ...
4
votes
2answers
121 views

DXA-Java on WebSphere

Is the DXA-Java framework supported on WebSphere? We are using WebSphere 8.5 and the only documentation I've found references Apache Tomcat.
1
vote
2answers
124 views

Image appended with a tcmid is available in the markup but not rendered on a page

Image is generated in the markup but is not rendered on the page. However, if the tcmid appended to the image is removed, the image gets displayed. We traversed through the Binary data folder in the ...
7
votes
1answer
121 views

Target Groups Not Excluding Component Presentations

We have a fresh install of DXA 1.7 (Java WebApp) on SDL Web 8.5. We recently enabled the context-expression-module on DXA by enabling the maven profile. The application builds fine and still renders ...
2
votes
2answers
98 views

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

We are trying to publish a .txt using a code Component by creating a Region and using a custom Page Template for .txt files. Is there a way to remove the HTML tags that the Region is adding for my ...
2
votes
1answer
78 views

Why page url (“og:url”) appending page file path two times from pageModel meta set in DXA 1.5 Java?

Why page url (og:url) appending page file path two times from pageModel meta set? Do I need to change some config, or what needs to be changed? EX: Expected - /dev/gpt/ but it's coming /dev/gpt/dev/...
2
votes
2answers
191 views

DXA 1.7 Java: Could not create OData Context client

I have an SDL Web 8.5 environment with DXA 1.7 .Net working fine. I have downloaded and compiled (as per docs) DXA 1.7 Java and deployed it to Tomcat. However, I get a Context error, as shown below. ...
10
votes
2answers
140 views

Custom Link and Richtext processing in DXA Java 1.7

We want to be able to override the default richtext processing and link resolving in DXA Java 1.7. I am a bit lost with how the Spring configuration works, but it looks like there are Spring @...
3
votes
1answer
2k views

HTTP Status 403 - For Spring MVC Page on Post Operation

I am having this issue where I am able to display a Page using Spring MVC Controller @RequestMapping(value = "/example/user", method = RequestMethod.GET) public ModelAndView showForm() { System....
3
votes
1answer
296 views

DXA 1.7: Static assets in webapp instead of published html design

I want to store static assets like css/js/fonts in the dxa-webapp instead of publishing it in Tridion. I have seen one guide from Bart (DXA HTML design decisions) and also some topics here at ...
6
votes
1answer
161 views

DXA 1.7 Get Multimedia Component name

I have following problem: There is a Download List Component on my site containing a heading and a list of Multimedia Links (That are mostly PDF files). You can see an example here: Inside the ...
2
votes
2answers
61 views

What are the steps to be followed to upgrade the DXA Java framework from 1.5 to 1.6?

I would like to upgrade DXA java 1.5 to 1.6, Is it only JAR changes or Do I need to install in at CMS end as well ? What are the steps to be followed to upgrade the DXA Java framework from 1.5 to 1.6 ?...
3
votes
2answers
151 views

DXA 1.7: Custom Configuration / Resource Schema

I am currently struggling with the DXA Configuration / Resource settings. I was looking at the documentation Managing configuration (Java) and saw that I can either use my own Schema or the existing ...
1
vote
2answers
142 views

Include a Region in Page Template is not working in DXA 1.5 Java

We are trying to add a Region for our Global alerts site wide in Page Template. Detailed implementation steps: CT: Include PT: PT: Page: Initialize: @RegisteredViewModel(viewName = "NWAlert", ...
5
votes
1answer
111 views

How to get DXA (Java) resource JSON via HTTP request

We have a DXA Java 1.7 web app and want to request the a DXA Module´s resources clientside (via AJAX) in order to localize labels etc. in a clientside application. I thought we would simply be able to ...
1
vote
0answers
45 views

How to have the DXA config files references outside of the DXA.ear for different environments (ST,PT,DEV) in DXA 1.5?

We are using the DXA Java 1.5 implementation with 2013 SP1 and need to have the references for the resource files (cd_dynamic_conf.xml, cd_link_conf.xml) outside of the war. Is there a way to do it? ...
0
votes
1answer
274 views

What is causing this Error? Could not find a model type for region Main even using a predefined region

I am getting this error when my application starts 11:50:56.788 [http-nio-8080-exec-5] WARN c.s.w.c.impl.DefaultRegionBuilder - Could not find a model type for region Main with MvcData MvcDataImpl(...
2
votes
2answers
62 views

Use JSP code of one Component which is a Component link in another Component where we need to render it in DXA 1.5 Java

Component1 - uses model1 - component1.jsp Component2 - uses model2 - component2.jsp Component1 --> Component link --> Component2 <jsp:include page="component2.jsp"></jsp:include> I ...
1
vote
2answers
91 views

Manually building assets - DXA 1.7

We're looking to manually build our assets for HTML design and include them in our Java application rather than have them built from the CMS. I have followed the instructions as per: https://...
1
vote
1answer
36 views

DXA deleted Localization Interceptor

The new version of DXA Java in master branch has no LocalizationInterceptor, and I was wondering why? We have some problems with the context where localizations are being mixed when getting content, ...
4
votes
2answers
153 views

DXA 1.7 dependencies not in Maven Central / not needed

I am building a DXA 1.7 web application for SDL Web 8.5 (using CIL). It is failing because on our build environment we only have access to Maven Central. It is failing on three types of dependencies, ...
4
votes
2answers
394 views

Spring MVC Controller- Displaying Tridion Page gives - “Bean pageModel not found within scope”

I am posting a form to SPRING MVC Controller and then after processing the data over there I am redirecting to the same page by doing something like this @RequestMapping(value = "/{locale}/pegasus", ...
2
votes
2answers
277 views

How to create a Tridion DXA View Model to View (JSP) for a video field (mp4 or mpeg)?

I have tried to define a model using MediaItem class(see Example below) but not working. I know how to do it using YouTubeVideo or embeded video Also, When I extract MediaItem.java abstract class the ...
4
votes
1answer
254 views

DXA: Disable DD4T EHCache

The EHCache used by DXA is detected as a leak in our heapdump because it's arriving to get 1Gb of it. I guess EHCache is not at all a good implementation for large/intensive systems were an external ...
1
vote
0answers
99 views

URL getting appended/duplicated twice while resolving DXA JAVA 1.5

We are using the standard DXA configuration and somehow the URL while resolving is getting appended twice. I checked all my Tridion configuration and do not find any place where this setting can be ...
0
votes
1answer
282 views

Linkage error when deploying DXA web application to Tomcat

Getting following error when deploying to Tomcat container. Only thing which I have changed is that I have removed default ROOT.war in webapps, renamed by dxawebapp to ROOT.war as I wanted the conext ...
2
votes
3answers
246 views

What is the best way to secure the URL /admin/refresh in JAVA DXA 1.5?

I am trying to secure the cache refresh URL from the internet. What would be the best way to do that with DXA framework? I did some research on the @Secured for Spring framework but I don't want role ...
2
votes
0answers
171 views

Custom controller SDL DXA (Bad Request) JAVA DXA 1.5 exception

Using the reference of campaign custom controller from the reference document i created my own custom controller. Following entries were made URL When the controller should be invoked: http://...
5
votes
1answer
124 views

DXA & DD4T: Activate json compression

We are trying to activate zip compression for the dd4t published json. In CMS is very easy to activate, modifying the templates parameters to activate compression. But we didn't remember if we have ...
2
votes
1answer
250 views

How to use JAVA contants in JSP for DXA 1.5

File 1 : Constants.java package com.sdl.webapp.main.common; public class Constants { public static final String LARGE = "Large"; } File 2 : demo.jsp <jsp:useBean id="entity" type="com.sdl....
6
votes
1answer
145 views

DXA Link resolver issue

We have a Page with Component A (a container Component) associated with a static template which has another Component B as a Linked Component field. In the associated model for B, I have created a ...
6
votes
2answers
252 views

DXA Java Model mapping issue

We have a view model with a property as a multi valued Linked Component (Linked to a single Schema). We have created the models like: @SemanticEntity(entityName = "schemarootname", vocabulary = ...
2
votes
0answers
153 views

GetPublicationMappingsFunctionImport returns NullPointerException

When we call http://<host>:<port>/client/v4/content.svc/GetPublicationMappingsFunctionImport?Url='https://www.<host>.be' we get the following error: <?xml version="1.0" encoding="...
1
vote
1answer
38 views

DXA website using wrong static content version

We are setting up translated versions of our main website which is using DXA 1.5. Our main website uses version v0.2 for it's static content. The translated website we setup tries to use version v1.5. ...
2
votes
0answers
295 views

How do I resolve Java DXA 1.7 java.lang.LinkageError?

I have built yet another fresh Java DXA 1.7 which runs just fine on the local Tomcat 8.0 server in Eclipse Neon.3. I publish this to an Azure App Service created by using the Azure Toolkit for Java ...
4
votes
1answer
580 views

POM missing dependency org.eclipse.m2e.logback.appender Eclipse Neon.2

Building Java DXA 1.7 for Web 8.5 following http://www.tridiondeveloper.com/using-and-debugging-dxa-java-with-web-8-5-on-amazon instructions to get a working java dxa 1.7 we have 34 errors in the ...
1
vote
1answer
118 views

DXA using properties in cd_client_conf.xml

I was wondering if it was possible to use properties in the cd_client_conf.xml? I was expecting the same behaviour as the WEB8 microservices. In those microservices configuration files you can set ${...
4
votes
1answer
104 views

Can we upgrade spring version in dxa from current 3.2.8 version

We currently have a deployed and working dxa-web-application-java in production. This is currently using Spring version 3.2.8. Due to some features that we want to implement that is only available in ...
2
votes
1answer
75 views

NULL Claim Store JAVA DXA1.4

I am getting Claimstore as Null in java. My claim store is null from the below code.: @SneakyThrows(ParseException.class) private ResultSet executeSmartTargetQuery(AbstractSmartTargetPageModel ...
3
votes
1answer
140 views

Universe must not be null or empty Error SmartTarget

While connecting the smart target in tridion, I am getting the below error. Can someone tell me the debugging tips for the same issue. java.lang.IllegalArgumentException: Universe must not be null or ...
1
vote
0answers
43 views

DXA 1.7 supports Tridion 2013 SP1?

Reading the product prerequisites for DXA 1.7 it's not clear if it only supports SDL Web 8, as it says: DXA runs in combination with the following SDL product release: SDL Web 8 with Cumulative ...
2
votes
1answer
62 views

DXA 1.6 ROOT.war not working on Tomcat 8

I have deployed the DXA 1.6 "Web 8, Live" ROOT.war to Tomcat and it fails. The key error in the Tomcat log is this: Caused by: java.lang.NoClassDefFoundError: org/apache/tomcat/util/descriptor/...
4
votes
1answer
170 views

(DXA) Resolve Tcm Uri to url

We are implementing a DXA website where one of it's features is a search page for specific component types. We are implementing this using a spring controller with a service which in its turn talks to ...