cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to create a new custom extension in hybris 6.3 using ant modulegen from command prompt

rinvarghese
Explorer
3,320

I am trying to create a new extension in hybris\bin\custom directory in Hybris 6.3 using ant modulegen from command prompt. On running the cmd - "ant modulegen" i am getting the below error.

C:\hybris603\hybris\bin\platform\resources\ant\antmacros.xml:155: mycustomproject.webroot '/rest_junit' is already used by extension 'ycommercewebservices'!

can anyone pleas suggest what might be the issue.

Thanks, Rinu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Go to respective extension's (which is use ycommercewebservices template) tenant_junit.properties file and change - your-extension-name.webroot=/rest_junit to your-extension-name.webroot=/your-extension-name_rest_junit Means you need to change the path (should be unique) of the your-extension-name.webroot path

former_member925277
Discoverer
0 Kudos

Resolved my issue, thanks.

Sachin6
Discoverer
0 Kudos
Thaks you , this solution is working for me , i have changed extnstion.erbroot=extension_rest_junit and after that i ran ant modulegen and it's working for me. ..... Thank you very much for solution.

Answers (4)

Answers (4)

former_member595526
Active Participant
0 Kudos

It seems like one of the extension you are trying to create is already using /rest_junit

To resolve the problem, remove the ycommercewebservices extension from your localextensions.xml and try.

This will resolve the problem

pradeeppatnana
Explorer
0 Kudos

We have already removed ycommercewebservices but still it throwing me error when try to run ant extgen it self. Now we are not able to create any new extensions or addons due to this error. can any one face this issue or know the solution?

former_member664713
Active Participant
0 Kudos

Hi ,

did you generated any new custom extension based on ycommercewebservices as a template.

Actually the problem is two extensions has the same web root '/rest_junit' in extensioninfo.xml of those extension.

pradeeppatnana
Explorer
0 Kudos

Hii I'm also facing same issue. Can any one update on this?

Former Member
0 Kudos

use ant extgen to create extension

rinvarghese
Explorer
0 Kudos

i am getting the same error while using ant extgen.