[] проблема с hibernate
sor pilot <[email protected]> Sun, 08 Aug 2010 12:04:10 +0400
| Newsgroups | gmane.comp.java.netbeans.general.russian |
|---|---|
| Message-ID | <[email protected]> |
=F0=D2=C9=D7=C5=D4=D3=D4=D7=D5=C0. =D3=D4=CF=CC=CB=CE=D5=CC=D3=D1 =D3 =D0=
=D2=CF=C2=CC=C5=CD=CF=CA, =CB=CF=D4=CF=D2=D5=C0 =C4=C1=D6=C5 =CE=C5 =DA=CE=
=C1=C0 =CB=C1=CB =D2=C5=DB=C9=D4=D8.
=E5=D3=D4=D8 =D0=D2=CF=C5=CB=D4 netbeans, =C9=D3=D0=CF=CC=D8=DA=D5=C0=DD=C9=
=CA hibernate.
=EB =CE=C5=CD=D5 =D0=CF=C4=CB=CC=C0=DE=C5=CE=D9 =C2=C9=C2=CC=C9=CF=D4=C5=CB=
=C9 hibernate =DE=D4=CF =D3=D4=C1=D7=D1=D4=D3=D1 =D3 =D5=D3=D4=C1=CE=CF=D7=
=CB=CF=CA =D3=CF=CF=D4=D7=C5=D4=D3=D4=D7=D5=C0=DD=C5=C7=CF =D0=CC=D5=C7=C9=
=CE=C1.
=F0=D2=CF=C5=CB=D4 =D5=D3=D0=C5=DB=CE=CF =D3=CF=C2=C9=D2=C1=C5=D4=D3=D1 =CB=
=C1=CB =D0=CF=C4 windows =D4=C1=CB =C9 =D0=CF=C4 linux.
=F4=CF=CC=D8=CB=CF =D7=CF=D4 =D0=D2=C9 =D0=CF=D0=D9=D4=CB=C5 =DA=C1=D0=D5=
=D3=D4=C9=D4=D8=D7 linux, =D0=C1=C4=C1=C5=D4 =CF=DB=C9=C2=CB=C1:
08.08.2010 13:59:19 org.hibernate.cfg.annotations.Version <clinit>
INFO: Hibernate Annotations 3.3.1.GA
08.08.2010 13:59:19 org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.1.3
08.08.2010 13:59:19 org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
08.08.2010 13:59:19 org.hibernate.cfg.Environment <clinit>
INFO: using CGLIB reflection optimizer
08.08.2010 13:59:19 org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
08.08.2010 13:59:19 org.hibernate.cfg.Configuration configure
INFO: configuring from resource: /hibernate.cfg.xml
08.08.2010 13:59:19 org.hibernate.cfg.Configuration getConfigurationInput=
Stream
INFO: Configuration resource: /hibernate.cfg.xml
08.08.2010 13:59:19 org.hibernate.cfg.AnnotationConfiguration addPackage
INFO: Mapping package models
08.08.2010 13:59:19 org.hibernate.cfg.AnnotationBinder bindPackage
WARNING: Package not found or wo package-info.java: models
08.08.2010 13:59:19 org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
08.08.2010 13:59:19 org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class: models.catalog.TreeStruct
Initial SessionFactory creation failed.java.lang.NoClassDefFoundError: or=
g/hibernate/engine/query/sql/NativeSQLQueryReturn
Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerEr=
ror
at models.HibernateUtil.<clinit>(HibernateUtil.java:34)
at models.Env.<init>(Env.java:25)
at models.Env.getEnv(Env.java:37)
at forms.TestGUI$1.run(TestGUI.java:574)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:2=
09)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispa=
tchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatch=
Thread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispa=
tchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.ja=
va:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.ja=
va:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.NoClassDefFoundError: org/hibernate/engine/query/sql=
/NativeSQLQueryReturn
at org.hibernate.cfg.annotations.QueryBinder.bindSqlResultsetMapp=
ing(QueryBinder.java:298)
at org.hibernate.cfg.AnnotationBinder.bindQueries(AnnotationBinde=
r.java:265)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.=
java:437)
at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfTy=
pe(AnnotationConfiguration.java:534)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(An=
notationConfiguration.java:286)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configurat=
ion.java:1168)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(=
AnnotationConfiguration.java:859)
at models.HibernateUtil.<clinit>(HibernateUtil.java:29)
... 11 more
Caused by: java.lang.ClassNotFoundException: org.hibernate.engine.query.s=
ql.NativeSQLQueryReturn
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 19 more
=F0=CF=C4=D3=CB=C1=D6=C9=D4=C5, =CD=CF=D6=C5=D4 =C5=D3=D4=D8 =D5 =CB=CF=C7=
=CF =C9=C4=C5=C9 =CE=C1=D3=DE=C5=D4 =D2=C5=DB=C5=CE=C9=D1 =C4=C1=CE=CE=CF=
=CA =D0=D2=CF=C2=CC=C5=CD=D9