I want to get a trail version fro CQ5 , Is there any way to get It? Please any body can help me on this.CQ5 Trial
Trail version of CQ5
how to determine Dispatcher is working with CQ5 Publish instance.?
Hi all create author and publish instance for CQ5 site, when author modify any content over the site these are replicated on publish instance successfully, now i want to use dispatcher so for this i have configured that with publish instance in IIS as described in the article CQ Dispatcher IIS Set Up - CQ Tutorials. now i want to check Dispatcher is working or not for publish instance. and what it is doing for CQ5 publish instance
How to get the groups associated to a CQ5 user account ?
Hello,
I'm looking for a sling endpoints to get all groups a CQ5 user belongs to.
I first checked into crx but it seems that the groups are not stored in the users nodes. So I've no idea where I should looking at...
Regards,
CQ5: User Accounts & Persistent Managers: LARGE NUMBERS (50M)
Hi,
I am designing a user registration application. I need to architect this so that it could store support upto 50 million (i.e. 50,000,000) user records or registrations.
I read some documentation that JackRabbit (the underlying CRX repository) does not appear to support flat content hierarchies i.e. you'll start seeing problems when you put more 10k child nodes under a single parent. Is this true?
I can see in CQ5, that there is a ‘home’ folder that contains a ‘user’ folder. Here there are folders in alphabetical order ‘a’, ’b’,‘c’….’z’. These folders store the user email id’s based on the first alphabet of the email. So there seems to be an attempt to possibly create a deeper hierarchy. However, even with this approach, we are looking at about (averages) 2M child nodes - is this supportable?
Is the default TarPM (Tar Persistence Manager) the best options for such large amounts of data? Or should we be considering RDBMS based persistence managers?
Any inputs / thoughts / suggestions would be greatly appreciated.
Thanks
karan
"No payload set" error in CQ5 workflow
I'm trying to programmatically start a workflow from an OSGi service/servlet. Everything seems to work fine, I checked the WorkflowData and the model to verify they are correct. However, when the startWorkflow method runs, it creates a new instance of the workflow, but doesn't set the payload, and i get this in the error.log file:
- com.day.cq.workflow.impl.jcr.WorkflowManager No payload set
- com.day.cq.workflow.impl.CQWorkflowSession Workflow instance started with model: /etc/workflow/models/skill-request/jcr:content/model and ID: /etc/workflow/instances/2012-07-17/model_2347856755318064 for payload: skill,Software,barmstrong
As far as I can tell, it has the right data, but refuses to set it to the workflow. Any thoughts or hints would be much appreciated.
My code:
protected void doPost(SlingHttpServletRequest request, SlingHttpServletResponse response) throws IOException
{
String skillname = request.getParameter("skillname");
String skilltype = request.getParameter("skilltype");
String userid = request.getParameter("userid");
// Getting variables ready for a Workflow
ResourceResolver resourceResolver = null;
Session session = null;
try {
SlingHttpServletRequest slingReq = (SlingHttpServletRequest) request;
session = slingReq.getResourceResolver().adaptTo(Session.class);
WorkflowSession wfSession = _workflowService
.getWorkflowSession(session);
String workflowId = "/etc/workflow/models/skill-request/jcr:content/model";
// Starting a Workflow
WorkflowModel model = wfSession.getModel(workflowId);
WorkflowData wfData = wfSession.newWorkflowData("SKILL_DATA",
skillname + "," + skilltype + "," + userid);
Workflow wf = wfSession.startWorkflow(model, wfData);
} catch (WorkflowException e) {
ps.println(e.getMessage());
e.printStackTrace(ps);
} catch (Throwable e){
ps.println(e.getMessage());
e.printStackTrace(ps);
}
}
i18n value in sling include
I am unable to get I18n value in sling include content in 404.jsp/default.jsp.
Basically I am including a 404 page ( based on some template ) into sling/servlet/errorhandler/default.jsp like
<sling:include path="/content/mysite/en/errorpage" />
I am able to see the included error page in case of 404. But the i18n value that are used in errorpage is not applied, instead i am getting the sling:key as the value itself.
The standalone page (if i directly open the page instead of going thru 404 error ) shows correct i18n value
I am using i18n as:
ResourceBundle i18n = slingRequest.getResourceBundle(locale);
or
I18n i18n1= new I18n(slingRequest);
Please suggest if i m doing something wrong.
CRXDE Unable to connect to repository
Hello all,
I'm having trouble connecting CRXDE to my CQ5.5 repository with a particular server configuration. When trying to login/connect to my server, I get the following messages popup from the CRXDE app:
"Error initializing workspace: No file system is defined for scheme: jcr"
Whe I click this away, another popup appear with:
"An error has occurred. See the log file D:\users\kristian\.crxde\.metadata\.log."
After clicking that message away, CRXDE closes.
The output of the log file is:
!SESSION 2013-01-20 11:06:21.994 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_07
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_AU
Command-line arguments: -os win32 -ws win32 -arch x86_64
!ENTRY org.eclipse.osgi 4 0 2013-01-20 11:06:55.166
!MESSAGE Application error
!STACK 1
java.lang.reflect.InvocationTargetException
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:121)
at com.day.cq.ide.CQDEApplication.start(CQDEApplication.java:62)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Caused by: org.eclipse.core.runtime.CoreException: No file system is defined for scheme: jcr
at org.eclipse.core.internal.filesystem.Policy.error(Policy.java:55)
at org.eclipse.core.internal.filesystem.Policy.error(Policy.java:50)
at org.eclipse.core.internal.filesystem.InternalFileSystemCore.getFileSystem(InternalFileSys temCore.java:65)
at org.eclipse.core.internal.filesystem.InternalFileSystemCore.getStore(InternalFileSystemCo re.java:107)
at org.eclipse.core.filesystem.EFS.getStore(EFS.java:350)
at com.day.cq.ide.fs.JCRFileSystemPlugin.registerExtensions(JCRFileSystemPlugin.java:100)
at com.day.cq.ide.init.SetupWorkspaceOperation.initWorkspace(SetupWorkspaceOperation.java:16 6)
at com.day.cq.ide.init.SetupWorkspaceOperation.execute(SetupWorkspaceOperation.java:119)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
... 14 more
Root exception:
org.eclipse.core.runtime.CoreException: No file system is defined for scheme: jcr
at org.eclipse.core.internal.filesystem.Policy.error(Policy.java:55)
at org.eclipse.core.internal.filesystem.Policy.error(Policy.java:50)
at org.eclipse.core.internal.filesystem.InternalFileSystemCore.getFileSystem(InternalFileSys temCore.java:65)
at org.eclipse.core.internal.filesystem.InternalFileSystemCore.getStore(InternalFileSystemCo re.java:107)
at org.eclipse.core.filesystem.EFS.getStore(EFS.java:350)
at com.day.cq.ide.fs.JCRFileSystemPlugin.registerExtensions(JCRFileSystemPlugin.java:100)
at com.day.cq.ide.init.SetupWorkspaceOperation.initWorkspace(SetupWorkspaceOperation.java:16 6)
at com.day.cq.ide.init.SetupWorkspaceOperation.execute(SetupWorkspaceOperation.java:119)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
at com.day.cq.ide.CQDEApplication.start(CQDEApplication.java:62)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
The error.log on the CQ5 instance outputs the following when trying to connect:
20.01.2013 11:47:04.232 *WARN* [123.456.789.012 [1358642824230] GET /bin/crxde.classpath.xml HTTP/1.1] com.day.crx.ide.CRXDEServlet bundle location is not an URI: System Bundle
20.01.2013 11:47:04.235 *INFO* [123.456.789.012 [1358642824230] GET /bin/crxde.classpath.xml HTTP/1.1] org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager cachename=crx.defaultBundleCache[ConcurrentCache@2f202573], elements=2476, usedmemorykb=8188, maxmemorykb=8192, access=5024501, miss=864065
I know my CRXDE app is functional, as it does connect to a localhost instance, and also other remote instances. Also, I get the same results from this server running CRXDE from different conputers with different Java versions. So I have the feeling that my server setup here may have something to do with it, and I might need to tweak some OSGI settings somewhere, but I'm not sure what...
I use an Apache server as a gateway to my CQ5 servers. The Apache server takes https requests (on 443, or 80 which auto-redirects to 443) and then uses a Reverse Proxy to send the traffic to the required CQ5 server based on the host name. So https://mycq5auth.company.com hits my Apache server on port 443, and Apache then sends the traffic to an internal (non internet facing) CQ5 author server on port 4502. CQ5 does it's thing, sends the traffic back to Apache, which then serves it back out on 443.
All of this works great in the browser - the entire CQ5 instance works, including the OSGI console, CRXDE Lite etc - everything. Only the CRXDE app seems to be having issues with this config.
I've had a google around for solutions, but I haven't come across too much regarding these errors.
Anyone have any suggestions on what I might try to resolve this?
Thanks,
K
CQ, CQ.i18n is not Defined | Publish Instance | CQ 5.4
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
RepositoryException during serialization
Hi,
we are using CQ5.4 and in one of our environments I see that both replications queues are active but have over 2k of pending items (for activation and deactivation)
One the replication logs shows a lot of the following error:
ERROR - agent2 : Error while building replication content com.day.cq.replication.ReplicationException: RepositoryException during serialization
The other queue log does not any errors.
Any idea what could have caused this,
Thanks,
Lior
Page Properties Disabled on pages sidekick
Hello.
I'm trying to set some pages images, this way I may create a carousel. Ok, piece of cake, but when I try to edit my page properties on sidekick, the "Page properties..." option is disabled.
The include for global.jsp is in the component jsp file, and I inserted the resourceSuperType property as well (mapping the page parent to foundation/components/page).
What else should I do?
How to get SlingScriptHelper in servlet?
I need to get a SlingScriptHelper instance from within my servlet. Either a ComponentContext or BundleContext will do as well, as my only goal is to get sling services using it.
- Using SCR @Reference injection is not a solution for me, because I will determine at runtime what service class I need to get.
- I've seen posts online that use an activate() method to get ComponentContext, and also decompiled some class that do it, but don't know how to cause sling to call this method and set my ComponentContext
- I've tried pulling it from the Request scope as an attribute, but sling apparently only puts it there for scripts, not servlets.
- I've tried injecting all of these objects themselves - none can be injected.
Any help? I'm hoping there's some static factory I can just hit and get one of these objects so that I can get services...
How to post a form to a servlet in CQ5.5?
Hi all,
I'm using CQ5 to develop some things. and now i am not so clearly how to post a 'FORM' and accept with a SERVLET.
I've seen this 'http://forums.adobe.com/message/4932739#4932739' already, and try it. But once i add a new <input /> like :<input name="age" value="age" />.
and i submit this form, then tell me error: javax.jcr.nodetype.ConstraintViolationException: no matching property definition found for {}age
see the code
jsp:
<!-- String action = /content/myproject/en/thanks -->
<form id="submitForm" method="post" action="<%= action %>.POST.html" onsubmit="return validate();">
<input type="hidden" name=":redirect" value="<%=resourceResolver.map(action)%>" />
<input type="hidden" name=":formpath" value="<%=currentNode.getPath()%>" />
<input type="hidden" name=":formtype" value="<%=component.getResourceType()%>" />
<input type="hidden" name="_charset_" value="utf-8" />
<input name="age" value="26" /> <!-- if i comment this line, it can submit success, otherwise show me Status: 500. -->
<input type="submit" value="Submit"/>
</form>
servlet:
@Component(immediate = true, metatype = false, label = "QuestionnaireServlet")
@Service
@Properties(value = {
@org.apache.felix.scr.annotations.Property(name = "sling.servlet.methods", value = { "POST" }),
@org.apache.felix.scr.annotations.Property(name = "sling.servlet.resourceTypes", value = { "sling/servlet/default" }),
@org.apache.felix.scr.annotations.Property(name = "sling.servlet.selectors", value = { "POST" }),
@org.apache.felix.scr.annotations.Property(name = "sling.servlet.extensions", value = { "html" })
})
public class QuestionnaireServlet extends SlingAllMethodsServlet implements
OptingServlet {
protected void doPost(SlingHttpServletRequest request,
SlingHttpServletResponse response) throws ServletException,
IOException {
//it seems never call this function.
}
}
can anybody told me in details ?
CQ5 Captcha refresh
Hi
We have a CQ5 form page with text fields like first name, last name etc. And have a CQ5 Captcha component on the page (refresh time by default is 1 min)
If the user takes more than a minute to fill up the form and submits it, it throws "Invalid Captcha entered" error.
Is there a way this validation error can be avoided apart from increasing the captcha refresh time ?
Any pointers would be helpful. Thanks!
How we can use code completion in CRXDE & CRXDELite ?
Hello,
I am using CRXDE & CRXDELite but in this tool it does not gives a java/CQ API code competion.
How we can do this, is there we have to add any JARs or any configurations?
Please let me know if any one knows how we can do this.
Thanks in advance...
Regards,
Satish
Set Server Timezone
Hello,
Our servers are set a Pacific Standard Time; however, when I make a change on one of our author instances it shows as Easter Standard Time. I would have though the time was taken form teh server. In any case, where/how do I set the timezone for all of my machines (so that the Publish machines recognize the same timestamp) in a Clustered environment?
Thanks
Only a type can be imported. org.apache.felix.scr.annotations.Component resolves to a package
I copied the example code exactly, but it won't compile. I receive errors on all the annotations, like:
"Only a type can be imported. org.apache.felix.scr.annotations.Component resolves to a package"
and
"Component cannot be resolved to a type"
-------------------------------------------------------------------------
package com.day.cq.wcm.apps.geometrixx.impl;
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 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.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.jcr.Node;
import javax.jcr.RepositoryException;
/**
* Sample workflow process
*/
@Component
@Service
@Properties({
@Property(name = Constants.SERVICE_DESCRIPTION, value = "A sample workflow process implementation."),
@Property(name = "process.label", value = "Sample Workflow Process")})
public class CustomWorkflow implements WorkflowProcess {
private static final String TYPE_JCR_PATH = "JCR_PATH";
private static final Logger log = LoggerFactory.getLogger(CustomWorkflow.class);
public void execute(WorkItem item, WorkflowSession session, MetaDataMap args) throws WorkflowException {
WorkflowData workflowData = item.getWorkflowData();
if (workflowData.getPayloadType().equals(TYPE_JCR_PATH)) {
String path = workflowData.getPayload().toString();
// More code here
}
}
}
Errors :
Description | Resource | Path | |
Component cannot be resolved to a type | .java | / | li |
Only a type can be imported. org.apache.felix.scr.annotations.Component resolves to a package | .java | / | li |
Properties cannot be resolved to a type | .java | /l | |
Service cannot be resolved to a type | .java |
Problem with richtext editor. How to disable editor from adding p tags automatically?
CQ Richtext editor is adding extra <p> tags when we have html5 <header> tag in the content. The para tags are added every time we open it for editing automatically. Is there a way to disable this?
Regards,
Pratap
Redirecting page
I am using the redirect option in page properties to redirect pages but the page just displays
"This page redirects to <Page Name>" in publisher mode.
Why is it not working?
Allowing customers upload data directly into CQ5's DAM/CMS (JCR)?
My client's customers need to submit content back to the website. This content consists of data files, instruments, text attributes that can total ~50MB in some cases.
My question has a few parts:
1. Does CQ5's DAM and CMS support direct content upload/import from users via a web page?
2. The content would need to be automatically searchable. Can CQ5 be setup to auto-notify an Endeca search server about the newly uploaded content?
3. Is there any reason we should not import 50 MB wirth of customer data into the CQ5 CMS and DAM?
4. It seems all this must occur on the production (publishing) CQ5 instance. Agreed?
Thanks
Anthony
Menu and Sub Menu link
Hi, I just started to learn Adobe CQ
I have site navigation bar which has 5 items and each navigation item will have sub items. I added text to both the navigation item and sub item but not sure how to link a a particular sub item to a nav item. When I add text in a sub nav item there is no way to say a particular sub item should fall under a navigation item. Can you please let me know if there is a way to accomplish this?
I have created two components one for navigation item and the second one for sub navigation item. And my code looks like this
header.jsp
<cq:include path="navitem" resourceType="stripe/components/modular/navdropdownitem"/>
<cq:include path="navitem" resourceType="stripe/components/modular/navdropdownitem"/>
navdropdownitem.jsp -- first component
<div class="nav-collapse collapse" style="margin-left: 115px; float:left;">
<ul class="nav" style="color: #ffffff;">
<li class="dropdown">
<cq:include path="iparnavitem" resourceType="foundation/components/iparsys"/>
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<%=navitem%>
</a>
<cq:include path="parnavsubitem" resourceType="foundation/components/parsys"/>
<ul class="dropdown-menu">
<%
String[] navsubitems = (String[])request.getSession().getAttribute("navsubitems");
if(navsubitems != null)
{
for(int i=0;i<navsubitems.length ;i++)
{
%>
<li><a href="#"><%=navsubitems[i]%></a></li>
<%
}
}
%>
</ul>
</li>
</ul>
</div>
navdropdownsubitem.jsp
<%
String[] navsubitem= properties.get("navsubitem", String[].class);
HttpSession session = request.getSession();
session.setAttribute("navsubitems", navsubitem);
%>
Appreciate your help
Thanks
Sridhar