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

CQ5 - user session data maintenance

$
0
0

Hi,


I am developing an application that requires to me to prompt user to login and then pass some data from page to page. This can't be GET or form POST data. So, I thought to do using HTTP SESSION.

 

I was trying to figure out how to do this in CQ5. I have been trying to figure out how to do this, but not successful so far.

 

In some posts I was reading that HttpSession is not supported by CQ5. In some forums, I read that HttpSession is not encouraged since it creates problems in multiple publish environments.

 

But I couldn't find any where as what is the approach we need to take for my case, which is very common. Can someone please help me out how to approach and go over this problem?

 

Just to simplify the use case:

I'll have a login form. Once the data is submitted, I'll make a service call using javascript and if service authenticates user, I'll set some hidden values in a form and submit the form. When this form is submitted, I want to set some session values and redirect user to a different page. Now, when next page is displayed, I will need to access the information stored in UI. This information needs to be available in any page we navigate to, so I thought to have Session approach. Please let me know what would be better approach.


Bundle-SymbolicName header missing, cannot install bundle

$
0
0

I want to install a bundle downloaded from the maven repository but when installing,

I get a blank page and then check the error log with the error message.

 

It is to fix this error: Exception javax.xml.ws.WebServiceException: Provider com.sun.xml.internal.ws.spi.ProviderImpl not found

But when trying to install a bundle containing the class, it gives the error below, it is for all the bundles I have tried, and it's a lot.

 

Version: 5.6.0.20130129, running on a windows 7 machine in author mode.

 

Full error message:

 

13.06.2013 13:12:31.597 *WARN* [127.0.0.1 [1371121951590] POST /system/console/bundles HTTP/1.1] servletengine I/O error in execution: {} java.io.IOException: Bundle-SymbolicName header missing, cannot install bundle

    at org.apache.felix.webconsole.internal.core.BundlesServlet.installBundle(BundlesServlet.jav a:1628)

    at org.apache.felix.webconsole.internal.core.BundlesServlet.installBundles(BundlesServlet.ja va:1573)

    at org.apache.felix.webconsole.internal.core.BundlesServlet.doPost(BundlesServlet.java:310)

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

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

    at org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:493)

    at org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:418)

    at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:9 6)

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

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

    at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:49)

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

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

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

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

    at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

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

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

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

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

    at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

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

    at org.apache.felix.http.sslfilter.internal.SslFilter.doFilter(SslFilter.java:55)

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

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

    at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

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

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

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

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

    at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

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

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

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

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

    at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

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

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

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

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

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

    at com.day.j2ee.servletengine.ServletRuntimeEnvironment.service(ServletRuntimeEnvironment.ja va:250)

    at com.day.j2ee.servletengine.RequestDispatcherImpl.doFilter(RequestDispatcherImpl.java:321)

    at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:340)

    at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:383)

    at com.day.j2ee.servletengine.ServletHandlerImpl.process(ServletHandlerImpl.java:360)

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

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

Writing and reading value in widget to parent node

$
0
0

Hello,

 

CQ 5.6.1

 

Using the Page's dialog, I have a property being written to and read from <current page>/jcr:content@isMenuRoot.

 

I'd like to have another statically defined component on the page read and write to the same property on the page node.  It's easy enough to get the value written.  In this component's dialog, I set the name of the widget to "../isMenuRoot".  When I check the box and click OK, the expected attribute is written to the jcr:content node.  When I leave the box unchecked, the @isMenuRoot is removed.

 

However, the saved value isn't being loaded when the dialog is invoked.  Hooking into the loadcontent event for the dialog simply doesn't show it in the record.  I've tried this with various xtypes and it makes no difference.

 

I could have sworn I'd written and read values to parent nodes in older versions of CQ, but perhaps I'm remembering wrong.

 

Does anyone know if I can load values written to a parent node from a component's dialog?

 

Thanks!

Garth

How to create a query in for lastModifiedDate in Query Builder

$
0
0

I want to create a query to get the Dam Assets those with their lastModifiedDate that match the current date.

 

The usual lastmodified date is of the format yyyy-MM-ddThh:mm:ss etc.

 

With the current date we only have "yyyy-MM-dd"

 

I tried something like this ,

 

            map.put("path","/content/dam");

            map.put("type","dam:Asset");

            map.put("property","cq:lastModified");

            map.put("property.value","yyyy-MM-dd*"); / map.put("property.value","yyyy-MM-dd~"); / map.put("property.value","yyyy-MM-dd");

 

But i was not able to get the desired results.

 

Please suggest if there is a a way to do it if you have already tried anything similar .

 

Thanks in  advance

 

Harish

Using Jackrabbit User Manager programmatically for changing passwords and getting user data.

$
0
0

I am trying to do a change password request using the Jackrabbit User Manager with the REST URL /system/userManager/user/<username>.changePassword.json.  The problem I am having is that this request requires an oldPwd form param in the request.  The issue is that when I am trying to do this request it is in response to the user selecting "Forgot Password" so our logic has created a random password which we then email to the user so they can use that the next time they want to login.  We need to change that user's password in CRX so they can log in using it next time.  Since they haven't logged in there is no session, NOT the problem.  THE PROBLEMS, I don't know 1. how to use the userManager to get that user's old password, since /system/userManager/user/<username>.json doesn't appear to return the password and 2. if I could get the old password it most certainly will be encoded, some how, so I will need some decoding algorithm to pass it through in order to get the actual password to set as the oldPwd form param to my change password request.  Please let me know if you require any further explanation.  Any assistance would be greatly appreciated.  Thank you, in advance, for your assistance.

 

Sincerely,

Mike Sucena

msucena@maned.com

Significance of .content.xml

$
0
0

In cq5 developement, I have seen .content.xml. I donot see it in eclipse though its in my workspace and is visible if I directly browse my workspace through windows explorer.

 

1. What is significane of .content.xml? Where and why it is created or used?

 

2. Which settings need to be enabled in eclipse so that I can see that file in eclipse also?

Configuring DAM and Dispatcher - shorten URL

$
0
0

Hello all,

 

I'm trying to configure CQ DAM with Apache 2.2 and Dispatcher, to serve only assets.

 

I've successfully configured them, as when I upload a new asset, it automatically replicates in Publish instance and perfom the cache. Thus I can access the new image via:

 

Author: localhost:4502/content/dam/NEWFOLDER/image.jpg

Publish: localhost:4503/content/dam/NEWFOLDER/image.jpg

Dispatcher: localhost/content/dam/NEWFOLDER/image.jpg

 

However I would like to use a shorten URL to this image, for example:

localhost/NEWFOLDER/image.jpg

 

In other words, remove the /content/dam piece from the request URL.

 

I've checked the following threads:

http://www.wemblog.com/2012/07/how-to-use-dispatcher-with-mapped.html

http://helpx.adobe.com/cq/kb/HowToFlushMappedContent.html

 

But as far as I understand I don't need to configure the /etc/map in the Publish instance, as I'm only using DAM and configuring mod_rewrite at Apache server would be enough.

 

So, in the httpd.conf I wrote the following rule:

RewriteEngine On

RewriteRule ^/(.*)$ /content/dam/$1 [PT]

 

And Dispatcher.any is the default one.

 

The point is, when I disable the Dispatcher, I'm able to type the shorten URL and get the image. But this is not happening otherwise, when the Dispatcher is on I get the Not Found error: /image.jpg as it's looking for the image at root directory.

 

So, any clues on how I can achieve this?

 

Thanks in advance!

Manually Clean Dispatcher Cache

$
0
0

We have a requirement that we update some details of a page from a feed after certain interval of time and then we need to clean the dispatcher cache.

 

We have done few sling mapping also

e.g.

for page  /content/mysite/page1.html we have defined a sling mapping and whenever a request comes for http://domainname/mysite/page1.html it serves /content/mysite/page1.html

 

Cache generated : /mysite/page1.html in docroot folder

 

Once the page data is updated by the feed, we need to clean the cache.

 

I am trying to manually clean the cache by making following  POST request at http://domainname/dispatcher/invalidate.cache with parameters

CQ-Action: Activate
CQ-Handle:
/mysite

Content-Length: 0


It returns 201 with following but the cache is not deleted.  Am I doing something wrong ?

 

 

Any help will be much appreciated.

 

Regards,

-Yogesh


How to write a subquery using JCR SQL2 in CQ5(without ModeShape)

$
0
0

Hi,

 

We have a parent node with several levels of child nodes. We are trying to do a node level search i.e., if the search key is present in any of the properties in the parent node or the child nodes, the query must return the parent node alone(NOT the child nodes).

 

The below JCR SQL2 query will do the above said functionality,

SELECT * FROM [nt:base] AS s WHERE ISDESCENDANTNODE([/DB/ParentNode]) and CONTAINS(s.*, 'searchKey')

 

The constraint is that we have other filters, which when applied, will give only the nodes which has the required property. For example

SELECT * FROM [nt:base] AS s WHERE ISDESCENDANTNODE([/DB/ParentNode]) and CONTAINS(s.*, 'searchKey') and column1 = 'filter1'

 

where column1 is present only in the ParentNode and not the child nodes.

 

Hence the above query will limit the search to the ParentNode only and it will not search the child nodes. Also when you use the first query you are getting child node path but my requirement is to get all the Parent Node paths.

 

And so I decided to write a sub-query like the one shown below,

SELECT * FROM [nt:base] as a

WHERE PATH() IN (

   SELECT * FROM [nt:base] AS s WHERE ISDESCENDANTNODE([/DB/ParentNode]) and CONTAINS(s.*, 'searchKey')

)

and column1 = 'filter1'

 

But the above query is not working in CRXDE Lite. When i searched the web it is said that sub-query and join conditions are possible only using ModeShape.

 

I have no idea what ModeShape is. If any one has any idea on writing a sub query using JCR SQL2 in CQ5 without ModeShape, please help. Thanks in advance.

content-package-maven-plugin, META-INF/vault/filter.xml parse error

$
0
0

I´m trying to use content-package-maven-plugin to build a package with filtered contents. My META-INF/vault/filter.xml looks like below (as the example at http://dev.day.com/docs/en/cq/current/core/how_to/how_to_use_the_vlttool/vlt-mavenplugin.h tml#package > "Using filters" suggests):

 

<?xml version="1.0" encoding="UTF-8"?>

<workspaceFilter version="1.0">

    <filter>

        <root>/apps/mysite</root>

        <includes>

            <include>/apps/mysite/components/page/*</include>

        </includes>

    </filter>

</workspaceFilter>

 

My plugin configuration:

<plugin>

          <groupId>com.day.jcr.vault</groupId>

          <artifactId>content-package-maven-plugin</artifactId>

          <version>0.0.19</version>

          <extensions>true</extensions>

</plugin>

 

I also use <packaging>content-package</packaging>

 

When running mvn package I get the following error:

 

 

[ERROR] Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:0.0.19:package (default-package) on project mysite-view: java.io.IOException: either <include> or <exclude> expected. -> [Help 1]

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:0.0.19:package (default-package) on project mysite-view: java.io.IOException: either <include> or <exclude> expected.

        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)

        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBu ilder.java:84)

        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBu ilder.java:59)

        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter .java:183)

        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)

        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)

        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)

        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)

        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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)

        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)

        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)

        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

Caused by: org.apache.maven.plugin.MojoExecutionException: java.io.IOException: either <include> or <exclude> expected.

        at com.day.jcr.vault.maven.pack.VaultMojo.execute(VaultMojo.java:328)

        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.j ava:101)

        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)

        ... 19 more

Caused by: java.io.IOException: either <include> or <exclude> expected.

        at com.day.jcr.vault.maven.pack.impl.DefaultWorkspaceFilter.readDef(DefaultWorkspaceFilter.j ava:237)

        at com.day.jcr.vault.maven.pack.impl.DefaultWorkspaceFilter.read(DefaultWorkspaceFilter.java :213)

        at com.day.jcr.vault.maven.pack.impl.DefaultWorkspaceFilter.load(DefaultWorkspaceFilter.java :190)

        at com.day.jcr.vault.maven.pack.impl.DefaultWorkspaceFilter.load(DefaultWorkspaceFilter.java :142)

        at com.day.jcr.vault.maven.pack.VaultMojo.execute(VaultMojo.java:266)

        ... 21 more

 

 

Has anyone encountered this error before or have any hints on what the problem could be?

 

Thanks

Joakim

Radio Buttons

$
0
0

How to create a group of radio buttons in cq5.5

LDAP set up with CQ 5.5

Full text PDF indexing for website search?

$
0
0

Hi.  We run a couple of websites on CQ5.5 and are trying to get the PDF files we refer to in the DAM to show in search results that users conduct on our sites.  I've seen a number of references that imply that full text searching of PDFs is possible.  For example:

 

http://dev.day.com/docs/en/crx/current/developing/searching_in_crx.html#Full-Text%20Extrac tion

 

But thus far I've not been able to figure out what I must do to get it working.  I had expected that if this were possible to do, then it would have worked with the Geometrixx demo site.  It did not.

 

Am I chasing my tail here, or is there actually a way to get this done?  If it's possible, links to documentation on how to configure indexing_config.xml and any other required files would be greatly appreciated.

 

Thanks.

CRXDE Unable to connect to repository

$
0
0

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

Replicating

$
0
0

do you know why i got "no such agent: publish" when i click on view log after I do replication?

Agent is not active. Replicating to http://localhost:4503/bin/receive

Queue is not active

 

Thanks,

 

Jenny


Why is a workflow "stale"?

$
0
0

I'm writing a workflow to send an email each time an user is created and I'm calling this workflow from a POJO. Everything looks good, no errors, in debug mode in my POJO I see that the workflow starts, there are no messages in my inbox. This is what my log says:

day.cq.workflow.impl.CQWorkflowSession Workflow instance started with model: /etc/workflow/models/send-user-email/jcr:content/model and  ID: /etc/workflow/instances/2013-04-04/model_17333941154731 for payload: /home/users/group01/xx@yy.com

 

My model only includes a workflow process step to send the email. Here comes the problem... it's not sending the email, I'm debuging the workflow and is not passing through the step that I wrote. In the workflow console the workflow the instance says "STALE". What causes the workflow going to stale state?

 

Thanks!

Configuring Anonymous access for Sling Servlet

$
0
0

Hello Team,


My use case scenario is Apache webserver directs all the requests to the Sling servlet and Sling servlet would forward the calls to CQ or our internal webapp depending upon the url. I need the anonymous access for accessing my Sling Servlet.

 

When I call my Sling Servlet from the Apache webserver, it is redirected to libs/cq/core/content/login.html. When I hit in the CQ server direcly for that servlet thats not redirecting to the login page and directly the servlet is served. Only when apache webserver dispatches the request, its being redirected to /libs/cq/core/content/login.html.

 

[rid#18017320/initial] (4) RewriteCond: input='/mcdonalds' pattern='^/(.*)$' => matched

[rid#18017320/initial] (2) rewrite '/mcdonalds' -> '/apps/myvanity/forwardvanity?category=mcdonalds'

[rid#18017320/initial] (3) split uri=/apps/myvanity/forwardvanity?category=mcdonalds -> uri=/apps/myvanity/forwardvanity, args=category=mcdonalds

[rid#18017320/initial] (2) local path result: /apps/myvanity/forwardvanity

[rid#18017320/initial] (2) prefixed with document_root to /u/apache/htdocs/apps/myvanity/forwardvanity

[rid#18017320/initial] (1) go-ahead with /u/apache/htdocs/apps/myvanity/forwardvanity [OK]

[rid#180092b0/initial] (2) init rewrite engine with requested uri /libs/cq/core/content/login.html

 

When I look into the configuration in the Apache Sling Authentication Service, I could see the AllowAnonymouAccess option is being checked. Also I tried to configure the AuthenticationRequirements property to

-/apps/myvanity/forwardvanity to allow this url anonymous access explicitly. After the configuration I could even see that my entry got added in the Authenticator tab.

 

Authentication Requirement Configuration
PathAuthentication RequiredDefining Service (Description or ID)
/system/sling/logoutNoApache Sling Request Authenticator
/system/sling/loginNoApache Sling Request Authenticator
/system/sling/cqform/defaultloginNoDefault Login Form for CQ Login Selector Authentication Handler
/loginNoDay Communique LoginServlet
/libs/cq/core/content/loginNoDay CQ Login Selector Authentication Handler
/bin/loginNoDay Communique LoginServlet
/apps/myvanity/forwardvanityNoApache Sling Request Authenticator
/apps/myvanity/forwardvanityNoApache Sling Request Authenticator
/NoApache Sling Request Authenticator

 

Could some one please suggest how to allow the anonymous access for that servlet such that my apache webserver would not redirect to login page. Any suggestions/pointers would be appreciated.

 

Best Regards,

Durga

CQ 5.5 running out of space in an instance

$
0
0

In cq5.5 Author and publish instances are day by day growing larger , because of this am running out of space?Can you please suggest me a solution??

How to custom the ok button in the edit dialog

$
0
0

Hi Team:

I want to log down the user's action when user after edit the attribute in the edit dialog,how to do that?

any suggestions/pointers to solve this problem would be appreciable.

How to create pagination in CQ5

$
0
0

Hello,

 

Sub- Component for CQ5 pagination

 

I have a static webpage and having static pagination and I want to create pagination in CQ5.

Ex. page having 5-5 product on each page and each product is authorable by author and same component I want to develop in CQ5.

Please let me know is there any component available in CQ5 or how we can do this in CQ5

 

pag.JPG

 

 

Regards,

Viewing all 12476 articles
Browse latest View live


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