Questions tagged [dxa-java]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
2answers
83 views

migration from DXA 1.2 to DXA 1.5

Could you please list out what all features are added in DXA 1.5 which are not present in DXA 1.2? Also In my current project we have to migrate spring Web App project from DXA 1.2 to 1.5 so I need ...
2
votes
2answers
142 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....
2
votes
1answer
96 views

DXA 1.2 doesn't support PAGE LINKING in the Page meta data schema OOB?

I have page meta data schema, which needs to have a field which can be linked to page link by providing the TCM ID value of the page to be linked. eg. Canonical URL is the field in the schema and with ...
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 ?...
2
votes
1answer
69 views

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

We have modified a field XML name and then see that all components with that schema is missing the images, whose XML field was modified. Is there a way to prevent loss of data in such scenarios?
2
votes
1answer
191 views

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

How to add the same http://localhost:9080 as a 'BaseUrls' in "preview and live" target in topology manger? I can add the above base URL in preview and it's working fine when I try to add in Live. it'...
2
votes
1answer
161 views

Page Model is null after model pipeline

I'm using DXA 2.0 GA with Sdl Web 8.5. At this stage, all I have is the out-of-the-box demo application, which I have not customised or added to. When I start it up and attempt to access the home page ...
2
votes
2answers
283 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
2answers
535 views

How to route a request to a static html file in DXA Java 1.5

I have a DXA Java 1.5 development environment with Web 8.1.1. In this environment I need to merge DXA with an existing Static Website. If my existing pages have a jsp extension when I request those ...
2
votes
2answers
195 views

How to get a Dynamic Component in DXA 1.2

In a JSP page, Image and some text content is to be loaded based on the user type. Example : for userType1 i want to show image123 and for userType2 i want to show image567. Could you help me ...
2
votes
1answer
215 views

How to get static page content from DXA in spring controller?

I am new to Tridion and learning DXA framework for my project. I want to know how can I get page content from DXA framework for particular page request in a spring controller. Can I use ...
2
votes
2answers
106 views

DXA Model service attempting to deserialize static files with no DD4T TBBs

Similar error from previously posted question but we aren't using any DD4T template building blocks in the page/component templates Deserialize DD4T content error while validating DXA Model service ...
2
votes
1answer
66 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
3answers
261 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
2answers
202 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. ...
2
votes
1answer
211 views

DXA Java Custom Controller Issue (Updating from 1.3 to 1.4)

I have created a Java Custom Controller for training which works in DXA 1.3 and am updating it for DXA 1.4. Here is what is going on: I have an Eclipse Project that has the following: The “...
2
votes
1answer
196 views

DXA 1.5 Java website was working - now failing with "Cannot determine entity type for semantic schema names"

We had the DXA 1.5 staging website working in Tomcat on Linux. Then suddenly it stopped and Tomcat just errors (see below) whenever we request any page. We have restarted everything. The site also ...
2
votes
1answer
59 views

DXA 1.4 Managing empty regions

How we can manage empty regions, ones without a physical jsp, with the new TLD model? We want to reproduce this behaviour without creating the region: <tri:entities region="regionName" /> ...
2
votes
2answers
90 views

Problem installing DXA 1.2 Java into Content Manager

I am trying to run the import.ps1 script which ships with the DXA 1.2 Java version and have an issue. The Powershell script is unable to complete the import successfully and is giving the following ...
2
votes
1answer
106 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 ...
2
votes
2answers
187 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 ...
2
votes
1answer
93 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="...
2
votes
1answer
40 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
1answer
102 views

How to stop DXA (Java) from using the context service

When setting up DXA 2.2 I accepted the default setting to use the context service. I don't want to go to the trouble of setting up the context service to work properly, so now I'm trying to configure ...
2
votes
2answers
465 views

How to render plain JSON (without any additional tag) data in DXA 1.5 java?

We are using Tridion 2013 SP1 with DXA 1.5 java. One of our requirement we want to serve the JSON formated data file( apple-app-site-association ) in my web site. My component schema has only one ...
2
votes
1answer
339 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....
2
votes
2answers
148 views

How to include metadata schema component in sitemapItem

I am using sitemapitem to display the navigation menu on our website. Our website requires an image against each structure group. So if --menu1 (structure group 1) - image1 -- page1 -- page2 -...
2
votes
1answer
101 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. ...
2
votes
1answer
130 views

DXA 1.8 "BinaryData" files is not creating under \dxaWeb\BinaryData\publication-id\system\config\ when I build dxaWeb app

I have upgraded DXA 1.5 to DXA 1.8, Java 1.7 to 1.8. Deploying in Tomcat 9 server. The BinaryData files is not creating under \dxaWeb\BinaryData\publication-id\system\config\ when I build DXA web app. ...
2
votes
1answer
720 views

org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON document: Unexpected character

We are getting the below error message when trying to read content that has href tag and results in bad request. 15:08:57.712 [ajp-nio-9014-exec-1] DEBUG o.s.c.a....
2
votes
2answers
434 views

Multilanguage with DXA 2.0 SDL Web 8.5

We have problems setting the second Publication. We used to configure the cd_dynamic_conf.xml, but now it doesn't exist in the project. However, it seems that the documentation is not updated. When we ...
2
votes
1answer
251 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 ...
2
votes
2answers
64 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
1answer
79 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 ...
2
votes
1answer
263 views

DXA - Keyword Information in Page metadata

We have associated a Category Page Type to our Page metadata. After publishing the Page when we try to retrieve the associated Keyword information we are not getting any value. The data type in page ...
2
votes
2answers
211 views

DXA Ehcache settings

In our application we have enabled the Tridion Object cache in cd_storage to true as well as Ehcache and timeToLive is 300 sec. Now the question is will the ehcache re-build the cache every 5 min (if ...
2
votes
1answer
114 views

What is causing this LazyRepositoryLocation - Cannot find repository error?

12:39:13.932 [RMI TCP Connection(3)-127.0.0.1] ERROR c.s.c.config.LazyRepositoryLocation - Cannot find repository at ../repository : File ../repository does not exist at path /Z:/Source Code/DXA-SDL-...
2
votes
1answer
285 views

Set up Java dxa-example-webapp fails with Nullpointer for missing binary /system/assets

Help requested to set up DXA Sample Java webApp on Tomcat : Trying to install DXA 1.2 for Java on Tomcat 8+ as-is distribution from download site. No changes except config xmls. Here is ...
2
votes
2answers
50 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
1answer
88 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 ...
2
votes
1answer
48 views

java dxa-2.2 Cannot create a default CIL cache configuration, fallback to default configuration

Could someone please help me on below error how to fix it. 22:45:09.431 [restartedMain] DEBUG c.s.w.c.c.c.i.BaseClientConfigurationLoader - Loaded Cache configuration: '{CacheExpirationDuration=600, ...
2
votes
1answer
84 views

Page Metadata Keyword Empty

There's a metadata schema linked with the page and we try to get from the View the value of the keyword associated to this page. However the information is empty. We are using Java DXA 2.0.1. We have ...
2
votes
1answer
693 views

DXA (Java) upgrade 1.5 to 1.8 & Java 1.7 to 1.8. unable to open input stream for resource

I have upgraded DXA(Java) 1.5 to 1.8 & Java 1.7 to 1.8 I can able to compile successfully but when I start execute my app in WebSphere am getting run time exception: com.ibm.ws.ecs.internal.scan....
2
votes
1answer
21 views

Issue with passed entityClass to SemanticMapper.createInstance() is null

We are trying to build a Java service that fetches json data through DXA. We only need the raw data from a REST service. We created a class that extends AbstractEntityModel but it seems like the class ...
2
votes
1answer
73 views

DXA 1.7 JAVA application setup error

I am trying to set up the DXA 1.7 Java application. I followed the below steps. After the set up when I tried to run the application I got the below error. Steps Followed: 1. Downloaded the source ...
2
votes
3answers
136 views

Reading data from SalesForce and storing UserInformation to Salesforce from Web 8.5

We have a new module being developed using SDL Web 8.5 DXA R2. We would be required to integrate our CMS to communicate with a Salesforce module via a Middleware. However, I am not aware of what ...
2
votes
1answer
82 views

DXA 1.7: Webapps BinaryData nesting infinite folders problem

I tried deploying my DXA 1.7 java webapp to one of our customer servers yesterday. Im experiencing strange folder nesting inside the ROOT webapps BinaryData folder. See this image: It should be: ...
2
votes
2answers
253 views

Error in deploying DXA 2.0 Java on linux server "Cannot find cache named 'model-service'"

We are trying to deploy DXA 2.0 CTP 2 Java version on Ubuntu server. After deploying the application on Tomcat 8 we are getting this server error [http-nio-8080-exec-6] ERROR c.s.w.c.controller....
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
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/...