<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年5月>
    27282930123
    45678910
    11121314151617
    18192021222324
    25262728293031
    1234567

    常用鏈接

    留言簿(14)

    隨筆檔案(6)

    文章分類(467)

    文章檔案(423)

    相冊

    收藏夾(18)

    JAVA

    搜索

    •  

    積分與排名

    • 積分 - 825447
    • 排名 - 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 閱讀(1550) 評論(0)  編輯  收藏 所屬分類: hibernate
    主站蜘蛛池模板: 成人免费无遮挡无码黄漫视频| 亚洲AV无码成人专区片在线观看| 亚洲精品岛国片在线观看| 亚洲成AV人片一区二区| 岛国岛国免费V片在线观看 | 日韩免费码中文在线观看| 在线观看免费成人| 亚洲jizzjizz少妇| 免费在线观看的黄色网址| 理论秋霞在线看免费| 亚洲一区免费观看| 亚洲色图综合网站| 成年女人毛片免费视频| 国产v亚洲v天堂无码网站| 久久er国产精品免费观看2| 久久精品国产亚洲AV高清热| 91成人免费观看| 亚洲日本一区二区三区在线不卡| 亚洲国色天香视频| 最新中文字幕电影免费观看| WWW亚洲色大成网络.COM| 一区二区三区亚洲视频| aaa毛片视频免费观看| 67pao强力打造67194在线午夜亚洲| 特级毛片A级毛片免费播放| 久久久青草青青国产亚洲免观| 亚洲色在线无码国产精品不卡 | 久久久久久夜精品精品免费啦| 又粗又大又硬又爽的免费视频| 亚洲美女自拍视频| 大学生一级特黄的免费大片视频| 亚洲综合综合在线| 色吊丝永久在线观看最新免费| 亚洲美女视频网址| 亚洲AV无码成H人在线观看| 国产成人精品日本亚洲18图| 好吊妞998视频免费观看在线| 久久亚洲综合色一区二区三区| 老司机福利在线免费观看| 久久这里只有精品国产免费10| 亚洲韩国—中文字幕|