since ‎04-07-2013
‎10-12-2019
Ojjis
Level 5
Re: Public server is required for deploying the site from author instance?
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
Ok, i hope this will clarify some things:Yes, a publish instance is required for the users to be able to access the content of you site without having to log in and not use the author interface. See this link for setting up the environments(http://dev.day.com/docs/en/cq/current/deploying/installing_cq.html#Installing Instances of Adobe Experience Manager)It's also strongly recommended (IMO) to set up a dispatcher in front of the publish instance as well to help with caching and security amongst ...

Views

878

Like

1

Replies

0
Re: Public server is required for deploying the site from author instance?
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
Hello there,I'm not quite sure what you mean but usually you can set it up like this:1) Author Instance (on e.g server1:4502)2) Publish Instance (on e.g. server2:4503)It's not a problem to have them on the same machine as well if you prefer that 🙂Then when you want to get the new content to the publish instance you simply replicate the parts that you want. This can be pages/images or packages with code. In the package manager it's possible to directly replicate packages while for pages and imag...

Views

876

Like

1

Replies

0
Re: Issue with creating Custom Tag Library in CQ5.5
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
Justin is correct there, just thought I would add some info to the problem. Since you are embedding the JSP API outside the OSGi environment (a different API) you will get that specific class loading error message. This is due to that the classes, variables etc. loaded from the non OSGi environment are loaded with a different class loader than those in the OSGi environment. This will create problems since it wont see them as the same class.I would strongly follow Justin's advice and remove all t...

Views

1.4K

Like

1

Replies

0
Re: Issue with creating Custom Tag Library in CQ5.5
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
Ah ok, sorry.Looks like you have and inconstisting URI for the t.ld file and the .jsp file. Shouldn't they both be 1.9 ?

Views

1.4K

Like

1

Replies

0
Re: Issue with creating Custom Tag Library in CQ5.5
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
Didn't we solve this before ? http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__dphb-i_am_tryingtocreat.html

Views

1.3K

Likes

0

Replies

0
Re: How to create a RESTful API using servlet in CQ?
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
Hi,have you looked at this example. It's about getting relational data but you could modify it to something else 🙂http://www.lucamasini.net/Home/sling-and-cq5/accessing-relational-data-as-sling-restful-urls/Johan

Views

1.1K

Like

1

Replies

0
Re: Regarding publish instance
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
Hi !To set up a publish instance on port 4503 of the desired host, you perform the same steps as in installing an author instance except that you create a directory named publish (instead of author) and you rename the quickstart.jar file ascq5-publish-p4503.jar. You can select any port number. So basically you need to add a "p" aswell to your filename in the publish folder 🙂Good luck

Views

941

Like

1

Replies

0
Re: Add additional header field
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
Hiya,i would try to set that in the dispatcher for the pdf extensions. Something in the lines of: //... other info Header set Content-Disposition "attachment" //... other info Hope that helps/Johan

Views

1.3K

Likes

0

Replies

0
Re: POST form error - javax.jcr.nodetype.ConstraintViolationException: no matching property definition found for
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
As the explanation says:If you are doing a post of data from a form, you need to specify a special servlet to handle this post if you, in that form, has values that are not the ones usually expected for the node which you do the post to. I guess that you are trying to post data to you own servlet ? In that case, follow Anwars tips above. If that's not the case, then you need to check what you are sending from the form and which resource the "post" will end up on.It would be great if you could pr...

Views

647

Likes

0

Replies

0
Re: JCR Doubt
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
One example of this could be the two node types "sling:Folder" and "sling:OrderedFolder". The later one will keep the order (and care about the order) of the nodes inside it. This can be visualised when you e.g drag the different pages of your side in a special way and they end up with a special order in your menu (eg. if you get all the pages under a certain node and add them to the menu list). Whilst if you would have all these pages in a normal folder or under a unstructured node, there is no...

Views

753

Like

1

Replies

0
Re: Client context isn't there + component doesn't show up when dragged and dropped
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
A great that you solved the first part.About the 2nd part, what does the error log say ?

Views

777

Likes

0

Replies

0
Re: Client context isn't there + component doesn't show up when dragged and dropped
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
Yes, there is a missing "include" or import of the necessary libraries and those js errors will surely prevent the client context from showing up. How did you go about copying the site, did you get all the clientlib configurations right? There might also be something else (js-related, maybe your own js files) that is causing those libraries to fail loading. Are there any traces in the actualy log files of the error or is those two lines in the web console the only thing you get ?Also a last ques...

Views

782

Likes

0

Replies

0
Re: Creating a Link Rewriter for Adobe Experience Manager
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
Well i didn't mean for you to change in the code. I meant that you should do that configuration in the OSGi console and then configure the ClientlibLinkRewriter there.It is though strange that it complains about that since static.1.0.0.css would be a valid sling selector for that file.But my suggestion would be to revert the code changes and then do the correct configuration in the OSGi console instead.

Views

9.3K

Likes

0

Replies

2
Re: Creating a Link Rewriter for Adobe Experience Manager
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
Did you add the correct urls for the designs in the geometrixx example.Find out where the geometrixx example you are looking at have it's design set and add that url to the config of the rewriter as shown in the example 🙂Good Luck/Johan

Views

9.3K

Likes

0

Replies

4
Re: Search screen with results
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
There's probably a huge number ways this can be achieved. Together with Scotts suggestion I'll throw some other ones in as well: You could either create you own search servlet which you post to from A and have it redirect the checked and validated values to B (guessing you want to have some validation/control over what is entered in the box and so on). This servlet would then maybe listen to a special resourceType or pathOr you could (provided that there would be small text fragments from the bo...

Views

680

Like

1

Replies

0
Re: Migration CQ 5.5 -> AEM 5.6.1: LESS compiler issue
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
Hello, I've experienced the same thing.One way of solving this is to have the separate less files include the variable file at the top like: ----------------- /* in mylessfile.less */ ------------------ @import "/etc/designs/my/site/clientlib/css/muVariables.less"; .myClass { .myVariable(none); }That will work 🙂

Views

761

Likes

0

Replies

0
Re: Redirect a Form to the same page from Servlet after submission
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
Hi, there are probably a few ways of doing this. Here's two:1) response.sendRedirect(req.getHeader("referer"));This makes use of the referer header which may or may not be there, so it's not reliable all the time. 2) Have the form pass the page it's on as an variable and then use that for redirecting.This of course could be a security risk so you need to check that the url submitted from the form to your servlet actually is residing on your page 🙂Good Luck/johan

Views

2.4K

Likes

0

Replies

0
Re: Displaying friendly errors in components
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
As Scott pointed out, it's possible to handle the errors straight away when they arise on the JSP page.There are a few examples here of how you could do it: http://www.tutorialspoint.com/jsp/jsp_exception_handling.htmIf would maybe make use of the try/catch blocks so you can handle the errors nicely on the actual component jsp and you could do create some nicehtml for the catch block so that the component would look good anyway. That might include a special DIV when an error arise but it would n...

Views

647

Likes

0

Replies

0
Re: Finding path references on a CQ page
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
Link checker service (which is a rewriter implementation) in part of the rewrite pipeline. The sling re-write pipeline is rewriting the output generated by the AEM pages.To read more about rewriting pipelines take a look at this document: http://sling.apache.org/site/output-rewriting-pipelines-orgapacheslingrewriter.htmlAFAIK, this implementation traverses the content that goes out on the pages and works its magic on links 🙂/Johan

Views

954

Like

1

Replies

0
Re: design_dialog
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
Hi Viren,Would it be enough if you create you own iparsys that holds the text you want, let say on the parent page. Then the child pages of this one will have the opportunity to inherit the same text as entered in the parent page. This component could then be automatically included in your template if you wish to have it on every page (do you don't forget some pages).Otherwise you could have a component where you ahve a design dialog. This design dialog could hold a value like, myText.In the des...

Views

766

Likes

0

Replies

0
Re: How to get page in cq5 on the basis of their creation date
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
Hi there Amit,You can sort the entries by their property: "jcr:created".The query for this (you can e.g. check in the debugger) would be: path=/content/mysite/ type=cq:Page orderby=@jcr:content/jcr:created orderby.sort=descOr if you want it in java code: Map map = new HashMap(); map.put("path", "/content/mysite"); map.put("type", "cq:Page"); map.put("orderby", "@jcr:content/jcr:created"); map.put("orderby.sort", "desc"); Query query = builder.createQuery(PredicateGroup.create(map), session); Sea...

Views

698

Like

1

Replies

0
Re: Creating multidomain CQ mapping
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
This is how it could be done:On the dispatcher server, in the vhost you'll have to have this://........... in the VHOST file RewriteRule ^/$ /content/mysite/en/start.html [PT,L] RewriteCond %{REQUEST_URI} !^/apps RewriteCond %{REQUEST_URI} !^/content RewriteCond %{REQUEST_URI} !^/etc RewriteCond %{REQUEST_URI} !^/home RewriteCond %{REQUEST_URI} !^/libs RewriteCond %{REQUEST_URI} !^/tmp RewriteCond %{REQUEST_URI} !^/var RewriteRule ^/(.*)$ /content/mysite/en/$1 [PT,L] //.....And on the publisher ...

Views

948

Like

1

Replies

0
Re: JcrResourceResolverImpl in Adobe CQ 5.4. Url mappings problem
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
The pattern seems to be wrong, have you tried with "/content/brand/:/brand" and "/content/mobile/:/mobile". One way of doing it would be to have like "/content/mybrand/-/" and "/content/myotherbrand/-/". That worked for me.Good Luck/Johan

Views

624

Likes

0

Replies

0
Re: Asynchronous component interactions in AEM
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
Sounds like the usage of backbone.js in combination with AEM would be a great idea here IMO.http://backbonejs.org/http://recipeswithbackbone.com/This could solve the update problems that you are thinking about with and MVC kind of thinking and special event handlings.Good Luck/Johan

Views

840

Likes

0

Replies

0
Re: Doubts on LDAP integration
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
Hello,good points from Justin there.What you would do is to create the user groups in the LDAP corresponding to the groups in CQ. Eg. have a group in the LDAP that is named "supergroup". Then when the first user belonging to that group is logging into CQ, that group will also be created in CQ. Set the right permissions to that group and the rest of the people logging in with that group as their group will get the right permissions. Always try to set permissions on group level and not on a single...

Views

766

Likes

0

Replies

0
Re: Issue with Textarea xtype picking value from the JSP
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
Hi,it will be difficult to use this since you can't really have several elements on a page with the same id (or you can but definitely should not).You need to create a unique id for each element if you want to user getElementById. Otherwise it will just pick the first element with that id on the page./Johan

Views

669

Likes

0

Replies

0
Re: creating servlet in CQ - cannot be cast to javax.servlet.Servlet , Failed getting the service for reference
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
Thats quite strange, have tried it both in 5.6 and 5.5 with the exact code i wrote above and it works fine :SIs there anything indicating that there might be something wrong in the OSGi console about the servlet ?Now the logs clearly points out that the servlet handling your request is not your servlet but the default get servlet.This would lead to the error you get since there is actually no resource there. Is there any other things that you have added to your servlet ?Scotts great example work...

Views

709

Likes

0

Replies

0
Re: How to add an error page to a CQ5 project?
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
Take a look at this: http://adobe-consulting-services.github.io/acs-aem-commons/features/errorpagehandler.htmlWorks perfect and can be used in combination with setting the correct error pages in the dispatcher configurations in the vhost files.Good Luck/Johan

Views

760

Like

1

Replies

0
Re: Siteadmin loaded with an empty page in 5.5
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
Can you please elaborate a bit on the error messages.Would be great to see what it is complaining about in the js files.Try to clear the var cache and your browser cache and see if the problem dissapears./Johan

Views

686

Likes

0

Replies

0
Re: Sling Servlet Resolver has issue with Post method
Avatar

Ojjis

Ojjis
- Adobe Experience Manager
Ah thats nice to hear, probably just something that was not updated correctly 🙂

Views

952

Likes

0

Replies

0