<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆 - 6  文章 - 129  trackbacks - 0
    <2025年7月>
    293012345
    6789101112
    13141516171819
    20212223242526
    272829303112
    3456789

    常用鏈接

    留言簿(14)

    隨筆檔案(6)

    文章分類(467)

    文章檔案(423)

    相冊

    收藏夾(18)

    JAVA

    搜索

    •  

    積分與排名

    • 積分 - 829249
    • 排名 - 49

    最新評論

    閱讀排行榜

    評論排行榜

    異常信息:
    08:02:56,329  WARN SessionFactoryObjectFactory:123 - Could not unbind factory from JNDI
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
        at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:325)
        at javax.naming.InitialContext.unbind(InitialContext.java:416)
        at org.hibernate.impl.SessionFactoryObjectFactory.removeInstance(SessionFactoryObjectFactory.java:116)
        at org.hibernate.impl.SessionFactoryImpl.close(SessionFactoryImpl.java:806)
        at org.hibernate.test.junit.UserTest.tearDown(UserTest.java:43)
        at junit.framework.TestCase.runBare(TestCase.java:130)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
        at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
    很奇怪我的項目并沒有使用到JNDI,但是卻拋出JNDI相關的異常信息。
    原來是Hibernate的配置文件hibernate.cfg.xml有問題
    <hibernate-configuration>
        <session-factory name="foo">
            <property name="hibernate.connection.url">jdbc:oracle:thin:@10.240.144.25:1521:MES</property>
            <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
            <property name="hibernate.connection.username">*****</property>
            <property name="hibernate.connection.password">*****</property>
            <property name="dialect">org.hibernate.dialect.OracleDialect</property>
            <property name="show_sql">true</property>
            
            <mapping resource="org/hibernate/test/User.hbm.xml"/>
            
        </session-factory>
    </hibernate-configuration>

    原因:<seesion-factory>元素多了屬性 name.
    這樣,hibernate會試圖把這個sessionfacotry注冊到JNDI中去


    posted on 2011-07-05 08:12 Ke 閱讀(1554) 評論(0)  編輯  收藏 所屬分類: hibernate
    主站蜘蛛池模板: 亚洲精品无码专区久久久| 又粗又大又硬又爽的免费视频| 亚洲一区二区三区乱码A| 在线亚洲高清揄拍自拍一品区| 国产成人精品免费视频动漫| 亚洲黄色在线网站| 四虎免费影院ww4164h| 亚洲女人初试黑人巨高清| 国产成人免费网站| 亚洲中文字幕精品久久| 午夜私人影院免费体验区| 精品亚洲国产成人av| 亚洲国产综合久久天堂| 丁香花在线观看免费观看图片 | 成年女性特黄午夜视频免费看| 亚洲sss综合天堂久久久| 成年午夜视频免费观看视频| 亚洲Aⅴ在线无码播放毛片一线天| 国产精品酒店视频免费看| 无遮挡呻吟娇喘视频免费播放| 不卡精品国产_亚洲人成在线| 在线观看片免费人成视频无码| 少妇中文字幕乱码亚洲影视| 久久精品a一国产成人免费网站| 亚洲AV性色在线观看| 国产成人亚洲精品狼色在线| 久久免费观看国产99精品| 久久精品国产亚洲av麻豆蜜芽| 午夜网站免费版在线观看| 国产精品美女久久久免费| 久久精品蜜芽亚洲国产AV| 成年人网站在线免费观看| 一级毛片免费观看不收费| 亚洲国产国产综合一区首页| 操美女视频免费网站| 中国国产高清免费av片| 亚洲国产综合第一精品小说| 四虎成人精品在永久免费| 最近更新免费中文字幕大全| 亚洲男人天堂2018av| 亚洲精品午夜无码专区|