Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Californium (Cf) CoAP Framework » dynamic web project with californium
dynamic web project with californium [message #1718607] Mon, 28 December 2015 09:26
damiano barone is currently offline damiano baroneFriend
Messages: 1
Registered: December 2015
Junior Member
I have a problem with eclipse and californium-core.jar. I must a project that a thread of a Servlet connect with Coap at a BR and read a value, than change a variable in a servlet and when a user connect to a Servlet read this value by a web page. I have create a dynamic web project and have included the californium-core.jar. Eclipse doesn't have error, but when I run the errore is

Dec 28, 2015 10:05:30 AM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
java.lang.NoClassDefFoundError: org/eclipse/californium/core/CoapClient
at Servlet.init(
at javax.servlet.GenericServlet.init(
at org.apache.catalina.core.StandardWrapper.initServlet(
at org.apache.catalina.core.StandardWrapper.loadServlet(
at org.apache.catalina.core.StandardWrapper.allocate(
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.service(
at org.apache.coyote.http11.AbstractHttp11Processor.process(
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$
at org.apache.tomcat.util.threads.TaskThread$

The erros is when execute this line : client = new CoapClient(uri); . If I change an example of the folder californium (import a project maven and insert my code) it works. So I don't understand what's it the problem??? Confused
thanks for reply.
  • Attachment:
    (Size: 6.01KB, Downloaded 71 times)
Previous Topic:CoAP via DTLS with secure transport only
Next Topic:Broadcast/multicast request
Goto Forum:

Current Time: Wed Mar 21 07:16:23 GMT 2018

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

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