Hot answers tagged

10

Take a look at my blog post http://yatb.mitza.net/2013/07/a-java-service-oriented-architecture.html. It explains a Service Oriented approach to consuming OData content from a web-application using Java (namely OData4J). There is an example of the actual OData call.


9

I'm not sure you have the right level of expectations there, as it seems that you would want Java/Eclipse to provide you the same benefits that Microsoft / .NET / LINQ provide when working with OData services. The webservice and its capabilities are exactly the same independently of the client you use - .NET, Odata4j, JayData - but the client itself will ...


7

I think the servlet-name in your filter mapping might be the problem here: <filter-mapping> <filter-name>Ambient Data Framework</filter-name> <servlet-name>Content Delivery Web service</servlet-name> </filter-mapping> So your ADF Filter doesn't come into play for your Java app, since it seems to be mapped to the ...


7

To answer the more black and white questions first: Is there a Java version available? Yes, but its not yet publically available, you may be able to get a sneak preview if you contact SDL. Can it work with Grails? I don't really have any experience with Grails, but it may be possible to integrate it as they both use Spring MVC. How much additional work ...


7

Since DXA 1.1, Component Links to Multimedia Components are resolved as Binary Links (so a direct link to the MM Component's binary content). I see you have tagged dxa java, which means that you will need DXA 1.2 (the first official DXA Java release).


6

I think the best way to do it is by updating the Catalina.bat file to increase the Heap Size in the java ops. set JAVA_OPTS=-Xms1024m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m


5

You have a few options: Start the Deployer JVM with system property java.io.tmpdir set to whatever you want; Example: java -Djava.io.tmpdir=C:\MyTemp com.tridion.deployer.Deployer On Windows, set the environment variable TMP to a custom value. The Java JVM uses this value as default (when you don't specify the system property java.io.tmpdir). If you are ...


5

The temp location is configurable via cd_storage_conf.xml. The Storages element takes an attribute called TempFileSystemTransactionLocation. For example: <Storages TempFileSystemTransactionLocation="/apps01/tridion_deployer_tmp"> <Storage Type="persistence" Id="sqlserver" dialect="MSSQL" Class="com.tridion.storage.persistence....


5

This was a bug in the dd4t-2 beta stack. Since you are using (probably?) a mixed set of DXA-Java and a dd4t-2 stack, I'm not sure where it should be fixed. In any case, the actual fix is in org.dd4t.contentmodel.PageImpl: // change this line: @JsonProperty("Categories") private List categories; // Into this line: @JsonProperty("Categories") @...


5

I've done solutions for this in the past... and as usual, there's many ways to peel this cat. While I still believe that component linking, functionally, is really what you need (even if people think it's not what they want), I agree that for certain pages you could use page linking. Solution that works So what I've done quite successfully in the past is ...


5

These dependencies aren't available from maven central. You need to host those yourself. To find out which items are hosted on Maven central: Check http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.tridion%22 So they can't be resolved without hosting them yourself. Use Artifactory or Sonatype Nexus to make this happen. The instructions for hosting the ...


5

This type of architecture is perfectly possible, with files stored on some kind of shared resource across the web servers. Usually I see a NAS or SAN type device used for this purpose. Steer clear of syncing technologies - in my experience they are prone to issues. However, these architectures are less common in Tridion deployments today. I would urge to ...


5

I think the issue is only with the slash special character. Rest of the special characters are fine. For instance, if I call the getLinkAsString method (getLink method in your Java code snippet will be calling getLinkAsString I suppose) like the below code snippet, I am able to get the page URL. Note the link text property has no backslash before the span ...


5

Welcome to Tridion, there is another way which might interest you, and that is create JAVASCRIPT client for SDL coreservice. https://yatb.mitza.net/2018/08/javascript-client-for-coreservice.html


4

As far as I have seen, most people place the snippet at the top of the Page Layouts. I understand the point you are making by not embedding the taglib - but out of the box this functionality doesn't exist. I would actually suggest writing a 'language agnostic' TBB that either checks the extension of the page being published, or the output type of the ...


4

SDL owned packages always start with com.tridion.* or com.sdl.*, not with com.sdltridion.* (and especially not com.sdltridion.contentmanager.*). It seems like you're using custom jars (maybe from here?) and you should keep track - or contact the author - of those. Update I just found the chapter in the documentation you mention and it also states To ...


4

If you're getting a 404, then most likely your web.xml servlet mappings are wrong or MVC routings are not configured correctly. This is not likely a DD4T setup issue, but rather a Spring MVC setup issue. My suggestion is for you to take a few steps back and first get a base MVC application working, and after that add on DD4T.


4

I was also facing the similar problem and resolved with the below steps: We need to use Default Multimedia schema and Chose Multimedia type "PDF" while creating the component. Attach this multimedia component to the 'Internal Link' field of Link schema and publish the relevant page. Once the page is published you can check and confirm the published content ...


4

The ADF stores a couple of the taf:request:parameters entries as a HashMap<String,String[]>>. These are: CONTENT_LENGTH CONTENT_TYPE QUERY_STRING PATH_INFO In addition, the ADF stores the HttpServletRequest parameter map in it's entirety on the claim as well, so given the following example query string: ?foo=1&bar=2 In total, you get the ...


4

There is a file "urlmapping.xml" in WEB-INF. In the file, there is following code. <bean id="dd4t" class="org.dd4t.springmvc.controller.DynamicPageController" parent="parent_controller"> <property name="publication" value="25" /> <property name="subcontext" value="/dd4t" /> </bean> The ...


4

There is a step "Installing the Context Service client", in SDL Web 8's manual. Is the step required on DXA 1.4? No, the context client is part of the DXA framework and doesn't have to be installed separately. My Discovery service's Role setting of Context Service correct? Looks OK to me. Is there any possible configuration failure? Always. :-) What ...


4

The problem is because the link level is set on the wrong TBB. Since all DD4T TBBs use the same parameter schema, the TBBs seem to use the value from the first TBB in which the value was set. So if you don't the link levels in the very first TBB, it will use the default, even if you set it further down. In your scenario, the link level was not set on "Add ...


4

By default remote JMX monitoring requires authentication and SSL is also enabled. You can try to add the additional lines to disable authentication and SSL: <Option Name="-Dcom.sun.management.jmxremote.authenticate" Value="false" /> <Option Name="-Dcom.sun.management.jmxremote.ssl" Value="false" /> Note of course that in production environments ...


3

That should be possible. You have to make sure of three things: Both the 64 as well as the 32 bit JRE need to be installed. You can check whether this is the case by looking into both the C:\Program Files\java as well as the C:\Program Files (x86)\java directories. It might also be necessary to point each server to the right JVM. You can do this by adding ...


3

I hope I have understood it correctly - you can have two website with 32 bit dlls and 64 bit on the same machine. For this you can have respective JREs and DLL in the bin folder of the corresponding application i.e. - 32-bit website will have bin folder and in it a lib folder of all 32-bit Tridion JAR files and similarly for 64-bit application. Moreover, ...


3

Tridion content (what you're stating is in the General tab) is published as a "Component Presentation", not as a field collection and also not as a Component - what you see as a component in OData is just the metadata/pointer to that object. The same component could have many component presentations depending on the templates used to publish it from the CM. ...


3

The publication Path is irrelevant in TRI as everything is published to the database. The Publication URL is relevant however. If you are running the TRI web app on http://localhost:8080/tms4web then you should not have /tms4web in the Publication URL, just /en or /es. Alternatively run the TRI on the root (http://localhost:8080) and have tms4web in your ...


3

It's impossible to obtain the ComponentTemplate Name from the transport package,because it is not included in the package. The only thing you can do is obtain the ComponentTemplate uri and then try to get its name, with somehing like this: public class CustomDeployer extends Module{ private static Logger log = LoggerFactory.getLogger(CustomDeployer.class);...


3

Assuming that you are running Tridion 2013 SP1. You would need to write a custom deployer module that extends the existing module but instead of normal workflow, intercepts the incoming package and moves it to a custom location based on your business logic. You can find the information about writing custom deployer modules here. Also once you write your ...


3

This setting is not configurable in the Deployer configuaration, it is as Mihai mentions down to the JVM startup arguments. When you start the Deployer as a service, it would be easy enough to specify the -Djava.io.tmpdir parameter there, but when using the HTTP(S) Deployer in a Web application, then you will have to ensure it's JVM has this parameter set. ...


Only top voted, non community-wiki answers of a minimum length are eligible