since ‎29-12-2016
‎10-12-2019
jamesm77050123
Level 1
Re: Cookie is not getting created through dispatcher
Avatar

jamesm77050123

jamesm77050123
- Adobe Experience Manager Forms
I have the exact same problem for cookie functionality I'm working on. I can't delete the cache so I can only use the second solutionYou create the cookie in a more lightweight call (e.g on an AJAX call), which then creates the cookie.Is this on a front end level using javascript?

Views

1.8K

Like

1

Replies

1
Re: Property allowedtype cq:pagecontent giving better search results
Avatar

jamesm77050123

jamesm77050123
- Adobe Experience Manager
Thanks for the answers. Unfortunately I can't implement an index without management support and bureaucracy and stepping on other peoples toes (company politics)What I'm wondering, if there a performance difference if i create a JCR_SQL2 query instead of using query builder? Something likeselect = SELECT * FROM [jcr:content] AS s WHERE CONTAINS(s.*, '"my/search-expression"') AND s.* LIKE '%my/search-expression%';//some codeQuery query = queryManager.createQuery(select, Query.JCR_SQL2);

Views

682

Likes

0

Replies

0
Re: Property allowedtype cq:pagecontent giving better search results
Avatar

jamesm77050123

jamesm77050123
- Adobe Experience Manager
Unfortunately I need to use QueryBuilder to generate SQL2. My problem is what syntax to use for querybuilder

Views

445

Likes

0

Replies

0
Re: Property allowedtype cq:pagecontent giving better search results
Avatar

jamesm77050123

jamesm77050123
- Adobe Experience Manager
I figured out what was wrong. I'm doing a fulltext search (the name says it all), so if searching for a phrase like bank fees, the seach returns all pages with bank and fees. The only other option is to put quotes on 'bank fees', the problem with this approach is that the search returns pages with the exact phrase but pages with 'bank fee' are omitted because they don't match the search phrase. Is there any way of working around this? The Xpath query generated is below: Is it possible to create ...

Views

452

Likes

0

Replies

0
Auto delete/deactivate page
Avatar

jamesm77050123

jamesm77050123
- Adobe Experience Manager
I'm working on enhancing an existing ecommerce page. The product is created using scaffolding, a page is created and the product is imported into the page. One of the product parameters is a sale date. The client wants the product and the page to be automatically deactivated and deleted when the sale date has passed. Is this possible? I've attached a screenshot of the product creation page

Views

779

Likes

0

Replies

4
Re: Property allowedtype cq:pagecontent giving better search results
Avatar

jamesm77050123

jamesm77050123
- Adobe Experience Manager
Below is the search configBelow is the queryROOT=group: limit=30, guessTotal=true, offset=0[ {1_path=path: path=/content/site/desktop/gt/en} {2_group=group: or=true[ {1_fulltext=fulltext: fulltext=tax} ]} {3_group=group: not=true, or=true[ {1_path=path: path=excludedpaths} {2_property=property: property=jcr:content/sling:resourceType, value=foundation/components/redirect} {3_property=property: property=jcr:content/sling:resourceType, value=site/components/pages/sightly/coza/desktop/listingpage} ...

Views

453

Likes

0

Replies

0
Property allowedtype cq:pagecontent giving better search results
Avatar

jamesm77050123

jamesm77050123
- Adobe Experience Manager
I'm working on refining an existing search functionality on the site. The search works but returns too many irrelevant results. I'm working on refining the search results to make them more relevant to the search term.One of the configuration settings being used to create the search predicate is the Property allowedtypes. The current configuration has cq:Page and dam:Asset as the allowedtypes. From trial and error I found out that changing cq:Page to cq:PageContent ends up in better search result...

Views

1.6K

Likes

0

Replies

10
AEM with Search
Avatar

jamesm77050123

jamesm77050123
- Adobe Experience Manager
I'm working on a search functionality in AME 6.2 and I'm wondering, is there anyway to track what a user searches for in AEM? We don't have AEM Anayltics, we want to be able to know what things are commonly searched for, time searched, platform e.g. mobile or desktop and user location. Is there anyway of tracking this?

Views

549

Likes

0

Replies

1
AEM Filter not being invoked
Avatar

jamesm77050123

jamesm77050123
- Adobe Experience Manager
I've implemented a slingfilter that compiles without any issues but does not get invoked. Can't seem to figure out what the problem is, any ideas? @SlingFilter( generateComponent = true, generateService = true, order = -1000, scope = SlingFilterScope.REQUEST)public class GeoLocationFilter implements Filter { private static final Logger log = LoggerFactory .getLogger(GeoLocationFilter.class); public final void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IO...

Views

411

Likes

0

Replies

2
Re: AEM 6.2 not starting o
Avatar

jamesm77050123

jamesm77050123
- Adobe Experience Manager
I figured out what the problem was. Actually a simple problem. The Mac was running JRE 10 and JDK 8 at the same time. The JDK was the default version so when I checked it using a terminal I got the correct version for AEM. The JRE is installed in a different directory and tied to Internet plugins. So on the MacOS replacing the JDK won't help much, you have to confirm if there's another JRE version running. To do that type /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java...

Views

521

Likes

0

Replies

0
Re: AEM 6.2 not starting o
Avatar

jamesm77050123

jamesm77050123
- Adobe Experience Manager
I've checked and double checked the JAVA_HOME path, its fine. I've switched from jdk1.8 to jdk 1.7, no difference. Totally stumped

Views

431

Likes

0

Replies

0
Re: AEM 6.2 not starting o
Avatar

jamesm77050123

jamesm77050123
- Adobe Experience Manager
This is the error logLow-memory action set to forkUsing 64bit VM settings, min.heap=1024MB, min permgen=256MB, default fork arguments=[-Xmx1024m, -XX:MaxPermSize=256m]The JVM reports a heap size of 1024 MB, meets our expectation of 1024 MB +/- 20No console, will fork to get enough memoryNot forking JVM as -nofork option is setSetting properties from filename '/Users/Shared/AEM/PROD/aem-author-4502.jar'Option '-quickstart.server.port' set to '4502' from filename aem-author-4502.jarVerbose option ...

Views

432

Likes

0

Replies

0
AEM 6.2 not starting o
Avatar

jamesm77050123

jamesm77050123
- Adobe Experience Manager
I'm trying to start an AEM 6.2 instance on a MacOS running JDK 8, 8Gb Ram, 1 Tb HDD. I'm getting the error below in the log files. I've tried deleting the quickstart folder and running install again, doesn't help. I've also tried renaming the file to aem-author-4502.jar, still no progress. Any ideas on what I can do?Low-memory action set to forkUsing 64bit VM settings, min.heap=1024MB, min permgen=256MB, default fork arguments=[-Xmx1024m, -XX:MaxPermSize=256m]The JVM reports a heap size of 1024 ...

Views

1.6K

Likes

0

Replies

6
Location of OSGI bundle in AEM
Avatar

jamesm77050123

jamesm77050123
- Adobe Experience Manager
I created an OSGI bundle which I installed in AEM using system/console. I'm now creating a package to be installed in the testing and production environments. As a security precaution I can't install OSGI bundles in this environments. How can I create a package that can install an OSGI package without accessing system console? My idea was to add the location of the OSGI bundle in AEM to a package and install that but I can't find the location of the bundle. Any ideas?

Views

1.5K

Likes

0

Replies

2
How to include an external file when compiling
Avatar

jamesm77050123

jamesm77050123
- Adobe Experience Manager
I've created a servlet and I'm trying to include a Maxmind Geolite database in my application. I've been using a relative path when working on the project, similar to:File dbfile = new File("C:\Development\Maxmind GeoIP2 DB\GeoLite2-Country.mmdb");DatabaseReader dbReader = new DatabaseReader.Builder(dbfile).build();This works well on my local computer however I can't seem to figure out how to include the mmdb file when compiling to an application. I've tried using InputStream dbfile = GeoLocatio...

Views

190

Likes

0

Replies

0
Re: Siteadmin, content pages blank
Avatar

jamesm77050123

jamesm77050123
- Adobe Experience Manager
Yes I did

Views

358

Likes

0

Replies

0
Re: Siteadmin, content pages blank
Avatar

jamesm77050123

jamesm77050123
- Adobe Experience Manager
There were 11 jar files in the bundle. I've tried disabling and deleting the bundle. Doesn't make a difference

Views

360

Likes

0

Replies

0
Re: Siteadmin, content pages blank
Avatar

jamesm77050123

jamesm77050123
- Adobe Experience Manager
For better context, please see this AEM not working with GeoIP2 databasereader question which I asked last week which you helped me out with. I was using the Maxmind GeoIP2 db and needed to build an OSGI package for it using the instructions on the tutorial. I built the package and installed it. Something went wrong after that, siteadmin, login, content pages don't work. Crxde, system console pages are working

Views

361

Likes

0

Replies

0
Re: Siteadmin, content pages blank
Avatar

jamesm77050123

jamesm77050123
- Adobe Experience Manager
No problem. I'm on 6.2.As I mentioned before, I created a package for Maxmind GeoIP2 using the tutorial link. Package was installed without problems on the system console. After restarting the instance, i noticed I couldn't access siteadmin. I delete the bundle, didn't help

Views

358

Likes

0

Replies

0
Re: Siteadmin, content pages blank
Avatar

jamesm77050123

jamesm77050123
- Adobe Experience Manager
Sorry, you've lost me there. Whats the STR?The problem started when I installed a custom package using this tutorial, https://helpx.adobe.com/experience-manager/using/custom-sling-servlets.htmlAdobe Experience Manager Help | Submitting Adobe Experience Manager form data to Java Sling Servlets The package installed just fine but siteadmin disappeared. I've deleted the package on system/console, deleted the clientlib folder based on a suggestion in the forum. Thats about it.

Views

361

Likes

0

Replies

0
Siteadmin, content pages blank
Avatar

jamesm77050123

jamesm77050123
- Adobe Experience Manager
I'm tearing out my hair trying to figure out whats happening. All the pages have gone blank apart from CRXDE and the system console. I've gone through the error log but there doesn't seem to be anything wrong. I've uninstalled hotfixes, no difference. I've deleted var/clientlibs (suggested in one of the answers), doesn't help and clientlibs subfolders aren't showing up now. Any ideas on what I can do?Below is my error log127.0.0.1 - - 20/Mar/2018:07:39:31 +0200 "PUT /libs/sling/topology/connecto...

Views

1.3K

Likes

0

Replies

14
Re: AEM not working with GeoIP2 databasereader
Avatar

jamesm77050123

jamesm77050123
- Adobe Experience Manager
Thanks for the help.

Views

335

Likes

0

Replies

0
Re: AEM not working with GeoIP2 databasereader
Avatar

jamesm77050123

jamesm77050123
- Adobe Experience Manager
UpdateThe problem is that the maxmind packages are not being resolved. I'm getting the following errors when I look at the system console.com.maxmind.geoip2 -- Cannot be resolvedcom.maxmind.geoip2.model -- Cannot be resolvedcom.maxmind.geoip2.record -- Cannot be resolved

Views

333

Likes

0

Replies

0
AEM not working with GeoIP2 databasereader
Avatar

jamesm77050123

jamesm77050123
- Adobe Experience Manager
I'm working on implementing an IP based redirection script. This involves using Maxmind GeoIP2 database to find out the location of the user. The problem I'm having is that there's a specific line that's causing AEM to break. If I comment out the line, the page displays as it should, if I uncomment it out I get the following errors:org.apache.sling.api.scripting.ScriptEvaluationException: org.apache.sling.scripting.sightly.SightlyException: org.apache.sling.api.scripting.ScriptEvaluationExceptio...

Views

701

Likes

0

Replies

3
Re: How to access sling servlet on page load
Avatar

jamesm77050123

jamesm77050123
- Adobe Experience Manager
Thanks, just what I needed. The sample code pointed me in the right direction 🙂

Views

858

Likes

0

Replies

0
How to access sling servlet on page load
Avatar

jamesm77050123

jamesm77050123
- Adobe Experience Manager
Sorry for what is a simple question, I'm a total AEM newbie and not very good at Java either.I'm doing an IP redirection script, it redirects the user to a different website based on his location. I'm using the Maxmind database to get the location using the IP. I'm stuck at a simple thing, where do I place the servlet so that the script runs before the page loads? Any pointers on how I should go around this?

Views

1.2K

Likes

0

Replies

2
Likes from