Questions tagged [dxa-java]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
2answers
500 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
194 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
207 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
91 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
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
3answers
232 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
187 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
184 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
55 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
88 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
33 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
82 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
1answer
189 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
1answer
194 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
2answers
135 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
79 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
112 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
451 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
374 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
234 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
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
1answer
72 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
246 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
195 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
112 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
283 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
1answer
32 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 ...
2
votes
1answer
381 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
66 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
133 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
80 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
232 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
59 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/...
2
votes
1answer
69 views

KeywordModel accesing metadata

We need to access metadata fields in our keywords. We realised that in the master branch of the dxa-web-application-java project, there's already a KeywordModel that will solve this issue in previous ...
2
votes
1answer
100 views

Getting null for embedded components on DXA 1.5

We are migrating from DXA 1.2 to DXA 1.5. As part of that we had set up personalized modules and initializing the modules accordingly using ModuleInitializer with that specific area name. For some ...
2
votes
1answer
123 views

Problem getting the page includes mapped towards my own ModuleName

I'm having problem using the page includes for setting up a header component called TelenorHeader under my own areaName (Telenor). In my page template "TelenorPage" under the metadata schema I have ...
2
votes
1answer
79 views

Where to add page meta entries

In DXA Java 1.4 in the page a list of <c:forEach var="meta" items="${pageModel.meta.entrySet()}"> <meta name="${meta.key}" content="${meta.value}"> </c:forEach> Is there in the ...
2
votes
0answers
35 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
0answers
49 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 ...
2
votes
0answers
36 views

Implementing a custom data format in DXA in Java

In the documentation for DXA is a description of how to create a custom data format. Unfortunately, it doesn't mention how to tackle this in Java. What would the equivalent technique be in Java?
2
votes
0answers
157 views

DXA 2.0 issues getting static content

In SDL 8.5 we uploaded an mp4 file with size 17 MB. The size of the file in the target folder of the DXA 2.0 Java application is only 5 MB. The DXA-application shows the stack-trace beneath this post ...
2
votes
0answers
40 views

DXA 2.0 Java Too many open files error

We are using DXA 2.0 Java inside RedHat Linux server. The DXA Application is deployed using Tomcat 8.5. While accessing website after some time we are getting 500 error too many open files although ...
2
votes
0answers
29 views

How to use Favicon Media without HTML Design on DXA Java 1.7?

For our current implementation we are not using the HTML Design, and we've created a component to be included on our Header Include page, but as of now we always get the favicon as null Our Schema ...
2
votes
0answers
59 views

DXA Java web application - profile specific properties

I am new to DXA, I am currently working on DXA Java web application - built on Spring 4.x & DXA 2.0 library. We are trying to configure profile specific properties files, so that we can configure ...
2
votes
0answers
58 views

DXA Publish Settings: Possible to add multimedia Components and linked Components?

So for DXA there is the Publish Settings Page located in the _System folder of each Publication. As far as I understood we can currently only add strings and read them either with ${localization....
2
votes
0answers
56 views

Metadata field using embedded Schema is not populating

Tridion 2013 DXA Java 1.5 I am trying to pick up in my JSP a Page metadata field that is set to accept multiple values AND uses an embedded Schema. @SemanticEntity(entityName = "CustomPageMetadata", ...
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 ...
2
votes
0answers
163 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://...