我用的是Hibernate3,MSSqlServer,tomcat

解决方案 »

  1.   

    原来是jndi命名错误。
    终于过了这一行 : Bound factory to JNDI name: XXX 
    这回又遇到了   :InitialContext did not implement EventContextorg.hibernate.util.NamingHelper getInitialContext
    信息: JNDI InitialContext properties:{}
    org.hibernate.impl.SessionFactoryObjectFactory addInstance
    信息: Bound factory to JNDI name: session_factory
    org.hibernate.impl.SessionFactoryObjectFactory addInstance
    警告: InitialContext did not implement EventContext