cancel
Showing results for 
Search instead for 
Did you mean: 

Custom extension not able to import jar from customersupportbackoffice

Former Member
0 Kudos

Hi Pros,

I have new extension (custom backoffice extension) which has below dependencies in extensioninfo.xml

 <requires-extension name="backoffice"/>
 <requires-extension name="customersupportbackoffice"/>

however my new extension is unable to resolve the jar from customersupportbackoffice extension.

It requires customersupportbackoffice_bof.jar from customersupportbackoffice extension but fails to import this hence there is compilation issues.

I have also added my new extension in localextension.xml and customersupportbackoffice extension as well.

Anyone who is smart enough to do resolve an issue like this?

Thank you !

former_member620692
Active Contributor
0 Kudos

The dependencies that you have declared in extensioninfo.xml is not visible in your question. Edit your question > Press enter before the code for dependencies and then select the code > Click code-sample button in the editor > Click Save

Former Member
0 Kudos

Thank you , I have updated the question.

former_member620692
Active Contributor
0 Kudos

I just tested it and it compiled successfully. Please make sure that the extensioninfo.xml of your custom extension is like:

 <extensioninfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="extensioninfo.xsd">
     <extension abstractclassprefix="Generated" classprefix="Myboext" name="myboext" usemaven="false">
         <requires-extension name="backoffice"/>
         <requires-extension name="customersupportbackoffice"/>
         <coremodule generated="true" manager="org.myboext.jalo.MyboextManager" packageroot="org.myboext"/>
         <meta key="backoffice-module" value="true"/>        
     </extension>
 </extensioninfo>

One thing you can do is: Remove your custom extension from localextensions.xml > Do ant clean all and if it is successful > Restore the extension back to localextensions.xml > Do ant all

former_member620692
Active Contributor
0 Kudos

Hi @Chris - I hope it worked. Please let me know if you are still facing any issue with it.

Former Member
0 Kudos

Hi ,

Thank you so much for this. This is very similar to the code I had, except we had different values for manager="org.myboext.jalo.MyboextManager" packageroot="org.myboext"/>

to follow our package root etc.

Unfortunately , this doesnt work and I'm investigating on other extensions to check any possibility of any extension overriding this.

Thanks,

anshika0312
Explorer
0 Kudos

Can anyone help.. i am facing the same issue.

anshika0312
Explorer
0 Kudos

pavangundoju Thanks Pavan for your response. Let me explain my scenario in detail:

In my custom backoffice extension, i have made above mentioned changes for extensioninfo.xml but still not able to find the actions provided in JAR file customersupportbackoffice_bof inside customersupportbackoffice.

It seems Custom extension not able to import jar from customersupportbackoffice.

Please Help!!!

0 Kudos

I am facing the same issue. Did you find solution for this?

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Hello anshika0312 / sbouchahma

I am facing the same issue. How you guys resolved this problem?

Regards,

Nirmal

0 Kudos

Hello, did you find a solution for this?

pgundoju
Explorer
0 Kudos

Hi Suresh,

Please make sure you add your source files in "<extensionrootfolder>/backoffice/src" and not in "

"<extensionrootfolder>/src". With this, if you follow standard dependency configuration in extensioninfo.xml, it should work. For IDE specific issues, you may have to tweak classpath settings.

Regards,

Pavan

anshika0312
Explorer
0 Kudos

pavangundoju Thanks Pavan for your response. Let me explain my scenario in detail:

In my custom backoffice extension, i have made above mentioned changes for extensioninfo.xml but still not able to find the actions provided in JAR file customersupportbackoffice_bof inside customersupportbackoffice.

It seems Custom extension not able to import jar from customersupportbackoffice.

Please Help!!!

pgundoju
Explorer
0 Kudos

Suresh, Please provide more details. Custom extension folder structure(screenshot), extensioninfo.xml entries & your java file. This will help me to understand better.