-
Notifications
You must be signed in to change notification settings - Fork 364
Description
OSClient os = OSFactory.builder()
.endpoint("http://127.0.0.1:5000/v2.0")
.credentials("admin","sample")
.tenantName("admin")
.authenticate();
gave following exception
Exception in thread "main" java.lang.NoClassDefFoundError: javax/ws/rs/ClientErrorException
at org.openstack4j.openstack.OSFactory.authenticate(OSFactory.java:67)
at test.OpenstackImage.main(OpenstackImage.java:29)
Caused by: java.lang.ClassNotFoundException: javax.ws.rs.ClientErrorException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 2 more