Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Java Hibernate Basics Persisting Data with Hibernate Wrap-Up

MANOJ KUMAR YADAV
MANOJ KUMAR YADAV
3,507 Points

Getting error while running Application.java

"C:\Program Files\Java\jdk-10.0.2\bin\java.exe" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2018.2.4\lib\idea_rt.jar=61270:C:\Program Files\JetBrains\IntelliJ IDEA 2018.2.4\bin" -Dfile.encoding=UTF-8 -classpath C:\Users\sog9327\Desktop\Java\contactmgr-hibernate-master\contactmgr-hibernate-master\out\production\classes;C:\Users\sog9327\Desktop\Java\contactmgr-hibernate-master\contactmgr-hibernate-master\out\production\resources;C:\tools\gradle-4.10.2\caches\modules-2\files-2.1\org.hibernate\hibernate-core\5.1.0.Final\1b5ac619df76cfd67222ca7cddcee6b0a5db8d0c\hibernate-core-5.1.0.Final.jar;C:\tools\gradle-4.10.2\caches\modules-2\files-2.1\com.h2database\h2\1.4.191\dec3540178ea889b2871b0ed56db14bbec9cfdfc\h2-1.4.191.jar;C:\tools\gradle-4.10.2\caches\modules-2\files-2.1\javax.transaction\jta\1.1\2ca09f0b36ca7d71b762e14ea2ff09d5eac57558\jta-1.1.jar;C:\tools\gradle-4.10.2\caches\modules-2\files-2.1\org.hibernate.common\hibernate-commons-annotations\5.0.1.Final\71e1cff3fcb20d3b3af4f3363c3ddb24d33c6879\hibernate-commons-annotations-5.0.1.Final.jar;C:\tools\gradle-4.10.2\caches\modules-2\files-2.1\org.jboss.logging\jboss-logging\3.3.0.Final\3616bb87707910296e2c195dc016287080bba5af\jboss-logging-3.3.0.Final.jar;C:\tools\gradle-4.10.2\caches\modules-2\files-Version INFO: HHH000412: Hibernate Core {5.1.0.Final} Oct 14, 2018 12:47:12 PM org.hibernate.cfg.Environment <clinit> INFO: HHH000206: hibernate.properties not found Oct 14, 2018 12:47:12 PM org.hibernate.cfg.Environment buildBytecodeProvider INFO: HHH000021: Bytecode provider name : javassist java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException at org.hibernate.boot.cfgxml.internal.ConfigLoader$1.initialize(ConfigLoader.java:41) at org.hibernate.boot.cfgxml.internal.ConfigLoader$1.initialize(ConfigLoader.java:38) at org.hibernate.internal.util.ValueHolder.getValue(ValueHolder.java:55) at org.hibernate.boot.cfgxml.internal.ConfigLoader.loadConfigXmlResource(ConfigLoader.java:57) at org.hibernate.boot.registry.StandardServiceRegistryBuilder.configure(StandardServiceRegistryBuilder.java:163) at org.hibernate.boot.registry.StandardServiceRegistryBuilder.configure(StandardServiceRegistryBuilder.java:152) at com.teamtreehouse.contactmgr.Application.buildSessionFactory(Application.java:20) at com.teamtreehouse.contactmgr.Application.<clinit>(Application.java:16) Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499) ... 8 more Exception in thread "main" Process finished with exit code 1