Questions tagged [dxa-java]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
65 views

Getting NullPointerException when browsing a page

When browsing non core pages using DXA 1.6 - Tridion 2013 SP1 I start getting a null pointer exception. Checking the source code it seems the error happens here: entity = (EntityModel)semanticMapper....
2
votes
2answers
102 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
245 views

Context microservice throwing error in DXA app

I have set up a fresh Web 8.5 install, and a fresh DXA 1.7 Java web app. However, when I try to start my webapp, I get an error com.sdl.odata.client.api.exception.ODataClientHttpError: Unable to get ...
5
votes
1answer
168 views

Passing values between Entity View and Page View

Other than using Session Attributes is there a way to pass values from an Entity View to Page View when using DXA Java? This is with reference to DXA 1.x (actually 1.0 or pre-release version of DXA ...
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 @...
5
votes
1answer
113 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 ...
2
votes
0answers
49 views

Running DXA Java without registering WebCapability

Currently I am struggling with DXA Java and Experience Manager not working. SDL suggested to remove WebCapability from my Discovery Service cd_storage_conf.xml and run the update script to upgrade ...
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
278 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(...
1
vote
2answers
146 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", ...
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 ...
3
votes
2answers
153 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
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, ...
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
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 ?...
6
votes
1answer
166 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 ...
4
votes
2answers
647 views

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

When a page is not found, the DXA framework initiates a redirect to the website's error-404.html page. Instead of that, I want to redirect a static error 404 page which is available in some custom ...
1
vote
0answers
100 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 ...
3
votes
1answer
302 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 ...
4
votes
2answers
425 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", ...
0
votes
1answer
160 views

Change the default page of the DXA application to my custom home page DXA Java 1.5

We need to change the default page for the DXA application to load the following URL http://localhost:9081/ -----> http://localhost:9081/index.jsp http://localhost:9081/admin/refresh -----> http://...
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....
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 ...
2
votes
3answers
249 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 ...
1
vote
2answers
93 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://...
2
votes
0answers
173 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 ...
4
votes
1answer
259 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 ...
3
votes
2answers
263 views

Converting Spring DXA Webapp to Spring Boot APP

Our requirement is very simple we would like to create a Spring boot microservice and would like to fetch the content from Tridion. We have identified 2 ways of doing it Either add minimal DXA ...
0
votes
1answer
290 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 ...
6
votes
1answer
148 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
255 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
594 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 ...
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 ...
2
votes
1answer
281 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....
1
vote
1answer
119 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 ${...
2
votes
2answers
194 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. ...
4
votes
1answer
81 views

DXA: .jsp extensions give Tomcat 404 page

On our DXA website (1.5, java version) we are running against the following problem: All 404 exceptions get caught without any problem by the Page Controller in the handleNotFoundException method ...
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
143 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 ...
4
votes
1answer
174 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 ...
5
votes
1answer
62 views

Placeholder values when in Experience manager (DXA)

Is there a way to check that you are in Experience Manager from the model/entity in DXA? We want to print out placeholder values if they are not populated from component values only when in XPM mode. ...
2
votes
0answers
77 views

Tomcat session replication with DXA

We are using DXA Java and are facing a strange problem. We have setup a tomcat cluster and all tomcat instances are configured with IIS as the front-end. We are using Oracle 12g as the content ...
2
votes
1answer
63 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/...