Re: Deploying application-scoped db pool with an ear

2008-06-27 Thread Lin Sun
Here is a general guidance for finding a bug  -
http://geronimo.apache.org/found-a-bug.html

Here is the link to our JIRA (bug tracker) system -
http://issues.apache.org/jira/browse/GERONIMO

Thanks, Lin

On Fri, Jun 27, 2008 at 2:30 PM, purdticker <[EMAIL PROTECTED]> wrote:
>
> Sorry what's a JIRA, and where do I submit it?
>
>
> Lin Sun-2 wrote:
>>
>> Great to know that!!  Thanks for the feedback
>>
>> Can you open a JIRA so that we can fix the instruction in the console
>> to remind our user that - for application scope db, a user would also
>> need to add  and  tags into the standard deployment
>> desp?
>>
>> Here's our tutorial page
>> -http://cwiki.apache.org/GMOxDOC21/tutorials.html.   I saw other folks
>> have been creating task JIRAs for tutorialls, for example
>> GERONIMO-4159.
>>
>> Thanks,
>>
>> Lin
>>
>> On 6/26/08, purdticker <[EMAIL PROTECTED]> wrote:
>>>
>>>  Hey I got it working!  I forgot that I had some issues with geronimo so
>>> I
>>>  reinstalled (so my driver was no longer installed in the same place my
>>>  ebs-plan.xml said it was.
>>>
>>>  Also, looks like the  and  tags did need to go into
>>>  application.xml.  That piece of info should be updated via console when
>>> user
>>>  clicks "Show Plan".
>>>
>>>  I'd be happy to write up a tutorial for an application-scoped database
>>> pool,
>>>  how do I go about doing that?
>>>
>>> --
>>>  View this message in context:
>>> http://www.nabble.com/Deploying-application-scoped-db-pool-with-an-ear-tp18124359s134p18139461.html
>>>
>>> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Deploying-application-scoped-db-pool-with-an-ear-tp18124359s134p18161241.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Re: Deploying application-scoped db pool with an ear

2008-06-27 Thread purdticker

Sorry what's a JIRA, and where do I submit it?


Lin Sun-2 wrote:
> 
> Great to know that!!  Thanks for the feedback
> 
> Can you open a JIRA so that we can fix the instruction in the console
> to remind our user that - for application scope db, a user would also
> need to add  and  tags into the standard deployment
> desp?
> 
> Here's our tutorial page
> -http://cwiki.apache.org/GMOxDOC21/tutorials.html.   I saw other folks
> have been creating task JIRAs for tutorialls, for example
> GERONIMO-4159.
> 
> Thanks,
> 
> Lin
> 
> On 6/26/08, purdticker <[EMAIL PROTECTED]> wrote:
>>
>>  Hey I got it working!  I forgot that I had some issues with geronimo so
>> I
>>  reinstalled (so my driver was no longer installed in the same place my
>>  ebs-plan.xml said it was.
>>
>>  Also, looks like the  and  tags did need to go into
>>  application.xml.  That piece of info should be updated via console when
>> user
>>  clicks "Show Plan".
>>
>>  I'd be happy to write up a tutorial for an application-scoped database
>> pool,
>>  how do I go about doing that?
>>
>> --
>>  View this message in context:
>> http://www.nabble.com/Deploying-application-scoped-db-pool-with-an-ear-tp18124359s134p18139461.html
>>
>> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Deploying-application-scoped-db-pool-with-an-ear-tp18124359s134p18161241.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Deploying application-scoped db pool with an ear

2008-06-26 Thread Lin Sun
Great to know that!!  Thanks for the feedback

Can you open a JIRA so that we can fix the instruction in the console
to remind our user that - for application scope db, a user would also
need to add  and  tags into the standard deployment
desp?

Here's our tutorial page
-http://cwiki.apache.org/GMOxDOC21/tutorials.html.   I saw other folks
have been creating task JIRAs for tutorialls, for example
GERONIMO-4159.

Thanks,

Lin

On 6/26/08, purdticker <[EMAIL PROTECTED]> wrote:
>
>  Hey I got it working!  I forgot that I had some issues with geronimo so I
>  reinstalled (so my driver was no longer installed in the same place my
>  ebs-plan.xml said it was.
>
>  Also, looks like the  and  tags did need to go into
>  application.xml.  That piece of info should be updated via console when user
>  clicks "Show Plan".
>
>  I'd be happy to write up a tutorial for an application-scoped database pool,
>  how do I go about doing that?
>
> --
>  View this message in context: 
> http://www.nabble.com/Deploying-application-scoped-db-pool-with-an-ear-tp18124359s134p18139461.html
>
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Re: Deploying application-scoped db pool with an ear

2008-06-26 Thread Kevan Miller


On Jun 26, 2008, at 1:44 PM, purdticker wrote:



Hey I got it working!  I forgot that I had some issues with geronimo  
so I

reinstalled (so my driver was no longer installed in the same place my
ebs-plan.xml said it was.

Also, looks like the  and  tags did need to go into
application.xml.  That piece of info should be updated via console  
when user

clicks "Show Plan".

I'd be happy to write up a tutorial for an application-scoped  
database pool,

how do I go about doing that?


Hi Purdticker,
Glad to hear it. A tutorial would be great and much appreciated!

To insure appropriate IP of our documentation, we request that  
contributors submit an Apache ICLA -- http://www.apache.org/licenses/icla.txt 
.

After the ICLA is on file, we can grant you write access to our Wiki.

Alternative is to submit documentation as a patch, attach it to a Jira  
issue, click the assign license to the ASF button, and have somebody  
incorporate the documentation. The ICLA/Wiki approach is much  
preferred...


--kevan



Re: Deploying application-scoped db pool with an ear

2008-06-26 Thread purdticker

Hey I got it working!  I forgot that I had some issues with geronimo so I
reinstalled (so my driver was no longer installed in the same place my
ebs-plan.xml said it was.

Also, looks like the  and  tags did need to go into
application.xml.  That piece of info should be updated via console when user
clicks "Show Plan".

I'd be happy to write up a tutorial for an application-scoped database pool,
how do I go about doing that?
-- 
View this message in context: 
http://www.nabble.com/Deploying-application-scoped-db-pool-with-an-ear-tp18124359s134p18139461.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Deploying application-scoped db pool with an ear

2008-06-26 Thread purdticker

Perhaps I'm getting this error because something needs to be in the
application.xml?

I tried putting this into the application.xml:

  
tranql-connector-ra-1.4.rar
  

But I get this error:
Distribution of module failed.  See log for details.
  Unable to create configuration for deployment
  org.apache.geronimo.common.DeploymentException: Unable to create
configuration for deployment
at
org.apache.geronimo.deployment.DeploymentContext.createTempConfiguration(DeploymentContext.java:120)
-- 
View this message in context: 
http://www.nabble.com/Deploying-application-scoped-db-pool-with-an-ear-tp18124359s134p18139012.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Deploying application-scoped db pool with an ear

2008-06-26 Thread purdticker



Lin Sun-2 wrote:
> 
> Yes, you need the ojdbc14.jar copied to your geronimo repo.   But, at
> the beginning of creating the database pool, you selected a type,
> right?   It has a few values for oracle, like oracle thin, oracle xa,
> and so on.  What did you select?
> 
> If you select oracle local, then you are using the
> tranql-connector-oracle-local-{version}.rar.  If you select oracle XA,
> then you are using the tranql-connector-oracle-xa-{version}.rar;
> otherwise, you are using tranql-connector-ra-{version}.rar.
> 
> Does the show plan button generated the right rar file there based on
> what you selected?
> 
> HTH,
> 
> Lin
> 

I chose "thin".  The other drivers have been known to cause problems with
our database.

So, yes the show plan button generated the correct rar file:
tranql-connector-ra-{version}.rar.


Jarek Gawor-2 wrote:
> 
> Can you send the actual deployment descriptor which was giving you
> problems?
> 
> Jarek
> 

Sure!

geronimo-application.xml:

http://geronimo.apache.org/xml/ns/j2ee/connector-1.2";
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2";
xmlns:name="http://geronimo.apache.org/xml/ns/naming-1.2";
xmlns:ejb="http://openejb.apache.org/xml/ns/openejb-jar-2.2";
xmlns:pkgen="http://openejb.apache.org/xml/ns/pkgen-2.1";
xmlns:app="http://geronimo.apache.org/xml/ns/j2ee/application-2.0";
xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0";
xmlns:web="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1";
xmlns:pers="http://java.sun.com/xml/ns/persistence";
xmlns:client="http://geronimo.apache.org/xml/ns/j2ee/application-client-2.0";
application-name="EBSPortal">


default
EBSPortal
1.0
car




tranql-connector-ra-1.4.rar
ebs-plan.xml




-- 
View this message in context: 
http://www.nabble.com/Deploying-application-scoped-db-pool-with-an-ear-tp18124359s134p18138307.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Deploying application-scoped db pool with an ear

2008-06-26 Thread Lin Sun
On 6/25/08, purdticker <[EMAIL PROTECTED]> wrote:
>
>
>  djencks wrote:
>  >
>  > no, you should use whatever rar you picked at the beginning.  I'm not
>  > sure if we make this very obvious, but I assume you picked one of the
>  > oracle rars.
>  >
>
>
> Actually, this is where I'm confused.  When was using the wizard, I did not
>  use any rar.  I used a jdbc jar file which I downloaded from oracle's site.
>  
> http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc9201.html
>  ojdbc14.jar

Yes, you need the ojdbc14.jar copied to your geronimo repo.   But, at
the beginning of creating the database pool, you selected a type,
right?   It has a few values for oracle, like oracle thin, oracle xa,
and so on.  What did you select?

If you select oracle local, then you are using the
tranql-connector-oracle-local-{version}.rar.  If you select oracle XA,
then you are using the tranql-connector-oracle-xa-{version}.rar;
otherwise, you are using tranql-connector-ra-{version}.rar.

Does the show plan button generated the right rar file there based on
what you selected?

HTH,

Lin


Re: Deploying application-scoped db pool with an ear

2008-06-25 Thread Jarek Gawor
>> We should be fixing up the namespace for you.  It won't hurt to use
>> the correct namespace anyway.
>
> How do I fix the namespace?  Prepend "app:" before module and subelements?

Can you send the actual deployment descriptor which was giving you problems?

Jarek


Re: Deploying application-scoped db pool with an ear

2008-06-25 Thread purdticker


djencks wrote:
> 
> no, you should use whatever rar you picked at the beginning.  I'm not  
> sure if we make this very obvious, but I assume you picked one of the  
> oracle rars.
> 

Actually, this is where I'm confused.  When was using the wizard, I did not
use any rar.  I used a jdbc jar file which I downloaded from oracle's site.
http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc9201.html
ojdbc14.jar


djencks wrote:
> 
> We should be fixing up the namespace for you.  It won't hurt to use  
> the correct namespace anyway.

How do I fix the namespace?  Prepend "app:" before module and subelements?


djencks wrote:
> 
> This is a remarkably obtuse error message.  Does using the correct rar  
> help at all?
> 
Which rar is the correct rar?  Do I need it?  The wizard never asked for a
rar.
-- 
View this message in context: 
http://www.nabble.com/Deploying-application-scoped-db-pool-with-an-ear-tp18124359s134p18125829.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Deploying application-scoped db pool with an ear

2008-06-25 Thread David Jencks


On Jun 25, 2008, at 5:26 PM, purdticker wrote:



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):

http://geronimo.apache.org/xml/ns/j2ee/application-1.1";>
 
   
 MyApplication
   
 
 
   rar-file-name.rar
   plan-file-name.xml
 



=

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?
no, you should use whatever rar you picked at the beginning.  I'm not  
sure if we make this very obvious, but I assume you picked one of the  
oracle rars.



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

namespace?  e.g. 


We should be fixing up the namespace for you.  It won't hurt to use  
the correct namespace anyway.


This is a remarkably obtuse error message.  Does using the correct rar  
help at all?


thanks
david jencks




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.r