¤³¤Î¥Ú¡¼¥¸¤òdel.icio.us¤ËÄɲà ¤³¤Î¥Ú¡¼¥¸¤ò¤Ï¤Æ¤Ê¥Ö¥Ã¥¯¥Þ¡¼¥¯¤ËÄɲ䳤Υڡ¼¥¸¤ò´Þ¤à¤Ï¤Æ¤Ê¥Ö¥Ã¥¯¥Þ¡¼¥¯ ¤³¤Î¥Ú¡¼¥¸¤òlivedoor ¥¯¥ê¥Ã¥×¤ËÄɲà ¤³¤Î¥Ú¡¼¥¸¤òYahoo!¥Ö¥Ã¥¯¥Þ¡¼¥¯¤ËÄɲ䳤Υڡ¼¥¸¤ò´Þ¤àYahoo!¥Ö¥Ã¥¯¥Þ¡¼¥¯
Top / WebSphere / WAS¤ÈJNDI

WebSphere ¤ÎJNDI¤ÎÀßÄêÊýË¡(ÆÃ¤Ë¥Ç¡¼¥¿¥½¡¼¥¹)

Java¾å¤Î¥³¡¼¥Ç¥£¥ó¥°

(DataSource) ctx.lookup("java:comp/env/jdbc/DataSourceUserProfile");

¤Î¤è¤¦¤Ë¤·¤Æ¡¢"java:comp/env/" ¤ò¤Ä¤±¤ë¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£*1 ¤³¤ì¤ò

(DataSource) ctx.lookup("jdbc/DataSourceUserProfile");

¤È½ñ¤¯¤È¡¢¥µ¡¼¥Ð¤Î¥Ç¡¼¥¿¥½¡¼¥¹Ì¾¤òľÀÜ»ØÄꤷ¤¿¤³¤È¤Ë¤Ê¤ë(¡©¡©) ¼ÂºÝ¡¢java:comp/env ¤ò¤Ä¤±¤¿¾ì¹ç¤Ï¡¢²¼µ­¤Î¥Ð¥¤¥ó¥Ç¥£¥ó¥°¤È¤¤¤¦ºî¶È¤ò¤·¤Ê¤¤¤È¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤Î¤ËÂФ·¡¢¤Ä¤±¤Ê¤¤¾ì¹ç¤Ï¥¨¥é¡¼¤¬È¯À¸¤·¤Ê¤«¤Ã¤¿¡£

ejb-jar.xml or web.xml ¤ËÄɲÃ

¥³¡¼¥ÉÃæ¤Ç¾å¤Î¤è¤¦¤Ë¥ë¥Ã¥¯¥¢¥Ã¥×¤·¤Æ¤¤¤ë¤â¤Î¤ò¤¹¤Ù¤Æ¡¢Îóµó¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£

<resource-ref>
	<description>DataSourceUserProfile</description>
	<res-ref-name>jdbc/DataSourceUserProfile</res-ref-name>
	<res-type>javax.sql.DataSource</res-type>
	<res-auth>Container</res-auth>
</resource-ref>

WSAD¤Ê¤éGUI¤Ç¤â¤Ç¤­¤Þ¤¹¡£

web.xml >> »²¾È >> ¥ê¥½¡¼¥¹

¤òÊÔ½¸¤·¤Æ¤¯¤À¤µ¤¤¡£ ¤³¤³¤Þ¤Ç¤Ï¡¢¤¹¤Ù¤Æ¡¢J2EEɸ½à¤Î¤ä¤ê¤«¤¿¤Ç¤¹¡£

¥Ð¥¤¥ó¥Ç¥£¥ó¥°

¾åµ­¤Î¥í¡¼¥«¥ë¥ë¥Ã¥¯¥¢¥Ã¥×¤·¤Æ¤¤¤ë̾Á°(jdbc/DataSourceUserProfile?)¤ò¼ÂºÝ¤ÎDatasource¤ÎJNDI̾¤ÈÂбþ¤µ¤»¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£ ¤³¤ì¤ò¤·¤Ê¤¤¤È¡¢

[03/05/19 21:04:34:027 JST] 1d728bcb Helpers       W NMSV0605W: ¥³¥ó¥Æ¥­¥¹¥È "java:" ¤«¤é
̾Á° "comp/env/jdbc/DataSourceUserProfile" ¤Ç¥ë¥Ã¥¯¥¢¥Ã¥×¤µ¤ì¤¿»²¾È¥ª¥Ö¥¸¥§¥¯¥È¤¬
JNDI Naming Manager ¤ËÁ÷¿®¤µ¤ì¡¢Îã³°¤¬È¯À¸¤·¤Þ¤·¤¿¡£ »²¾È¥Ç¡¼¥¿¤Ï¼¡¤Î¤È¤ª¤ê¤Ç¤¹:
»²¾È¥Õ¥¡¥¯¥È¥ê¡¼¡¦¥¯¥é¥¹Ì¾: com.ibm.ws.util.ResRefJndiLookupObjectFactory
»²¾È¥Õ¥¡¥¯¥È¥ê¡¼¡¦¥¯¥é¥¹¤Î¾ì½ê¤Î URL: <null>
Reference Class Name: java.lang.Object
Type: ResRefJndiLookupInfo
Content: com.ibm.ws.util.ResRefJndiLookupInfo@38e08bcb
ResRefJndiLookupInfo: Look up Name="jdbc/DataSourceUserProfile";JndiLookupInfo:
jndiName=""; providerURL=""; initialContextFactory=""

¤È¤¤¤¦Îã³°¤¬È¯À¸¤·¤Þ¤·¤¿¡£

¤³¤Îbinding¤ÎÊýË¡¤Ï¡¢J2EE¤ÎSpec³°¤Ç¤¹¤Î¤Ç¡¢³ÆApplicationServer?¤Ë¤è¤Ã¤Æ°Û¤Ê¤ê¤Þ¤¹¡£ WebSphere¤Ê¤é¡¢¤³¤Îbinding¾ðÊó¤Ï,WebApplication?¤Î¾ì¹ç¤Ï

WEB-INF/ibm-web-bnd.xmi

¤ËÊݸ¤µ¤ì¤Þ¤¹¡£ÉáÄ̤ÏAAT¤Ê¤ê¡¢WSAD¤Ê¤ê¡¢¤Þ¤¿¤Ï¡¢deploy»þ¤Ëbinding¾ðÊó¤ò¤¤¤í¤¤¤íʹ¤«¤ì¤ë¤Î¤Ç¤½¤Î¾ðÊó¤ò¸µ¤Ë¼«Æ°Åª¤Ë¤Ä¤¯¤é¤ì¤Þ¤¹¡£

WSAD¤ò¤Ä¤«¤Ã¤Æ¤¤¤ë¤Î¤Ê¤é¡¢web.xml ¤Î¥¨¥Ç¥£¥¿¾å¤Ç¤â¤Ä¤¯¤ì¤Þ¤¹¡£

web.xml >> »²¾È >> ¥ê¥½¡¼¥¹ >> WebSphere ¥Ð¥¤¥ó¥Ç¥£¥ó¥°

¤Î¸Ä½ê¤òÊÔ½¸¤¹¤ë¤È¡¢WEB-INF/ibm-web-bnd.xmi¤¬¤Ä¤¯¤é¤ì¤Þ¤¹¡£

http://neverbird.sourceforge.jp/manual/fancy/ch07s02.html ¤Ë»²¹Í¤Ë¤Ê¤ë¾ðÊ󤬤¢¤ê¤Þ¤¹¡£


http://neverbird.sourceforge.jp/manual/fancy/ch07s22.html ¤Ë¤è¤ë¤È¡¢¥í¡¼¥«¥ë¥ë¥Ã¥¯¥¢¥Ã¥×¤Î°Õ¿Þ¤Ï¡¢
¥ê¥½¡¼¥¹»²¾È¤Ï¡¢¥µ¡¼¥Ö¥ì¥Ã¥È/JSP¥Ú¡¼¥¸³«È¯¼Ô¤¬¡¢¥ê¥½¡¼¥¹¤Î¥Ç¥×¥í¥¤»þ¤Î¥Ð¥¤¥ó¥Ç¥£¥ó¥°¤Ë°Í¸¤·¤Ê¤¤ENC(ÌõÃí:Environment Naming Context)¤«¤é¤ÎÁêÂÐ̾¤òÄêµÁ¤Ç¤­¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£ jboss-web.xml¥Ç¥£¥¹¥¯¥ê¥×¥¿¤Ï¡¢¤½¤Î¥Ç¥×¥í¥¤¥á¥ó¥Èµ­½Ò¤ÇÀßÄꤵ¤ì¤Æ¤¤¤ë¤è¤¦¤Ë¡¢³«È¯¼Ô¤¬ÄêµÁ¤·¤¿¥ê¥½¡¼¥¹Ì¾¤«¤é¥ê¥½¡¼¥¹ ¥Õ¥¡¥¯¥È¥ê¤Ø¤Î¼ÂºÝ¤ÎJNDI¥Ð¥¤¥ó¥Ç¥£¥ó¥°¤Ø¤Î¥Þ¥Ã¥×¤ò¤ª¤³¤Ê¤¤¤Þ¤¹¡£
¤Ê¤ó¤À¤½¤¦¤Ç¤¹¡£

¥á¥â¡£

PostgreSQL¤Ç¥¨¥é¡¼¤Ë¤Ê¤é¤Ê¤«¤Ã¤¿ÀßÄê¡£

  • JDBC¥É¥é¥¤¥Ð
    ¼ÂÁõ¥¯¥é¥¹Ì¾org.postgresql.jdbc2.optional.ConnectionPool?
    ¥¯¥é¥¹¥Ñ¥¹pg74.214.jdbc3.jar
  • DataSource?
    ¥Ç¡¼¥¿¥½¡¼¥¹¤Î¥Ø¥ë¥Ñ¡¼¥¯¥é¥¹Ì¾com.ibm.websphere.rsadapter.ConnectJDBCDataStoreHelper?

µ¯Æ°¤¹¤ë¤È¤¤¤í¤¤¤í¥¨¥é¡¼¤¬¡£¡£

org.postgresql.util.PSQLException: The user property is missing. It is mandatory. ¤¬É½¼¨¤µ¤ì¤ë
¥Ç¡¼¥¿¥½¡¼¥¹¤«¤égetConnection¤¹¤ë¤È¤­¤Ë¡¢userid,password¤ò»ØÄꤹ¤ëÊý¤Î¥á¥½¥Ã¥É¤ò»ÈÍѤ¹¤ë¡¢¤â¤·¤¯¤Ï¥Ç¡¼¥¿¥½¡¼¥¹¤Î¥×¥í¥Ñ¥Æ¥£¤Ë
keyvalue
user¥æ¡¼¥¶ID
password¥Ñ¥¹¥ï¡¼¥É
¤ò»ØÄꤹ¤ë¡£
java.lang.reflect.InvocationTargetException?: org.postgresql.util.PSQLException: Transaction isolation level 4 is not supported.¤¬É½¼¨¤µ¤ì¤ë

¤³¤Îµ­»ö¤Ï

ÁªÂò»è Åêɼ
¤ª¤â¤·¤í¤«¤Ã¤¿ 24  
¤½¤¦¤Ç¤â¤Ê¤¤ 9  

¤³¤Î¥Ú¡¼¥¸¤òdel.icio.us¤ËÄɲà ¤³¤Î¥Ú¡¼¥¸¤ò¤Ï¤Æ¤Ê¥Ö¥Ã¥¯¥Þ¡¼¥¯¤ËÄɲ䳤Υڡ¼¥¸¤ò´Þ¤à¤Ï¤Æ¤Ê¥Ö¥Ã¥¯¥Þ¡¼¥¯ ¤³¤Î¥Ú¡¼¥¸¤òlivedoor ¥¯¥ê¥Ã¥×¤ËÄɲà ¤³¤Î¥Ú¡¼¥¸¤òYahoo!¥Ö¥Ã¥¯¥Þ¡¼¥¯¤ËÄɲ䳤Υڡ¼¥¸¤ò´Þ¤àYahoo!¥Ö¥Ã¥¯¥Þ¡¼¥¯
Top / WebSphere / WAS¤ÈJNDI

¸½ºß¤Î¥¢¥¯¥»¥¹:25420


*1 ¥í¡¼¥«¥ë¥ë¥Ã¥¯¥¢¥Ã¥×¤È¤«¤¤¤¦¤é¤·¤¤

¥È¥Ã¥×   ÊÔ½¸ Åà·ë º¹Ê¬ ¥Ð¥Ã¥¯¥¢¥Ã¥× źÉÕ Ê£À½ ̾Á°Êѹ¹ ¥ê¥í¡¼¥É   ¿·µ¬ °ìÍ÷ ñ¸ì¸¡º÷ ºÇ½ª¹¹¿·   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS
Last-modified: 2012-04-05 (ÌÚ) 15:23:16 (44d)