cancel
Showing results for 
Search instead for 
Did you mean: 

Error while creating new action

0 Kudos

Hi,

I created a new action for our core backoffice config like described here Unfortunately I do get this error while compiling :

error: package com.hybris.cockpitng.actions does not exist

I fixed this error by manually copying the cockpitframework-18.08.0-RC7.jar into myextension/lib folder, but is there a more normal fix? Did I forget to include an extension in my required extension etc?

geffchang
Active Contributor
0 Kudos

Where does this error occur? Is it in Ee, or in command-line when you do ant all?

0 Kudos

In command line with ant

geffchang
Active Contributor
0 Kudos

Does your custom extension (for backoffice) extend / require backoffice in extensioninfo.xml?

0 Kudos

yes it does

Accepted Solutions (1)

Accepted Solutions (1)

mpern
Employee
Employee
0 Kudos

The source file for your action is probably in the wrong folder.

It has to be in myextension/backoffice/src, not in the regular myextension/src folder.

I assume that you created myextension from the ybackoffice template. If not, do so, otherwise you don't have all the required build callbacks etc. and your action won't work

And, do not copy the backoffice libraries to your extension. It may break the backoffice in weird ways as soon as you upgrade or use the next patch release.

0 Kudos

Thats it basicly. When I added the ybackoffice custom extension everything started to work just fine.

Thanks for your time.

mpern
Employee
Employee
0 Kudos

Just to make sure:

Do not add stuff to ybackofficedirectly!!

ybackoffice is only a template, you should never configure it in localextensions.xml or in extensioninfo.xml

Create your own custom extension using the ybackoffice template, and add your stuff to the new, generated extension!

 ant extgen -Dinput.template=ybackoffice

Answers (0)