-
Òì³£: ÎÞ·¨·ÃÎÊ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
ÈȶÈ