Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 11101 invoked from network); 19 Apr 2006 16:09:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Apr 2006 16:09:41 -0000 Received: (qmail 58171 invoked by uid 500); 19 Apr 2006 16:09:38 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 58150 invoked by uid 500); 19 Apr 2006 16:09:38 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 58139 invoked by uid 99); 19 Apr 2006 16:09:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Apr 2006 09:09:38 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [61.95.162.76] (HELO Kecgate02.infosys.com) (61.95.162.76) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Apr 2006 09:09:37 -0700 Received: from indhubbhs03.ad.infosys.com ([192.168.200.83]) by Kecgate02.infosys.com with InterScan Messaging Security Suite; Wed, 19 Apr 2006 21:38:35 +0530 Received: from BLRKECMSG14.ad.infosys.com ([172.22.147.6]) by indhubbhs03.ad.infosys.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 19 Apr 2006 21:38:07 +0530 Received: from BLRKECMSG01.ad.infosys.com ([172.25.213.131]) by BLRKECMSG14.ad.infosys.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 19 Apr 2006 21:38:07 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C663CB.7250A665" Subject: JNDI Lookup Problem..! Date: Wed, 19 Apr 2006 21:38:07 +0530 Message-ID: <4690875E336998438DF43A78B8E38CF2E4F510@BLRKECMSG01.ad.infosys.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: JNDI Lookup Problem..! Thread-Index: AcZjy3JC3JaqdnnjTwOHOdBzWufVxw== From: "Santosh Koti" To: X-OriginalArrivalTime: 19 Apr 2006 16:08:07.0387 (UTC) FILETIME=[724E1AB0:01C663CB] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------_=_NextPart_001_01C663CB.7250A665 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Folks, =0D I am facing a problem in making a JNDI lookup. I am new to Geronimo (actually I am using websphere community edition ) =0D Here are my details:=0D =0D 1) My database deployment Plan (mydb-plan.xml)is:=0D =0D =0D =0D =0D jars oracle-driver-ojdbc 14.0 =0D =0D =0D =0D javax.sql.DataSource=0D testbank =0D setlbank =0D setlbank =0D oracle.jdbc.driver.OracleDriver jdbc:oracle:thin:@172.25.203.148:1521:setlbank =0D false=0D =0D org.tranql.connector.NoExceptionsAreFatalSorter 10 0 =0D 5000=0D 30 =0D =0D =0D =0D 2) My Geronimo-web.xml file is: =0D testbank testbank =0D =0D =0D =0D 3) My web.xml contains: =0D testbank javax.sql.DataSource Container Shareable =0D =0D 4) And my Geronimo-application.xml file contains: =0D tranql-connector-1.1.rar mydb-plan.xml =0D =0D =0D 5) Deployment is happening fine, but runtime it is giving the following exception: =0D Caused by: javax.naming.NameNotFoundException: testbank at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:10 8) at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:11 6) at javax.naming.InitialContext.lookup(InitialContext.java:361) at com.infosys.j2ee.utils.misc.ServiceLocator.getDataSource(ServiceLocator. java:234) =0D =0D 6) InitalContext parameters were : =0D =0D =0D And my rmi port is running at 1099 (as specified in the config.xml). Let me know , what I am missing. I have tried it many times, but no success..! :-( Can some help me out in proceeding further...! =0D =0D Thanks, Santosh. =0D =0D **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended= solely for the use of the addressee(s). If you are not the intended= recipient, please notify the sender by e-mail and delete the original= message. Further, you are not to copy, disclose, or distribute this e-mail= or its contents to any other person and any such actions are unlawful.= This e-mail may contain viruses. Infosys has taken every reasonable= precaution to minimize this risk, but is not liable for any damage you may= sustain as a result of any virus in this e-mail. You should carry out your= own virus checks before opening the e-mail or attachment. Infosys reserves= the right to monitor and review the content of all messages sent to or= from this e-mail address. Messages sent to or from this e-mail address may= be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS*** ------_=_NextPart_001_01C663CB.7250A665 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi Folks,

 

I am facing a problem in making a JNDI lookup. I am new to Geronimo (actually I am using websphere community edition )

 

Here are my details:

 

1) My database deployment Plan (mydb-plan.xml)is:=

 

         <?xml version=3D"1.0" encoding= =3D"UTF-8"?>

 

<connector xmlns= =3D"http://geronimo.apache.org/xml/ns/j2ee/connector"

  version= =3D"1.5"

  configId= =3D"testbank" 

 = >

 

<dependency> =

   = <groupId>jars</groupId>

   = <artifactId>oracle-driver-ojdbc</artifactId>=

   = <version>14.0</version> 

</dependency>

 

 

 = <resourceadapter>

 = <outbound-resourceadapter>

     = <connection-definition>

      =   <connectionfactory-interface>

      =     javax.sql.DataSource

      =   </connectionfactory-interface>

      =   <connectiondefinition-instance>

      =     <name>testbank</name>

      =     <config-property-setting name=3D"UserName">=

      =       setlbank

      =     </config-property-setting>

      =     <config-property-setting name=3D"Password">=

      =       setlbank

      =     </config-property-setting>

      =     <config-property-setting name=3D"Driver">=

      =       oracle.jdbc.driver.OracleDriver

      =     </config-property-setting>

      =     <config-property-setting name= =3D"ConnectionURL">

      =       jdbc:oracle:thin:@172.25.203.148:1521:setlbank

      =     </config-property-setting>

      =     <config-property-setting name=3D"CommitBeforeAutocommit">=

      =        false

      =     </config-property-setting>

      =     <config-property-setting name=3D"ExceptionSorterClass">=

      =        org.tranql.connector.NoExceptionsAreFatalSorter

      =     </config-property-setting>

      =     <connectionmanager>

      =       <local-transaction/>

      =       <single-pool>

      =          <max-size>10</max-size>

      =          <min-size>0</min-size>

      =          <blocking-timeout-milliseconds>

      =             5000

      =           </blocking-timeout-milliseconds>

      =           <idle-timeout-minutes>

      =             30

      =           </idle-timeout-minutes>

      =           <match-one/>

      =       </single-pool>

      =     </connectionmanager>

 

      =    <!-- <global-jndi-name> jdbc/testbank </global-jndi-name>= -->

 

      =   </connectiondefinition-instance>

      </connection-definition>

   = </outbound-resourceadapter>

</resourceadapter>

</connector>=

 

 

2) My Geronimo-web.xml file is:

 

<?xml version= =3D"1.0" encoding=3D"UTF-8"?>

<web-app

    xmlns= =3D"http://geronimo.apache.org/xml/ns/j2ee/web-1.0"=

    xmlns:naming= =3D"http://geronimo.apache.org/xml/ns/naming-1.0"  &nbs= p;

    configId= =3D"MyConfigName"

    parentId= =3D"SBank/Entities"

 = >

      =   <naming:resource-ref>

      =           <naming:ref-name>testbank</naming:ref-name>

      =           <naming:resource-link>testbank</naming:resource-link> &nbs= p;     

   = </naming:resource-ref>

   =

</web-app>

 

 

 

3) My web.xml contains:

 

 = <resource-ref>

     =           <res-ref-name>testbank</res-ref-name>

     =           <res-type>javax.sql.D= ataSource</res-type>

     =           <res-auth>Container</res-auth>

     =           <res-sharing-scope>Shareable</res-sharing-scope><= /b>

     = </resource-ref>

     =        

 

4) And my Geronimo-application.xml file contains:

 

<module>

<connector>tranql-connector-1.= 1.rar</connector>

<alt-dd>mydb-plan.xml</alt-= dd>

</module>

</application>

 

 

 

5) Deployment is happening fine, but runtime it is giving the= following exception:

 

Caused by:= javax.naming.NameNotFoundException: testbank

      =   at= com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:108)=

      =   at= com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:116)=

      =   at= javax.naming.InitialContext.lookup(InitialContext.java:361)<= /b>

      =   at com.infosys.j2ee.utils.misc.ServiceLocator.getDataSource(ServiceLocator.jav= a:234)

 

 

6) InitalContext parameters were :

        <Param name=3D"JndiName" value =3D"testbank"= />

      =   <Param name=3D"Provider-Url" value= =3D"rmi://localhost:1099"/>

      =   <Param name=3D"Initial-Contextfactory" value= =3D"com.sun.jndi.rmi.registry.RegistryContextFactory"/>=

 

 

 

And my rmi port is running at 1099 (as specified in the= config.xml).

Let me know , what I am missing. I have tried it many times, but no success..! :-(

Can some help me out in proceeding= further…!

 

 

Thanks,

Santosh.

 

 

****************= CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended= solely for the use of the addressee(s). If you are not the intended= recipient, please notify the sender by e-mail and delete the original= message. Further, you are not to copy, disclose, or distribute this e-mail= or its contents to any other person and any such actions are unlawful.= This e-mail may contain viruses. Infosys has taken every reasonable= precaution to minimize this risk, but is not liable for any damage you may= sustain as a result of any virus in this e-mail. You should carry out your= own virus checks before opening the e-mail or attachment. Infosys reserves= the right to monitor and review the content of all messages sent to or= from this e-mail address. Messages sent to or from this e-mail address may= be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
------_=_NextPart_001_01C663CB.7250A665--