Feedback Form

RECENT POSTS

Help Tip : CQ5 And Snow Leopard (Mac)

By thaneshk - JCRLead | Posted on 2010-01-06 11:13

 I recently upgraded to Snow Leopard on my Mac and was trying to run a simple vault command to download some jars. My initial vault commands to download everything under /content worked fine but when I executed [ vlt co http://localhost:4502/crx/libs/cq/install . ], I got the following error [[ERROR] checkout: java.lang.UnsupportedOperationException: Missing implementation.]. I immediately assumed it was a java compatibility issue given my past experiences and went about finding what

Rated 0.0 by 0 user

Sling based JCR Explorer

By shankha - JCRDev | Posted on 2009-12-29 04:58

You may already known about it, still I am mentioning this here.   I was going through the Apache Sling Site and found out that Sling itself is working on a prototype of a Sling Based JCR Explorer.   Being a JCR based CMS user / developer we all know that the JCR repository needs to be explored pretty often by us to find out if the nodes we are creating and the properties we are setting to those nodes are actually "working" or not. For that we generally use som

Rated 0.0 by 0 user

Implementing versioning of node in Java content Repository

By poulomi - JCRDev | Posted on 2009-12-29 04:26

In any Java Content Repository based Content Management System, maintaining of version of data is an important requirement. This versioning of data is actually maintaining version of the node which holds that data. JSR-170 provides an easy mechanism for such versioning. Every node has one and only one primary node type. A primary node type defines the characteristics of the node, such as the properties and child nodes that the node is allowed to have. In addition to the primary node type, a n

Rated 7.0 by 1 user

Writing PostOperation of your own

By sandipan - JCRDev | Posted on 2009-12-28 22:51

Now we all know that all the post http request in sling framework is handeled by Sling's default PostServlet.In sling , whenever we will try to submit a form with method attribute set to post , the post servelet will look into the action element of that form and will try to create a node at the specified action path in the repository with all the form field as a property of that node. So? what if you want to execute some logic of your own ( say you want to make some server side validation of t

Rated 5.0 by 2 users

Integrate JSTL with Apache Sling

By bhatasuj - JCRDev | Posted on 2009-12-28 04:04

In my current project there was a requirement to integrate JSTL with a Sling based application. To do that we can either install the entire JSTL specific jar’s as a part of external jar file specific to a particular bundle or we can install JSTL as a separate bundle so that it will get accessible across different bundles. The first one is seems to the pretty easy and I initially started with this option. I have installed all the jars as a part of external jar file but when I tried to star

Rated 8.0 by 1 user

Dependency Management in a Sling based application

By meamitava - JCRLead | Posted on 2009-12-11 02:31

In any Sling based application, it is always a good idea to break up the entire application into small modules and deploy them as Osgi bundles. This not only leads to smoother and faster running of the application, but also provides the scope for modiification of one segment of an application, without hampering other modules. The order of bundle implementation has to be such that minimum level of dependency, if any, must exist among the bundles. The general convention for bundle creation is -

Rated 4.5 by 2 users

How to create OSGI-Bundle in Sling 5

By subhasis - JCRDev | Posted on 2009-11-20 04:59

A bundle is nothing but a jar file along with some configuration details(meta information). I am mentioning here the steps to create OSGI-Bundle into Sling 5 in very quick and easy way. 1. Open a command prompt and run a maven command D:\Bundle> mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DgroupId=com.eforce.jcr.osgi -DartifactId=OsgiDemoBundle 2. It will create a directory named “OsgiDemoBundle” at the specified path along with the folder structure.

Rated 0.0 by 0 user

Migrating an application from Sling 3 to Sling 5 - II

By meamitava - JCRLead | Posted on 2009-11-08 21:30

The last post on migration dealt with the basic steps of the transformation process. Next job is to export the data from the existing application on Sling 3 and exporting the same to the one running on Sling5. For import and export of data jcr-explorer may be used. (This is a web-based explorer application to administer and maintain a JSR-170 compliant JCR repository like Apache Jackrabbit. It allows e.g. to browse nodes, edit properties, make queries and use optional features like versioning,

Rated 0.0 by 0 user

Migrating an application from Sling 3 to Sling 5 - I

By meamitava - JCRLead | Posted on 2009-10-30 04:56

Apache Sling has added a new dimension to the world of web development. So when Apache came up with Sling 5, lot of questions came up in the mind of Sling users regarding the migration of an application from Sling 3 to Sling5. This particular post is the first of a series of posts, which will be covering steps, problems and possible solutions to the problems, required for this migration. In case of the application that was migrated, the following steps had to be carried out: 1. Replace the ja

Rated 0.0 by 0 user

Using Request Dispatcher in a Servlet in a Sling based application

By meamitava - JCRLead | Posted on 2009-10-01 03:35

Request Dispatcher is a popular mechanism in any J2EE based application to receive request from the client and transfer it to any resource (such as servlet, HTML page, JSP page, etc.). Prior to forwarding the request to the resource, the request object is generally populated with certain attributes. This is done by using the request.setAttribute () method. Once the attributes have been set within the request object, the request is forwarded to the resource, by using the forward () method of the

Rated 0.0 by 0 user

HTTP Servlet as OSGi Service in Apache Sling Framework

By pulak - JCRDev | Posted on 2009-09-21 03:42

An OSGi (Open Service Gateway Initiative) service is a java object instance, registered into an OSGi framework with a set of properties. Any java object can be registered as a service. Generally, services is the preferred method, bundles should use to communicate between each other and the client of a service is always an OSGi bundle (is normal jar components with extra manifest headers). So, you do use java interface mechanism when exposing OSGi Service to be used by other bundles. Here is t

Rated 0.0 by 0 user

Storing a string as an element of a multivalued property of a node in a Sling based application

By meamitava - JCRLead | Posted on 2009-09-04 04:18

Multivalued property is indeed a problematic issue to handle in case of a Java Content Repository node in a Sling based application. The problem multiplies when we try to carry out any form of tweaking on such a node. I had faced a situation, wherein it was required to store a string as an element of a multivalued property of a JCR node. The main problem was how to store a string as an element of a Value array. I resolved the problem by following the below steps: Pass the string to be stored

Rated 0.0 by 0 user

Obtaining JCR Session in a Sling based application

By shankha - JCRDev | Posted on 2009-09-04 00:14

Sling is based upon JCR, the java content repository. So, whenever we are storing some data in a Sling based application, ideally we are storing the data in the underlying JCR. Now, to store any data in the repository we need a JCR Session Object. The root cause of writing this post is to show you the way to get the JCR Session in the Sling based application. Sling itself overrides the HttpServletRequest object what we widely use in all J2EE application. Sling provides us with the HttpSl

Rated 0.0 by 0 user

Learning Apache Sling - with J2EE Design/Development Background (Part II)

By mousumi - JCRDev | Posted on 2009-07-22 23:30

 This is the continuation of “ Learning Apache Sling - with J2EE Design/Development Background ” posted by bbasu - JCRDev on 2009-07-13. Here I would like to add another input for J2EE developers. Most of the J2EE developers are comfortable with building tools like Ant. For Sling, they need to upgrade themselves to MAVEN. A little introduction about MAVEN for beginners is follows - 1) MAVEN is a formidable tool for simplifying the construction of J2EE applications. 2) I

Rated 0.0 by 0 user

learning experience with Sling

By subhasis - JCRDev | Posted on 2009-07-22 03:32

Having a J2EE development background it was a bit challenging to pick up Sling for 1st 5 days (atleast). The starting phase includes understanding Sling, CMS, REST, OSGI, JCR etc. When I develop my 1st J2EE project I had lots of forums, tutorials, books, code examples and so on in the internet – too much sources to get help. On contrary, in Sling app development We got too few – a very small number of forums, blogs and links … no tutorial, no books and a good Specification.

Rated 0.0 by 0 user

Learning Apache Sling - with J2EE Design/Development Background

By bbasu - JCRDev | Posted on 2009-07-13 01:30

  I shall enlist my ideas based on our team's experience in picking up Sling, simultaneously starting to work with it in a Live-Project. This might not be a generic view but would certainly be indicative for a J2EE person planning to learn Sling. 1)       A J2EE person primarily feels comfortable in learning/ working in any Web Based Design Framework. Sling being a Web Framework, the initial comfort level for a J2EE person to start off with Sling should be quite

Rated 8.4 by 5 users

Implementing Date Field in CQ5

By meamitava - JCRLead | Posted on 2009-05-15 12:11

Web applications involving usage of user information; generally have requirement for implementing date. Also, if the application is used as medium to convey information of certain happenings to the users, date plays an important role. In CQ 5.x, in order to implement date one just needs to any one of the two following xtypes , against the required field in the dialog: datetime – specifies both the date and time (up to millisecond) Example - (“2009-04-12T00:00:00.000+05:30&r

Rated 0.0 by 0 user

Writing Filters in Apache Sling Web Application

By pulak - JCRDev | Posted on 2009-05-15 09:06

Apache Sling supports filter processing by applying filter chains to the requests before actually dispatching to the servlet or script for processing. In Apache Sling Framework, Filters are plain OSGi services of the type javax.servlet.Filter. The Apache Sling has two filter chains. It defines, the custom/user defined filter should be added to which filter chain. They are 1. the request filter chain (request level) and 2. the component filter chain (component level). Two important propert

Rated 0.0 by 0 user

Template Creation in Day Communique 4.x

By meamitava - JCRLead | Posted on 2009-05-11 11:20

Day Communiqué 4.x is a popular Content Management System (CMS) from DAY AG Software Group. It is used extensively for creation of applications because of its easy to use mechanism for creation of templates and components. Also its capability to handle large applications has contributed to extensive usage and gaining popularity of this CMS tool. One of the most important features of a Content Management System is the ability to create Web pages dynamically. This is achieved by developi

Rated 0.0 by 0 user

JCRDev has an edge

By nambuj - JCRLead | Posted on 2009-05-11 05:37

 When I browse through net, I get many articles which talk about JCR, CMIS, Jackrabbit, REST, etc; but when I look for a place where I can get all the information at a single place, I don’t get any. JCRDev provides the only platform where we can get all content under one umbrella. We can read experiences of developers from JCR world in Blog section while we can interact with them in Forums. News section updates on recent developments while Wiki gives an opportunity to create collab

Rated 0.0 by 0 user

Writing Servlet in a Sling Based Application

By shankha - JCRDev | Posted on 2009-05-08 07:37

For a servlet to work with sling we need to change it in some places. Though it is a simple servlet as it would have been used, the REST based nature of sling needs these changes to send the request to a particular resource rather than the actual servlet. This I would like to elaborate with the following example. Suppose, I need a servlet that just print "Hello World" & username inside the console. The code for the servlet will be as below.   package com.blog.util.servlet

Rated 4.5 by 2 users

"success" property of cq5 dialog . An imitation of "savecallFile" of cq4.2

By sandipan - JCRDev | Posted on 2009-05-07 09:02

  For last few weeks I got the chance to explore the cq5 in more detail than the last time. This time we started with building a project that we already built in CQ4.2. The experience has been really nice and at some places it was really interesting to find out how some features have been provided in cq5 which were also there in the cq4.2. Such a feature is “savecallFile”. We (of course who worked in cq4.2) all know what the “savecallFile” feature is actually. But

Rated 5.5 by 2 users

Reverse Mount CQ5 WCM with CQ 4.2 DAM

By thaneshk - JCRLead | Posted on 2009-05-04 04:54

 This is what I did to reverse mount CQ5 WCM with CQ 4.2 DAM version that is compatible with the new Sling release. Please contact your local Day representative if you want the new CQ5 DAM version or th CQ 4.2 DAM Sling compatible version. Go with CQ5 DAM unless you really need CQ 4.2{not sure why though :)} 1.) run the CRX jar file which is CRX 1.4.1 on its own java -jar -Xmx512M crx-1.4.1.1.20081210-enterprise.jar This will start up the CRX 1.4.1 without anything in it. 2.) Deploy th

Rated 0.0 by 0 user

Configure SSL on Sling (on top of Jetty)

By bhatasuj - JCRDev | Posted on 2009-05-02 17:06

Since the Sling standalone application embeds PAX Web 0.5.2, which in turn wraps Jetty. So for SSL configuration we ultimately have to do the configuration at the PAX Web side.   Prior to setup SSL on PAX Web, you may read How to configure SSL in Jetty and skip step 4 from that page, as the configuration part must be done in Pax Web specific way.   To enable SSL support you must set the following properties in your sling.properties file: org.osgi.service.http.secure.en

Rated 0.0 by 0 user

Better writing experience on JCRDev now

By nambuj - JCRLead | Posted on 2009-04-23 05:55

The writing experience on JCRDev is much better with a new FckEditor. Now users can write blogs / forums posts in MS word and CCP that in JCRDev through “Paste from Word” feature. Apart from this, there are lots of other useful functionalities, like, edit / insert anchor, insert special characters, paste as plain text, insert / edit highlighted code, etc. Start exploring these features and share your experiences. JCRDev team is working towards giving better navigational, operationa

Rated 0.0 by 0 user

Caching, Replication and Taxonomy Structure in CQ 4.2

By thaneshk - JCRLead | Posted on 2009-04-22 17:48

 I was having a chat with a past client and the conversation revolved around Caching,Replication and Taxonomy in CQ 5 and CQ 4.2. Now I have done quite a few implementations in CQ 4.2 and one of the drawbacks that I just heard about of CQ 5.1{which is fixed in CQ 5.2} is replication. Here are some thoughts on how to think about replication and caching in terms of your taxonomy structure 1.) Try to turn off invalidation of html on your dispatcher. This might help when you do not want all y

Rated 4.0 by 2 users

JCR and ECM Vendors

By dsshah - JCRDev | Posted on 2009-04-21 00:46

So after two versions, and much debate (and still ongoing) about differences and benefits of JCR v/s CMIS, What's the state of JCR compliance among ECM vendors? Here is from what I can gather from reading thru vendor websites and little bit of google-ing. (Let me know of any corrections). Vendor with JCR Compliant Repositories and CMS product: Jackrabbit : Reference Implementation of JCR standards. Day CRX : http://www.day.com/content/day/en/products/crx.html Magnolia : it is JSR 170 bas

Rated 0.0 by 0 user

Magnolia - Simple Is Beautiful

By nambuj - JCRLead | Posted on 2009-04-13 11:21

Magnolia started with "Simple is beautiful" and when I started using this I found it really means what it says. The tool is simple and yet beautiful. It has almost all basic features of an advance CMS tool and it also keeps on adding new web features.  Recently I saw "forum" and "wiki" added as new modules. It has now power to build a CMS solution with added Web 2.0 features. The recent mantra at Magnolia says "Simple Open Source Content Management", again it emphasizes on the word "simpl

Rated 5.0 by 2 users

Excellent Post on Tagging in CMS

By thaneshk - JCRLead | Posted on 2009-04-09 16:20

This is written by Lars Trieloff from Day Software. Worth the read. The post revolves around how tags can be used as a form of taxonomy. Will write more about this in a future post - including my perspective. http://dev.day.com/microsling/content/blogs/main/folksonomymining.html

Rated 0.0 by 0 user

Top Ten Reasons to Use JCRDEV

By thaneshk - JCRLead | Posted on 2009-04-09 16:13

"3 man" has come with the top ten reasons to use JCRDEV.com. If only "3 man" had the Letterman show sound track. 10.) If you are serious about promoting the Java Content Repository and the Apache Sling Framework - this site is a good start 9.) Updates on the site from the JCR world and Apache Sling as changes are made 8.) Searching for answers is made much easier than other Forums on the web 7.) Continuous support for queries by the JCRDEV team 6.) You the reader/contributor

Rated 0.0 by 0 user

What it takes to move to JCR world?

By kkadiyala - JCRDev | Posted on 2009-04-07 19:42

Let's discuss what it takes to move existing proprietary content stores (Teamsite, Documentum, Fat Wire, Vignette etc) to JCR complaint repository like Day CRX, Magnolia, Alfresco etc.

Rated 0.0 by 0 user

Jackrabbit Architecture

By bhatasuj - JCRDev | Posted on 2009-04-03 14:26

The general architecture of Jackrabbit can be described in three Layers: A Content Application Layer, an API Layer and a Content Repository Implementation Layer. Content Applications Content Applications interact through the JSR-170 API with the Content Repository Implementation. There are numerous applications that are available for JSR-170 repositories, some of them are very generic (like a WebDAV server) other applications can be very specific and make use of the content repository

Rated 5.0 by 3 users

The Apache Sling Framework

By pulak - JCRDev | Posted on 2009-04-02 12:45

Apache Sling is a Web application framework for java platform based on REST principles that provides easy development of content-oriented applications. Sling uses a JSR-170 compliant JCR repository, such as Apache Jackrabbit, to provide storage, presentation, and management of data. Sling started as an internal project at Day Software, and entered the Apache Incubator in September 2007 at The Apache Software Foundation (ASF). Sling is being developed using Apache Felix as the OSGi framework (i

Rated 5.5 by 4 users

Introduction to OSGi and Felix

By thaneshk - JCRLead | Posted on 2009-04-01 20:03

What is OSGi?Open Services Gateway Initiative (OSGi) defines architecture for developing and deploying modular applications and libraries. It is also known as the “Dynamic Module System for Java”.OSGi containers allow you to break your application into individual modules and manage the cross-dependencies between them with:• services implemented within the container• a contract between the container and your applicationThese services and contracts provide an architecture which enables ind

Rated 0.0 by 0 user

How Sling, OSGi, Felix, REST and Jackrabbit are related with respect to CQ5?

By thaneshk - JCRLead | Posted on 2009-04-01 20:02

Communiqué (CQ) 5 is a modular content management portfolio of products that incorporates Web Content Management, Digital Asset Management, Social Collaboration, Portal Management and Workflow. CQ5 is a product of Day Software. The product has been completely redesigned from Day 4.x.CQ5 is built using Sling, a Web application framework based on REST principles that provides easy development of content-oriented applications. Sling uses a JCR repository, such as Apache Jackrabbit, or Day’s CRX,

Rated 0.0 by 0 user

A Stab at David's Model

By thaneshk - JCRLead | Posted on 2009-03-31 16:58

It is amazing how really smart people always use the easiest practical matter to explain complex theories and then when a complex matter comes along - everyone gets dumb founded. I am amazed at how many "Hello World" programs are out there and just simply confused that these are channeled to people are who are really good at programming. I understand that if these existed in "Programming for Dummies" but explaining node structures, data vs structure or even the credit crisis - so simply - well n

Rated 0.0 by 0 user

"Energy Diversification" in Software Companies

By thaneshk - JCRLead | Posted on 2009-03-31 16:55

As we see many organizations in many industries "free fall", it is important to not only identify paths to continuous progression of entities to provide value for customers and profit for stakeholders but also for other participants to learn from mistakes made by others and retrospect in their own agenda and management. Organizations like the ones that exist in the auto industry are classic examples of non diversification of their assets and core competencies. Organizations like AIG and other in

Rated 0.0 by 0 user

The Journey of JCRDev

By nambuj - JCRLead | Posted on 2009-03-16 16:59

When we started building a web application on Sling framework we had a herculean task in hand. We knew from very first day that it’s not going to be an easy job as there’s not much help available on this. First thing we wanted to do is to understand the overall architecture. We started digging down and we encountered several other new terms like OSGi, Jackrabbit, Felix, etc. Our purpose was to understand each and every terminology used in and around this framework. The process of

Rated 0.0 by 0 user

Why Open Source ?

By nambuj - JCRLead | Posted on 2009-03-16 16:57

My search for “Why Open Source” ended with an answer from Richard Stallman which goes as follows.     -   When we call software “free,” we mean that it respects the users'   essential freedoms: the freedom to run it, to study and change it, and to redistribute copies with or without changes. This is a matter of freedom, not price, so think of “free speech,” not “free beer.” Open source is inevitable. It’s ther

Rated 0.0 by 0 user

JCR Developer Community Blog

BLOG STATS

3726 visitors have read this Blog

BLOG CATEGORIES

JCR: 18
Jackrabbit: 8
Sling: 24
CMS: 23
Future Trends: 7
Other: 6

JCR DEVELOPERS (level, posts)

Jong Tenerife (jongdakkel)
JCRDev
Blog Posts 0 | Forum Posts 2
Sujoy Bhattacharjee (bhatasuj)
JCRDev
Blog Posts 5 | Forum Posts 5
Jay Kerger (jkerger)
JCRDev
Blog Posts 2 | Forum Posts 2
Subhasis Chakraborty (subhasis)
JCRDev
Blog Posts 4 | Forum Posts 13
Thanesh Sadachcharan (thaneshk)
JCRLead
Blog Posts 10 | Forum Posts 6
Nitesh Ambuj (nambuj)
JCRLead
Blog Posts 5 | Forum Posts 18
Amitava Chakraborty (meamitava)
JCRLead
Blog Posts 8 | Forum Posts 14
Shankha Das (shankha)
JCRDev
Blog Posts 9 | Forum Posts 8
Poulomi Mukherjee (poulomi)
JCRDev
Blog Posts 1 | Forum Posts 0
Janne Jalkanen (ecyrd)
JCRDev
Blog Posts 0 | Forum Posts 0