Once that is working, try using the TranQL connector for DB2, which is included in Geronimo 2.1 or in the latest Geronimo 2.0.3-SNAPSHOT, 2.1.1-SNAPSHOT or 2.2-SNAPSHOT builds in -
  http://geronimo.apache.org/maven/server/binaries/

If you want to stay with 2.0.2 (instead of grabbing the latest 2.0.3-SNAPSHOT build) you can manually download the connector from-
http://repo1.maven.org/maven2/org/tranql/tranql-connector-db2-xa/1.1/tranql-connector-db2-xa-1.1.rar
and install it into your repo as -
repository/org/tranql/tranql-connector-db2-xa/1.1/tranql-connector-db2-xa-1.1.rar

Then update your deployment plan to use the new RAR -
<external-path xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2";>
    <dep:groupId>org.tranql</dep:groupId>
    <dep:artifactId>tranql-connector-db2-xa</dep:artifactId>
    <dep:type>rar</dep:type>
  </external-path>

Then deploy using -
deploy --user system --password manager deploy ..\repository\org\tranql\tranql-connector-db2-xa/1.1/tranql-connector-db2-xa-1.1.rar <dep_plan_home>\db2-plan.xml


-Donald

Vamsavardhana Reddy wrote:
You should specify the rar first followed by the plan file. Looks like there is another problem in your case... the file "C:\geronimo-tomcat6-jee5-2.0.2\bin\db2-geronimo-plan" does not exist. Make sure the file exists. Geronimo does not make any assumptions on the file extension. Use the full filename, for e.g. db2-geronimo-plan.xml.

++Vamsi

On Fri, Mar 28, 2008 at 7:37 AM, SKService <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:


    Hi,
    I'm trying to create a DB2 datasource on Geronimo 2.0.2.

    I've taken all education from the following link,
    http://cwiki.apache.org/GMOxDOC20/configuring-db2-datasource.html

    My Db2 version is 8.1.7.706.

    as pointed out, after creating the deploy plan, I'm trying to use the
    following command line sequence from the <geronimo_home>/bin directory.
    deploy --user system --password manager deploy
    <dep_plan_home>\db2-plan.xml
    ..\repository\org\tranql\tranql-connector-ra\1.3\tranql-connector-ra-1.3.rar


    I'm getting the following error (I've also uploaded my deployment plan):


    C:\geronimo-tomcat6-jee5-2.0.2\bin>deploy --user system --password
    manager
    deploy db2-geronimo-plan
    ..\repository\org\tranql\tranql-connector-ra\1.4\tranql-conne
    ctor-ra-1.4.rar
    Using GERONIMO_BASE:   C:\geronimo-tomcat6-jee5-2.0.2
    Using GERONIMO_HOME:   C:\geronimo-tomcat6-jee5-2.0.2
    Using GERONIMO_TMPDIR: var\temp
    Using JRE_HOME:        C:\Program Files\Java\jdk1.5.0_06\jre
       Error: Unable to read file
       C:\geronimo-tomcat6-jee5-2.0.2\bin\db2-geronimo-plan
    java.io.IOException: Cannot read file
    C:\geronimo-tomcat6-jee5-2.0.2\bin\db2-geronimo-plan
           at
    org.apache.geronimo.common.FileUtils.isZipFile(FileUtils.java:53)
           at
    
org.apache.geronimo.deployment.plugin.ConfigIDExtractor.isJarFile(ConfigIDExtractor.java:242)
           at
    
org.apache.geronimo.deployment.cli.CommandDistribute.execute(CommandDistribute.java:82)
           at
    org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:161)
           at
    
org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
           at
    org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
           at
    org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31)


    http://www.nabble.com/file/p16344329/db2-geronimo-plan.xml
    db2-geronimo-plan.xml
    --
    View this message in context:
    
http://www.nabble.com/Problem-creating-a-DB2-datasource-tp16344329s134p16344329.html
    Sent from the Apache Geronimo - Users mailing list archive at
    Nabble.com <http://Nabble.com>.


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to