Quantcast
Channel: Adobe Community : Popular Discussions - CQ5 (read only)
Viewing all 12476 articles
Browse latest View live

AEM 5.6 - Sling Osgi Config Issue

$
0
0

Hi,

I have created config node with type of sling:osgiConfig inside my application and was able to fetch the values successfully based on the run mode. But the problem is if update the values for any properties thro felix console then the sling:osgiConfig node becomes nt:file under /apps/<myapp>/config/<myconfig>. If i open the file it just a property file with key/value pair.

 

I am facing this problem with AEM 5.6 only but in 5.4 and 5.5 i dont have any issues

 

 

-Sudharsan S


CQ5.5 Developer Certification !!

$
0
0

Hi. I registered for 9A0-327: Adobe CQ 5.5 Component Developer ACE Exam. I am looking for ideas/pointers to prepare and pass the exam. Thanks in advance.

Author start up error

$
0
0

Dear All,

 

I am getting below error while starting author instance:

java.lang.ClassNotFoundException: org.apache.sling.launchpad.app.Main

    at java.net.URLClassLoader$1.run(Unknown Source)

    at java.security.AccessController.doPrivileged(Native Method)

    at java.net.URLClassLoader.findClass(Unknown Source)

    at java.lang.ClassLoader.loadClass(Unknown Source)

    at java.lang.ClassLoader.loadClass(Unknown Source)

    at java.lang.Class.forName0(Native Method)

    at java.lang.Class.forName(Unknown Source)

    at com.adobe.granite.quickstart.base.impl.exec.Bootstrap.run(Bootstrap.j ava:83)

    at com.adobe.granite.quickstart.base.impl.Quickstart.run(Quickstart.java :285)

    at com.adobe.granite.quickstart.base.impl.Main.<init>(Main.java:785)

    at com.adobe.granite.quickstart.base.impl.Main.main(Main.java:836)

Quickstart: aborting

MAIN process: shutdown hook

MAIN process: exiting

 

Can anyone please help to resolve this issue?

 

Regards

Error when pim copy

$
0
0

Hi,

 

I am new to CQ5 ,I am getting an error ,"Error when pim copy" when i try to rollout(copy) to different loaction.why is this happenenig??

 

Thanks in advance

Disabling the "Target" context menu item in AEM v5.6

$
0
0

Is it possible to disable the "Target" context menu item on components in AEM v5.6?  We don't want (at the moment) authors to have this ability and it seems to be interfering with some of our custom rendering code.  We're in the process of upgrading to 5.6 and we'd like to disable this feature for now until we can identify and resolve the issues we're having with it.

 

Thanks!

How to deny user access to crxde lite?

$
0
0

I read this help file (http://helpx.adobe.com/cq/kb/LimitAccessCRXandCRXDE.html) and understand that how to restrict the number of links viewable to users.

 

However, when the user types in /crxde in the address bar, he still has access to crxde lite.

 

Is there a way to deny non-developer users' access to crxde lite completely from the user/group console?

 

i.e., remove all access rights under /libs/wcm/core/content/damadmin will not allow user to access DAM admin. What is the path for http://hostname:4502/crx/de/index.jsp?

No cache invalidation when statsfilelevel > 0 and JCR Resource Resolver URL Mapping being used

$
0
0

IF  :

  • JCR Resource Resolver [1] is used to allow requests missing the initial /content

       AND

  • Dispatcher has a /statsfilelevel greater than 0

 

THEN

 

     It is impossible for dispatcher to invalidate the cache.

 

 

EXAMPLE:

 

  1. Content in CRX has /content/mysite/mylanguage/mypage
  2. Request comes in to dispatcher for /mylanguage/mypage.html
  3. CQ serves /mylanguage/mypage.html successfully
  4. Dispatcher saves the cache at /mylanguage/mypage.html
  5. Author server sends activation request for /content/mysite/mylanguage/mypage
  6. Dispatcher recieves the activation request and touches stat file at :
    1. /content
    2. /content/mysite
    3. /content/mysite/mylanguage
  7. Request comes in to dispatcher for /mylanguage/mypage.html
  8. The stat file at /mylanguage has never been touched, and statsfilelevel > 0, so /mylanguage/mypage.html is considered valid
  9. Dispatcher returns the cached file at /mylanguage/mypage.html

 

I have seen this suggestion from DAYCARE [2], but it says to rewrite the URL so that the cache is still stored in full context. We can't do this for multiple technical reasons, and so I'm wondering if, instead, there is a way to make the {path} variable in the extended replication agent options [3] intelligent enough to strip activation path URI based on URL Mappings, the same way the Link Rewriter rewrites links based on these exact settings. We really need the activation path to change rather than the request path in the web server.

 

 

[1]: Go to http://localhost:4502/system/console/configMgr and click Apache Sling JCR Resource Resolver. Then add a URL Mapping such as /content/mysite/-/

 

[2]: http://dev.day.com/content/kb/home/cq5/CQ5SystemAdministration/HowToFl ushMappedContent.html

 

[3]: Go to http://localhost:4502/etc/replication/agents.author/flush.html , click edit, and go to Extended tab

Publishing Instance is rendering blank HTML

$
0
0

I have recently created a site with CQ5.4 using the cq-quickstart-5.4.0.jar executable jar file.  In my file structure I have an author folder and a publish folder in which I am running my author and publish instances respectively.  I have been able to make changes to the Geomtrixx site and see the changes reflected on the publish instance, so I know the replication is working.  However, when I create a new site and "Activate" it (doing so through both WCM and the "Tools->Replication->Activate Tree" mechanism it shows in the UI that it was published.  The logs also indicate that the replication was successful.  However when trying to access the pages on the publish instance, blank HTML pages are renderd.  Oddly enough the pages are not 100% blank, they render with an HTML, HEAD, META, and BODY tag, but with no content in the tags.

 

This indicates to me that some sort of replication has occured, because the page renders blank.  If I type in the URL of a page that doesn't exist, the publish instance redirects to the Geometrixx site. 

 

I have searched the forums and can't seem to find anyone with a similar problem.  I also came accross the following article http://dev.day.com/content/kb/home/cq5/CQ5Troubleshooting/replication- stuck.html which sounded like it might help but did not address my issue.  I am guessing the issue is something small and relatively simple that I have overlooked, but can't seem to pin point the problem.  Any information would be helpful.


How to create a CQ package to export all the users and their permissions.

$
0
0

Hi All,

          Hope you all are doing great. Have a qn regarding the packge export via package manager. I am trying to export all the users and their permissions from one env to the other. I can get the users and groups but not their permissions. Can any one suggest me a way of how to do this? I was not able to get the include/exclude filters right..

 

Regards

Rama

Creating Node data on Author server from outside source?

$
0
0

I was wondering if it is possible to create node data on the author server from an outside source such as the publish server, without using reverse replication?

 

IE,

 

User accessing form page on publish server, enters data, submits the form. Which somehow would create node data directly on the author server without storing any data on the publish server.

Is this even possible?

 

Thanks

failed while import excel 2007 [xlsx]

$
0
0

Hi All,

 

A strange thing, I import the 'xls' and 'csv' in my code is well done, but for the 'XLSX' throw the following exception,

I have already check the 'com.adobe.granite.poi-1.0.2.jar', it miss the org.w3c.dom.Node (seems exist in jre/rt.jar)

environment :

    jdk 1.6.0_37

    CQ 5.5

 

 

Could you help ??

 

 

 

org.apache.poi.POIXMLException: java.lang.reflect.InvocationTargetException

          at org.apache.poi.xssf.usermodel.XSSFFactory.createDocumentPart(XSSFFact ory.java:62)

          at org.apache.poi.POIXMLDocumentPart.read(POIXMLDocumentPart.java:414)

          at org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:155)

          at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:1 81)

          at hps.hec.bulky.XlsxAnalysis.readEvents(hps.hec.bulky.XlsxAnalysis.java :267)

          at hps.hec.bulky.EventAnalysis.readEvents(hps.hec.bulky.EventAnalysis.ja va:64)

          at hps.hec.servlet.ImportEventServlet.doPost(hps.hec.servlet.ImportEvent Servlet.java:73)

          at org.apache.sling.api.servlets.SlingAllMethodsServlet.mayService(Sling AllMethodsServlet.java:148)

          at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSa feMethodsServlet.java:344)

          at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSa feMethodsServlet.java:375)

          at org.apache.sling.engine.impl.request.RequestData.service(RequestData. java:500)

          at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render( SlingComponentFilterChain.java:45)

          at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter (AbstractSlingFilterChain.java:64)

          at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java: 147)

          at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter (AbstractSlingFilterChain.java:60)

          at com.day.cq.wcm.core.impl.WCMComponentFilter.filterRootInclude(WCMComp onentFilter.java:308)

          at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilt er.java:141)

          at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter (AbstractSlingFilterChain.java:60)

          at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processCompone nt(SlingRequestProcessorImpl.java:257)

          at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(Re questSlingFilterChain.java:49)

          at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter (AbstractSlingFilterChain.java:64)

          at com.day.cq.wcm.core.impl.warp.TimeWarpFilter.doFilter(TimeWarpFilter. java:106)

          at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter (AbstractSlingFilterChain.java:60)

          at com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter.doFilter(Redi rectFilter.java:296)

          at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter (AbstractSlingFilterChain.java:60)

          at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.do Filter(RequestProgressTrackerLogFilter.java:59)

          at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter (AbstractSlingFilterChain.java:60)

          at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(Fo rmsHandlingServlet.java:220)

          at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter (AbstractSlingFilterChain.java:60)

          at com.day.cq.theme.impl.ThemeResolverFilter.doFilter(ThemeResolverFilte r.java:76)

          at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter (AbstractSlingFilterChain.java:60)

          at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:117)

          at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter (AbstractSlingFilterChain.java:60)

          at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.j ava:89)

          at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter (AbstractSlingFilterChain.java:60)

          at org.apache.sling.rewriter.impl.RewriterFilter.doFilter(RewriterFilter .java:83)

          at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter (AbstractSlingFilterChain.java:60)

          at org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter.doFil ter(BackgroundServletStarterFilter.java:135)

          at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter (AbstractSlingFilterChain.java:60)

          at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processRequest (SlingRequestProcessorImpl.java:153)

          at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServle t.java:206)

          at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(S ervletHandler.java:96)

          at org.apache.felix.http.base.internal.handler.ServletHandler.handle(Ser vletHandler.java:79)

          at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(S ervletPipeline.java:42)

          at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.do Filter(InvocationFilterChain.java:49)

          at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter (HttpFilterChain.java:33)

          at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:117)

          at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(Fi lterHandler.java:88)

          at org.apache.felix.http.base.internal.handler.FilterHandler.handle(Filt erHandler.java:76)

          at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.do Filter(InvocationFilterChain.java:47)

          at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter (HttpFilterChain.java:33)

          at com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseChe ckFilter.java:179)

          at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(Fi lterHandler.java:88)

          at org.apache.felix.http.base.internal.handler.FilterHandler.handle(Filt erHandler.java:76)

          at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.do Filter(InvocationFilterChain.java:47)

          at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter (HttpFilterChain.java:33)

          at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter .java:238)

          at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(Fi lterHandler.java:88)

          at org.apache.felix.http.base.internal.handler.FilterHandler.handle(Filt erHandler.java:76)

          at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.do Filter(InvocationFilterChain.java:47)

          at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter (HttpFilterChain.java:33)

          at org.apache.sling.engine.impl.log.RequestLoggerFilter.doFilter(Request LoggerFilter.java:75)

          at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(Fi lterHandler.java:88)

          at org.apache.felix.http.base.internal.handler.FilterHandler.handle(Filt erHandler.java:76)

          at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.do Filter(InvocationFilterChain.java:47)

          at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter (HttpFilterChain.java:33)

          at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch( FilterPipeline.java:48)

          at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Disp atcher.java:39)

          at org.apache.felix.http.base.internal.DispatcherServlet.service(Dispatc herServlet.java:67)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

          at com.day.j2ee.servletengine.ServletRuntimeEnvironment.service(ServletR untimeEnvironment.java:250)

          at com.day.j2ee.servletengine.RequestDispatcherImpl.doFilter(RequestDisp atcherImpl.java:315)

          at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispa tcherImpl.java:334)

          at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispa tcherImpl.java:377)

          at com.day.j2ee.servletengine.ServletHandlerImpl.process(ServletHandlerI mpl.java:351)

          at com.day.j2ee.servletengine.HttpListener$Worker.run(HttpListener.java: 625)

          at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.reflect.InvocationTargetException

          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

          at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

          at java.lang.reflect.Constructor.newInstance(Unknown Source)

          at org.apache.poi.xssf.usermodel.XSSFFactory.createDocumentPart(XSSFFact ory.java:60)

          ... 76 more

Caused by: java.lang.NoClassDefFoundError

          at org.apache.xmlbeans.XmlBeans.class$(XmlBeans.java:43)

          at org.apache.xmlbeans.XmlBeans.buildNodeMethod(XmlBeans.java:195)

          at org.apache.xmlbeans.XmlBeans.buildNodeToCursorMethod(XmlBeans.java:23 2)

          at org.apache.xmlbeans.XmlBeans.<clinit>(XmlBeans.java:131)

          at org.openxmlformats.schemas.drawingml.x2006.main.ThemeDocument$Factory .parse(Unknown Source)

          at org.apache.poi.xssf.model.ThemesTable.<init>(ThemesTable.java:39)

          ... 81 more

Caused by: java.lang.ClassNotFoundException: org.w3c.dom.Node not found by com.adobe.granite.poi [250]

          at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation (ModuleImpl.java:787)

          at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)

          at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(Mod uleImpl.java:1768)

          at java.lang.ClassLoader.loadClass(Unknown Source)

          at java.lang.Class.forName0(Native Method)

          at java.lang.Class.forName(Unknown Source)

          ... 87 more

Default java / jsp file which gets executed before DAM asset rendering

$
0
0

Hi,

 

I have a requirement to implement access control on DAM assets on the basis of a metadata property (tags).

Is there a default JAVA / JSP file which gets executed before rendering a DAM asset?

If yes, how can I override it?

If no, how can I add a new JSP / JAVA file to be executed before rendering of each DAM asset?

 

Thanks in advance,

Anurag

Form, Servlet and repopulate form in case of error

$
0
0

Good morning,

 

I come to ask for help in this case where I am block.

 

I have an html form calling a servlet, if the servlet find an internal error or a validation error returns to the form and the form repopulate the values.

 

My problem is I am coming back to the form with a forward like that:

 

        final SlingHttpServletRequest req = new SlingHttpServletRequestWrapper(request) {

             @Override

             public String getMethod() {

                                                         return "GET";

                                          }

                           };

 

                  final RequestDispatcher dispatcher = req.getRequestDispatcher("URLofTheForm");

                           dispatcher.forward(req, response);

 

and in that way in the browser appears the path of the servlet where the form called and is not viable to me. Is there a way to achieve the same but in the browser appears the correct url where the form is?

 

Probably exist another way to achieve this behaviour, but I do not know.

 

Thank you for the help.

 

Miguel.

@Reference annotation causing customised servlet stop getting called

$
0
0

Hi guys,

 

I noticed that as soon as I add the @Reference annotation in my servlet, the sevlet will not be called when the form is submitted. As soon as I remove @Reference the servlet will be called. But the email will not function because @Reference is required to make the email to work.

 

I have the servlet registered and briefly it looks like below:

 

@Service(value = Servlet.class)

@SlingServlet(

                    resourceTypes = {"myapp/components/content/faqNewQuestions"},

                    methods = {"POST"},

                    selectors = {"email"},

                    extensions = {"html"}

                    )

 

@SuppressWarnings("serial")

public class FAQNewQuestionServlet extends SlingAllMethodsServlet {

 

@Reference

          private MessageGatewayService messageGatewayService;

 

@Override

    protected void doPost(SlingHttpServletRequest request, SlingHttpServletResponse response) throws ServletException, IOException

    {

              response.setContentType("text/plain");

              response.getOutputStream().print("FAQNewQuestionServlet is called");

    }

}

 

MessageGatewayService is imported through:

import com.day.cq.mailer.MessageGatewayService;

 

This package is added to the .bnd file under:

Import-Package: ..., com.day.cq.mailer, org.apache.felix.scr,org.apache.felix.scr.annotations,...

 

the faqNewQuestions.jsp (which lives under apps/myapp/components/content/faqNewQuestions) has a form looks like this:

 

<form method="POST" action="<c:out value="${resource.path}" />.email.html">

          <input type="text" id="email" name="email"/>

          <textarea name="question" id="question"></textarea>

          <input class="button" id="questionSubmit" type="submit" value="submit" />

</form>

 

I just keep getting 'Content modified' page rather seeing the "FAQNewQuestionServlet is called" I was expecting.

 

Content modified /content/my-trick/jcr:content/par/faqnewquestions

Status

200

Message

OK

Location/my-trick/_jcr_content/par/faqnewquestions
Parent Location/my-trick/_jcr_content/par

 

Really appreciate any inputs..

How to Configure the Rich Text Editor for HTML5?

$
0
0

In my testing I have discovered that the rich text editor outputs html 4 by default, ie <br> instead of <br /> etc. How do I configure the rich text editor control (or a custom component based on it) for html5?


How to change the port in CQ 5.5

$
0
0

Hi,

 

I have been trying to change the port number from 4502 to some other say 7402. But not able to change it.(in CQ 5.5) Can anyone please suggest how to go for this?

CQ5.5 and ldap integration/synchronization

$
0
0

Hi,

 

I have been trying to integrate ldap with CQ5.5 on Win7 machine. Following are the steps I have taken:

 

1. Installed cq-service-pack-5.5.2.20121012.zip

 

2. Installed cq-update-pkg-5.5.10.zip

 

1. Created F:/installed/cq5/author/crx-quickstart/conf/ldap_login.conf file with following content:

 

com.day.crx {   com.day.crx.core.CRXLoginModule optional   tokenExpiration=1800000;   com.day.crx.security.ldap.LDAPLoginModule required              principal_provider.class=com.day.crx.security.ldap.principals.LDAPPrincipalProvider              tokenExpiration=1800000              host=xx.xx.xx.xx              port=636              secure=true              authDn="adt\\taduser              authPw=xxxxxx              userRoot=OU=publish,OU=people,DC=adt,DC=com              userIdAttribute=userPrincipalName              autocreate=create              autocreate.path=none              autocreate.user.firstName=rep:firstName              autocreate.user.mail=profile/email              autocreate.user.sn=profile/familyName              autocreate.user.cn=rep:fullname              groupRoot=OU=publish,OU=group,DC=adt,DC=com              groupNameAttribute=CN              autocreate.group.description=description              autocreate.group.cn=rep:groupName              groupMembershipAttribute=member              userFilter=(objectClass=person)              groupFilter=(objectClass=group)              cache.expiration=1              cache.maxsize=1";
};

 

2. Updated F:\installed\cq5\author\crx-quickstart\repository\repository.xml with:

 

<?xml version="1.0" encoding="ISO-8859-1"?><!-- ======================================================================= --><!-- $Id: repository-template.xml 78567 2011-06-16 04:27:03Z tripod $ --><!-- ======================================================================= --><!-- Copyright (c) 1997-2008 Day Management AG                               --><!-- Barfuesserplatz 6, 4001 Basel, Switzerland                              --><!-- All Rights Reserved.                                                    --><!--                                                                         --><!-- This software is the confidential and proprietary information of        --><!-- Day Management AG, ("Confidential Information"). You shall not          --><!-- disclose such Confidential Information and shall use it only in         --><!-- accordance with the terms of the license agreement you entered into     --><!-- with Day.                                                               --><!-- ======================================================================= --><!DOCTYPE Repository PUBLIC "-//Day Management AG//DTD CRX 2.4//EN"                            "http://www.day.com/dtd/repository-2.4.dtd"><Repository>    <!--    virtual file system where the repository stores global state    (e.g. registered namespaces, custom node types, etc.)    -->    <!--    <FileSystem class="com.day.jackrabbit.fs.cq.CQFileSystem">        <param name="path" value="${rep.home}/repStore.dat"/>        <param name="autoRepair" value="false"/>    </FileSystem>    -->    <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">        <param name="path" value="${rep.home}/repository"/>    </FileSystem>    <!--    large binary objects are stored in the data store.    -->    <DataStore class="com.day.crx.core.data.ClusterDataStore"/>    <!--    security configuration    -->    <Security appName="com.day.crx">        <!--            security manager:            class: FQN of class implementing the JackrabbitSecurityManager interface        -->        <!--SecurityManager class="com.day.crx.core.CRXSecurityManager" workspaceName="" -->        <SecurityManager class="com.day.crx.core.CRXSecurityManager">        <!-- LDAP related configuration -->                        <WorkspaceAccessManager class="org.apache.jackrabbit.core.security.simple.SimpleWorkspaceAccessManager"/>                        <UserManager class="com.day.crx.core.CRXUserManagerImpl">                        <param name="usersPath" value="/home/users"/>                        <param name="groupsPath" value="/home/groups"/>                        <param name="defaultDepth" value="1"/>                        </UserManager>            <!--            optional user manager configuration            <UserManager class="org.apache.jackrabbit.core.security.user.UserPerWorkspaceUserManager">                <param name="usersPath" value="/home/users"/>                <param name="groupsPath" value="/home/groups"/>                <param name="defaultDepth" value="1"/>                <param name="autoExpandTree" value="true"/>                <AuthorizableAction class="org.apache.jackrabbit.core.security.user.action.AccessControlAction">                  <param name="groupPrivilegeNames" value="jcr:read"/>                  <param name="userPrivilegeNames" value="jcr:all"/>                </AuthorizableAction>                AuthorizableAction class="com.day.crx.core.ntlm.NTLMAuthorizableAction"/>            </UserManager> -->            <!--            optional workspace access manager configuration           -->        </SecurityManager>                    <!--        access manager:        class: FQN of class implementing the AccessManager interface        -->        <AccessManager class="org.apache.jackrabbit.core.security.DefaultAccessManager"></AccessManager>        <!--        Use LoginModule authenticating against repository itself
-->        <LoginModule class="com.day.crx.core.CRXLoginModule">            <param name="anonymousId" value="anonymous"/>            <param name="adminId" value="admin"/>            <param name="disableNTLMAuth" value="true"/>            <param name="tokenExpiration" value="43200000"/>            <!-- param name="trust_credentials_attribute" value="d5b9167e95dad6e7d3b5d6fa8df48af8"/ -->        </LoginModule>    </Security>    <!--    location of workspaces root directory and name of default workspace    -->    <Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="crx.default" maxIdleTime="5"/>    <!--    workspace configuration template:    used to create the initial workspace if there's no workspace yet    -->    <Workspace name="${wsp.name}" simpleLocking="true">        <!--        virtual file system of the workspace:        class: FQN of class implementing FileSystem interface        -->        <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">            <param name="path" value="${wsp.home}"/>        </FileSystem>        <!--        persistence manager of the workspace:        class: FQN of class implementing PersistenceManager interface        -->        <PersistenceManager class="com.day.crx.persistence.tar.TarPersistenceManager"/>        <!--        Search index and the file system it uses.        -->        <SearchIndex class="com.day.crx.query.lucene.LuceneHandler">            <param name="path" value="${wsp.home}/index"/>            <param name="resultFetchSize" value="50"/>        </SearchIndex>        <!--        Workspace security configuration        -->        <WorkspaceSecurity>            <AccessControlProvider class="org.apache.jackrabbit.core.security.authorization.acl.ACLProvider">                <param name="omit-default-permission" value="true"/>            </AccessControlProvider>        </WorkspaceSecurity>        <!--        XML Import configuration of the workspace        -->        <Import>            <ProtectedItemImporter class="org.apache.jackrabbit.core.xml.AccessControlImporter"/>            <ProtectedItemImporter class="org.apache.jackrabbit.core.security.user.UserImporter">                <param name="importBehavior" value="besteffort"/>            </ProtectedItemImporter>        </Import>    </Workspace>    <!--        Configures the versioning    -->    <Versioning rootPath="${rep.home}/version">        <!--            Configures the filesystem to use for versioning of the respective            persistence manager        -->        <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">            <param name="path" value="${rep.home}/version"/>        </FileSystem>        <!--            Configures the persistence manager to use for the versioning.            Please note, that the current versioning implementation is based on            a 'normal' persistence manager, but this could change in future            implementations.        -->        <PersistenceManager class="com.day.crx.persistence.tar.TarPersistenceManager"/>    </Versioning>    <!--        Enable searching the /jcr:system subtree    -->    <SearchIndex class="com.day.crx.query.lucene.LuceneHandler">        <param name="path" value="${rep.home}/repository/index"/>    </SearchIndex>    <!--        Cluster configuration.    -->    <Cluster>        <Journal class="com.day.crx.persistence.tar.TarJournal"/>    </Cluster>    <!--        Configures extension modules    -->    <Modules>        <!--           Sample configuration of an EventLoggerModule requiring configuration           <Module class="com.day.crx.eventlogger.EventLoggerModule">               <param name="workspaces" value="crx.default"/>               <param name="logWorkspace" value="crx.logger"/>               <param name="logPath" value="/logger"/>           </Module>        -->    </Modules></Repository>

 

3. Updated F:\installed\cq5\author\crx-quickstart\bin\quickstart.bat with:

 

@echo off
:: This script configures the start information for this server.
::
:: The following variables may be used to override the defaults.
:: For one-time overrides the variable can be set as part of the command-line; e.g.,
::
::     SET CQ_PORT=1234 & ./start.bat
::
setlocal


::* TCP port used for stop and status scripts
set CQ_PORT=4502


::* http host name
:: set CQ_HOST=


::* interface that this server should listen to
:: set CQ_INTERFACE=eth0


::* show gui
set CQ_GUI=true


::* do not show browser on startup
set CQ_NOBROWSER=true


::* do not redirect stdout/stderr (logs to console)
set CQ_VERBOSE=true


::* do not fork the JVM
:: set CQ_NOFORK=true


::* force forking the VM using recommended default memory settings
:: set CQ_FORK=true


::* additional arguments for the forked JVM
:: set CQ_FORKARGS=


::* runmode(s)
set CQ_RUNMODE=author,dev


::* defines the path under which the quickstart work folder is located
:: set CQ_BASEFOLDER=


::* low memory action
:: set CQ_LOWMEMACTION=


::* name of the jarfile
:: set CQ_JARFILE=


::* use jaas.config
:: set CQ_USE_JAAS=true


::* config for jaas
set CQ_JAAS_CONFIG=F:/installed/cq5/author/crx-quickstart/conf/ldap_login.conf


::* default JVM options
set CQ_JVM_OPTS=-Djava.security.auth.login.config=F:/installed/cq5/author/crx-quickstart/conf/ldap_login.conf -Xms1024m -Xmx1024m  -XX:PermSize=256M -XX:MaxPermSize=256M -XX:+UseConcMarkSweepGC -XX:NewRatio=1 -XX:CMSInitiatingOccupancyFraction=85 -XX:ParallelGCThreads=4 -XX:GCTimeRatio=3 -XX:+UseParNewGC -XX:-UseGCOverheadLimit -XX:SurvivorRatio=6 -Xloggc:F:/installed/cq5/author/crx-quickstart/gc.log -verbose:gc -XX:+PrintGCTimeStamps  -XX:+HeapDumpOnOutOfMemoryError -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9998 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.awt.headless=true


::* ------------------------------------------------------------------------------
::* do not configure below this point
::* ------------------------------------------------------------------------------


chdir /D %~dp0
cd ..\..
set START_OPTS=-use-control-port
if defined CQ_PORT            set START_OPTS=%START_OPTS% -p %CQ_PORT%
if defined CQ_INTERFACE       set START_OPTS=%START_OPTS% -a %CQ_INTERFACE%
if defined CQ_GUI             set START_OPTS=%START_OPTS% -gui
if defined CQ_NOBROWSER       set START_OPTS=%START_OPTS% -nobrowser
if defined CQ_VERBOSE         set START_OPTS=%START_OPTS% -verbose
if defined CQ_NOFORK          set START_OPTS=%START_OPTS% -nofork
if defined CQ_FORK            set START_OPTS=%START_OPTS% -fork
if defined CQ_FORKARGS        set START_OPTS=%START_OPTS% -forkargs %CQ_FORKARGS%
if defined CQ_RUNMODE         set START_OPTS=%START_OPTS% -r %CQ_RUNMODE%
if defined CQ_BASEFOLDER      set START_OPTS=%START_OPTS% -b %CQ_BASEFOLDER%
if defined CQ_LOWMEMACTION    set START_OPTS=%START_OPTS% -low-mem-action %CQ_LOWMEMACTION%
if defined CQ_HOST            set START_OPTS=%START_OPTS% -Dorg.apache.felix.http.host=%CQ_HOST%
if defined CQ_USE_JAAS        set START_OPTS=%START_OPTS% -Djava.security.auth.login.config=%CQ_JAAS_CONFIG%
if not defined CQ_JARFILE     for %%X in (*.jar) do set CQ_JARFILE=%%X


tasklist > oldTaskList.txt
start CQ cmd.exe /K java %CQ_JVM_OPTS% -jar %CQ_JARFILE% %START_OPTS%
tasklist > newTaskList.txt
java -cp %~dp0 GetProcessID oldTaskList.txt newTaskList.txt java.exe > crx-quickstart\conf\cq.pid
del newTaskList.txt
del oldTaskList.txt

 

 

4. Started CQ5 by double-clicking F:\installed\cq5\author\crx-quickstart\bin\quickstart.bat

 

Issue: I am not able to see the domain "com.adobe.granite.ldap" in http://localhost:4502/system/console/jmx

 

I am not sure what have I done wrong. Please let me know how can I synchronize all the users from LDAP into CRX.

 

Thanks in advance,

Anurag

Adding new metadata in DAM asset editor

$
0
0

Hi All,

 

I have a requirement wherein two projects reside on same instance, apps/ProjectA and apps/ProjectB . Now Project A has DAM customized, ie. a new metadata added and hence files,  /apps/dam/content/asseteditors/formitems and folders with files under  /apps/dam/gui/components have been modified to take care of creation of new metadata. Now my question is, Is it possible to have such DAM changes constrained to projectA alone, and Project B using default DAM?

Is it possible to overlay DAM inside the apps/ProjectA alone?

 

Kindly let me know.

 

Regards,

NZ

Content sync between Production and Test/Dev

$
0
0

Roughly, I want to keep a job in our CI server to fetch the whole content or deltas from production every night and push it to a SCM and tag it.

So every time we want to refresh test or dev environment, the content is readily available and will not impact the production environment performance.

The problem here is that our content files weight more than 65 gb (lots of media) and tools like git fall short.

 

Any suggestions? Is there any recommended "Adobe" way to achieve this?

Thanks!

JG

Dispatcher Flush Agent on Publisher not invalidating cache

$
0
0

Hi all,

 

We're having an issue with invalidating that cache apon activation/replication of content, but only from the Publish flush agent.  I've copied the default flush agent on the Publish instance, updated the URI to point to my dispatcher, and enabled the agent.  Clicking Test Connection shows a successful connection to the dispatcher.  Also, I can see that the .stat file has been created at the web root on the dispatcher (I'm not specifying a specific statsfile or a statsfile level in the dispatcher.any).  When I change a setting in the publisher flush agent and save it, or stop and start it, the .stat file is updated.  So I know the Publisher is able to correctly reach the dispatcher and pass along the invalidate message to update the .stat file.

 

When I replicate a node from Author the Publisher, I see the following in the Publisher error.log:

 

22.05.2013 04:23:23.241 *INFO* [ObservationManager] com.day.cq.wcm.core.impl.components.ComponentCacheImpl Detecting component change. invalidating cache.

22.05.2013 04:23:23.245 *INFO* [10.20.30.40 [1369196603165] POST /bin/receive HTTP/1.1] com.day.cq.replication.impl.content.durbo.DurboImporter imported content in 79ms for durbo request on path: /apps/my-project/components/page/base/footer.jsp

22.05.2013 04:23:23.245 *INFO* [10.20.30.40 [1369196603165] POST /bin/receive HTTP/1.1] com.day.cq.replication.impl.servlets.ReplicationServlet Processed replication action in 79ms: ACTIVATE of /apps/my-project/components/page/base/footer.jsp

 

However when I check the dispatcher, I see that the .stat file has not had its timestamp updated.  I've also noticed that when I change the node and replicate it, the 'Detecting component change. invalidating cache.' log line above does not always appear in the log file - it appears only sometimes with the other 2 long lines.  This part seems random.

 

In my testing, I've also created a Dispatcher Flush agent on the Author instance (after disabling the one on the Publish instance), and 100% of the time when I replicate the /apps/my-project/components/page/base/footer.jsp to the Publisher, the Author flush agent correctly updates the .stat file timestamp.  So I'm 100% confident that the file I'm editing is able to be cached, and that changing and replicating it does update the .stat file.

 

Just never from the Publish flush agent!

 

I've tried all combinations of trigger settings on the Publish agent to no avail.  I've also inspected the properties of the agent in CRXDE Lite, and I can't see anything that the Author agent has and the publish agent is missing!

 

I've also tried creating the Publish agent by copying the default one from the tools console and updating the URI, creating a Publish agent on the Author and replicating it to the Publisher, and also creating it directly on the Publisher via curl calls - all of these methods seem to create a valid dispatcher flush agent on the Publisher that successfully connects to the dispatcher (confirmed by a successful 'Test Connection' click after creating), but none of them ever update the .stat file on the dispatcher after content replication.

 

Any thoughts here on where else to look would be greatly appreciated!!

 

Cheers,

K

Viewing all 12476 articles
Browse latest View live




Latest Images