Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [java]

Java is an object-oriented language and runtime environment (JRE). Java programs are platform independent, because they are compiled to bytecode and their execution is handled by a Virtual Machine called the Java VM or JVM.

2
votes
0answers
22 views

Can I access the “Item” custom meta (metadata fields) in a Storage Extension?

I am trying to determine whether I need to process anything in my Storage Extension depending on certain fields in the item metadata. (I am extending all 3, Page, ComponentPrensentation and Binary ...
1
vote
0answers
47 views

Java : Unable to use multiple discovery / content svcs when using content-client-api JAR

First a little background… In our current Java Services, we have one called “Query”. This service starts up, connects to a Discovery Svc using discovery-client-lightweight at which point we are able ...
4
votes
0answers
30 views

Which CIL contains which classes?

Is there any list which references which CIL contains which classes? Official CD API documentation states which class is in which package, but not which class is in which .jar file. This is really ...
0
votes
0answers
157 views

Missing KeywordModelData from a Dynamic Component using Session Content Model

We use SDL Web 8.5 + DXA 2.O for Java. Is it available somewhere the API for the CIS? We want to retrieve the keywords from a component that it's linked to a dynamic component presentation, but ...
3
votes
0answers
78 views

Constructor in one of the classes in deployer-web-extension-8.5.0 throws ClassCastException. Is there a patch available?

I was recompiling some of our custom deployer extensions (originally built for SDL 2013) with the SDL Content Delivery 8.5 jars, and one of the constructors of the class ItemDeploySchemaManager in ...
3
votes
0answers
48 views

TaxonomyKeywordKeyCriteria ignores publication Id

I'm using TaxonomyKeywordKeyCriteria to find Components that have a related Keyword. I only have the Keyword key and not the TCM URI. My code: Criteria criteria = new TaxonomyKeywordKeyCriteria(...
3
votes
1answer
35 views

Linux and JBoss: Clustering software recomendation

We have to build a new architecture and we calculated that we will need four presentation servers. We are using Java to develop our website and we will deploy it to Jboss under a linux platform. We ...
0
votes
2answers
43 views

OData WebService (java) giving Error Result - Tridion 2013 SP1

OData Webservice base url http://myserver:11090/cd_webservice/ws/odata.svc hit on browser working fine; results below: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <service xml:...
5
votes
1answer
78 views

Page Metadata Component Link

I have a Component Link in the Metadata Section of a Page. I cannot see the content of this Component in the Page JSON which is published to the Broker DB. Is it possible to get the content of the ...
2
votes
0answers
42 views

How to convert ResolveInstructionData object in to JAXBElement object in Java? [duplicate]

I am trying to set the JAXBElement in to the PublishInstructionData using the below function but getting the error on runtime as Exception in thread "main" com.sdltridion.contentmanager.coreservice....
4
votes
1answer
77 views

When is JuggerNET bridge initialized?

I have a Tridion 2013SP1 Content Delivery .net web-application. In its global.asax, I am attempting to make a call that requires the JuggerNET bridge to be initialized (e.g. new PageFactoryMeta()). I ...
0
votes
1answer
32 views

Render Component Presentation cd_dynamic 7.1.0 error: cannot access Page

I've got a compilation error with the following lines: JSPPage dcdPage = new JSPPage(pageContext, pageId); ComponentPresentationAssembler cpAssembler = new ComponentPresentationAssembler(dcdPage); ...
2
votes
1answer
53 views

Getting error while fetching Category and keywords as xml using core-service in java

I have tried the following code to get xml. void getListXml(ICoreService endpoint, String myUri) throws Exception { TaxonomiesFilterData filter = new TaxonomiesFilterData(); Element ...
7
votes
2answers
121 views

DD4T 2 Ehcache settings: DD4T-Objects vs DD4T-Dependencies

The ehcache.xml file expects settings defined for "DD4T-Objects" and "DD4T-Dependencies". In a typical implementation what percentage volume of items might we expect to be in the DD4T-Objects cache ...
3
votes
1answer
128 views

DD4T-2 Strongly-typed Page Metadata Component Links

I'm working on an implementation that has "configuration" components attached in page metadata (as component links) for things like navigation visibility, SEO fields - etc. This is so the ...
2
votes
0answers
54 views

Accessing an embedded schema in a components meta data with the Java API

I've encountered an issue with the Java API that has me scratching my head. I have created a component with a metadata of which one field is a multi value embedded schema. I'm trying to access it to ...
4
votes
1answer
184 views

Problems about migrating Java(Broker API) from Tridion 2011 SP1 to SDL Web 8

One of our customers is using Tridion 2011 SP1, and they will upgrade it to SDL Web 8. Now there are custom Java modules which are made by using Broker API(Tridion 2011 SP1), and it's necessary to ...
4
votes
2answers
185 views

Error occurs on DXA 1.4 Java, probably related to Context Service

I'm using following versions. SDL Web 8 DXA 1.4 I set up following services. PageContentFilter and BinaryContentFilter are disabled in web.xml, so Preview service is not used. Discovery Content ...
1
vote
1answer
394 views

Need help on display as jsp extension in web page using tridion web 8 and dd4t (version2)

I am trying to display the page as .jsp instead of .html in the url but I run into issues. Any ideas or help would be great appreciate. Everything is working fine with .html In the tridion, i save ...
5
votes
0answers
113 views

How to get all Component Presentations with all Custom Meta in single ODATA query?

I am trying to get all the Component Presentations and corresponding Custom Metas by applying a filter on a specific meta. I have formed the query and I am getting the required information I need by ...
3
votes
1answer
61 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 ...
0
votes
2answers
99 views

DD4T 2 Java java.lang.ClassCastException

I have a page class defined as below (I've removed all custom fields). public class TwoColPage extends PageImpl { //TODO: metadata fields } In my JSP I have <jsp:useBean id="pageModel" type="...
1
vote
1answer
60 views

SDL DXA Java 1.4 - Missing dd4t dependencies

I'm trying to run the branch develop for the project web-application-java in github using the 2013sp1 profile. However, when installing the app with maven all the dxa dependencies can not be found ...
5
votes
2answers
141 views

How to put Multiple values with Multiple Schemas into DD4T-2-Java

Inside Tridion 2013-SP1 with DD4T template 2.0.8 I have a Schema with one Field: Foobar of Type Component Link Allow Multiple Values Allowed Schemas {Foo, Bar} Within Java DD4T 2.0.4 created a ...
1
vote
2answers
83 views

DXA Java render embedded image in RTF

When creating content in a RTF field you have the option to insert tables and images. An Image is added to the RTF field with a fixed with of 100%. How can we manipulate that ? <p> <img ...
2
votes
1answer
40 views

DXA throws warning: Entity of type webapp.model.entity.RichContent does not contain a field named Content

In DXA 1.4 (Java) in my logs I see the following warning: 12:04:35.304 [http-apr-8080-exec-6] WARN c.s.w.common.impl.markup.MarkupImpl - Entity of type webapp.model.entity.RichContent does not ...
1
vote
0answers
46 views

Content Delivery Java API 2013SP1 objectcache Tomcat does not shutdown

We use the Java content delivery API on Tridion 2013SP1 with ObjectCache enabled. When running as a Java web application on Tomcat 7, we notice the Tomcat server will hang on shutdown when we have the ...
4
votes
2answers
196 views

DD4T 2 Java and Maven Build Failing

I'm trying to Build DD4T 2 Java, using the following POM's and Maven (with version changed from 2.0.6-SNAPSHOT to 2.0.5. I am using the 'cd-8.1.0' profile for the CIL / CIS dependencies POM - https:/...
4
votes
1answer
245 views

DD4t 2.0 Java: How to get BaseViewModel populated for Dynamic Components

I am calling ComponentPresentationFactory.getComponentPresentation(componentURI, templateURI) method to retrieve a dynamic component in my Page Controller. The Component Presentation object returned ...
0
votes
1answer
147 views

Getting a published page's version at runtime from the broker database (Tridion 2011 Java)

I'm in the process of implementing a modular JS/CSS system on our site and I'd like to introduce a cache buster ?v=1 query to the end of the file url's. Due to the fact we use a runtime DCP to write ...
3
votes
1answer
208 views

Error in upload Image to SDL Tridion using SOAP API 2013 and CXF (Java)

We are trying to upload an image using SDL Tridions SOAP API using Apache's Java CXF. And we are stuck during the creation of a component data component with binary content with this error message: ...
-1
votes
1answer
88 views

fetch publication structure using core-services (java) [closed]

I want to fetch publication structure using core-services (java) from SDL Trdion13. what i need to do for this?
3
votes
2answers
123 views

How to do Personalization on DD4T Java 2.0?

I have implemented a Web site by using DD4T Java version 2.0. I'd like to implement Profiling and Personalisation, which uses Target group. First I made a Target Group, and add it to a component ...
3
votes
1answer
209 views

Error while building java dd4t2.0 with message “Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:1.5:sign (sign-artifacts)”

i am trying to do POC with dd4t 2.0 latest version and facing build error. Please help me to resolve this maven dependency, i am getting error while building this project [INFO] --- maven-gpg-...
3
votes
1answer
199 views

DD4T 2.0 Java Spring MVC: How to fetch the component field value when it has multiple keywords as its values?

In ViewModel class I am not able to fetch the field values; the field has multiple keywords as its value (say keyword1 and keyword2). Below is the snapshot of the In ViewModel class I tried to use ...
0
votes
1answer
103 views

How to access custom meta of publication in JAVA?

I have some meta data at the Publication level which I am trying to access using the Content Delivery API (JAVA), I can see the functions to get Page & Component metadata but could't find the way ...
0
votes
1answer
55 views

Getting dynamic components as data objects and interogating them at runtime - ASP Java - Tridion 2011

I'm working on a site with a lot of traffic, and we're trying to avoid broker queries on meta data as some load tests have caused a server overload. I'm trying to build a dynamic offers and ...
4
votes
1answer
91 views

How to read embedded Schema values in DD4T Java?

We have a Schema like this: SchemaChild of type Embedded with two fields; A (text) and B (text) SchemaParent of type Content with one Field C (SchemaChild) as a multi-value field. How can I iterate ...
2
votes
1answer
74 views

dd4t1.31 java controller flow

We have implemented DD4T 1.31 using Java with the example website. As per the dispatcher servlet the controller uses is: <bean id="ContentController" class="org.dd4t.springmvc.controller....
1
vote
0answers
40 views

XSLT error after setting up dd4t with java

We have setup DD4T with java as per URL https://code.google.com/p/dynamic-delivery-4-tridion/wiki/31_Quickstart We have ported the content porter package from https://github.com/dd4t/dynamic-delivery-...
3
votes
0answers
83 views

Unable to setup DD4T 1.31 project

I have followed the steps from https://code.google.com/p/dynamic-delivery-4-tridion/wiki/31_Quickstart at step number 6 Add projects to Eclipse In your Eclipse, add the folders under \java ...
2
votes
1answer
51 views

DXA+ JAVA: Managing specific errors (404,500)

When there's a error in the app, like 404 or 500 error, we would like to know if there's a standard using DXA to manage this kind of errors in 2 different pages. Currently, we are seeing that by ...
4
votes
2answers
119 views

using the ADF server variables (querystring data)

I notice that the ADF by puts a load of default content into the claim store. i'm trying to extract the querystring values placed into them so i can modify them via my own ADF cartridge. these ...
7
votes
2answers
281 views

Getting a document link in DXA?

The current link (Embedded Schema) supports external link or internal link (via Component linking). For internal linking, Tridion resolves the link if the Component is published on one or more Pages. ...
2
votes
1answer
48 views

How to get the current page to enable social sharing

I am using the share Component provided with the example site. Here request.getURl resolves to the view page and not the actual url shown on the browser. https://www.facebook.com/sharer/sharer.php?u=...
7
votes
3answers
301 views

Use Page linking instead of component linking in tridion

We have a requirement were Editors want to link to a page (Page in Tridion) from component field instead of using the Tridion component linking. We decided to use the Item Selector custom URL approach ...
3
votes
1answer
219 views

dxa-web-application-java Cannot find repository and StorageException Errors

Tomcat logs the errors below, Does anyone know how to fix these? What I did. I have a fully working .Net DXA with Experience Manager and want to learn how to use the Java DXA so I Followed the ...
3
votes
3answers
6k views

Debugging in IntelliJ gives “Address localhost:1099 is already in use” error

I am running a Tridion based (DXA) JAVA web application in IntelliJ. The Run/Debug configuration is based on the standard Local Tomcat server settings. When I stop the debugging session and start ...
2
votes
1answer
165 views

DD4T2 Java: Get schema of Page object

In my java project using DD4T 2 beta, I would like to get the Page Schema object from a page object. Unfortunately, the Page interface (https://github.com/dd4t/dd4t-2-java/blob/develop/dd4t-api/src/...
4
votes
1answer
644 views

Embedded field in embdded field is not mapped to view model on DD4T 2 Java version

On DD4T 2 Java version environment, I created view model class. But, when there is a embedded field in another embedded field, 2nd embedded field values are not mapped to view model instance, and I ...