Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    You might've forgot to add a dependency or it's written wrong. Also, you might be using incompatible versions of Java and Hibernate. More on this here: https://goo.gl/SjSlRA

  2. ,
    Expert tip

    This error means there's a class missing in your classpath during runtime. You need to create a jar with all your dependencies and have it in your classpath. Check Maven Assembly Plugin and how to add your dependencies to a jar: https://goo.gl/U2zr8k

Solutions on the web

via Stack Overflow by akash93
, 1 year ago
This exception has no message.
via scriptscoop.net by Unknown author, 2 years ago
java.lang.ClassNotFoundException: org.hibernate.service.spi.BasicServiceInitiator	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)	at java.security.AccessController.doPrivileged(Native Method)	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)	at java.lang.Class.getDeclaredConstructors0(Native Method)	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2585)	at java.lang.Class.getConstructor0(Class.java:2885)	at java.lang.Class.newInstance(Class.java:350)	at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:373)	at java.util.ServiceLoader$1.next(ServiceLoader.java:445)	at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.loadJavaServices(ClassLoaderServiceImpl.java:339)	at org.hibernate.integrator.internal.IntegratorServiceImpl.(IntegratorServiceImpl.java:57)	at org.hibernate.boot.registry.BootstrapServiceRegistryBuilder.build(BootstrapServiceRegistryBuilder.java:247)	at org.hibernate.boot.registry.StandardServiceRegistryBuilder.(StandardServiceRegistryBuilder.java:73)	at com.handyhome.service.database.HibernateUtil.buildSessionFactory(HibernateUtil.java:24)	at com.handyhome.service.database.HibernateUtil.getSessionFactory(HibernateUtil.java:39)	at com.handyhome.service.database.App.main(App.java:30)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:606)	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)