Groovy Console integration to AEM instance.

Avatar

Avatar
Validate 1
Level 2
manohar139535
Level 2

Likes

3 likes

Total Posts

15 posts

Correct reply

1 solution
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
Boost 3
View profile

Avatar
Validate 1
Level 2
manohar139535
Level 2

Likes

3 likes

Total Posts

15 posts

Correct reply

1 solution
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
Boost 3
View profile
manohar139535
Level 2

20-12-2018

Tast to perform:-

1. How to integrate Groovy Console to AEM instance.

2. I want to run groovy script.

3. I am using AEM 6.3 instance and while installing aem-groovyconsole-plugin-0.1.0-beta.jar I am getting error.

4. I just  want clear description of how to intall groovy Console to my AEM instance.

Many Thanks,

Manohar

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 50
Employee
WASIL
Employee

Likes

51 likes

Total Posts

386 posts

Correct reply

51 solutions
Top badges earned
Boost 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Boost 50
Employee
WASIL
Employee

Likes

51 likes

Total Posts

386 posts

Correct reply

51 solutions
Top badges earned
Boost 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
WASIL
Employee

22-12-2018

Remove the bundle named 'AEM Groovy Console' that is different that what I suggested. And start the other one which is in installed state.

Script Console be available at http://<host>:<port>/system/console/sc

Thanks

Wasil

Answers (6)

Answers (6)

Avatar

Avatar
Boost 250
MVP
Nikhil-Kumar
MVP

Likes

251 likes

Total Posts

262 posts

Correct reply

38 solutions
Top badges earned
Boost 250
Validate 1
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Boost 250
MVP
Nikhil-Kumar
MVP

Likes

251 likes

Total Posts

262 posts

Correct reply

38 solutions
Top badges earned
Boost 250
Validate 1
Ignite 3
Ignite 1
Give Back 5
View profile
Nikhil-Kumar
MVP

16-08-2020

@manohar139535,

I have set up Groovy console in my local and provided step by step to set it up at Groovy scripts in AEM

Avatar

Avatar
Boost 50
Employee
WASIL
Employee

Likes

51 likes

Total Posts

386 posts

Correct reply

51 solutions
Top badges earned
Boost 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Boost 50
Employee
WASIL
Employee

Likes

51 likes

Total Posts

386 posts

Correct reply

51 solutions
Top badges earned
Boost 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
WASIL
Employee

20-12-2018

Just install/start the two jars/bundles in http://<host>:<port>/system/console/bundles

Then configure whitelist at http://<host>:<port>/system/console/configMgr

Access script console at  http://<host>:<port>/system/console/sc

Thanks

Wasil

P.S. : I'd highly recommend to get to know AEM first. What is the best approach to learn Adobe Experience Manager (AEM)? - Quora

Avatar

Avatar
Boost 50
Employee
WASIL
Employee

Likes

51 likes

Total Posts

386 posts

Correct reply

51 solutions
Top badges earned
Boost 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Boost 50
Employee
WASIL
Employee

Likes

51 likes

Total Posts

386 posts

Correct reply

51 solutions
Top badges earned
Boost 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
WASIL
Employee

20-12-2018

1) Install Maven Repository: org.codehaus.groovy » groovy-all » 2.4.9

2) Install Maven Repository: org.apache.felix » org.apache.felix.webconsole.plugins.scriptconsole » 1.0.2

3) Whitelist the scripting bundle

Whitelist Groovy.png

4) Access script console at http://<host>:<port>/system/console/sc

Thanks

Wasil

Avatar

Avatar
Validate 1
Level 2
manohar139535
Level 2

Likes

3 likes

Total Posts

15 posts

Correct reply

1 solution
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
Boost 3
View profile

Avatar
Validate 1
Level 2
manohar139535
Level 2

Likes

3 likes

Total Posts

15 posts

Correct reply

1 solution
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
Boost 3
View profile
manohar139535
Level 2

24-12-2018

Hi Wasil,

Thank you very much. Now it's working.

Avatar

Avatar
Validate 1
Level 2
manohar139535
Level 2

Likes

3 likes

Total Posts

15 posts

Correct reply

1 solution
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
Boost 3
View profile

Avatar
Validate 1
Level 2
manohar139535
Level 2

Likes

3 likes

Total Posts

15 posts

Correct reply

1 solution
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
Boost 3
View profile
manohar139535
Level 2

21-12-2018

Hi Wasil

Many thanks for your help. I have made the changes as suggested but still I am not able to access groovy console. I can see that for one of the bundles it is giving error as "cannot be resolved. I am attaching the screenshot for it and also all the changes I have made.

Step 1.

1651843_pastedImage_0.png

Step 2.

1651880_pastedImage_1.png

Error I am getting for "cannot be resolved"

1651881_pastedImage_2.jpg

Many Thanks,

Manohar

Avatar

Avatar
Validate 1
Level 2
manohar139535
Level 2

Likes

3 likes

Total Posts

15 posts

Correct reply

1 solution
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
Boost 3
View profile

Avatar
Validate 1
Level 2
manohar139535
Level 2

Likes

3 likes

Total Posts

15 posts

Correct reply

1 solution
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
Boost 3
View profile
manohar139535
Level 2

20-12-2018

Hi Wasil,

Thanks for your response. I had a look to the maven repository. I am familiar with maven but only as a beginner. It will be helpful if you guide me how to install maven repository. Also I have downlaoded jar file. I am not getting how AEM and Maven will interact.

I am familiar with java and building code or resolving dependencies using in java using maven. So, Please help me to rectify this.

Many thanks!!!