µ±Ç°Î»Ö㺠´úÂëÃÔ >> javax.naming.NoInitialContextExceptionµÄ½â¾ö·½°¸
 
  • Òì³£: ÎÞ·¨·ÃÎÊReferenceable ÕÒ²»µ½javax.naming.ReferenceableµÄÀàÎļþ

    ´íÎó:ÎÞ·¨·ÃÎÊReferenceableÕÒ²»µ½javax.naming.ReferenceableµÄÀàÎļþpublicstaticvoidconnectionDB(){Connectioncon=null;CallableStatementcstmt=null;ResultSetrs=null;try{//Establishtheconnection.SQLServerDataSourceds=n...

    9
    ÈȶÈ
  • JDNIµÄÓйØÎÊÌâ

    JDNIµÄÎÊÌâwindowsxp±àÒëJDNITutorialÀïµÄµÚÒ»¸öÀý×ÓÖ÷Òª´úÂëÈçÏÂHashtableenv=newHashtable();env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.fscontext.RefFSContextFactory");Contextctx=newInitialContext(env)...

    245
    ÈȶÈ
  • Á¬½Ó³ØÓйØÎÊÌ⣺javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

    Á¬½Ó³ØÎÊÌ⣺javax.naming.NameNotFoundException:NamejdbcisnotboundinthisContextTomcat5.5+MySQLÅäÖõÄÊý¾Ý¿âÁ¬½Ó³Ø³öÎÊÌâÁËÊÇ°´ÕÕÍøÉÏдµÄÔÚ%TOMCAT_HOME%\conf\Catalina\localhostÏ´´½¨Í¬ÏîÄ¿Ãû³ÆµÄxmlÎļþ²»¹ý»¹ÊdzöÏÖÕâ¸ö´íÎóÐÅÏ¢javax.naming.NameNotFoundExce...

    274
    ÈȶÈ
  • tomcat+SQL server2000Êý¾ÝÁ¬½Ó³ØµÄÓйØÎÊÌ⣿

    tomcat+SQLserver2000Êý¾ÝÁ¬½Ó³ØµÄÎÊÌ⣿£¿´úÂ룺packagecom.yl.test;importjava.sql.Connection;importjava.sql.ResultSet;importjava.sql.Statement;importjavax.naming.Context;importjavax.naming.InitialContext;importjavax...

    105
    ÈȶÈ
  • ÔÚÏîÄ¿ÖÐMETA INFÏ´´½¨context.xml»ñµÃmysqlÊý¾Ý¿âÁ¬½Ó³Ø£¨¼±£©½â¾ö°ì·¨

    ÔÚÏîÄ¿ÖÐMETAINFÏ´´½¨context.xml»ñµÃmysqlÊý¾Ý¿âÁ¬½Ó³Ø£¨¼±¡£¡£¡££©ÔÚÏîÄ¿ÖÐMETAINFÏ´´½¨context.xml»ñµÃmysqlÊý¾Ý¿âÁ¬½Ó³Ø£¬<Context> <Resourcename="jdbc/zwjtest" type="javax.sql.DataSource"driverClassName=&qu...

    8464
    ÈȶÈ
  • ¹ØÓÚtomcat6.0Á¬½Ó³ØµÄÅäÖÃÓйØÎÊÌâ

    ¹ØÓÚtomcat6.0Á¬½Ó³ØµÄÅäÖÃÎÊÌâÔÚÅäÖÃtomcat6.0Á¬½Ó³Øʱ£º³öÏÖÁËjavax.naming.NoInitialContextException'>javax.naming.NoInitialContextException:Needtospecifyclassnameinenvironmentorsystemproperty,orasanappletparameter,orinanap...

    121
    ÈȶÈ
  • eclipse±àÒëÒì³£

    eclipse±àÒë´íÎóÎÒÊÇÔÚÍøÉÏÕÒµÄÒ»¸ö¼òµ¥µÄHelloWorld³ÌÐòEJB+JBOSSÇëÎÊÏÂÏÂÃæÕâ¸ö±àÒë´íÎóÊÇʲôÒâ˼°¡£¿javax.naming.NoInitialContextException'>javax.naming.NoInitialContextException:Needtospecifyclassnameinenvironmentorsystemproperty,orasana...

    59
    ÈȶÈ
  • %%%%%%ÓÃhibernate²¿Êðʱ±¨´í£¬´ó¼Ò°ï濴Ͻâ¾ö·½°¸

    %%%%%%ÓÃhibernate²¿Êðʱ±¨´í£¬´ó¼Ò°ïæ¿´ÏÂÒì³£ÈçÏÂ:org.hibernate.HibernateException:Couldnotfinddatasource atorg.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:56) atorg.h...

    75
    ÈȶÈ
  • ÓÖÊÇ100·Ö£¬JNDI

    ÓÖÊÇ100·ÖÇóÖú£¬JNDIÏÖÔÚÎÒÈç¹ûÔÚJSPÖÐÖ±½ÓÁ¬½ÓÊý¾Ý¿â»òimportÁ¬½ÓÀà¿ÉÒÔÕý³£Á¬½Ó£¬µ«µ¥´¿ÓÃÀà²âÊԾͲ»ÐС¤¡¤£¨javax.naming.NoInitialContextException'>javax.naming.NoInitialContextException:Needtospecifyclassnameinenvironmentorsystemproperty£©ÎÒÖªµÀ²âÊÔÀàÖеĴú...

    375
    ÈȶÈ
  • JMS½ÓÈëwebsphere MQ ³öÏÖ´íÎ󣬸ßÊִͽÌ

    JMS½ÓÈëwebsphereMQ³öÏÖÒì³££¬¸ßÊִͽÌJMS½Ó¿Ú½ÓÈëWebsphereMQ³öÏÖÒÔÏÂÒì³££ºExceptioninthread"main"javax.naming.NoInitialContextException:Cannotinstantiateclass:com.sun.jndi.fscontext.RefFSContextFactory[Rootexceptio...

    9738
    ÈȶÈ
  • ÈçºÎʹÓÃjndiÊôÐÔÎļþÀ´Ê¹Óò¿ÊðÔÚÔ¶³Ì·þÎñÆ÷ÖеķþÎñ

    ÎÊÌâÃèÊö ÎÒÓÐÒ»¸ö·þÎñÆ÷ejb£¨ÔÚ·þÎñÆ÷Éϲ¿ÊðÁËofc£©£¬ÎÒÏëͨ¹ý½«ÆäÌí¼ÓΪÒÀÀµÏȻºóÔÚmainº¯ÊýÖе÷ÓÃËü£¬ÔÚÆäËû¿Í»§¶ËejbÓ¦ÓóÌÐòÖÐʹÓÃËü¡£ ÕâÊÇ´úÂ룺 packagemavensayhelloclient; importjavax.naming.InitialContext; importjavax.naming.NamingException; importsayhellopacka...

    86
    ÈȶÈ
  • java.namingÒì³£

    java.naming´íÎóHTMLcodejavax.naming.NameNotFoundException'>javax.naming.NameNotFoundException:ÃûÇ°jdbc¤Ï¤³¤Î¥³¥ó¥Æ¥­¥¹¥È¤Ë¥Ð¥¤¥ó¥É¤µ¤ì¤Æ¤¤¤Þ¤»¤óatorg.apache.naming.NamingContext.lookup(NamingContext.java:770)atorg.apache.nami...

    310
    ÈȶÈ
  • Need to specify class name in environment or system property

    tomcat5.5ÅäÖÃÁ¬½Ó³ØµÄÎÊÌâÎÒÅäÖúÃÁËTOMCAT5.5µÄÁ¬½Ó³Ø¿ÉÒÔÅ×Òì³£Javacodejavax.naming.NoInitialContextException'>javax.naming.NoInitialContextException:Needtospecifyclassnameinenvironmentorsystemproperty,orasanappletparameter...

    683
    ÈȶÈ
  • ͨ¹ýJNDIÁ¬½ÓweblogicµÄһЩÓйØÎÊÌâ

    ͨ¹ýJNDIÁ¬½ÓweblogicµÄһЩÎÊÌâ Ê×ÏÈ˵˵ÕâЩÓï¾ä£º?java.naming.factory.initial???java.naming.provider.url??java.naming.factory.object??java.naming.factory.state??java.naming.security.authentication??java.naming.security...

    251
    ÈȶÈ
  • ÓÃjunit²âÊÔspringʱ£¬¼ÓÔØdataSourceʧÎó

    ÓÃjunit²âÊÔspringʱ£¬¼ÓÔØdataSource³ö´í1,bean-dao.xml<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEbeansPUBLIC"-//SPRING//DTDBEAN//EN""http://www.springframework.org/...

    19
    ÈȶÈ
  • ÔÚStrutsTestÖÐʹÓÃTomcatÊý¾ÝÔ´,¸ÃÈçºÎ´¦Àí

    ÔÚStrutsTestÖÐʹÓÃTomcatÊý¾ÝÔ´ÔÚ×öStrutsµÄµ¥Ôª²âÊÔʱÎÒÊÇʹÓõÄStrutsTest×÷ΪJUnitµÄÀ©Õ¹¡£µ«ÊÇÔÚ²âÊÔActionʱ»áÈ¥·ÃÎÊÊý¾Ý¿â£¬¶øÎÒµÄÊý¾Ý¿âÊÇʹÓõÄTomcatÅäÖõÄÊý¾ÝÔ´¡£ÕâÑù¾Í»á³öÏÖÒ»¸öÒì³£javax.naming.NoInitialContextException'>javax.naming.NoInitialContextException:Needt...

    325
    ÈȶÈ
  • MyeclipseÅäÖÃTomcat JndiÊý¾ÝÔ´ÓйØÎÊÌâ

    MyeclipseÅäÖÃTomcatJndiÊý¾ÝÔ´ÎÊÌâÎÒ×öÁËÒ»¸ö·Ç³£¼òµ¥µÄHiernateµÄ³ÌÐò£¬ÓÃÆÕͨµÄjdbcÊÇûÎÊÌâµÄ£¬µ«ÊÇÈç¹ûÓÃtomcatµÄJNDIÊý¾ÝÔ´¾ÍÓÐÎÊÌâÁË£¬³öÏÖ´íÎó£ºxceptioninthread"main"org.hibernate.HibernateException:Couldnotfinddatasource atorg.hibernate.conn...

    42
    ÈȶÈ
  • ÔÚJ2SEÖÐʹÓÃJPA ·ÃÎÊEntityManagerÓöµ½µÄÓйØÎÊÌâ¼Ç¼

    ÔÚJ2SEÖÐʹÓÃJPA·ÃÎÊEntityManagerÓöµ½µÄÎÊÌâ¼Ç¼publicclassMain{ publicstaticvoidmain(String[]args){ EntityManagerFactoryfactory=Persistence.createEntityManagerFactory("HelloTitan"); EntityManagerem=factory.create...

    6259
    ÈȶÈ
  • ÇëÎÊ£ºÁ¬½ÓÊý¾Ý¿âµÄÀý×Ó±¨´íÓйØÎÊÌ⣬Çë¸ßÊֵ㲦һÏÂ

    Çë½Ì£ºÁ¬½ÓÊý¾Ý¿âµÄÀý×Ó±¨´íÎÊÌ⣬Çë¸ßÊֵ㲦һÏÂÎÒдÁËÒ»¸öÁ¬½ÓÊý¾Ý¿âµÄÀý×Ó½á¹û×ÜÊDZ¨´í£¬Çë¸ßÊÖ¸ø¿´¿´ÓôÃÆËÀÁË£¬ÏÂÃæÎҰѳÌÐò´úÂëºÍ±¨´íµÄÄÚÈÝÌù³öÀ´£¬¸ç¸ç½ã½ãÃÇǧÍò¸ø°ï¸ö棬initerr:javax.naming.NoInitialContextException'>javax.naming.NoInitialContextException:Needtospecifyclassnameinenvir...

    25
    ÈȶÈ
  • eclipse+tomcat6.0+oracle 10gÅäÖÃÊý¾Ý¿âÁ¬½Ó³ØµÄÒì³£

    eclipse+tomcat6.0+oracle10gÅäÖÃÊý¾Ý¿âÁ¬½Ó³ØµÄ´íÎótomcatÏÂcontext.xmlÖеÄÅäÖÃÈçÏ£º<Resourcename="jdbc/oraldb"auth="Container"type="javax.sql.DataSource"axActive="100"maxIdle="30"maxWait="10000"username="scott"passwor...

    5847
    ÈȶÈ