Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Name java:comp is not bound in this Context

 
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
ÔÚtomcatÖз¢²¼webÏîÄ¿£¬¿ÉÄÜÊÇÒòΪspringÖÐÅäÖÃÁËjndi£¨Ö»ÅäÖÃÁËjndi£¬ÆäËûµÄÓй¤¾ß°ü·â×°ÁË£©¡£
Æô¶¯µÄʱºò±¨´í£¨ÔÚÏîĿĿ¼Ï£¬ÔÚtomcatÖÐÅäÖÃcontextÖ¸ÏòÏîĿĿ¼¾ÍûÎÊÌ⣬´ò°ü·¢²¼µ½
tomcat¾Í±¨´íÁË£©£¬Å×µÄÒì³£ÊÇ£º
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
ÔÚweb.xmlÖÐÌí¼ÓÅäÖÃÈçÏ£º
<resource-ref>
  <description>DB Connection</description>
  <res-ref-name>jdbc/test</res-ref-name>
  <res-type>javax.sql.DataSource</res-type>
  <res-auth>Container</res-auth>
 </resource-ref>
===================================
Name java:comp is not bound in this Context
javax.naming.NameNotFoundException: Name java:comp is not bound in this Context
--ÕâÊÇÔÚ³õʼ»¯contextʱ(Context envCtx = (Context)
ctx.lookup("java:comp/env");)Å׳öµÄÒì³££»½â¾ö·½·¨Êǰѹ¤³Ì/WEB-INF/libÏÂÃænaming-
common.jar,naming-factory.jar,naming-resources.jarÈý¸öjar°üɾ³ý£»
http://hi.baidu.com/salala1/blog/item/c9e6f3ed7d2a9d4778f05510.html
===================================
µÚÒ»ÖÖû½â¾ö£»
µÚ¶þÖÖÓ¦¸ÃÊÇtomcat/common/libϵÄÎļþºÍWEB-INF/libϵÄÎļþ³åÍ»Ôì³ÉµÄ¡£½â¾öÎÊÌâ


Ïà¹ØÎĵµ£º

javaÅäÖû·¾³±äÁ¿

           unixϵͳ£º´ò¿ªshellÃüÁîÐÐ
                ÊäÈëvi _bash_profile ÐÞ¸Ä
                JA ......

CONSTµÄÏà¹Ø¼¸¸öÎÊÌâ½â´ð£¨cÓëc++£¬java£©

Ò»¡¢
 ÏÈ¿´Ò»¸ö³ÌÐò
#include <stdio.h>
int main()
{
const int a = 5;
int b[a];
return 0;
}
ÔÚvc6.0ÖÐÃüÃûΪ.cÎļþ£¬±àÒë»á³ö´í£¬ÊÇint b[a]ÕâÒ»ÐУºexpected constant expression
        ÃüÃûΪ.cppÎļþ£¬Ã»ÎÊÌâ¡£
ÔÚcodeblocks(Ò»¸öÃâ·Ñ¿ªÔ´µÄ±àÒëÆ÷)ÖбàÒ붼à ......

Project Zero¡¢WebSphere sMash¡¢PHPºÍJAVAµÄÕûºÏ


´Ó¼Ü¹¹Éè¼Æ·½Ã濼ÂÇ£¬ºÜ¶àϵͳ²ÉÓÃÁË Java Bridge°ÑphpºÍJAVA¼¼Êõ½áºÏÆðÀ´£¬ÀûÓÃPHPµÄ¿ìËÙÏìÓ¦ºÍJAVAµÄÊý¾Ý³Ö¾Ã»¯ÄÜÁ¦£¬Äܴܺó³Ì¶ÈÉÏÄÜÌá¸ßϵͳÐÔÄÜ¡£ÕâÁ½ÆªÎÄÕ½«ÏêϸµÄ½éÉÜProject Zero¡¢WebSphere sMash ºÍ PHP µÄÕûºÏ¼¼Êõ
Project Zero¡¢WebSphere sMash ºÍ PHP ÈëÃÅ
http://www.ibm.com/developerworks/cn/web/wa- ......

¹ØÓÚ½«java³ÌÐò×ö³ÉexeÎļþµÄ¼¸ÖÖ×ö·¨£¨ZT£©

 ¿ÉÒÔ°ÑÆÕͨµÄJava³ÌÐò×ö³ÉÕæÕýµÄexe,Ò²¾ÍÊǵ¥Ò»¸öexe¾Í¿ÉÒÔÔÚûÓа²×°JVMµÄ»úÆ÷ÉÏÔËÐС£ÕâÑùµÄ¹¤¾ß³£¼ûµÄÓÐJETºÍgcj.Ç°ÕßÊÇÊշѵģ¬¶øÇÒ×ö³öÀ´µÄexe»¹ÊÇÐèÒªÒ»¶Ñdll¡£ÍƼöʹÓÃgcj.ËûÓÐwindowsºÍLinux°æ£¬Ö±½ÓÏÂÔØzip°ü£¬²»ÐèÒª°²×°£¬ÀïÃæÓв»ÉÙÀý×Ó£¬Ò»Ð©buildµÄÅú´¦ÀíÎļþ¡£´ÓÔ­ÀíÀ´Ëµgcj×Ô¼ºÊµÏÖÁËJVM¹æ·¶£¬Ò²¾ÍÊÇÄ ......

javaÖÐthis¹Ø¼ü×ÖÓ÷¨

 /**
* this¹Ø¼ü×ÖÓ÷¨
*/
public class Flower {

int petalCount = 0;
String s = "initial value";

Flower(int petals){
petalCount = petals;
System.out.println("Constructor with one int arg");
}

Flower(String ss){
System.out.println("Constr ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ