Skip to Content

Error while creating new action


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?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Oct 18, 2018 at 11:32 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.