-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: java.lang.NoClassDefFoundError: javax/mail/Authenticator
PostPosted: Tue Jul 26, 2005 8:04 am 
Newbie

Joined: Tue Jul 26, 2005 7:53 am
Posts: 1
Location: Atlanta
Hibernate Console 2.1 Error

Any ideas about why this error is occuring?
The console was previously working with the same cfg file(s).


Windows Error:

Exception on AWT eventqueue - exiting for safety reason...
java.lang.NoClassDefFoundError: javax/mail/Authenticator

"C:\Program Files\Java\j2sdk1.4.2_08\bin\java" -Xmx128m "-Dant.home=C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant" -Dfile.encoding=windows-1252 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant-antlr.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant-apache-bcel.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant-apache-bsf.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant-apache-log4j.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant-apache-oro.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant-apache-regexp.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant-apache-resolver.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant-commons-logging.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant-commons-net.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant-icontract.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant-jai.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant-javamail.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant-jdepend.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant-jmf.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant-jsch.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant-junit.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant-launcher.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant-netrexx.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant-nodeps.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant-starteam.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant-stylebook.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant-swing.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant-trax.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant-vaj.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant-weblogic.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant-xalan1.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant-xslp.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\ant.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\xercesImpl.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\ant\lib\xml-apis.jar;C:\Program Files\Java\j2sdk1.4.2_08\lib\tools.jar;C:\Program Files\JetBrains\IntelliJ IDEA 5.0\lib\idea_rt.jar" com.intellij.rt.ant.execution.AntMain2 -logger com.intellij.rt.ant.execution.IdeaAntLogger2 -inputhandler com.intellij.rt.ant.execution.IdeaInputHandler -buildfile C:\work\insight\trunk\build.xml hibernate-console
build.xml
property
property
property
property
property
patternset
path
property
property
path
path
path
path
Overriding previous definition of reference to library.tomcat_5.0.classpath
dirname
property
property
property
property
property
path
path
patternset
patternset
path
dirname
property
property
property
property
property
path
path
patternset
patternset
path
property
property
property
property
property
path
taskdef
property
property
property
property
path
path
taskdef
hibernate-console
java
JGoodies Looks: The ClearLook(tm) mode has been set to 'On'.
log4j:WARN No appenders could be found for logger (net.sf.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
java.lang.NoClassDefFoundError: javax/mail/Authenticator
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:1655)
at java.lang.Class.getMethod0(Class.java:1901)
at java.lang.Class.getMethod(Class.java:984)
at net.sf.hibernate.util.ReflectHelper.overridesEquals(ReflectHelper.java:57)
at net.sf.hibernate.type.EntityType.<init>(EntityType.java:45)
at net.sf.hibernate.type.ManyToOneType.<init>(ManyToOneType.java:43)
at net.sf.hibernate.type.TypeFactory.manyToOne(TypeFactory.java:124)
at net.sf.hibernate.cfg.Binder.bindManyToOne(Binder.java:629)
at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:1034)
at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:362)
at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1256)
at net.sf.hibernate.cfg.Configuration.add(Configuration.java:253)
at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:289)
at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:337)
at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:1027)
at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:983)
at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:945)
at net.sf.hibernate.console.Start.reconfig(Start.java:148)
at net.sf.hibernate.console.Start$4.configurationChanged(Start.java:539)
at net.sf.hibernate.console.ConfigurationUI$ApplyConfig.actionPerformed(ConfigurationUI.java:321)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 26, 2005 9:20 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
seems like your code has a dependency on javax.mail.Authenticator - just remember to include that when you launch it.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.