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

Help! CQ 5.6 as a Windows Service LDAP config

$
0
0

Hi have this strange problem:

 

If I start CQ on the command line using the usual stuff (I'm on Java 1.7)

 

"C:\Windows\System32\java.exe" -Xmx1024m -XX:MaxPermSize=256M -Djava.security.auth.login.config=crx-quickstart\conf\ldap_login.conf -jar cq-author-p4502.jar -use-control-port -p 4502 -nobrowser -nofork

 

It's picking up my LDAP configuration correctly.  But if I'm using the windows service, I was never able to make it pick up my configuration. 

 

LOG: 

 

26.06.2013 10:29:58.328 *ERROR* [FelixStartLevel] org.apache.jackrabbit.core.DefaultSecurityManager Neither JAAS nor RepositoryConfig contained a valid configuration for com.day.crx

26.06.2013 10:29:58.328 *ERROR* [FelixStartLevel] org.apache.jackrabbit.core.RepositoryImpl failed to start Repository: Neither JAAS nor RepositoryConfig contained a valid configuration for com.day.crx javax.jcr.RepositoryException: Neither JAAS nor RepositoryConfig contained a valid configuration for com.day.crx

 

Very frustrating.  Can somebody help me figure this out please? It's important.

 

Here is my start-service.bat file configuration section:

 

::@echo off

setlocal

 

:: This script configures the windows service start information for this server.

::

:: The following variables may be used to override the defaults.

 

::* TCP port used for stop and status scripts

set CQ_PORT=4502

 

::* interface that this server should listen to (ip or hostname)

:: set CQ_HOST=

 

::* 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

:: 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=

 

::* 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=crx-quickstart/conf/ldap_login.conf

 

::* default JVM options

set CQ_JVM_OPTS=-Xmx1024m -XX:MaxPermSize=256M

 

::* Uncomment, or redefine one of the follwoing JAVA_HOME if you wish a

::  different than your default one

::

::  set JAVA_HOME=c:\java\jdk1.4.2_08


ADOBE AEM-Ford -http://hostname:9692/content/geometrixx/en/company.html

$
0
0

Hi,

 

I am from Ford.We are using ADOBE AEM.

 

Have installed the adobe aem and changed the  jar as  cq5-author-p9692.jar.

 

This is in the Linux environment.

 

Started the adobe aem using the quickstart.sh and it started.

I am able to access the below url

 

http://hostname:9692/system/console/vmstat?

 

But the below url is not accessible .Should any configuration change be made for this

 

http://hostname:9692/content/geometrixx/en/company.html

 

 

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

in the error.log :

 

03.07.2013 04:22:57.430 *ERROR* [19.237.168.106 [1372839777429] GET /favicon.ico HTTP/1.1] org.apache.sling.engine.impl.SlingHttpContext handleSecurity: AuthenticationSupport service missing. Cannot authenticate request.

03.07.2013 04:22:57.431 *ERROR* [19.237.168.106 [1372839777429] GET /favicon.ico HTTP/1.1] org.apache.sling.engine.impl.SlingHttpContext handleSecurity: Possible reason is missing Repository service. Check AuthenticationSupport dependencies.

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

 

Please let me know where I hane made the mistake  or modifications required in the any of the configurations file.

 

Regards,

Sakthi

How does SSO work in CQ

$
0
0

I'm working with CQ 5.4 and have to investigate how SSO would work. 

 

We are planning on using CQ as our means of supplying clients with web functionality within their websites.  I see two scenarios, using our own page(s) (on a 'cq website we setup for each client) to which a client site user navigates, or a portlet within their site's page(s).  So far, I have been told by our team that clients' user's information has to be stored in a user profile within the CRX repo so that the personalization and analytics can be done.  I believe we plan on using one CQ instance for several clients, each of which could have thousands and thousands of users.  We'd like to have components that call backend services from scripts that can be used by any of the clients' users provided they have permissions (users of a particular type from client1 and other users from client2 have access to a script&OSGiComponent, but others do not).  I suppose this last bit could be done with ACLs, users and groups.

 

I understand the general idea of SSO - only having to sign on once.  But I don't have a clear understanding of the mechanics, in particular, how it would work with the requirements I've just specified.  It seems from the documenation http://dev.day.com/docs/en/cq/current/deploying/configuring_cq.html#Single Sign On, that enabling SSO means that no authentication is ever done on CQ's side:

"Single Sign On (SSO) allows a user to access all (or at least multiple) systems based on trusted authentication credentials (e.g. username and password) that are only entered once. This authentication is performed by a separate system, so CQ is no longer directly responsible. The third party system provides CQ with the (authenticated) user credentials; CQ trusts these credentials and checks what they are authorized to do (i.e. which resources the user is allowed to access)."

 

SSOQuestions.png

Can someone give an example of the HTTP traffic that would be sent in a SSO CQ configuration (regular web site as well as a portlet example)? 

How does CQ know who the user is? 

Does CQ just take it as gospel that the user credential (eg username) is really the person that's contacting CQ? 

Does there have to be a corresponding user with the same username defined in CQ as that of the credential?  What if there are naming conflicts?  (john from client1 and john from client2) - how can I have both john's represented in CQ? 

Each 'website' in CQ has a different URL, right?, so would I have to configure something with each URL for a different 'authenticator'? ie. do I fill in these different URLs in a configuration screen?

 

 

What's the 'BASIC' and 'AsIs' method?  It says I can use a RE - what's an example where I would use this?

What do the credentials look like (AsIs and Basic)?

Is the credential a username, or a token of some kind? 

Is it always passed in every/each HTTP request the user makes to our website/portlet? 

Is the credential ever validated by CQ somehow?

 

 

How does all this fit into LDAP? 

Does CQ have to be able to access any client systems like a client LDAP server? 

Can I enable SSO for some clients/sites/portlets but not others in the same CQ instance? 

Can I enable SSO to use LDAP for some clients and not for others in the same CQ instance?

 

How do we make sure a user from client1 accessing a shared component (eg. script and/or OSGi bundle service) can't pretend to be a user2 or a user from client2?

If I want to reuse code by reusing a component, and both user1 and user2 (from the same or different clients) can therefor both access the reused (hence shared) component (eg. an account balance service - script or OSGi service), how do I make sure that I can share the component code but not allow user1 to ask for the balance for user2's account?

 

A few detailed working examples would help a lot I think.

 

TVMIA,

 

--Bill

Where is Content Explorer in CQ 5.5?

$
0
0

Hello,

 

I have tried to use Content Explorer with CQ 5.5. Going to the url, <host>:<port>/crx/, no longer shows the CRX console. What is the new URL for the Content Explorer and the Content Loader?

 

Xavi

Multiple smartimage widgets in a component dialog

$
0
0

Is there a way to have multiple smartimage widgets in a single dialog? Specifically I'm struggling with the requestSuffix parameter. Most of the other ones I can adapt to get the second widget to save its info to a different location from the first, but I can't see how to do that with requestSuffix. If the values are the same for both widgets, then once an image is selected, I see the same image in both tabs of the dialog. If I change it to something like /image2.img.png, it's no longer hitting the component as the resource. If I change it to .image2.img.png, the script handling this selector appears to break. I might be able to change that script, but that doesn't seem like it'll be a very flexible approach.

 

Any other options? I'm in CQ 5.4 if that matters.

CQ 5.4 - How to create a column layout?

$
0
0

Greetings everyone;

 

 

  I'm trying to create a website with some components that I get from a imported site... So far, so good, but when I try to drop a "column" component in my website from the components little window (even when I select the 2 columns or the 3 columns), the is no one column layout and the "columns" doesn't exist

 

  In Geometrixx samples, the columns got layouts like "2 columns, 50 x 50 x" and others, but none is listed on my Column Layout dialog (editing the component). I try to find the source-code of the component, but without success. Can someone tell me how to get real "columns" structures on my site?

 

  Some images:

 

 

    No Columns 1.jpg

 

     No columns 2.jpg

Facing problem in Rich text component

$
0
0

Id attribute of Div tag is stripped in Rich text component. How do we handled this. Any help regarding this appreciated?

j_security_check was not found on this server

$
0
0

Hello,

 

New to developing on CQ and I created a login page that works on author but we pushed to publish I receive the following error:  The requested URL /new_hire_login/j_security_check/ was not found on this server.

 

Any help would be appreciated.

 

Thanks

 

Tim Tonsel


facing org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException

$
0
0

Hi,

I am facing below issue in Performance testing does anyone guide why this error is coming. Individually these pages are running fine. Attached logs for your reference.

 

 

Thank ,

Yogesh

 

 

17.01.2013 05:10:57.232 *ERROR* [135.215.244.155 [1358421056013] GET /content/Intranet/microsite/innovation/right.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException org.apache.sling.api.SlingException:

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

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

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

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

        at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java :173)

        at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.j ava:84)

        at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngin eFactory.java:388)

        at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:358)

        at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:170)

        at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:4 56)

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

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

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

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

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

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

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

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

        at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProce ssorImpl.java:280)

        at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChai n.java:49)

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

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

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

        at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgre ssTrackerLogFilter.java:59)

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

        at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.j ava:220)

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

        at com.day.cq.theme.impl.ThemeResolverFilter.doFilter(ThemeResolverFilter.java:67)

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

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

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

        at org.apache.sling.portal.container.internal.request.PortalFilter.doFilter(PortalFilter.jav a:76)

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

        at org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter.doFilter(BackgroundServle tStarterFilter.java:135)

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

        at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processRequest(SlingRequestProcess orImpl.java:171)

        at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:199)

        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.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:249)

        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:802)

        at org.apache.felix.http.proxy.ProxyServlet.service(ProxyServlet.java:60)

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

        at org.apache.sling.launchpad.base.webapp.SlingServletDelegate.service(SlingServletDelegate. java:277)

        at org.apache.sling.launchpad.webapp.SlingServlet.service(SlingServlet.java:148)

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

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

        at com.day.j2ee.servletengine.FilterChainImpl.doFilter(FilterChainImpl.java:74)

        at com.day.crx.launchpad.filters.CRXLaunchpadLicenseFilter.doFilter(CRXLaunchpadLicenseFilte r.java:96)

        at com.day.j2ee.servletengine.FilterChainImpl.doFilter(FilterChainImpl.java:72)

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

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

        at com.day.j2ee.servletengine.ServletHandlerImpl.execute(ServletHandlerImpl.java:315)

        at com.day.j2ee.servletengine.DefaultThreadPool$DequeueThread.run(DefaultThreadPool.java:134 )

Caused by: org.apache.sling.api.SlingException:

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

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

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

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

        at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java :173)

        at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.j ava:84)

        at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngin eFactory.java:388)

        at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:358)

        at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:170)

        at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:4 56)

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

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

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

        at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilterWithErrorHandling(WCMDebugFilter.java:182 )

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

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

        at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:219)

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

        at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProce ssorImpl.java:280)

        at org.apache.sling.engine.impl.SlingRequestProcessorImpl.dispatchRequest(SlingRequestProces sorImpl.java:320)

        at org.apache.sling.engine.impl.request.SlingRequestDispatcher.dispatch(SlingRequestDispatch er.java:208)

        at org.apache.sling.engine.impl.request.SlingRequestDispatcher.include(SlingRequestDispatche r.java:102)

        at com.day.cq.wcm.core.impl.WCMComponentFilter$ForwardRequestDispatcher.include(WCMComponent Filter.java:381)

        at org.apache.jsp.libs.foundation.components.primary.cq.Page.Page_jsp._jspService(Page_jsp.j ava:106)

        at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

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

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

        ... 66 more

Caused by: java.lang.NullPointerException

        at com.day.cq.wcm.foundation.ELEvaluator.evaluate(ELEvaluator.java:53)

        at org.apache.jsp.libs.foundation.components.page.page_jsp._jspService(page_jsp.java:126)

        at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

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

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

        ... 90 more

CQ5.4/5.5 - integration with SiteMinder/external IdProvider/LDAP

$
0
0

Hi

I am looking for an approach on how to design CQ integration using SSO with below options.

 

<<This is specifically for CQ 5.4/5.5 as 5.6 provides SAML integration OOB>>

 

1. LDAP with SSO in harmony - User getting created in CRX once LDAP authenticates it. This can use OOB LDAP Module

2. Using SAML -  with external Identity Provider to authenticate user. This requires custom LoginModule.  (Integration using Open Source or  SiteMinder or

                           providers like Gigya or Cloud-based IdentityProvider)

 

Also, is it possible to use LDAP LoginModule(OOB) and Custom JAAS LoginModule on single repository.xml? Do we foresee any issues?

 

Appreciate any inputs or experience with similar implementation

Thanks!

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

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

sling:ResourceSuperType foundation/components/page

$
0
0

Hi Everybody,

 

I'm new to CQ and really enjoying it.  I have a question if someone can please help?

 

Can anyone help me understand how sling resolves a page component that has a resourceSuperType of  foundation/components/page ?  I created a page structure similar to the geometrixx pages, and have the following page component.

 

components/page/contentpage

body.jsp

content.jsp

footer.jsp

header.jsp

 

Therefore I discovered that I can override the body.jsp as this is the page selected by sling (I originally had contentpage.jsp).  Also using this structure I understand that if I have another template and page component I just extend the above "contentpage" component and override "content.jsp" keeping my web site structure (Nice!).

 

But what I don't understand is how how sling resolves to the body.jsp as the preferred script in the first place? Can anyone help me understand?

 

Thanks

Darren

Change the URL path for CQ?

$
0
0

How do you change the base URL so that /content/geometrixx/en does not show up in the URL?  If www.geometrixx.com was the URL how do you make it so that /conent/geometrixx/en does not show up in the URL for the homepage?

i18n text in Geometrixx demo site always display english version

$
0
0

Hi,

 

In Geometrixx footer (apps/geometrixx/components/page/footer.jsp), some text is displayed using i18n.get(). Like for example:

 

<p><%= i18n.get("We would like to keep in touch with you. Sign up here to receive our monthly newsletter on the latest products and services from Geometrixx.") %></p>

 

When I display a translated page, for example in french, I expect to get the french version of the i18n text. However, whatever the language, the english text is still being displayed.

 

I tried different texts, make sure the text exists and is correctly translated with the CQ Translator tool, activated and re-activated the page,... tried with other pages, ... always the same result, I'm unable to get the translated version.

 

What am I doing wrong? or missing?

 

Any help greatly appreciated. Thanks!


This node already exists: /etc/packages

$
0
0

Hello all!

 

I've been trying to upload packages into CQ5 via Java, based on the documented curl commands at http://dev.day.com/docs/en/crx/current/how_to/package_manager.html, but I've hit a strange issue when trying to upload packages to publish instances.  The reason I'm uploading to the publisher directly is because the package only contains ACL nodes, and these do not seem to replicate from author to publisher (from everything that I've read and tried).

 

I'm using the older /crx/packmgr/service.jsp method in my Java - I know that this is outdated, but it gives me a better debug output of what goes wrong than the /crx/packmgr/service/.json/?cmd=upload method.  I get the same failures with the newer json methos as well.

 

When I run my code specifying "author", I get the following response, and the package has uploaded successfully:

 

<crx version="2.3.15" user="admin" workspace="crx.default">

  <request>

    <param name="file" value="author_package.zip"/>

    <param name="name" value="author_packagename"/>

  </request>

  <response>

    <data>

      <package>

        <group></group>

        <name>author_packagename</name>

        <version>0.01</version>

        <downloadName>author_package.zip</downloadName>

        <size>1754056</size>

        <created></created>

        <createdBy>admin</createdBy>

        <lastModified></lastModified>

        <lastModifiedBy>admin</lastModifiedBy>

        <lastUnpacked></lastUnpacked>

        <lastUnpackedBy>null</lastUnpackedBy>

      </package>

    </data>

    <status code="200">ok</status>

  </response>

</crx>

 

 

If I run the following curl command, I get the exact same response as my Java, so I'm happy that the Java is correct and working:

 

curl -u admin:admin -F file=@author_package.zip -F name=author_packagename http://127.0.0.1:4504/crx/packmgr/service.jsp

 

 

 

If I run my Java code specifying "publisher", I get the following response, and the package does not upload:

 

<crx version="2.3.15" user="anonymous" workspace="crx.default">

  <request>

    <param name="file" value="publisher_package.zip"/>

    <param name="name" value="publisher_packagename"/>

  </request>

  <response>

    <status code="500">javax.jcr.ItemExistsException: This node already exists: /etc/packages</status>

  </response>

</crx>

 

 

Trying the equivelant curl command, I get the following response, and the package has uploaded:

 

curl -u admin:admin -F file=@publisher_package.zip -F name=publisher_packagename http://127.0.0.1:4505/crx/packmgr/service.jsp

 

<crx version="2.3.15" user="admin" workspace="crx.default">

  <request>

    <param name="file" value="publisher_package.zip"/>

    <param name="name" value="publisher_packagename"/>

  </request>

  <response>

    <data>

      <package>

        <group></group>

        <name>publisher_packagename</name>

        <version>0.99</version>

        <downloadName>publisher_package.zip</downloadName>

        <size>12890709</size>

        <created></created>

        <createdBy>null</createdBy>

        <lastModified></lastModified>

        <lastModifiedBy>null</lastModifiedBy>

        <lastUnpacked></lastUnpacked>

        <lastUnpackedBy>null</lastUnpackedBy>

      </package>

    </data>

    <status code="200">ok</status>

  </response>

</crx>

 

 

If I take away the -u parameter of the successful curl command, I get the following response, which is the same as my "publisher" Java response:

 

curl -F file=@publisher_package.zip -F name=publisher_packagename http://127.0.0.1:4505/crx/packmgr/service.jsp

 

<crx version="2.3.15" user="anonymous" workspace="crx.default">

  <request>

    <param name="file" value="publisher_package.zip"/>

    <param name="name" value="publisher_packagename"/>

  </request>

  <response>

    <status code="500">javax.jcr.ItemExistsException: This node already exists: /etc/packages</status>

  </response>

</crx>

 

So....

 

Does anyone know if a publish instance deals with authentication in a different way from an author instance?  The Java code does not change, but the results are different depending on the type of server I'm trying to upload to.  The fact that the Java "publish" upload reports back as being an anonymous user (which I replicated with the last curl call), but uses the same code as the successful (and authorised) "author" upload besides the package details and port, leads me to believe that it's the CQ5 server that is turning this into an anonymous call.

 

Anyone have any thoughts on what might be happening here, and the best way to solve it?

 

Cheers,

K

How to add rtePlugin using CQ.Util.build

$
0
0

Hi,

I am trying to add the spellcheck and image plugin of the rich text while using CQ.Util.Build

 

CQ.Util.build({

                "xtype":"panel",

                "border":false,

                "cls":"entry-fields-wrap",

                "layout":"form",

                "defaults": {

                    "hideLabel":true

                },

                "items":[{ "xtype":"richtext",

                    "id":"<%= id %>_text",

                    "name":"text",

                    "rtePlugins":[{"spellcheck":{"features":"*"}},{"image":{"features":"*"}}],

                    "width":"90%"

                },{

                    "xtype":"button",

                    "text":"Submit Entry",

                    "handler": function() {

                        CQ.collab.blog.Util.validateEntryForm("<%= id %>");

                    }

                }],

                "renderTo":"<%= id %>_fields_wrap"

            });

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,

CQ Pages are not displayed?

$
0
0

hi..i am getting the welcome page but when i click on website to see the siteadmin page, it remain white blank and pages are not displayed.Please help me regarding this.

can any body tell me how to map the jsp page with sling servlet

$
0
0

here is my content.jsp

 

<%@include file="/libs/foundation/global.jsp"%>

<cq:include script="/libs/wcm/core/components/init/init.jsp"/>

<div>

<h3>Login</h3>

<form name="frm" method="doGet" action="/LoginServlet">

<cq:include path="texot" resourceType="sapphirenow_web/components/foundation/textlog"/>

<cq:include path="text1" resourceType="sapphirenow_web/components/foundation/textlog"/>

<cq:include path="text3" resourceType="sapphirenow_web/components/foundation/submit"/>

    </form>

</div>

 

 

here is my LoginServlet.java

 

 

package com.sapphirenow.web;

 

import java.io.*;

import java.util.*;

import javax.servlet.*;

 

import javax.servlet.http.*;

import java.io.IOException;

import javax.servlet.ServletException;

import org.apache.sling.api.SlingHttpServletRequest;

import org.apache.sling.api.SlingHttpServletResponse;

import org.apache.sling.api.servlets.SlingAllMethodsServlet;

 

 

 

/**

* @scr.component metatype="true"

* @scr.service interface="javax.servlet.Servlet"

* @scr.property name="sling.servlet.paths"  value="/bin/mn"

* @scr.property name="sling.servlet.methods" values="GET"

*/           

 

 

public class LoginServlet extends SlingAllMethodsServlet

{

  public void doGet(SlingHttpServletRequest request,SlingHttpServletResponse response) throws ServletException,IOException

{

 

          response.setContentType("text/html");

          PrintWriter out = response.getWriter();

          String name = request.getParameter("Username");

          String pass = request.getParameter("Password");

          out.println("<html>");

          out.println("<body>");

          out.println("Thanks  Mr." + "  " + name + "  " + "for visiting roseindia<br>" );

          out.println("Now you can see your password : " + "  " + pass + "<br>");

          out.println("</body></html>");

         

  }

}

   its showing "The requested URL /LoginServlet was not found on this server."  how to solve this pls help me

Viewing all 12476 articles
Browse latest View live


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