Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » OM2M » Problems when Running CoAP monitor within a plug-in application
Problems when Running CoAP monitor within a plug-in application [message #1742303] Thu, 01 September 2016 13:57 Go to next message
Trung Luu is currently offline Trung LuuFriend
Messages: 32
Registered: June 2016
Hi all,
I'm trying the scenario with subscribe/notify in OM2M by using CoAP. I used the code below in the Monitor class of Actuator:
public void CoAPlistenter(){
System.out.println("Starting server...");
CoAPMonitor server = new CoAPMonitor();


catch (SocketException e)
System.err.println("Failed to initialize server: " + e.getMessage());
System.out.println("The server is listening on /monitor");
However, when I running the application, the NoClassDefFoundError appeard:

Can Anyone know how to fix this problem? Thanks in advanced!

Re: Problems when Running CoAP monitor within a plug-in application [message #1742564 is a reply to message #1742303] Mon, 05 September 2016 08:43 Go to previous message
Francois AissaouiFriend
Messages: 38
Registered: April 2015
Hi Trung,

It seems the class is not present in the current classloader of your bundle.
Try to import the package from the OSGi environment using import package attribute in the MANIFEST.MF file (if Californium is present as a bundle or exported by another plugin).

Otherwise, you can directly include the Californium library following this tutorial in your bundle.

Hope this can help.

Previous Topic:How to connect in-cse and mn-cse which located in different network
Next Topic:How to start the plugin automatically?
Goto Forum:

Current Time: Thu Feb 09 10:18:58 GMT 2023

Powered by FUDForum. Page generated in 0.02065 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top