geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purdticker <core...@rocketmail.com>
Subject Deploying application-scoped db pool with an ear
Date Thu, 26 Jun 2008 00:26:24 GMT

I'm trying to deploy an ear file with an application-scoped database pool. 
Here is what I've currently done, and below the "======" line are my
questions.

To get a deployment plan, I use the wizard in the geronimo console. 
Database Pools -> Using the Geronimo database pool wizard

When I fill all the required options I have three options: Test Connection,
Skip Test and Deploy, or Skip Test and Show Plan.

I click Test Connection.

Test Result:
	Connected toOracle Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit
Production With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.5.0 - Production

Now I have two options: Deploy, or Show Plan.

I click on Show Plan.

Here are the instructions it gives me:

Add to EAR:
	Instead of deploying as a top-level database pool, you can deploy this pool
as part of an EAR. To add a database pool to an EAR using this plan:

   1. Copy and paste the plan to a file
   2. Save the plan file to the top level of your EAR
   3. Copy the RAR file from
GERONIMO_HOME/\repository\org\tranql\tranql-connector-ra\1.4\tranql-connector-ra-1.4.rar
to the top level of your EAR
   4. Create a META-INF/geronimo-application.xml file in your EAR that has a
module entry like this (substituting the correct RAR file name and plan file
name):

<application
   xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.1">
  <environment>
    <moduleId>
      <artifactId>MyApplication</artifactId>
    </moduleId>
  </environment>
  <module>
    <connector>rar-file-name.rar</connector>
    <alt-dd>plan-file-name.xml</alt-dd>
  </module>
</application>


=============

Here are my questions:

1) "Copy the RAR file from
GERONIMO_HOME/\repository\org\tranql\tranql-connector-ra\1.4\tranql-connector-ra-1.4.rar
to the top level of your EAR".  Is it always this
tranql-connector-ra-1.4.rar file?  Even if I'm using oracle?

2) I'm using Eclipse and the GEP.  I already have an
geronimo-application.xml file.  It starts off with "<app:application
xmlns:......"
When I write in the "<module>" tags, do I also need to include the "app:"
namespace?  e.g. <app:module></app:module>

3)  I get the following error when deploying when I assume answers to
questions 1 and 2 are yes:

Distribution of module failed.  See log for details.
  Geronimo ear plan contains modules that aren't in the ear: false
  org.apache.geronimo.common.DeploymentException: Geronimo ear plan contains
modules that aren't in the ear: false
  	at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.addModules(EARConfigBuilder.java:893)
  	at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getEarPlan(EARConfigBuilder.java:402)
  	at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java:295)
  	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:226)
  	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:133)
  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  	at java.lang.reflect.Method.invoke(Unknown Source)
  	at
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
  	at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
  	at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)
  	at
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
  	at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:342)
  	at sun.reflect.GeneratedMethodAccessor122.invoke(Unknown Source)
  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  	at java.lang.reflect.Method.invoke(Unknown Source)
  	at
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
  	at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
  	at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)
  	at
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
  	at
org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.java:172)
  	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown
Source)
  	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
  	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown
Source)
  	at javax.management.remote.rmi.RMIConnectionImpl.access$200(Unknown
Source)
  	at
javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(Unknown
Source)
  	at java.security.AccessController.doPrivileged(Native Method)
  	at
javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(Unknown
Source)
  	at javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown Source)
  	at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source)
  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  	at java.lang.reflect.Method.invoke(Unknown Source)
  	at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
  	at sun.rmi.transport.Transport$1.run(Unknown Source)
  	at java.security.AccessController.doPrivileged(Native Method)
  	at sun.rmi.transport.Transport.serviceCall(Unknown Source)
  	at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
  	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown
Source)
  	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown
Source)
  	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  	at java.lang.Thread.run(Unknown Source)
  
-- 
View this message in context: http://www.nabble.com/Deploying-application-scoped-db-pool-with-an-ear-tp18124359s134p18124359.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message