Help on "hello world plugin" error during install

378 views
Skip to first unread message

Lalan Amaranto

unread,
Jun 30, 2021, 4:31:28 AM6/30/21
to Kill Bill users mailing-list
Hi. May I ask for your help on an issue I encountered while following the tutorial on plugin.  When I am installing the hello world plugin via kpm, I am getting a "Permission denied @ rb_file_s_symlink".  Would you know what is causing this?  I used Ruby + devkit 3.0.1-1 (x64) to install the kpm.
Thank you in advance.


Reshma Bidikar

unread,
Jun 30, 2021, 8:52:46 AM6/30/21
to Kill Bill users mailing-list
Hello,

Are you on Windows operating system? If so, could you confirm that the plugin jar is copied to the destination folder (/var/tmp/bundles) after running the kpm command?  If so, you may ignore the error for now.

Regards,
Reshma

Lalan Amaranto

unread,
Jun 30, 2021, 9:13:42 AM6/30/21
to Kill Bill users mailing-list
Thank you for your response Reshma.  Yes I am in Windows.
I followed the sample command in the tutorial:   kpm install_java_plugin 'dev:hello' --from-source-file=PROJECT_ROOT/target/<artifact_id>-<version>.jar --destination=<path_to_install_plugin>
I used a different destination folder in the command and the jar file was copied there.  The "/var/tmp/bundles" only contains "sha1.yml"

I already ignored the error and proceeded with the next step to update the "killbill-server.properties" and run maven.  However, the following error on the Hello World appeared.  I assumed that the error in kpm is causing the bundle unsupported.

[INFO] --- jetty-maven-plugin:9.4.30.v20200611:run (default-cli) @ hello-world-plugin ---
[INFO] Skipping Kill Bill OSGI Hello World bundle : packaging type [bundle] is unsupported


Thank you again,
Lan

Reshma Bidikar

unread,
Jun 30, 2021, 11:52:25 PM6/30/21
to Kill Bill users mailing-list
Hello Lan,

I'm assuming that you are following the deployment steps in the plugin development document. If so, could you check if you are able to see the logs related to the HelloWorldServlet as explained in Step 7? If not, could you send the complete logs? 

Regards,
Reshma

Lalan Amaranto

unread,
Jul 1, 2021, 5:14:30 AM7/1/21
to Kill Bill users mailing-list
Hi Reshma,

I restarted everything just to make sure I am doing the correct steps and I think it worked!!  I might have ran the Step 6 previously in the plugin root folder.
The following are the errors: Step 3 which you advised to ignore then another in the logs of Step 7 about "killbill/osgi/jdbc".

A. Setting up the Code in IDE -  Completed
B. Build - Completed.  JAR files are in target folder
C. Deployment
            Step 1 - Installed kpm using Rubygems.  It is already installed previously so I did not repeat
            Step 2 - run kpm install_java_plugin 'dev:hello' --from-source-file=PROJECT_ROOT/target/<artifact_id>-<version>.jar --destination=<path_to_install_plugin>
                          I did it for all 4 JAR files.  SNAPSHOT, SNAPSHOT-sources, SNAPSHOT-tests and SNAPSHOT-test-resources.
            Step 3 - All 4 runs received the "Permission denied @ rb_file_s_symlink" but the JAR files were successfully copied in the destination folder (each has each own subfolder plugins/java/<JAR name>/<JAR version>/<the actual JAR>). 
            Step 4 - This is already completed previously as I can already open KillBill in localhost.
            Step 5 - Updated the killbill-server.properties.  I assume that the PROJECT ROOT here is for KillBill, not the Plugin because does not have "profiles"
            Step 6 - run Kill Bill via mvn in KillBill's PROJECT ROOT
            Step 7 - I can see the expected logs in this step.  See attachment for the entire log (with error).
            Step 8 - I can see the expected logs in this step.  See attachment for the entire log.

Thank you for taking time to attend to my inquiry.
Logs - step 7.txt
Logs - step 8.txt

Lalan Amaranto

unread,
Jul 2, 2021, 1:39:05 AM7/2/21
to Kill Bill users mailing-list
Hi Reshma,
The next step in the Hello World Plugin tutorial is the setting up of breakpoint and debugging.
I am getting a "could not find required bundle slf4j.api" popup in Eclipse.  
I already checked the Maven dependencies and the slf4j-api-1.7.30.jar is present.
I also tried to add it as referenced library together with the different bindings but it is still the same.  
Am I missing a step?
Thank you,
Lan

Reshma Bidikar

unread,
Jul 2, 2021, 7:19:22 AM7/2/21
to Kill Bill users mailing-list
Hello,

At which step do you see the error? Are you not able to run in debug mode due to this issue?

Regards,
Reshma

Lalan Amaranto

unread,
Jul 3, 2021, 11:02:47 AM7/3/21
to Kill Bill users mailing-list
Hi Reshma,
Yes, it does not run in debug mode.
I am getting the error in step #4 of "Setting up a breakpoint and debugging".
Thank you again for helping.
- Lan

Reshma Bidikar

unread,
Jul 4, 2021, 11:57:24 PM7/4/21
to Kill Bill users mailing-list
Hello Lan,

I'm not really sure what is the issue. Could you try restarting Eclipse and see if it works?

Regards,
Reshma

Lalan Amaranto

unread,
Jul 6, 2021, 2:30:46 AM7/6/21
to Kill Bill users mailing-list
Thank you Reshma.
I will repeat the process from step 1 just to make sure I didn't miss anything.
- Lan

Reply all
Reply to author
Forward
0 new messages