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

How to clean tarJournal?

$
0
0

Hi all,

 

We had a bug in which an endless loop was continuously creating and then deleting the same node.  I noticed that the size of the repository on disc (under crx-quickstart/repository) did grow significantly.  By running the tar optimization I was able to reduce the files under crx-quickstart/repository/workspaces/crx.default from about 30GB to 300MB.  However, under crx-quickstart/repository/tarJournal we still have data files amounting about 50GB, while I noticed on other servers this should also be around the 300MB.  The tar optimization process is not cleaning up this folder apparently.  How can this be cleaned up?

 

Thanks,

Jan


Authentication failing on author and publish servers without being prompted

$
0
0

When trying to view a published page on my publish server, at http://mysite:4503, I'm getting this, with an otherwise blank page back:

"User name and password do not match"

 

I was never prompted for a username.  At that URL, I would normally see the Geometrixx sample page, which would have a login prompt to click on.  Over on my author instance, at this URL (http://mysite:4502), I am no longer greeted by the WCM admin console.  I now have a generic browser dialog that says:

 

"A username and password are being requested by http://mysite:4502.  The site says: "Sling (Development)""

 

None of my admin or other users passwords are accepted.  Just prior to these issues, I was having another authentication error shown on my author instance, which prompted me to restart the instances.  The prior message was simply "Authentication Failed" when trying to view the WCM console, and the URL would change to:

 

http://mysite:4502/system/sling/cqform/defaultlogin.html?resource=%2F&$$login$$=%24%24logi n%24%24

 

 

Any idea what could be going on?  My application itself, was not written to require a login, and on the the only authentication that I'm used to performing is for the WCM console.

 

Thanks.

Setting access rights at component level

$
0
0

I have created a component. The business wants to restrict its use to a certain group of users.

 

If a user is part of that group, ONLY then the coomponent should be available in sidekick at time of page creation.

 

How is setting access rights at component level being achieved?

[Adobe Jobs] CQ Enterprise Support Engineer in Basel

$
0
0

Hi everyone,

 

here is a little job offer from our CQ support team:

 

We are looking for an Enterprise Support Engineer in Basel for our Adobe Web Experience Solutions (CQ) and kindly ask you if you can recommend me someone in your network with regards to this position in Switzerland : http://goo.gl/PTBPh

 

CQ Web Experience Solution is a platform for delivering engaging, multi-channel customer experiences to drive online business success.

 

The person in this role will become an expert in Adobe CQ software working directly with enterprise customers to resolve issues and provide quality technical support solutions, identifying and developing support related applications that benefit customers and delivering webinars customers on specific topics that prove to be helpful to a larger group of people.

 

We are looking for a professional with strong experience in the Web and/or ECMS technologies space, strong knowledge of web technologies, especially JAVA, JavaScript, Content Management Systems (CMS) and website architecture.

 

Thanks,

Alex

How to interact with external database in CQ5

$
0
0

Hi,

I need to interact with external database like SQL or Oracle to store some/fetch some data in CQ5. Can someone pls provide some help regarding the same. I guess I need to do it through JDBC. Please guide me step by step how to do this.

 

Thanks

Web Font Files Corrupted

$
0
0

I am using CQ 5.5. A customer site that I have the task of bringing into CQ included the use webfonts from Font Squirrel. Usually I deploy through Maven and noticed when I checked the site with Firefox, the fonts are not being used and Firefox is displaying eerrors:

 

[17:22:52.177] downloadable font: incorrect file size in WOFF header (font-family: "simplesans bold" style:normal weight:normal stretch:normal src index:1)

source: http://localhost:4502/etc/designs/projectname/fonts/simplesans-bold-webfont-webfont.woff @ http://localhost:4502/etc/designs/projectname/static.css

 

It is displaying this error for every one of the 'special fonts' used. From the error, it appeared the font file was corrupted. So I copied them again from source into the project. No go. Then I tried copying them directly into my /etc/designs/projectname/fonts. I see them intially added at the right size but then almost immediately jump up to about double the original size. Obviously CQ, is processing them in some way that is corrupting them.

 

Has anyone seen this and can provide guidance?

 

Any suggestions are greatly appreciated.

 

 

Jeffrey W. Pearson

CQ login page is throwing 500 Internal Server Error on start up. Can't load http root property error

$
0
0

Hello Team,

 

When I am trying to start the CQ instance, I am seeing the following in the stderr.log

 

Setting properties from filename 'C:/CQ/CQInstall/cq-author-4502.jar'

Property '-r' set to 'author' from filename cq-quickstart-5.5.0-20120220.jar

System property 'sling.run.modes' set to 'author' by -r option

Redirecting stdout to C:\CQ\CQInstall\.\crx-quickstart\logs\stdout.log

Redirecting stderr to C:\CQ\CQInstall\.\crx-quickstart\logs\stderr.log

ResourceProvider paths=[/gui, /gui/default]

Can't load http root property: java.io.FileNotFoundException: C:\CQ\CQInstall\.\crx-quickstart\conf\sling.properties (The system cannot find the file specified)

 

MAIN process: shutdown hook

 

MAIN process: exiting

 

I am not sure where from this extra \.\ is getting added in the path.

 

Even when I see the osgi bundle in the system console,

 

http://localhost:4502/system/console/bundles


Bundle information: 122 bundles in total, 119 bundles active, 3 active fragments, 0 bundles resolved, 0 bundles installed.


On my mac machine, I have the same version and could see the total bundles as different.


bundle information 231 bundles in total, 224 bundles active, 7 active fragments, 0 bundles resolved and 0 bundles installed


When I try to access the http://localhost:4502/libs/crx/core/content/login.html

 

Internal Server Error

 

When I looked into the logs, it is giving the following error message:

 

06.02.2013 17:38:31.980 *ERROR* [0:0:0:0:0:0:0:1 [1360193734586] GET /libs/crx/core/content/login.html HTTP/1.1] org.apache.sling.servlets.resolver.internal.SlingServletResolver Original error class org.apache.sling.api.SlingException org.apache.sling.api.SlingException:

 

at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspExceptionInterna l(JspServletWrapper.java:563)

 

at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspException(JspSer vletWrapper.java:499)

at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:451)

at org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspServletWrapperAdapter. java:59)

Caused by: org.apache.sling.api.SlingException: Unable to setup processor: Unable to get component of class 'interface org.apache.sling.rewriter.Generator' with type 'htmlparser'.

 

at org.apache.sling.rewriter.impl.ProcessorManagerImpl.getProcessor(ProcessorManagerImpl.jav a:452)

 

at org.apache.sling.rewriter.impl.RewriterResponse.getProcessor(RewriterResponse.java:172)

at org.apache.sling.rewriter.impl.RewriterResponse.getWriter(RewriterResponse.java:110)

at org.apache.sling.scripting.core.impl.helper.OnDemandWriter.getWriter(OnDemandWriter.java: 38)

at org.apache.sling.scripting.core.impl.helper.OnDemandWriter.write(OnDemandWriter.java:61)

at java.io.PrintWriter.write(PrintWriter.java:382)

Caused by: java.io.IOException: Unable to get component of class 'interface org.apache.sling.rewriter.Generator' with type 'htmlparser'.

 

at org.apache.sling.rewriter.impl.PipelineImpl.getPipelineComponent(PipelineImpl.java:160)

 

at org.apache.sling.rewriter.impl.PipelineImpl.init(PipelineImpl.java:85)

at org.apache.sling.rewriter.impl.ProcessorManagerImpl.getProcessor(ProcessorManagerImpl.jav a:445)

... 73 more

 

Any pointers to solve the problem would be highly appreciated.

 

Best Regards,

Durga

Vanity URLs in multiple domains with one CQ5 instance

$
0
0

I have two websites which are in different domains but use the same CQ5 author instance. How can I setup the same Vanity URLs for both websites.

For example, one.com/shorturl and two.com/shorturl. I tried it with /shorturl in Vanity URL for both page templates, but only one matching is always successful.


CQ5 DAM : import of assets using WEBDAV

$
0
0

Hi,

 

I am trying to work on a POC where I need to do a buld asset upload using CQ5 webdav interface.

 

I tried configuring the Webdav in windows7 and windows 2008. But facing issue.

 

I followed below mentioned document for configuring Webdav with CQ5.

http://dev.day.com/docs/en/crx/current/how_to/webdav_access.html

 

I followed section : Setting up WebDAV for Windows for both Windows 7 and Windows 2008

 

Not able to configure Webdav for windows when I am trying to provide url (http://localhost:4502/crx/repository/crx.default or http://localhost:4502/content/dam) both of them are giving following error.

The folder you are entered does not appear to be a valid. please choose another.

 

Please suggest how to configure webdav in windows7 or windows 2008.

 

Thanks,

Sachin Srivastava

HowTo a Custom Replication Agent

$
0
0

Hi all

we face some requirements for which we are envisaging writing a custom replication agent.

From the reqs it would be something similat to the oob "static replication agent", however our retention and auditing requirements go a bit beyond the capabilities of the oob agent (representation of what the vistor has been "seeing", zip the files, include audit infos, identities, timestamps and resources...)

Also we have some specific integration cases with cq for which we require some static, file based representation of resources to be delivered to filesystems consumed by other applications/systems.

 

Is there any documentation or implementation example on how to create a custom replication agent? basically on the line of the oob static replication agent? (unluckily i wasn't able to find any)

Or does anyone a see a different approach?

 

Many thanks for feedback and sorry for the quite "wide open" question

 

My regards to everyone

Any idea why "DynamicClassLoaderProviderImpl" exception is thrown?

$
0
0

09.05.2013 07:55:22.190 *INFO* [OsgiInstallerImpl] com.day.crx.crxde-support Service [com.day.crx.ide.CRXDECompileServlet,1615] ServiceEvent UNREGISTERING 09.05.2013 07:55:22.192 *INFO* [OsgiInstallerImpl] org.apache.sling.jcr.compiler Service [org.apache.sling.jcr.compiler.impl.JcrJavaCompilerImpl,1612] ServiceEvent UNREGISTERING 09.05.2013 07:55:22.192 *INFO* [OsgiInstallerImpl] org.apache.sling.commons.compiler Service [org.apache.sling.commons.compiler.impl.EclipseJavaCompiler,1609] ServiceEvent UNREGISTERING 09.05.2013 07:55:22.193 *ERROR* [OsgiInstallerImpl] org.apache.sling.jcr.classloader [org.apache.sling.jcr.classloader.internal.DynamicClassLoaderProviderImpl] The deactivate method has thrown an exception (java.lang.NullPointerException: Specified service reference cannot be null.) java.lang.NullPointerException: Specified service reference cannot be null.      at org.apache.felix.framework.BundleContextImpl.ungetService(BundleContextImpl.java:338)      at org.apache.sling.jcr.classloader.internal.ClassLoaderWriterImpl.destroyRepositoryClassLoa der(ClassLoaderWriterImpl.java:182)      at org.apache.sling.jcr.classloader.internal.ClassLoaderWriterImpl.deactivate(ClassLoaderWri terImpl.java:147)      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)      at java.lang.reflect.Method.invoke(Method.java:597)      at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:227)      at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:38)      at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:591)      at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:472)      at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:146)      at org.apache.felix.scr.impl.manager.ImmediateComponentManager.disposeImplementationObject(I mmediateComponentManager.java:260)      at org.apache.felix.scr.impl.manager.ServiceFactoryComponentManager.ungetService(ServiceFact oryComponentManager.java:150)      at org.apache.felix.framework.ServiceRegistrationImpl.ungetFactoryUnchecked(ServiceRegistrat ionImpl.java:351)      at org.apache.felix.framework.ServiceRegistrationImpl.ungetService(ServiceRegistrationImpl.j ava:260)      at org.apache.felix.framework.ServiceRegistry.ungetService(ServiceRegistry.java:371)      at org.apache.felix.framework.Felix.ungetService(Felix.java:3022)      at org.apache.felix.framework.BundleContextImpl.ungetService(BundleContextImpl.java:342)      at org.apache.felix.scr.impl.manager.DependencyManager.ungetService(DependencyManager.java:8 19)      at org.apache.felix.scr.impl.manager.DependencyManager.unbind(DependencyManager.java:1000)      at org.apache.felix.scr.impl.manager.DependencyManager.close(DependencyManager.java:880)      at org.apache.felix.scr.impl.manager.ImmediateComponentManager.disposeImplementationObject(I mmediateComponentManager.java:268)      at org.apache.felix.scr.impl.manager.ImmediateComponentManager.deleteComponent(ImmediateComp onentManager.java:135)      at org.apache.felix.scr.impl.manager.DelayedComponentManager.deleteComponent(DelayedComponen tManager.java:67)      at org.apache.felix.scr.impl.manager.AbstractComponentManager$Satisfied.deactivate(AbstractC omponentManager.java:1223)      at org.apache.felix.scr.impl.manager.AbstractComponentManager.deactivateInternal(AbstractCom ponentManager.java:339)      at org.apache.felix.scr.impl.manager.DependencyManager.serviceRemoved(DependencyManager.java :346)      at org.apache.felix.scr.impl.manager.DependencyManager.serviceChanged(DependencyManager.java :253)      at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispat cher.java:871)      at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java :733)      at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662 )      at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3765)      at org.apache.felix.framework.Felix.access$000(Felix.java:80)      at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:722)      at org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:130)      at org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.jav a:129)      at org.apache.felix.scr.impl.manager.AbstractComponentManager.unregisterComponentService(Abs tractComponentManager.java:565)      at org.apache.felix.scr.impl.manager.AbstractComponentManager$Satisfied.deactivate(AbstractC omponentManager.java:1222)      at org.apache.felix.scr.impl.manager.AbstractComponentManager.deactivateInternal(AbstractCom ponentManager.java:339)      at org.apache.felix.scr.impl.manager.DependencyManager.serviceRemoved(DependencyManager.java :346)      at org.apache.felix.scr.impl.manager.DependencyManager.serviceChanged(DependencyManager.java :253)      at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispat cher.java:871)      at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java :733)      at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662 )      at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3765)      at org.apache.felix.framework.Felix.access$000(Felix.java:80)      at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:722)      at org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:130)      at org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.jav a:129)      at org.apache.sling.commons.classloader.impl.Activator.unregisterManagerFactory(Activator.ja va:86)      at org.apache.sling.commons.classloader.impl.Activator.bundleChanged(Activator.java:124)      at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatc her.java:807)      at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java :729)      at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610)      at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3754)      at org.apache.felix.framework.Felix.uninstallBundle(Felix.java:2365)      at org.apache.felix.framework.BundleImpl.uninstall(BundleImpl.java:982)      at org.apache.sling.installer.core.impl.tasks.BundleRemoveTask.execute(BundleRemoveTask.java :58)      at org.apache.sling.installer.core.impl.OsgiInstallerImpl.executeTasks(OsgiInstallerImpl.jav a:733)      at org.apache.sling.installer.core.impl.OsgiInstallerImpl.run(OsgiInstallerImpl.java:247)      at java.lang.Thread.run(Thread.java:662) 09.05.2013 07:55:22.194 *INFO* [Thread-28512] org.apache.jackrabbit.core.journal.AbstractJournal Record with revision '24189450477568' created by this journal, skipped.

Set a dynamic default property when a page is created?

$
0
0

Is there a way to set a default property that is dynamic for a page when it is created? For example, i want to capture a user id from our system and store it in an "author" property when the page is first created. This value can be changed to a different user by the author but in case they don't set it i want to have it default on page creation.

 

I guess a better question would be, is there somewhere i can put code so that it will be executed when a page is created?

 

I considered writing a custom widget and putting this in page properties, but that won't actually run unless page properties has been opened.

 

Thanks

How to implement Ajax

$
0
0

Hi All,

 

I need to implement Ajax functionality in my component.

 

The requirement is,

1. On clicking on a button Java servlet needs to be invoked.

2. In the servelt, need to access CRX nodes and store a particular value.

3. Back in the component, i need to retrieve this value(this can be doneby accessing the node value).

4. Page should not be refreshed.

 

How can i implement this? any sample code will be helpful to understand the ajax with sevlet implementation.

 

 

if there are any other possiblities, kindly let me know.

 

It is very urgent and needs to implement is as soon as possible.

 

i am in very needy situation.

 

Any help will be really helpful.

 

Thanks a ton in advance.

 

Regards,

Raja R

need to call servlet from jsp how

$
0
0

generally we specify in action attribute 

 

in cq how to specify the servlet path

 

what should be the folder structure plz explain with an example

facing issue with concurrent use of session

$
0
0

Hi All,

   We are facing concurrent use of session.save call in our LDAP sycn up process. Issue we got while performing performance test for multiple user and issue is at com.day.crx.security.ldap.LDAPUserSync.performUpdate api. Please guide me what could be wrong missing in code due to this Out of box service is showing error.

Below are logs:

 

 

02.01.2013 14:32:07 WARN SessionState: Attempt to perform session.save() while another thread is concurrently writing to session-system-1. Blocking until the other thread is finished using this session. Please review your code to avoid concurrent use of a session. (SessionState.java, line 149)

java.lang.Exception: Stack trace of concurrent access to session-system-1

at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:147)

at org.apache.jackrabbit.core.SessionImpl.perform(SessionImpl.java:355)

at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:758)

at com.day.crx.security.ldap.LDAPUserSync.performUpdate(LDAPUserSync.java:230)

at com.day.crx.security.ldap.LDAPUserSync.syncUser(LDAPUserSync.java:178)

at com.day.crx.security.ldap.LDAPLoginModule.commit(LDAPLoginModule.java:266)

at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)

at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)

 

 

 

Regards,

Yogesh


CQ, CQ.i18n is not Defined | Publish Instance | CQ 5.4

$
0
0

Hi,

 

We are using OOTB CQ.i18n.getMessage for localized JQuery Messages. everything is working as expected on Auhor instances but on Publish , it is throwing CQ is not Defined, CQ.i18n is not defined JAVA SCRIPT Errors.

 

Code e.g.

email: CQ.I18n.getMessage("APP201")

 

Do we need to enable any extra JS call or include any JS file into the clientlibs? Any pointers to this would be apreciated.

 

 

Thanks

Vinay

CQ5 Response Encoding

$
0
0

Hi Folks,

 

Does any one know whats default character encoding used by CQ5? (UTF-8, ISO-8859-1 etc)

 

Does it depend on whats the encoding used when the file was stored, if so whats the default encoding CRXDE uses to store file?

/etc/crxde/profiles/default/classpath.xml.xslt has following setting.. does it means anything in this case?

<xsl:output method="xml" encoding="UTF-8" indent="yes"/>

 

Thanks an in advance!

 

- Adnan

Received 409 (Conflict) for saving changes in workspace crx.default

$
0
0

When i creat a new jsp file and save the file  , i get the following error on CRXDE lite  :

 

Could not save changes. Received 409 (Conflict) for saving changes in workspace crx.default. This node already exists: /content/TrainingSite/contentpage.jsp

 

Can anybody please suggest the cause of the problem and the meaning of the code.

 

 

Thanks

Workflow Process Implementation not found

$
0
0

Hello,

 

     I've created a workflow process in AEM 5.6.  When I initiate the workflow, the workflow is not completed and in the Inbox Console, I see 'process implementation is not found'.

 

Here is the sample workflow process:

 

package com.test.workflowtest;

 

import org.apache.felix.scr.annotations.Component;

import org.apache.felix.scr.annotations.Properties;

import org.apache.felix.scr.annotations.Property;

import org.apache.felix.scr.annotations.Service;

import org.osgi.framework.Constants;

import org.apache.felix.scr.annotations.Reference;

/**

import com.day.cq.workflow.WorkflowException;

import com.day.cq.workflow.WorkflowSession;

import com.day.cq.workflow.exec.WorkItem;

import com.day.cq.workflow.exec.WorkflowData;

import com.day.cq.workflow.exec.WorkflowProcess;

import com.day.cq.workflow.metadata.MetaDataMap;

*/

import com.adobe.granite.workflow.WorkflowException;

import com.adobe.granite.workflow.WorkflowSession;

import com.adobe.granite.workflow.exec.WorkflowProcess;

import com.adobe.granite.workflow.exec.WorkItem;

import com.adobe.granite.workflow.metadata.MetaDataMap;

 

import org.slf4j.Logger;

import org.slf4j.LoggerFactory;

 

import org.apache.sling.api.resource.ResourceResolverFactory;

import org.apache.sling.api.resource.ResourceResolver;

 

@Component

@Service

@Properties({

        @Property(name = Constants.SERVICE_DESCRIPTION, value = "Test Process."),

        @Property(name = Constants.SERVICE_VENDOR, value = "TEST"),

        @Property(name = "process.label", value = "Test WF Process")})

 

public class Test implements WorkflowProcess{

   private static final Logger log = LoggerFactory.getLogger(Test.class);

 

          @Reference

          private ResourceResolverFactory resourceResolverFactory;

 

          public void execute(WorkItem item, WorkflowSession session, MetaDataMap args)

        throws WorkflowException {

 

        log.debug("======== Test Process ===========");

        ResourceResolver resolver = null;

        try{

                              resolver = resourceResolverFactory.getAdministrativeResourceResolver(null);

        }catch(Exception e)

        {

            e.printStackTrace();

        }

    }

}

 

=============

Exception:


02.05.2013 11:25:23.305 *ERROR* [JobHandler: /etc/workflow/instances/2013-05-02/model_79635435153979:/content/test1] com.adobe.granite.workflow.core.job.JobHandler Process implementation not found: com.test.workflowtest.Test com.adobe.granite.workflow.WorkflowException: Process implementation not found: com.test.workflowtest.Test

          at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:221)

          at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:139)

          at org.apache.sling.event.jobs.JobUtil$1.run(JobUtil.java:272)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

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

02.05.2013 11:25:25.333 *ERROR* [JobHandler: /etc/workflow/instances/2013-05-02/model_79635435153979:/content/test1] com.adobe.granite.workflow.core.job.JobHandler Process implementation not found: com.test.workflowtest.Test com.adobe.granite.workflow.WorkflowException: Process implementation not found: com.test.workflowtest.Test

          at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:221)

          at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:139)

          at org.apache.sling.event.jobs.JobUtil$1.run(JobUtil.java:272)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

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

02.05.2013 11:25:27.361 *ERROR* [JobHandler: /etc/workflow/instances/2013-05-02/model_79635435153979:/content/test1] com.adobe.granite.workflow.core.job.JobHandler Process implementation not found: com.test.workflowtest.Test com.adobe.granite.workflow.WorkflowException: Process implementation not found: com.test.workflowtest.Test

          at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:221)

          at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:139)

          at org.apache.sling.event.jobs.JobUtil$1.run(JobUtil.java:272)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

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

02.05.2013 11:25:29.389 *ERROR* [JobHandler: /etc/workflow/instances/2013-05-02/model_79635435153979:/content/test1] com.adobe.granite.workflow.core.job.JobHandler Process implementation not found: com.test.workflowtest.Test com.adobe.granite.workflow.WorkflowException: Process implementation not found: com.test.workflowtest.Test

          at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:221)

          at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:139)

          at org.apache.sling.event.jobs.JobUtil$1.run(JobUtil.java:272)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

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

 

 

=======

Findings:  Gettting exception only when I use below code in the workflow process.

 

@Reference

  private ResourceResolverFactory resourceResolverFactory;

 

 

Any help would be more helpful..

 

Thanks

Siva

 


CQ5 as Windows Service with LDAP Authentication

$
0
0

CQ5 as Windows Service with LDAP Authentication

1 Introduction

 

  • LDAP:  Lightweight Directory Access Protocol
  • Used for accessing centralized directory services.
  • LDAP is often used to achieve Single Sign On which allows a user to access multiple applications after logging in once.


2 Steps

 

1.    Install LDAP server,

1)    Double click the file(Download from apache website first)

ApacheDirectoryStudio-win32-x86_<architecture>-<version>

2)    After start the system, Create a new server (CQ5LDAP)

New-New Server

3)    Add group and users and save them

Name: Adobe

Suffix: ou=groups, dc=adobe, dc=com)

Name: Adobe2

Suffix: ou=users, dc=adobe, dc=com)

4)    Start the server

5)    Create a new connection (CQ5LDAP)

Connection name: CQ5LDAP

Hostname: localhost

Port: 10389

 

6)    Fill in the Authentication information

Bind DNor user: uid=admin, ou=system

Bind password: secret

 

7)    Right click the connection name, Import users with LDIF Import

 

2.    Configure repository.xml

 

  • Remove or comment the LoginModule element in the repository configuration (repository.xml). The configuration file can be found in the folder crx-quickstart/repository.
  • Ensure that the file ldap_login.conf is in a folder such as crx-quickstart/conf/ of your CRX installation folder.
  • Add the following bolded code to repository.xml so that users can login

    <SecurityManagerclass="com.day.crx.core.CRXSecurityManager">

        <WorkspaceAccessManager  class="org.apache.jackrabbit.core.

               security.simple.SimpleWorkspaceAccessManager"/>

        <UserManagerclass="com.day.crx.core.CRXUserManagerImpl">

            <paramname="usersPath"value="/home/users"/>

            <paramname="groupsPath"value="/home/groups"/>

            <paramname="defaultDepth"value="1"/>

        </UserManager>

    </SecurityManager>

 

3.    Change start.bat and Quickstart.bat


From the command line, start Quickstart with the option:

-Djava.security.auth.login.config=crx-quickstart/conf/ldap_login.conf

    For example:

    32-bit VM:

     java -Djava.security.auth.login.config=crx-quickstart/conf/ldap_login.conf -Xmx384M -jar crx-quickstart-<version>.jar

    64-bit VM:

     java -Djava.security.auth.login.config=crx-quickstart/conf/ldap_login.conf -XX:MaxPermSize=128m -Xmx512M -jar crx-quickstart-<version>.jar


4.    Starting CQ5 as Windows Service

 

We install CQ5 as a windows service with instsrv.bat located in C:\author\crx-quickstart\opt\helpers.Hence, if we want to use CQ5 service with LDAP. We need to change instsrv.bat and then run instsrv.bat to install CQ5 as a Windows Service.

Replace line 40: set jvm_options=-XX:MaxPermSize=256M

With: set jvm_options=-Djava.security.auth.login.config=C:/author2013/crx-quickstart/conf/ldap_logi n.conf";"-XX:MaxPermSize=256M

 

5.    Start the CQ5 service with CMD or Service of Task Manager

        c:>sc start CQ5 (or any service name you installed, say cq5author)


6.    Now you can login by LDAP users

Viewing all 12476 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>