Skip to main content



      Home
Home » Eclipse Projects » Kura » javax.net.ssl.HttpsURLConnection no class def found error
javax.net.ssl.HttpsURLConnection no class def found error [message #1714444] Thu, 12 November 2015 12:12 Go to next message
Eclipse UserFriend
Hey there,

So I'm creating a plugin based on the hello world plugin and trying to deploy it as a bundle on a raspberry pi. The plugin requires an external JAR dependency so I've converted the JAR to support OSGI using eclipse and deployed it separately to the raspberry pi. Deployment of this JAR works fine.

Now in one of the classes in the external JAR dependency, I have an import to javax.net.ssl.HttpsURLConnection.

When I deploy my plugin and start it I get this stack trace:

Root exception:
java.lang.NoClassDefFoundError: javax/net/ssl/HttpsURLConnection
at com.clearblade.java.api.User.authWithCurrentUser(User.java:39)
at com.clearblade.java.api.ClearBlade.initialize(ClearBlade.java:242)
at org.eclipse.kura.test.clearblade.TestCB.initCB(TestCB.java:72)
at org.eclipse.kura.test.clearblade.TestCB.activate(TestCB.java:24)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:235)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:473)
at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217)
at org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:816)
at org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:783)
at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
at org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70)
Caused by: java.lang.ClassNotFoundException: javax.net.ssl.HttpsURLConnection
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 19 more


In this case TestCB is the class in my plugin and com.clearblade.java.api.* is the external JAR dependency that I have deployed. What seems to be the problem here?

Thanks,
Sanket
Re: javax.net.ssl.HttpsURLConnection no class def found error [message #1714461 is a reply to message #1714444] Thu, 12 November 2015 14:12 Go to previous message
Eclipse UserFriend
Hello Sanket,

The plugin that is using HttpsURLConnection must import the javax.net.ssl package in its Manifest.

Thanks,
--Dave
Previous Topic:End to End IoT solution with Eclipse IoT
Next Topic:Errors starting kura with greenhouse example
Goto Forum:
  


Current Time: Wed Jul 16 04:27:15 EDT 2025

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

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

Back to the top