是否是hibernate在sybase下的兼容问题

03-09-10 yifei
测试使用hibernate2.11,+sybase12.5

jb8跟踪执行到 Session session = sessions.openSession();

语句出现错误:

2003-9-10 14:54:59 net.sf.hibernate.cfg.Configuration secondPassCompile

信息: processing one-to-one association property references

2003-9-10 14:54:59 net.sf.hibernate.cfg.Configuration secondPassCompile

信息: processing foreign key constraints

2003-9-10 14:54:59 net.sf.hibernate.cfg.Configuration secondPassCompile

信息: processing one-to-many association mappings

2003-9-10 14:54:59 net.sf.hibernate.cfg.Configuration secondPassCompile

信息: processing one-to-one association property references

2003-9-10 14:54:59 net.sf.hibernate.cfg.Configuration secondPassCompile

信息: processing foreign key constraints

java.lang.NoClassDefFoundError: javax/transaction/Synchronization

at net.sf.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:277)

at net.sf.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:286)

at net.sf.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:294)

at com.xxx.forum.Thread.main(Thread.java:24)

是否是sybase兼容性问题,还是配置问题或缺少库文件问题?多谢各位

prewind
2004-02-27 09:52
Just include jta.jar from castor/lib in your classpath.

猜你喜欢