Re: Deployment fail at persistent EJB

2005-04-14 Thread Gianny Damour
Hello Katia,
Comments follows.
On 15/04/2005 4:35 AM, Katia Aresti Gonzalez wrote:
Hi!!!
Here is the stack trace :-) it was in the geronimo.log i didnt 
now anything about this logs, didnt now that the could be so helpfull!!!

Well, it seems that the openejb-ja.xmlr is correct? The problems is in 
another part?

thanks
Katia

Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
 at 
org.openejb.entity.cmp.CMPInstanceContextFactory.(CMPInstanceContextFactory.java:127)

A guess:  at least one of the getter or setter for the persistent fields 
is not abstract. Hence, could you please provide your CMP Bean 
implementation?

By the way, have you defined a value for the cmp-version element in the 
ejb-jar.xml file?

As an aside, let me re-iterate that there are a couple of CMP examples 
in the OpenEJB CVS repo there:
modules/openejb-builder/src/test-cmp.
You will find working examples for OTO, OTM, MTM, simple and complex 
primary keys and bi-directional and uni-directional CMR fields.

I strongly recommend you to:
* read some general documentations on CMP. I think that this is the 
first step to have at least a pass for your exam :);
* have a look to theconfiguration files that I was talking about before. 
Please, do that after having done some prior reading on CMP;
* have a look to the corresponding CMP bean implementations there (also 
under the OpenEJB CVS repo): 
modules/openejb-builder/src/test/org/openejb/deployment/entity/cmp; and
* finally, deploy your own CMP.

Good luck.
Thanks,
Gianny


Re: Deployment fail at persistent EJB

2005-04-14 Thread Jeremy Boynes
Gianny Damour wrote:
On 15/04/2005 4:19 AM, David Jencks wrote:
Someone helpfully tried to make the deployer errors less annoyingly  
verbose but this is the unfortunate result... they are now 
meaningless  and useless.  I believe there is a switch or flag 
somewhere to turn  stack traces back on, but I don't know where.  You 
should also look in  all the logs in geronimo-1.0-SNAPSHOT/var/log to 
see if the trace is  logged somewhere with some useful information 
about where the error is  occurring.

david jencks

Two general options flags deal with the verbosity of deployment error 
messages:
  --syserr

   Log errors to syserr. Can be either true or false. The default
   value is false.
  --verbose
   Verbose execution mode. Can be either true or false. The default
   value is false.
Do you think that their default value should be true?
To a typical user, a stack trace does not convey much useful 
information. We should be clearer about the cause and provide meaningful 
messages that allow them to fix the problem.

The option to dump the full stacktrace should still be there but only as 
a mechanism for people to debug the deployment process itself.

Perhaps we need two different behaviours: one where we report errors in 
the input data that we detected with enough information to fix them, the 
other where we ran into an unexpected problem and just need to bail.

For example, suppose we get a web.xml which contains two servlets with 
the same name. XML schema validation would fail with a unique constraint 
violation but rather than dump a trace, or even the error message from 
the parser, we should say "you have two servlets with the name 'foo' and 
that's not allowed"

Or if a remote server is down, don't report "IOException: Connection 
Refused", report "Could not connect to server at foo.bar.com port 1099 
using JMX: Connection Refused"

This will require more work in the deployers as they need to check for 
common error conditions and handle them. We can do that in response to 
problems reported by users, or gradually do the work up front as time 
permits or contributions come.

--
Jeremy


Re: Deployment fail at persistent EJB

2005-04-14 Thread Gianny Damour
On 15/04/2005 4:19 AM, David Jencks wrote:
Someone helpfully tried to make the deployer errors less annoyingly  
verbose but this is the unfortunate result... they are now 
meaningless  and useless.  I believe there is a switch or flag 
somewhere to turn  stack traces back on, but I don't know where.  You 
should also look in  all the logs in geronimo-1.0-SNAPSHOT/var/log to 
see if the trace is  logged somewhere with some useful information 
about where the error is  occurring.

david jencks
Two general options flags deal with the verbosity of deployment error 
messages:
  --syserr

   Log errors to syserr. Can be either true or false. The default
   value is false.
  --verbose
   Verbose execution mode. Can be either true or false. The default
   value is false.
Do you think that their default value should be true?
Thanks,
Gianny


Re: HTTP Server jetty

2005-04-14 Thread Dain Sundstrom
David is assuming you are asking about the Apache Java based http 
server (and servlet/jsp engine) Tomcat.  If you really meant the Apache 
HTTPd server, the reason we don't ship with it is HTTPd is written in C 
and must be compiled to each platform where our distributions will run 
on a generic Java VM.

-dain
--
Dain Sundstrom
Chief Architect
Gluecode Software
On Apr 14, 2005, at 8:49 AM, David Jencks wrote:
The reasons are primarily historical: the main Jetty developers were 
some of the geronimo founding members and most of us have a lot more 
experience with Jetty than Tomcat.  There is a Tomcat integration and 
several people are working on it, however it is not yet completely 
integrated and functional.  I think the Tomcat work is somewhat 
sidelined at the moment in our effort to finish j2ee certification.  
We would certainly welcome help in finishing the Tomcat integration.

Many thanks,
david jencks
On Apr 14, 2005, at 8:31 AM, Yves Caloz wrote:
Hi,
Somebody surely already put the question, but I did not find an 
answer, then I ask it nevertheless: Why is Geronimo default with 
Jetty and not HTTP Apache Server integrated ? Is it a licence problem 
?

Thanks



Persistent EJB, help please!!

2005-04-14 Thread Katia Aresti Gonzalez

Hi everybody!!
 know that this is not the proper list for this question, but im a bit desperate with a problem I have with CMP persistent, and deploying persistent EJBs into Geronimo.Ive been trying in the last week to deploy a very simple application, a jar with a session bean, a cmp bean and a bmp bean. The problem i have, is the cmp bean. Im going crazy to find the way to write a proper openejb-jar.xml. There is not enough documentation about this, and i need to know how to do this because Im doing my university finish proyect, and will be very nice to make an application run into geronimo with all type of beans. Im only 23, and im finishing at Deusto University in Bilbao (Spain) my engineering studies this June. When I finish the proyect (I have 3 weeks...) i will send it all for you, to everybody, so the spanish comunity will have user start documentation about Geronimo and some sample applications to run on it.
Im not the only person in the world doing this (its imposible) and if Geronimo supports cmp persistence is because somebody has try it and somebody has deployed a simple application... But there is nothing about anywhere!!! Im only beggin you a little help with this, just to be able to do a little application and include in the proyect. I havent enough time to do this and im really really desperate, so pleaseee pleas give me a little hand and explain to me how can i fix the problem, because Im really trying on it, and i havent a lot of experience and its being really hard for me to investigate on my own how this works. 
Thank you very much for reading this, and if somebody can send me a tiny application, or have a look to my emails at the user list... The aplication Im trying to deploy is the one of openEJB comunuty, an example with CabinEJB, TitanEJB and ShipEJB.Thank you very much to everybody, and thanks for your help.
>From: "Katia Aresti Gonzalez" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Deployment fail at persistent EJB, help please!!
>Date: Thu, 14 Apr 2005 19:03:09 +
>
Encuentra una aventura, un romance o al amor de tu vida.  Date de alta gratis. 
--- Begin Message ---

Ok... thank you very much David for your help. Hopefully somebody else will help me with this... :-) 
So, please... If somebody can help me... Or send me to my personal email a very little applicattion with a persistent EJB... pleas pleas Nobody has tryed to deploy persistent EJBs???
thanks a lot to everybody!!!
>From: David Jencks <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Deployment fail at persistent EJB
>Date: Thu, 14 Apr 2005 11:48:11 -0700
>
>You've now gotten outside the area I know anything about :-)
>
>I suspect it is still a problem with the xml, but now with the cmp  
>field elements.  Hopefully you can figure out what is wrong by
>looking  at the code that throws the exception, or someone who knows
>that area  will offer a suggestion.
>
>david jencks
>
>On Apr 14, 2005, at 11:35 AM, Katia Aresti Gonzalez wrote:
>
>>Hi!!!
>>
>>Here is the stack trace :-) it was in the geronimo.log i
>>didnt  now anything about this logs, didnt now that the could be so
>>  helpfull!!!
>>
>>Well, it seems that the openejb-ja.xmlr is correct? The problems is
>>in  another part?
>>
>>thanks
>>
>>  Katia
>>
>> 
>>
>>20:26:16,875 DEBUG [Deployer] Deployment failed: plan=null,  
>>module=d:\cmp\build\dist\prueba-ejbs.jar
>>org.apache.geronimo.common.DeploymentException: Unable to
>>initialize  EJBContainer GBean: ejbName [CabinEJB]
>> at  
>>org.openejb.deployment.CMPEntityBuilder.createBean(CMPEntityBuilder.jav
>>a:749)
>> at  
>>org.openejb.deployment.CMPEntityBuilder.buildBeans(CMPEntityBuilder.jav
>>a:138)
>> at  
>>org.openejb.deployment.OpenEJBModuleBuilder.addGBeans(OpenEJBModuleBuil
>>der.java:512)
>> at  
>>org.openejb.deployment.OpenEJBModuleBuilder$$FastClassByCGLIB$$11bd7b20
>>.invoke()
>> at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>> at  
>>org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodIn
>>voker.java:38)
>> at  
>>org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.
>>java:118)
>> at  
>>org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.ja
>>va:710)
>> at  
>>org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:
>>57)
>> at  
>>org.apache.geronimo.kernel.proxy.RawOperationInvoker.invoke(RawOperatio
>>nInvoker.java:36)
>> at  
>>org.apache.geronimo.kernel.proxy.ProxyMethodInterceptor.intercept(Proxy
>>MethodInterceptor.java:92)
>> at  
>>org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$380
>>f6faf.addGBeans()
>> at  
>>org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration
>>(EARConfigBuilder.java:354)
>> at  
>>org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$
>>$38e56ec6.invoke()
>> at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>> at  
>>org

Re: Deployment fail at persistent EJB, help please!!

2005-04-14 Thread Katia Aresti Gonzalez

Ok... thank you very much David for your help. Hopefully somebody else will help me with this... :-) 
So, please... If somebody can help me... Or send me to my personal email a very little applicattion with a persistent EJB... pleas pleas Nobody has tryed to deploy persistent EJBs???
thanks a lot to everybody!!!
>From: David Jencks <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Deployment fail at persistent EJB
>Date: Thu, 14 Apr 2005 11:48:11 -0700
>
>You've now gotten outside the area I know anything about :-)
>
>I suspect it is still a problem with the xml, but now with the cmp  
>field elements.  Hopefully you can figure out what is wrong by
>looking  at the code that throws the exception, or someone who knows
>that area  will offer a suggestion.
>
>david jencks
>
>On Apr 14, 2005, at 11:35 AM, Katia Aresti Gonzalez wrote:
>
>>Hi!!!
>>
>>Here is the stack trace :-) it was in the geronimo.log i
>>didnt  now anything about this logs, didnt now that the could be so
>>  helpfull!!!
>>
>>Well, it seems that the openejb-ja.xmlr is correct? The problems is
>>in  another part?
>>
>>thanks
>>
>>  Katia
>>
>> 
>>
>>20:26:16,875 DEBUG [Deployer] Deployment failed: plan=null,  
>>module=d:\cmp\build\dist\prueba-ejbs.jar
>>org.apache.geronimo.common.DeploymentException: Unable to
>>initialize  EJBContainer GBean: ejbName [CabinEJB]
>> at  
>>org.openejb.deployment.CMPEntityBuilder.createBean(CMPEntityBuilder.jav
>>a:749)
>> at  
>>org.openejb.deployment.CMPEntityBuilder.buildBeans(CMPEntityBuilder.jav
>>a:138)
>> at  
>>org.openejb.deployment.OpenEJBModuleBuilder.addGBeans(OpenEJBModuleBuil
>>der.java:512)
>> at  
>>org.openejb.deployment.OpenEJBModuleBuilder$$FastClassByCGLIB$$11bd7b20
>>.invoke()
>> at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>> at  
>>org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodIn
>>voker.java:38)
>> at  
>>org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.
>>java:118)
>> at  
>>org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.ja
>>va:710)
>> at  
>>org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:
>>57)
>> at  
>>org.apache.geronimo.kernel.proxy.RawOperationInvoker.invoke(RawOperatio
>>nInvoker.java:36)
>> at  
>>org.apache.geronimo.kernel.proxy.ProxyMethodInterceptor.intercept(Proxy
>>MethodInterceptor.java:92)
>> at  
>>org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$380
>>f6faf.addGBeans()
>> at  
>>org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration
>>(EARConfigBuilder.java:354)
>> at  
>>org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$
>>$38e56ec6.invoke()
>> at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>> at  
>>org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodIn
>>voker.java:38)
>> at  
>>org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.
>>java:118)
>> at  
>>org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.ja
>>va:710)
>> at  
>>org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:
>>57)
>> at  
>>org.apache.geronimo.kernel.proxy.RawOperationInvoker.invoke(RawOperatio
>>nInvoker.java:36)
>> at  
>>org.apache.geronimo.kernel.proxy.ProxyMethodInterceptor.intercept(Proxy
>>MethodInterceptor.java:92)
>> at  
>>org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$6
>>61d6fa5.buildConfiguration()
>> at
>>org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:172)
>> at
>>org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:85)
>> at  
>>org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.inv
>>oke()
>> at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>> at  
>>org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodIn
>>voker.java:38)
>> at  
>>org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.
>>java:118)
>> at  
>>org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.ja
>>va:745)
>> at org.apache.geronimo.kernel.Kernel.invoke(Kernel.java:299)
>> at
>>org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:121)
>> at  
>>org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$$1cccefc9.invo
>>ke()
>> at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>> at  
>>org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodIn
>>voker.java:38)
>> at  
>>org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.
>>java:118)
>> at  
>>org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.ja
>>va:745)
>> at org.apache.geronimo.kernel.Kernel.invoke(Kernel.java:299)
>> at  
>>org.apache.geronimo.kernel.jmx.MBeanServerDelegate.invoke(MBeanServerDe
>>legate.java:117)
>> at  
>>mx4j.remote.rmi.RMIConnectionInvoker.invoke(RMIConnectionInvoker.java:
>>219)
>> at sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source)
>> at  
>>su

Re: Deployment fail at persistent EJB

2005-04-14 Thread David Jencks
You've now gotten outside the area I know anything about :-)
I suspect it is still a problem with the xml, but now with the cmp  
field elements.  Hopefully you can figure out what is wrong by looking  
at the code that throws the exception, or someone who knows that area  
will offer a suggestion.

david jencks
On Apr 14, 2005, at 11:35 AM, Katia Aresti Gonzalez wrote:
Hi!!!
Here is the stack trace :-) it was in the geronimo.log i didnt  
now anything about this logs, didnt now that the could be so  
helpfull!!!

Well, it seems that the openejb-ja.xmlr is correct? The problems is in  
another part?

thanks
 Katia
 
20:26:16,875 DEBUG [Deployer] Deployment failed: plan=null,  
module=d:\cmp\build\dist\prueba-ejbs.jar
org.apache.geronimo.common.DeploymentException: Unable to initialize  
EJBContainer GBean: ejbName [CabinEJB]
 at  
org.openejb.deployment.CMPEntityBuilder.createBean(CMPEntityBuilder.jav 
a:749)
 at  
org.openejb.deployment.CMPEntityBuilder.buildBeans(CMPEntityBuilder.jav 
a:138)
 at  
org.openejb.deployment.OpenEJBModuleBuilder.addGBeans(OpenEJBModuleBuil 
der.java:512)
 at  
org.openejb.deployment.OpenEJBModuleBuilder$$FastClassByCGLIB$$11bd7b20 
.invoke()
 at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
 at  
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodIn 
voker.java:38)
 at  
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation. 
java:118)
 at  
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.ja 
va:710)
 at  
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java: 
57)
 at  
org.apache.geronimo.kernel.proxy.RawOperationInvoker.invoke(RawOperatio 
nInvoker.java:36)
 at  
org.apache.geronimo.kernel.proxy.ProxyMethodInterceptor.intercept(Proxy 
MethodInterceptor.java:92)
 at  
org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$380 
f6faf.addGBeans()
 at  
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration 
(EARConfigBuilder.java:354)
 at  
org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$ 
$38e56ec6.invoke()
 at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
 at  
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodIn 
voker.java:38)
 at  
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation. 
java:118)
 at  
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.ja 
va:710)
 at  
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java: 
57)
 at  
org.apache.geronimo.kernel.proxy.RawOperationInvoker.invoke(RawOperatio 
nInvoker.java:36)
 at  
org.apache.geronimo.kernel.proxy.ProxyMethodInterceptor.intercept(Proxy 
MethodInterceptor.java:92)
 at  
org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$6 
61d6fa5.buildConfiguration()
 at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:172)
 at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:85)
 at  
org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.inv 
oke()
 at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
 at  
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodIn 
voker.java:38)
 at  
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation. 
java:118)
 at  
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.ja 
va:745)
 at org.apache.geronimo.kernel.Kernel.invoke(Kernel.java:299)
 at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:121)
 at  
org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$$1cccefc9.invo 
ke()
 at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
 at  
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodIn 
voker.java:38)
 at  
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation. 
java:118)
 at  
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.ja 
va:745)
 at org.apache.geronimo.kernel.Kernel.invoke(Kernel.java:299)
 at  
org.apache.geronimo.kernel.jmx.MBeanServerDelegate.invoke(MBeanServerDe 
legate.java:117)
 at  
mx4j.remote.rmi.RMIConnectionInvoker.invoke(RMIConnectionInvoker.java: 
219)
 at sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source)
 at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
rImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at  
mx4j.remote.rmi.RMIConnectionProxy.invoke(RMIConnectionProxy.java:34)
 at  
mx4j.remote.rmi.RMIConnectionSubjectInvoker.chain(RMIConnectionSubjectI 
nvoker.java:99)
 at  
mx4j.remote.rmi.RMIConnectionSubjectInvoker.access$000(RMIConnectionSub 
jectInvoker.java:31)
 at  
mx4j.remote.rmi.RMIConnectionSubjectInvoker$1.run(RMIConnectionSubjectI 
nvoker.java:90)
 at java.security.AccessController.doPrivileged(Native Method)
 at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
 at mx4j.remote.MX4JRemoteUtils.subjectInvoke(MX4JRemoteUtils.java:163)
 at  
mx4j.remote.rmi.RMIConnec

Re: Deployment fail at persistent EJB

2005-04-14 Thread Katia Aresti Gonzalez

Hi!!!
Here is the stack trace :-) it was in the geronimo.log i didnt now anything about this logs, didnt now that the could be so helpfull!!!
Well, it seems that the openejb-ja.xmlr is correct? The problems is in another part?
thanks 
Katia
 
20:26:16,875 DEBUG [Deployer] Deployment failed: plan=null, module=d:\cmp\build\dist\prueba-ejbs.jarorg.apache.geronimo.common.DeploymentException: Unable to initialize EJBContainer GBean: ejbName [CabinEJB] at org.openejb.deployment.CMPEntityBuilder.createBean(CMPEntityBuilder.java:749) at org.openejb.deployment.CMPEntityBuilder.buildBeans(CMPEntityBuilder.java:138) at org.openejb.deployment.OpenEJBModuleBuilder.addGBeans(OpenEJBModuleBuilder.java:512) at org.openejb.deployment.OpenEJBModuleBuilder$$FastClassByCGLIB$$11bd7b20.invoke() at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118) at 
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:710) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at org.apache.geronimo.kernel.proxy.RawOperationInvoker.invoke(RawOperationInvoker.java:36) at org.apache.geronimo.kernel.proxy.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:92) at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$380f6faf.addGBeans() at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:354) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke() at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at 
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:710) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at org.apache.geronimo.kernel.proxy.RawOperationInvoker.invoke(RawOperationInvoker.java:36) at org.apache.geronimo.kernel.proxy.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:92) at org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$661d6fa5.buildConfiguration() at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:172) at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:85) at 
org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke() at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:745) at org.apache.geronimo.kernel.Kernel.invoke(Kernel.java:299) at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:121) at org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$$1cccefc9.invoke() at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at 
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:745) at org.apache.geronimo.kernel.Kernel.invoke(Kernel.java:299) at org.apache.geronimo.kernel.jmx.MBeanServerDelegate.invoke(MBeanServerDelegate.java:117) at mx4j.remote.rmi.RMIConnectionInvoker.invoke(RMIConnectionInvoker.java:219) at sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at mx4j.remote.rmi.RMIConnectionProxy.invoke(RMIConnectionProxy.java:34) at mx4j.remote.rmi.RMIConnectionSubjectInvoker.chain(RMIConnectionSubjectInvoker.java:99) at 
mx4j.remote.rmi.RMIConnectionSubjectInvoker.access$000(RMIConnectionSubjectInvoker.java:31) at mx4j.remote.rmi.RMIConnectionSubjectInvoker$1.run(RMIConnectionSubjectInvoker.java:90) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:500) at mx4j.remote.MX4JRemoteUtils.subjectInvoke(MX4JRemoteUtils.java:163) at mx4j.remote.rmi.RMIConnectionSubjectInvoker.subjectInvoke(RMIConnectionSubjectInvoker.java:86) at mx4j.remote.rmi.RMIConnectionSubjectInvoker.invoke(RMIConnectionSubjectInvoker.java:80) at $Proxy0.invoke(Unknown Source) at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:221) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at su

Re: Deployment fail at persistent EJB

2005-04-14 Thread David Jencks
Someone helpfully tried to make the deployer errors less annoyingly  
verbose but this is the unfortunate result... they are now meaningless  
and useless.  I believe there is a switch or flag somewhere to turn  
stack traces back on, but I don't know where.  You should also look in  
all the logs in geronimo-1.0-SNAPSHOT/var/log to see if the trace is  
logged somewhere with some useful information about where the error is  
occurring.

david jencks
On Apr 14, 2005, at 11:09 AM, Katia Aresti Gonzalez wrote:

okk...
 Another error... hehe This is the new openejb-jar.xml im using now.  
If i understand well, is what you said me to do...


http://www.openejb.org/xml/ns/openejb-jar";
configId="GeronimoTestEJB"
 parentId="org/apache/geronimo/Server">

    SystemDatasource

 

  
   CabinEJB
   CabinTable
  
    
     id
     col_id
 
 
 
 name
  col_name
 
 
 
     deckLevel
  col_deckLevel
 
 
 
 shipId
  col_shipId
 
 
 
  bedCount
  col_bedCount
     
 
 
   
     jdbc/titanDB
 SystemDatasource   
    
   
 
 
   ShipEJB
 
     jdbc/titanDB
 SystemDatasource   
    
   

 
   TravelAgentEJB

 
   

The error when deploying
C:\gero>java -jar bin/deployer.jar --user system --password manager  
deploy d:/cm
p/build/dist/prueba-ejbs.jar
Deployment failed
  Server reports: org.apache.geronimo.common.DeploymentException:  
Unable to init
ialize EJBContainer GBean: ejbName [CabinEJB]
    Unable to initialize EJBContainer GBean: ejbName [CabinEJB]
    -1

This is a bit desperate xD thank youuu
Katia
>From: David Jencks <[EMAIL PROTECTED]>
 >Reply-To: [EMAIL PROTECTED]
 >To: [EMAIL PROTECTED]
 >Subject: Re: Deployment fail at persistent EJB
 >Date: Thu, 14 Apr 2005 10:54:39 -0700
 >
 >those are all the xml files you should need.  I think the
 >resource-ref  info needs to be with the BMP bean: if I understand
 >your xml it is  currently with the CMP bean where it is not used.
 >
 >thanks
 >david jencks
 >
 >On Apr 14, 2005, at 10:38 AM, Katia Aresti Gonzalez wrote:
 >
 >>David,
 >>
 >>   Ive changed to systemDataSource, but i still have problems. Ok,
 >>Im  using the openejb-jar.xml, and the ejb-jar.xml. Do I need
 >>another  deployment descriptor, or change anythig (un deply and
 >>redeploy), as  well as I do in JMS to add the tophic in the
 >>system-jms-plan.xml?
 >>
 >>Thanks a lot! Katia
 >>
 >> 
 >>
 >>C:\gero>java -jar bin/deployer.jar --user system --password manager
 >>  deploy d:/cm
 >>p/build/dist/prueba-ejbs.jar
 >>Deployment failed
 >>  Server reports: org.apache.geronimo.common.DeploymentException:  
 >>Unknown or amb
 >>iguous resource name query:  
 >>geronimo.server:J2EEServer=geronimo,J2EEApplication=
 >>null,j2eeType=JCAManagedConnectionFactory,name=jdbc/titanDB,* match
 >>  count: 0
 >>    Unknown or ambiguous resource name query:  
 >>geronimo.server:J2EEServer=ger
  
>>onimo,J2EEApplication=null,j2eeType=JCAManagedConnectionFactory,name= 
jd
 >>bc/titanD
 >>B,* match count: 0
 >>
 >>
 >>
 >> 
 >> >From: David Jencks <[EMAIL PROTECTED]>
 >>  >Reply-To: [EMAIL PROTECTED]
 >>  >To: [EMAIL PROTECTED]
 >>  >Subject: Re: Deployment fail at persistent EJB
 >>  >Date: Thu, 14 Apr 2005 10:31:01 -0700
 >>  >
 >>  >Sorry, it looks like the set of plans in the default assembly
 >>has  
 >>  >turned into a nearly useless collection of vaguely plausible but
 >>  >mostly  incorrect junk.
 >>  >
 >>  >Please pardon my frustration.
 >>  >
 >>  >Try SystemDatasource instead of DefaultDatasource.
 >>  >
 >>  >david jencks
 >>  >
 >>  >On Apr 14, 2005, at 10:21 AM, Katia Aresti Gonzalez wrote:
 >>  >
 >>  >>Hello David
 >>  >>
 >>  >>Ive done what you say and this is what i get now:
 >>  >>
 >>  >>C:\gero>java -jar bin/deployer.jar --user system --password
 >>manager
 >>  >>  deploy d:/cm
 >>  >>p/build/dist/prueba-ejbs.jar
 >>  >>Deployment failed
 >>  >>  Server reports:
 >>org.apache.geronimo.common.DeploymentException:  
 >>  >>Unable to init
 >>  >>ialize EJBModule GBean
 >>  >>    Unable to initialize EJBModule GBean
 >>  >>    Unknown or ambiguous resource name query:  
 >>  >>geronimo.server:J2EEServer=ger
 >>  
 >>  
>>onimo,J2EEApplication=null,j2eeType=JCAManagedConnectionFactory,name=
 >>De
 >>  >>faultData
 >>  >>source,* match count: 0
 >>  >>
 >>  >>This the openejb-jar.xml:
 >>  >>
 >>  >>
 >>  >>
 >>  >>http://www.openejb.org/xml/ns/openejb-jar";
 >>  >>configId="GeronimoTestEJB"
 >>  >>  parentId="org/apache/geronimo/Server">
 >>  >>
 >>  >>
 >>  >>    DefaultDatasource
 >>  >>
 >>  >>
 >>  >>
 >>  >>  
 >>  >>
 >>  >>  
 >>  >>   CabinEJB
 >>  >>   CabinTable
 >>  >>  
 >>  >>    
 >>  >>     id
 >>  >>     col_id
 >>  >> 
 >>  >> 
 >>  >> 
 >>  >> name
 >>  >>  col_name
 >>  >> 
 >>  >> 
 >>  >> 
 >>  >>     deckLevel
 >>  >>  col_deckLevel
 >>  >> 
 >>  >> 
 >>  >> 
 >>  >> shipId
 >>  >>  col_shipId
 >>  >> 
 >>  >> 
 >>  >> 
 >>  >>  bedCount
 >>  >>  col_bedCount
 >>  >>     
 >>  >> 
 >>  >> 
 >>  >>    

Re: Deployment fail at persistent EJB

2005-04-14 Thread Katia Aresti Gonzalez

Re-hi 
okk... 


Another error... hehe This is the new openejb-jar.xml im using now. If i understand well, is what you said me to do...

http://www.openejb.org/xml/ns/openejb-jar" configId="GeronimoTestEJB" parentId="org/apache/geronimo/Server">
     SystemDatasource  
       CabinEJB   CabinTable              id     col_id       name  col_name          
 deckLevel  col_deckLevel       shipId  col_shipId        bedCount  col_bedCount                   jdbc/titanDB  SystemDatasource              
   ShipEJB       jdbc/titanDB  SystemDatasource             
   TravelAgentEJB 
      
The error when deploying
C:\gero>java -jar bin/deployer.jar --user system --password manager deploy d:/cmp/build/dist/prueba-ejbs.jarDeployment failed  Server reports: org.apache.geronimo.common.DeploymentException: Unable to initialize EJBContainer GBean: ejbName [CabinEJB]    Unable to initialize EJBContainer GBean: ejbName [CabinEJB]    -1
This is a bit desperate xD thank youuu
Katia
>From: David Jencks <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Deployment fail at persistent EJB
>Date: Thu, 14 Apr 2005 10:54:39 -0700
>
>those are all the xml files you should need.  I think the
>resource-ref  info needs to be with the BMP bean: if I understand
>your xml it is  currently with the CMP bean where it is not used.
>
>thanks
>david jencks
>
>On Apr 14, 2005, at 10:38 AM, Katia Aresti Gonzalez wrote:
>
>>David,
>>
>>   Ive changed to systemDataSource, but i still have problems. Ok,
>>Im  using the openejb-jar.xml, and the ejb-jar.xml. Do I need
>>another  deployment descriptor, or change anythig (un deply and
>>redeploy), as  well as I do in JMS to add the tophic in the
>>system-jms-plan.xml?
>>
>>Thanks a lot! Katia
>>
>> 
>>
>>C:\gero>java -jar bin/deployer.jar --user system --password manager
>>  deploy d:/cm
>>p/build/dist/prueba-ejbs.jar
>>Deployment failed
>>  Server reports: org.apache.geronimo.common.DeploymentException:  
>>Unknown or amb
>>iguous resource name query:  
>>geronimo.server:J2EEServer=geronimo,J2EEApplication=
>>null,j2eeType=JCAManagedConnectionFactory,name=jdbc/titanDB,* match
>>  count: 0
>>    Unknown or ambiguous resource name query:  
>>geronimo.server:J2EEServer=ger
>>onimo,J2EEApplication=null,j2eeType=JCAManagedConnectionFactory,name=jd
>>bc/titanD
>>B,* match count: 0
>>
>>
>>
>> 
>> >From: David Jencks <[EMAIL PROTECTED]>
>>  >Reply-To: [EMAIL PROTECTED]
>>  >To: [EMAIL PROTECTED]
>>  >Subject: Re: Deployment fail at persistent EJB
>>  >Date: Thu, 14 Apr 2005 10:31:01 -0700
>>  >
>>  >Sorry, it looks like the set of plans in the default assembly
>>has  
>>  >turned into a nearly useless collection of vaguely plausible but
>>  >mostly  incorrect junk.
>>  >
>>  >Please pardon my frustration.
>>  >
>>  >Try SystemDatasource instead of DefaultDatasource.
>>  >
>>  >david jencks
>>  >
>>  >On Apr 14, 2005, at 10:21 AM, Katia Aresti Gonzalez wrote:
>>  >
>>  >>Hello David
>>  >>
>>  >>Ive done what you say and this is what i get now:
>>  >>
>>  >>C:\gero>java -jar bin/deployer.jar --user system --password
>>manager
>>  >>  deploy d:/cm
>>  >>p/build/dist/prueba-ejbs.jar
>>  >>Deployment failed
>>  >>  Server reports:
>>org.apache.geronimo.common.DeploymentException:  
>>  >>Unable to init
>>  >>ialize EJBModule GBean
>>  >>    Unable to initialize EJBModule GBean
>>  >>    Unknown or ambiguous resource name query:  
>>  >>geronimo.server:J2EEServer=ger
>>  
>> >>onimo,J2EEApplication=null,j2eeType=JCAManagedConnectionFactory,name=
>>De
>>  >>faultData
>>  >>source,* match count: 0
>>  >>
>>  >>This the openejb-jar.xml:
>>  >>
>>  >>
>>  >>
>>    >>configId="GeronimoTestEJB"
>>  >>  parentId="org/apache/geronimo/Server">
>>  >>
>>  >>
>>  >>    DefaultDatasource
>>  >>
>>  >>
>>  >>
>>  >>  
>>  >>
>>  >>  
>>  >>   CabinEJB
>>  >>   CabinTable
>>  >>  
>>  >>    
>>  >>     id
>>  >>     col_id
>>  >> 
>>  >> 
>>  >> 
>>  >> name
>>  >>  col_name
>>  >> 
>>  >> 
>>  >> 
>>  >>     deckLevel
>>  >>  col_deckLevel
>>  >> 
>>  >> 
>>  >> 
>>  >> shipId
>>  >>  col_shipId
>>  >> 
>>  >> 
>>  >> 
>>  >>  bedCount
>>  >>  col_bedCount
>>  >>     
>>  >> 
>>  >> 
>>  >>    
>>  >>      jdbc/titanDB
>>  >>DefaultDatasource   
>>  >>  
>>  >>  
>>  >> 
>>  >>
>>  >>
>>  >>  
>>  >>   ShipEJB
>>  >>
>>  >>
>>  >>  
>>  >>   TravelAgentEJB
>>  >>
>>  >>
>>  >>  
>>  >>   
>>  >>
>>  >>
>>  >>  Any guess?? Thank you very much
>>  >>
>>  >>  Katia
>>  >> >From: David Jencks <[EMAIL PROTECTED]>
>>  >>  >Reply-To: [EMAIL PROTECTED]
>>  >>  >To: [EMAIL PROTECTED]
>>  >>  >Subject: Re: Deployment fail at persistent EJB
>>  >>  >Date: Thu, 14 Apr 2005 08:59:40 -0700
>>  >>  >
>>  >>  >I can't figure out how you got that error from the xml you
>>  >>show.  
>>  >>  >Can  you send the stack trace?
>>  >>  >
>>  >>  >Also, I think you can use simpler resource-refs:
>>  >>  

Re: Deployment fail at persistent EJB

2005-04-14 Thread Katia Aresti Gonzalez

okk...


Another error... hehe This is the new openejb-jar.xml im using now. If i understand well, is what you said me to do...

http://www.openejb.org/xml/ns/openejb-jar" configId="GeronimoTestEJB" parentId="org/apache/geronimo/Server">
     SystemDatasource  
       CabinEJB   CabinTable              id     col_id       name  col_name          
 deckLevel  col_deckLevel       shipId  col_shipId        bedCount  col_bedCount                   jdbc/titanDB  SystemDatasource              
   ShipEJB       jdbc/titanDB  SystemDatasource             
   TravelAgentEJB 
      
The error when deploying
C:\gero>java -jar bin/deployer.jar --user system --password manager deploy d:/cmp/build/dist/prueba-ejbs.jarDeployment failed  Server reports: org.apache.geronimo.common.DeploymentException: Unable to initialize EJBContainer GBean: ejbName [CabinEJB]    Unable to initialize EJBContainer GBean: ejbName [CabinEJB]    -1
This is a bit desperate xD thank youuu
Katia
>From: David Jencks <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Deployment fail at persistent EJB
>Date: Thu, 14 Apr 2005 10:54:39 -0700
>
>those are all the xml files you should need.  I think the
>resource-ref  info needs to be with the BMP bean: if I understand
>your xml it is  currently with the CMP bean where it is not used.
>
>thanks
>david jencks
>
>On Apr 14, 2005, at 10:38 AM, Katia Aresti Gonzalez wrote:
>
>>David,
>>
>>   Ive changed to systemDataSource, but i still have problems. Ok,
>>Im  using the openejb-jar.xml, and the ejb-jar.xml. Do I need
>>another  deployment descriptor, or change anythig (un deply and
>>redeploy), as  well as I do in JMS to add the tophic in the
>>system-jms-plan.xml?
>>
>>Thanks a lot! Katia
>>
>> 
>>
>>C:\gero>java -jar bin/deployer.jar --user system --password manager
>>  deploy d:/cm
>>p/build/dist/prueba-ejbs.jar
>>Deployment failed
>>  Server reports: org.apache.geronimo.common.DeploymentException:  
>>Unknown or amb
>>iguous resource name query:  
>>geronimo.server:J2EEServer=geronimo,J2EEApplication=
>>null,j2eeType=JCAManagedConnectionFactory,name=jdbc/titanDB,* match
>>  count: 0
>>    Unknown or ambiguous resource name query:  
>>geronimo.server:J2EEServer=ger
>>onimo,J2EEApplication=null,j2eeType=JCAManagedConnectionFactory,name=jd
>>bc/titanD
>>B,* match count: 0
>>
>>
>>
>> 
>> >From: David Jencks <[EMAIL PROTECTED]>
>>  >Reply-To: [EMAIL PROTECTED]
>>  >To: [EMAIL PROTECTED]
>>  >Subject: Re: Deployment fail at persistent EJB
>>  >Date: Thu, 14 Apr 2005 10:31:01 -0700
>>  >
>>  >Sorry, it looks like the set of plans in the default assembly
>>has  
>>  >turned into a nearly useless collection of vaguely plausible but
>>  >mostly  incorrect junk.
>>  >
>>  >Please pardon my frustration.
>>  >
>>  >Try SystemDatasource instead of DefaultDatasource.
>>  >
>>  >david jencks
>>  >
>>  >On Apr 14, 2005, at 10:21 AM, Katia Aresti Gonzalez wrote:
>>  >
>>  >>Hello David
>>  >>
>>  >>Ive done what you say and this is what i get now:
>>  >>
>>  >>C:\gero>java -jar bin/deployer.jar --user system --password
>>manager
>>  >>  deploy d:/cm
>>  >>p/build/dist/prueba-ejbs.jar
>>  >>Deployment failed
>>  >>  Server reports:
>>org.apache.geronimo.common.DeploymentException:  
>>  >>Unable to init
>>  >>ialize EJBModule GBean
>>  >>    Unable to initialize EJBModule GBean
>>  >>    Unknown or ambiguous resource name query:  
>>  >>geronimo.server:J2EEServer=ger
>>  
>> >>onimo,J2EEApplication=null,j2eeType=JCAManagedConnectionFactory,name=
>>De
>>  >>faultData
>>  >>source,* match count: 0
>>  >>
>>  >>This the openejb-jar.xml:
>>  >>
>>  >>
>>  >>
>>    >>configId="GeronimoTestEJB"
>>  >>  parentId="org/apache/geronimo/Server">
>>  >>
>>  >>
>>  >>    DefaultDatasource
>>  >>
>>  >>
>>  >>
>>  >>  
>>  >>
>>  >>  
>>  >>   CabinEJB
>>  >>   CabinTable
>>  >>  
>>  >>    
>>  >>     id
>>  >>     col_id
>>  >> 
>>  >> 
>>  >> 
>>  >> name
>>  >>  col_name
>>  >> 
>>  >> 
>>  >> 
>>  >>     deckLevel
>>  >>  col_deckLevel
>>  >> 
>>  >> 
>>  >> 
>>  >> shipId
>>  >>  col_shipId
>>  >> 
>>  >> 
>>  >> 
>>  >>  bedCount
>>  >>  col_bedCount
>>  >>     
>>  >> 
>>  >> 
>>  >>    
>>  >>      jdbc/titanDB
>>  >>DefaultDatasource   
>>  >>  
>>  >>  
>>  >> 
>>  >>
>>  >>
>>  >>  
>>  >>   ShipEJB
>>  >>
>>  >>
>>  >>  
>>  >>   TravelAgentEJB
>>  >>
>>  >>
>>  >>  
>>  >>   
>>  >>
>>  >>
>>  >>  Any guess?? Thank you very much
>>  >>
>>  >>  Katia
>>  >> >From: David Jencks <[EMAIL PROTECTED]>
>>  >>  >Reply-To: [EMAIL PROTECTED]
>>  >>  >To: [EMAIL PROTECTED]
>>  >>  >Subject: Re: Deployment fail at persistent EJB
>>  >>  >Date: Thu, 14 Apr 2005 08:59:40 -0700
>>  >>  >
>>  >>  >I can't figure out how you got that error from the xml you
>>  >>show.  
>>  >>  >Can  you send the stack trace?
>>  >>  >
>>  >>  >Also, I think you can use simpler resource-refs:
>>  >>  >
>>  >>  >

Re: Deployment fail at persistent EJB

2005-04-14 Thread David Jencks
those are all the xml files you should need.  I think the resource-ref  
info needs to be with the BMP bean: if I understand your xml it is  
currently with the CMP bean where it is not used.

thanks
david jencks
On Apr 14, 2005, at 10:38 AM, Katia Aresti Gonzalez wrote:
David,
  Ive changed to systemDataSource, but i still have problems. Ok, Im  
using the openejb-jar.xml, and the ejb-jar.xml. Do I need another  
deployment descriptor, or change anythig (un deply and redeploy), as  
well as I do in JMS to add the tophic in the system-jms-plan.xml?

Thanks a lot! Katia
 
C:\gero>java -jar bin/deployer.jar --user system --password manager  
deploy d:/cm
p/build/dist/prueba-ejbs.jar
Deployment failed
  Server reports: org.apache.geronimo.common.DeploymentException:  
Unknown or amb
iguous resource name query:  
geronimo.server:J2EEServer=geronimo,J2EEApplication=
null,j2eeType=JCAManagedConnectionFactory,name=jdbc/titanDB,* match  
count: 0
    Unknown or ambiguous resource name query:  
geronimo.server:J2EEServer=ger
onimo,J2EEApplication=null,j2eeType=JCAManagedConnectionFactory,name=jd 
bc/titanD
B,* match count: 0


 
>From: David Jencks <[EMAIL PROTECTED]>
 >Reply-To: [EMAIL PROTECTED]
 >To: [EMAIL PROTECTED]
 >Subject: Re: Deployment fail at persistent EJB
 >Date: Thu, 14 Apr 2005 10:31:01 -0700
 >
 >Sorry, it looks like the set of plans in the default assembly has  
 >turned into a nearly useless collection of vaguely plausible but
 >mostly  incorrect junk.
 >
 >Please pardon my frustration.
 >
 >Try SystemDatasource instead of DefaultDatasource.
 >
 >david jencks
 >
 >On Apr 14, 2005, at 10:21 AM, Katia Aresti Gonzalez wrote:
 >
 >>Hello David
 >>
 >>Ive done what you say and this is what i get now:
 >>
 >>C:\gero>java -jar bin/deployer.jar --user system --password manager
 >>  deploy d:/cm
 >>p/build/dist/prueba-ejbs.jar
 >>Deployment failed
 >>  Server reports: org.apache.geronimo.common.DeploymentException:  
 >>Unable to init
 >>ialize EJBModule GBean
 >>    Unable to initialize EJBModule GBean
 >>    Unknown or ambiguous resource name query:  
 >>geronimo.server:J2EEServer=ger
  
>>onimo,J2EEApplication=null,j2eeType=JCAManagedConnectionFactory,name= 
De
 >>faultData
 >>source,* match count: 0
 >>
 >>This the openejb-jar.xml:
 >>
 >>
 >>
 >>http://www.openejb.org/xml/ns/openejb-jar";
 >>configId="GeronimoTestEJB"
 >>  parentId="org/apache/geronimo/Server">
 >>
 >>
 >>    DefaultDatasource
 >>
 >>
 >>
 >>  
 >>
 >>  
 >>   CabinEJB
 >>   CabinTable
 >>  
 >>    
 >>     id
 >>     col_id
 >> 
 >> 
 >> 
 >> name
 >>  col_name
 >> 
 >> 
 >> 
 >>     deckLevel
 >>  col_deckLevel
 >> 
 >> 
 >> 
 >> shipId
 >>  col_shipId
 >> 
 >> 
 >> 
 >>  bedCount
 >>  col_bedCount
 >>     
 >> 
 >> 
 >>    
 >>      jdbc/titanDB
 >>DefaultDatasource   
 >>  
 >>  
 >> 
 >>
 >>
 >>  
 >>   ShipEJB
 >>
 >>
 >>  
 >>   TravelAgentEJB
 >>
 >>
 >>  
 >>   
 >>
 >>
 >>  Any guess?? Thank you very much
 >>
 >>  Katia
 >> >From: David Jencks <[EMAIL PROTECTED]>
 >>  >Reply-To: [EMAIL PROTECTED]
 >>  >To: [EMAIL PROTECTED]
 >>  >Subject: Re: Deployment fail at persistent EJB
 >>  >Date: Thu, 14 Apr 2005 08:59:40 -0700
 >>  >
 >>  >I can't figure out how you got that error from the xml you
 >>show.  
 >>  >Can  you send the stack trace?
 >>  >
 >>  >Also, I think you can use simpler resource-refs:
 >>  >
 >>  >
 >>  >    jdbc/titanDB
 >>  >DefaultDatasource   
 >>  > 
 >>  >
 >>  >and
 >>  >
 >>  > DefaultDatasource
 >>  >
 >>  >
 >>  >thanks
 >>  >david jencks
 >>  >
 >>  > 
 >>  >On Apr 14, 2005, at 2:45 AM, Katia Aresti Gonzalez wrote:
 >>  >
 >>  >>Hello Gianny
 >>  >>
 >>  >>I did what you said. This is my new openejb-jar.xml. I said
 >>  >>somethig  wrong, ShipEJB is a BMP, is this supported? Anyway,
 >>my
 >>  >>problem is to  fix cmp, because its what i realy need now :-).
 >>I
 >>  >>paste the error  deploying just after the descriptor.
 >>  >>
 >>  >>
 >>  >>
 >>  >>http://www.openejb.org/xml/ns/openejb-jar";
 >>  >>configId="GeronimoTestEJB"
 >>  >>  parentId="org/apache/geronimo/Server">
 >>  >>
 >>  >>
 >>  >>    null
 >>  >>    org/apache/geronimo/DefaultDatabase
 >>  >>    DefaultDatasource
 >>  >>
 >>  >>
 >>  >>
 >>  >>
 >>  >>  
 >>  >>   CabinEJB
 >>  >>   CabinTable
 >>  >>  
 >>  >>    
 >>  >>     id
 >>  >>     col_id
 >>  >> 
 >>  >> 
 >>  >> 
 >>  >> name
 >>  >>  col_name
 >>  >> 
 >>  >> 
 >>  >> 
 >>  >>     deckLevel
 >>  >>  col_deckLevel
 >>  >> 
 >>  >> 
 >>  >> 
 >>  >> shipId
 >>  >>  col_shipId
 >>  >> 
 >>  >> 
 >>  >> 
 >>  >>  bedCount
 >>  >>  col_bedCount
 >>  >>     
 >>  >> 
 >>  >> 
 >>  >>    jdbc/titanDB
 >>  >>  null
 >>  >>   org/apache/geronimo/DefaultDatabase
 >>  >>   DefaultDatasource   
 >>  >>    
 >>  >>  
 >>  >> 
 >>  >>
 >>  >>  
 >>  >>   ShipEJB
 >>  >>
 >>  >>
 >>  >>  
 >>  >>   TravelAgentEJB
 >>  >>
 >>  >>
 >>  >>  
 >>  >>   
 >> 

Re: Deployment fail at persistent EJB

2005-04-14 Thread Katia Aresti Gonzalez

David, 
 Ive changed to systemDataSource, but i still have problems. Ok, Im using the openejb-jar.xml, and the ejb-jar.xml. Do I need another deployment descriptor, or change anythig (un deply and redeploy), as well as I do in JMS to add the tophic in the system-jms-plan.xml?
Thanks a lot! Katia
 
C:\gero>java -jar bin/deployer.jar --user system --password manager deploy d:/cmp/build/dist/prueba-ejbs.jarDeployment failed  Server reports: org.apache.geronimo.common.DeploymentException: Unknown or ambiguous resource name query: geronimo.server:J2EEServer=geronimo,J2EEApplication=null,j2eeType=JCAManagedConnectionFactory,name=jdbc/titanDB,* match count: 0    Unknown or ambiguous resource name query: geronimo.server:J2EEServer=geronimo,J2EEApplication=null,j2eeType=JCAManagedConnectionFactory,name=jdbc/titanDB,* match count: 0
 
>From: David Jencks <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Deployment fail at persistent EJB
>Date: Thu, 14 Apr 2005 10:31:01 -0700
>
>Sorry, it looks like the set of plans in the default assembly has  
>turned into a nearly useless collection of vaguely plausible but
>mostly  incorrect junk.
>
>Please pardon my frustration.
>
>Try SystemDatasource instead of DefaultDatasource.
>
>david jencks
>
>On Apr 14, 2005, at 10:21 AM, Katia Aresti Gonzalez wrote:
>
>>Hello David
>>
>>Ive done what you say and this is what i get now:
>>
>>C:\gero>java -jar bin/deployer.jar --user system --password manager
>>  deploy d:/cm
>>p/build/dist/prueba-ejbs.jar
>>Deployment failed
>>  Server reports: org.apache.geronimo.common.DeploymentException:  
>>Unable to init
>>ialize EJBModule GBean
>>    Unable to initialize EJBModule GBean
>>    Unknown or ambiguous resource name query:  
>>geronimo.server:J2EEServer=ger
>>onimo,J2EEApplication=null,j2eeType=JCAManagedConnectionFactory,name=De
>>faultData
>>source,* match count: 0
>>
>>This the openejb-jar.xml:
>>
>>
>>
configId="GeronimoTestEJB"
>>  parentId="org/apache/geronimo/Server">
>>
>>
>>    DefaultDatasource
>>
>>
>>
>>  
>>
>>  
>>   CabinEJB
>>   CabinTable
>>  
>>    
>>     id
>>     col_id
>> 
>> 
>> 
>> name
>>  col_name
>> 
>> 
>> 
>>     deckLevel
>>  col_deckLevel
>> 
>> 
>> 
>> shipId
>>  col_shipId
>> 
>> 
>> 
>>  bedCount
>>  col_bedCount
>>     
>> 
>> 
>>    
>>      jdbc/titanDB
>>DefaultDatasource   
>>  
>>  
>> 
>>
>>
>>  
>>   ShipEJB
>>
>>
>>  
>>   TravelAgentEJB
>>
>>
>>  
>>   
>>
>>
>>  Any guess?? Thank you very much
>>
>>  Katia
>> >From: David Jencks <[EMAIL PROTECTED]>
>>  >Reply-To: [EMAIL PROTECTED]
>>  >To: [EMAIL PROTECTED]
>>  >Subject: Re: Deployment fail at persistent EJB
>>  >Date: Thu, 14 Apr 2005 08:59:40 -0700
>>  >
>>  >I can't figure out how you got that error from the xml you
>>show.  
>>  >Can  you send the stack trace?
>>  >
>>  >Also, I think you can use simpler resource-refs:
>>  >
>>  >
>>  >    jdbc/titanDB
>>  >DefaultDatasource   
>>  > 
>>  >
>>  >and
>>  >
>>  > DefaultDatasource
>>  >
>>  >
>>  >thanks
>>  >david jencks
>>  >
>>  > 
>>  >On Apr 14, 2005, at 2:45 AM, Katia Aresti Gonzalez wrote:
>>  >
>>  >>Hello Gianny
>>  >>
>>  >>I did what you said. This is my new openejb-jar.xml. I said
>>  >>somethig  wrong, ShipEJB is a BMP, is this supported? Anyway,
>>my
>>  >>problem is to  fix cmp, because its what i realy need now :-).
>>I
>>  >>paste the error  deploying just after the descriptor.
>>  >>
>>  >>
>>  >>
>>    >>configId="GeronimoTestEJB"
>>  >>  parentId="org/apache/geronimo/Server">
>>  >>
>>  >>
>>  >>    null
>>  >>    org/apache/geronimo/DefaultDatabase
>>  >>    DefaultDatasource
>>  >>
>>  >>
>>  >>
>>  >>
>>  >>  
>>  >>   CabinEJB
>>  >>   CabinTable
>>  >>  
>>  >>    
>>  >>     id
>>  >>     col_id
>>  >> 
>>  >> 
>>  >> 
>>  >> name
>>  >>  col_name
>>  >> 
>>  >> 
>>  >> 
>>  >>     deckLevel
>>  >>  col_deckLevel
>>  >> 
>>  >> 
>>  >> 
>>  >> shipId
>>  >>  col_shipId
>>  >> 
>>  >> 
>>  >> 
>>  >>  bedCount
>>  >>  col_bedCount
>>  >>     
>>  >> 
>>  >> 
>>  >>    jdbc/titanDB
>>  >>  null
>>  >>   org/apache/geronimo/DefaultDatabase
>>  >>   DefaultDatasource   
>>  >>    
>>  >>  
>>  >> 
>>  >>
>>  >>  
>>  >>   ShipEJB
>>  >>
>>  >>
>>  >>  
>>  >>   TravelAgentEJB
>>  >>
>>  >>
>>  >>  
>>  >>   
>>  >>
>>  >>
>>  >>Error>
>>  >>
>>  >>C:\gero>java -jar bin/deployer.jar --user system --password
>>manager
>>  >>  deploy d:/cm
>>  >>p/build/dist/prueba-ejbs.jar
>>  >>Deployment failed
>>  >>  Server reports:
>>org.apache.geronimo.common.DeploymentException:  
>>  >>Unknown or amb
>>  >>iguous resource name query:  
>>  >>geronimo.server:J2EEServer=geronimo,J2EEApplication=
>>  >>null,j2eeType=JCAManagedConnectionFactory,name=jdbc/titanDB,*
>>match
>>  >>  count: 0
>>  >>    Unknown or ambiguous resource name query:  
>>  >>geronimo.server:J2EEServer=ger
>>  
>> >>onimo,J2EEAppl

Re: Deployment fail at persistent EJB

2005-04-14 Thread David Jencks
Sorry, it looks like the set of plans in the default assembly has  
turned into a nearly useless collection of vaguely plausible but mostly  
incorrect junk.

Please pardon my frustration.
Try SystemDatasource instead of DefaultDatasource.
david jencks
On Apr 14, 2005, at 10:21 AM, Katia Aresti Gonzalez wrote:
Hello David
Ive done what you say and this is what i get now:
C:\gero>java -jar bin/deployer.jar --user system --password manager  
deploy d:/cm
p/build/dist/prueba-ejbs.jar
Deployment failed
  Server reports: org.apache.geronimo.common.DeploymentException:  
Unable to init
ialize EJBModule GBean
    Unable to initialize EJBModule GBean
    Unknown or ambiguous resource name query:  
geronimo.server:J2EEServer=ger
onimo,J2EEApplication=null,j2eeType=JCAManagedConnectionFactory,name=De 
faultData
source,* match count: 0

This the openejb-jar.xml:

http://www.openejb.org/xml/ns/openejb-jar";
configId="GeronimoTestEJB"
 parentId="org/apache/geronimo/Server">

    DefaultDatasource

 

  
   CabinEJB
   CabinTable
  
    
     id
     col_id
 
 
 
 name
  col_name
 
 
 
     deckLevel
  col_deckLevel
 
 
 
 shipId
  col_shipId
 
 
 
  bedCount
  col_bedCount
     
 
 
    
      jdbc/titanDB
   DefaultDatasource   
  
  
 
 
   ShipEJB

 
   TravelAgentEJB

 
   

 Any guess?? Thank you very much
 Katia
>From: David Jencks <[EMAIL PROTECTED]>
 >Reply-To: [EMAIL PROTECTED]
 >To: [EMAIL PROTECTED]
 >Subject: Re: Deployment fail at persistent EJB
 >Date: Thu, 14 Apr 2005 08:59:40 -0700
 >
 >I can't figure out how you got that error from the xml you show.  
 >Can  you send the stack trace?
 >
 >Also, I think you can use simpler resource-refs:
 >
 >
 >    jdbc/titanDB
 >DefaultDatasource   
 > 
 >
 >and
 >
 > DefaultDatasource
 >
 >
 >thanks
 >david jencks
 >
 > 
 >On Apr 14, 2005, at 2:45 AM, Katia Aresti Gonzalez wrote:
 >
 >>Hello Gianny
 >>
 >>I did what you said. This is my new openejb-jar.xml. I said
 >>somethig  wrong, ShipEJB is a BMP, is this supported? Anyway, my
 >>problem is to  fix cmp, because its what i realy need now :-). I
 >>paste the error  deploying just after the descriptor.
 >>
 >>
 >>
 >>http://www.openejb.org/xml/ns/openejb-jar";
 >>configId="GeronimoTestEJB"
 >>  parentId="org/apache/geronimo/Server">
 >>
 >>
 >>    null
 >>    org/apache/geronimo/DefaultDatabase
 >>    DefaultDatasource
 >>
 >>
 >>
 >>
 >>  
 >>   CabinEJB
 >>   CabinTable
 >>  
 >>    
 >>     id
 >>     col_id
 >> 
 >> 
 >> 
 >> name
 >>  col_name
 >> 
 >> 
 >> 
 >>     deckLevel
 >>  col_deckLevel
 >> 
 >> 
 >> 
 >> shipId
 >>  col_shipId
 >> 
 >> 
 >> 
 >>  bedCount
 >>  col_bedCount
 >>     
 >> 
 >> 
 >>    jdbc/titanDB
 >>  null
 >>   org/apache/geronimo/DefaultDatabase
 >>   DefaultDatasource   
 >>    
 >>  
 >> 
 >>
 >>  
 >>   ShipEJB
 >>
 >>
 >>  
 >>   TravelAgentEJB
 >>
 >>
 >>  
 >>   
 >>
 >>
 >>Error>
 >>
 >>C:\gero>java -jar bin/deployer.jar --user system --password manager
 >>  deploy d:/cm
 >>p/build/dist/prueba-ejbs.jar
 >>Deployment failed
 >>  Server reports: org.apache.geronimo.common.DeploymentException:  
 >>Unknown or amb
 >>iguous resource name query:  
 >>geronimo.server:J2EEServer=geronimo,J2EEApplication=
 >>null,j2eeType=JCAManagedConnectionFactory,name=jdbc/titanDB,* match
 >>  count: 0
 >>    Unknown or ambiguous resource name query:  
 >>geronimo.server:J2EEServer=ger
  
>>onimo,J2EEApplication=null,j2eeType=JCAManagedConnectionFactory,name= 
jd
 >>bc/titanD
 >>B,* match count: 0
 >>
 >> 
 >>
 >>Thanks a los for four help!!!
 >>
 >>Katia
 >>
 >>
 >> 
 >> >From: Gianny Damour <[EMAIL PROTECTED]>
 >>  >Reply-To: [EMAIL PROTECTED]
 >>  >To: [EMAIL PROTECTED]
 >>  >Subject: Re: Deployment fail at persistent EJB
 >>  >Date: Wed, 13 Apr 2005 09:27:08 +1000
 >>  >
 >>  >Katia,
 >>  >
 >>  >The last version of Geronimo, built from source, supports CMP.
 >>  >
 >>  >Also, could you please provide the error message that you get
 >>during
 >>  >the deployment process?
 >>  >
 >>  >I comment your openejb-jar.xml deployment descriptor further
 >>down.
 >>  >
 >>  >Thanks,
 >>  >Gianny
 >>  >
 >>  >On 12/04/2005 8:20 PM, Katia Aresti Gonzalez wrote:
 >>  >
 >>  >>Hello again David
 >>  >>
 >>  >>The problems still go on xD. The openejb-jar.xml is wrong, and
 >>I
 >>  >>cant find any reference of an xml file to look at and compare.
 >>I
 >>  >>know im doing somethig really bad :-).
 >>  >>
 >>  >>Here is the openejb-jar.xml of the ejb-jar.xml. Can you help me
 >>  >>again please? thank you!
 >>  >>
 >>  >>Katia
 >>  >>
 >>  >>
 >>  >>
 >>  >>
 >>  >>http://www.openejb.org/xml/ns/openejb-jar";
 >>  >>configId="GeronimoTestEJB"
 >>  >>parentId="org/apache/geronimo/Server">
 >>  >>
 >>  >>
 >>  >> null
 >>  >> org/apache/geronimo/DefaultDatabase
 >>  >> DefaultDatasource
 >>  >>
 >>  >>
 >>  >OK.
 >>  >
 >>  >>
 >> 

Re: Deployment fail at persistent EJB

2005-04-14 Thread Katia Aresti Gonzalez

Hello David
Ive done what you say and this is what i get now:
C:\gero>java -jar bin/deployer.jar --user system --password manager deploy d:/cmp/build/dist/prueba-ejbs.jarDeployment failed  Server reports: org.apache.geronimo.common.DeploymentException: Unable to initialize EJBModule GBean    Unable to initialize EJBModule GBean    Unknown or ambiguous resource name query: geronimo.server:J2EEServer=geronimo,J2EEApplication=null,j2eeType=JCAManagedConnectionFactory,name=DefaultDatasource,* match count: 0
This the openejb-jar.xml:

http://www.openejb.org/xml/ns/openejb-jar" configId="GeronimoTestEJB" parentId="org/apache/geronimo/Server">
     DefaultDatasource  
       CabinEJB   CabinTable              id     col_id       name  col_name          
 deckLevel  col_deckLevel       shipId  col_shipId        bedCount  col_bedCount                jdbc/titanDB 
  DefaultDatasource           
   ShipEJB 
   TravelAgentEJB 
      
Any guess?? Thank you very much 
Katia
>From: David Jencks <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Deployment fail at persistent EJB
>Date: Thu, 14 Apr 2005 08:59:40 -0700
>
>I can't figure out how you got that error from the xml you show.  
>Can  you send the stack trace?
>
>Also, I think you can use simpler resource-refs:
>
>
>    jdbc/titanDB
>DefaultDatasource   
> 
>
>and
>
> DefaultDatasource
>
>
>thanks
>david jencks
>
> 
>On Apr 14, 2005, at 2:45 AM, Katia Aresti Gonzalez wrote:
>
>>Hello Gianny
>>
>>I did what you said. This is my new openejb-jar.xml. I said
>>somethig  wrong, ShipEJB is a BMP, is this supported? Anyway, my
>>problem is to  fix cmp, because its what i realy need now :-). I
>>paste the error  deploying just after the descriptor.
>>
>>
>>
configId="GeronimoTestEJB"
>>  parentId="org/apache/geronimo/Server">
>>
>>
>>    null
>>    org/apache/geronimo/DefaultDatabase
>>    DefaultDatasource
>>
>>
>>
>>
>>  
>>   CabinEJB
>>   CabinTable
>>  
>>    
>>     id
>>     col_id
>> 
>> 
>> 
>> name
>>  col_name
>> 
>> 
>> 
>>     deckLevel
>>  col_deckLevel
>> 
>> 
>> 
>> shipId
>>  col_shipId
>> 
>> 
>> 
>>  bedCount
>>  col_bedCount
>>     
>> 
>> 
>>    jdbc/titanDB
>>  null
>>   org/apache/geronimo/DefaultDatabase
>>   DefaultDatasource   
>>    
>>  
>> 
>>
>>  
>>   ShipEJB
>>
>>
>>  
>>   TravelAgentEJB
>>
>>
>>  
>>   
>>
>>
>>Error>
>>
>>C:\gero>java -jar bin/deployer.jar --user system --password manager
>>  deploy d:/cm
>>p/build/dist/prueba-ejbs.jar
>>Deployment failed
>>  Server reports: org.apache.geronimo.common.DeploymentException:  
>>Unknown or amb
>>iguous resource name query:  
>>geronimo.server:J2EEServer=geronimo,J2EEApplication=
>>null,j2eeType=JCAManagedConnectionFactory,name=jdbc/titanDB,* match
>>  count: 0
>>    Unknown or ambiguous resource name query:  
>>geronimo.server:J2EEServer=ger
>>onimo,J2EEApplication=null,j2eeType=JCAManagedConnectionFactory,name=jd
>>bc/titanD
>>B,* match count: 0
>>
>> 
>>
>>Thanks a los for four help!!!
>>
>>Katia
>>
>>
>> 
>> >From: Gianny Damour <[EMAIL PROTECTED]>
>>  >Reply-To: [EMAIL PROTECTED]
>>  >To: [EMAIL PROTECTED]
>>  >Subject: Re: Deployment fail at persistent EJB
>>  >Date: Wed, 13 Apr 2005 09:27:08 +1000
>>  >
>>  >Katia,
>>  >
>>  >The last version of Geronimo, built from source, supports CMP.
>>  >
>>  >Also, could you please provide the error message that you get
>>during
>>  >the deployment process?
>>  >
>>  >I comment your openejb-jar.xml deployment descriptor further
>>down.
>>  >
>>  >Thanks,
>>  >Gianny
>>  >
>>  >On 12/04/2005 8:20 PM, Katia Aresti Gonzalez wrote:
>>  >
>>  >>Hello again David
>>  >>
>>  >>The problems still go on xD. The openejb-jar.xml is wrong, and
>>I
>>  >>cant find any reference of an xml file to look at and compare.
>>I
>>  >>know im doing somethig really bad :-).
>>  >>
>>  >>Here is the openejb-jar.xml of the ejb-jar.xml. Can you help me
>>  >>again please? thank you!
>>  >>
>>  >>Katia
>>  >>
>>  >>
>>  >>
>>  >>
>>    >>configId="GeronimoTestEJB"
>>  >>parentId="org/apache/geronimo/Server">
>>  >>
>>  >>
>>  >> null
>>  >> org/apache/geronimo/DefaultDatabase
>>  >> DefaultDatasource
>>  >>
>>  >>
>>  >OK.
>>  >
>>  >>
>>  >>
>>  >>CabinEJB
>>  >>CabinEJB
>>  >>
>>  >You do not need to specify a jndi-name. This construct is only
>>used
>>  >to specify a global JNDI name, which you do not need in your
>>case.
>>  >
>>  >You need to specifiy a mapping table for this CMP. This is
>>something
>>  >like:
>>  > MyTableName
>>  >
>>  >Furthermore, you also need to specify a mapping for each of the
>>  >persistent fields identified in your ejb-jar.xml DD. This is
>>  >something like:
>>  >
>>  >id
>>  >col_id
>>  >
>>  >
>>  >>
>>  >>jdbc/titanDB
>> 

Re: Deployment fail at persistent EJB

2005-04-14 Thread David Jencks
I can't figure out how you got that error from the xml you show.  Can  
you send the stack trace?

Also, I think you can use simpler resource-refs:

    jdbc/titanDB
DefaultDatasource   
 
and

DefaultDatasource

thanks
david jencks
 
On Apr 14, 2005, at 2:45 AM, Katia Aresti Gonzalez wrote:
Hello Gianny
I did what you said. This is my new openejb-jar.xml. I said somethig  
wrong, ShipEJB is a BMP, is this supported? Anyway, my problem is to  
fix cmp, because its what i realy need now :-). I paste the error  
deploying just after the descriptor.


http://www.openejb.org/xml/ns/openejb-jar";
configId="GeronimoTestEJB"
 parentId="org/apache/geronimo/Server">

    null
    org/apache/geronimo/DefaultDatabase
    DefaultDatasource



  
   CabinEJB
   CabinTable
  
    
     id
     col_id
 
 
 
 name
  col_name
 
 
 
     deckLevel
  col_deckLevel
 
 
 
 shipId
  col_shipId
 
 
 
  bedCount
  col_bedCount
     
 
 
    jdbc/titanDB
  null
  org/apache/geronimo/DefaultDatabase
      DefaultDatasource   
   
  
 
 
   ShipEJB

 
   TravelAgentEJB

 
   

Error>
C:\gero>java -jar bin/deployer.jar --user system --password manager  
deploy d:/cm
p/build/dist/prueba-ejbs.jar
Deployment failed
  Server reports: org.apache.geronimo.common.DeploymentException:  
Unknown or amb
iguous resource name query:  
geronimo.server:J2EEServer=geronimo,J2EEApplication=
null,j2eeType=JCAManagedConnectionFactory,name=jdbc/titanDB,* match  
count: 0
    Unknown or ambiguous resource name query:  
geronimo.server:J2EEServer=ger
onimo,J2EEApplication=null,j2eeType=JCAManagedConnectionFactory,name=jd 
bc/titanD
B,* match count: 0

 
Thanks a los for four help!!!
Katia
 
>From: Gianny Damour <[EMAIL PROTECTED]>
 >Reply-To: [EMAIL PROTECTED]
 >To: [EMAIL PROTECTED]
 >Subject: Re: Deployment fail at persistent EJB
 >Date: Wed, 13 Apr 2005 09:27:08 +1000
 >
 >Katia,
 >
 >The last version of Geronimo, built from source, supports CMP.
 >
 >Also, could you please provide the error message that you get during
 >the deployment process?
 >
 >I comment your openejb-jar.xml deployment descriptor further down.
 >
 >Thanks,
 >Gianny
 >
 >On 12/04/2005 8:20 PM, Katia Aresti Gonzalez wrote:
 >
 >>Hello again David
 >>
 >>The problems still go on xD. The openejb-jar.xml is wrong, and I
 >>cant find any reference of an xml file to look at and compare. I
 >>know im doing somethig really bad :-).
 >>
 >>Here is the openejb-jar.xml of the ejb-jar.xml. Can you help me
 >>again please? thank you!
 >>
 >>Katia
 >>
 >>
 >>
 >>
 >>http://www.openejb.org/xml/ns/openejb-jar";
 >>configId="GeronimoTestEJB"
 >>parentId="org/apache/geronimo/Server">
 >>
 >>
 >> null
 >> org/apache/geronimo/DefaultDatabase
 >> DefaultDatasource
 >>
 >>
 >OK.
 >
 >>
 >>
 >>CabinEJB
 >>CabinEJB
 >>
 >You do not need to specify a jndi-name. This construct is only used
 >to specify a global JNDI name, which you do not need in your case.
 >
 >You need to specifiy a mapping table for this CMP. This is something
 >like:
 > MyTableName
 >
 >Furthermore, you also need to specify a mapping for each of the
 >persistent fields identified in your ejb-jar.xml DD. This is
 >something like:
 >
 >id
 >col_id
 >
 >
 >>
 >>jdbc/titanDB
 >>  
 >>
 >This is now enough information. You need to map a resource reference
 >to this resource name. This is something like:
 >null
 >org/apache/geronimo/DefaultDatabase
 >DefaultDatasource
 >Such a configuration references the default datasource of Geronimo,
 >which is by the way the datasource used under the cover by the CMP
 >engine to interact with the database.
 >
 >Please have a look to this file:
 >modules/naming-builder/src/schema/geronimo-naming.xsd and especially
 >to the resource-refType complex type to understand how mapping
 >works.
 >
 >>
 >>
 >>
 >>ShipEJB
 >>ShipEJB
 >>
 >Same as above.
 >
 >>
 >>jdbc/titanDB
 >>
 >Same as above.
 >
 >>  
 >>
 >>
 >>
 >>TravelAgentEJB
 >>TravelAgentEJB
 >>   
 >>
 >>
 >>
 Recibe ofertas de empleo adaptadas a tu perfil. Introduce tu CV en  
MSN Empleo. 


Re: HTTP Server jetty

2005-04-14 Thread David Jencks
The reasons are primarily historical: the main Jetty developers were 
some of the geronimo founding members and most of us have a lot more 
experience with Jetty than Tomcat.  There is a Tomcat integration and 
several people are working on it, however it is not yet completely 
integrated and functional.  I think the Tomcat work is somewhat 
sidelined at the moment in our effort to finish j2ee certification.  We 
would certainly welcome help in finishing the Tomcat integration.

Many thanks,
david jencks
On Apr 14, 2005, at 8:31 AM, Yves Caloz wrote:
Hi,
Somebody surely already put the question, but I did not find an 
answer, then I ask it nevertheless: Why is Geronimo default with Jetty 
and not HTTP Apache Server integrated ? Is it a licence problem ?

Thanks



HTTP Server jetty

2005-04-14 Thread Yves Caloz
Hi,
Somebody surely already put the question, but I did not find an answer, then I 
ask it nevertheless: Why is Geronimo default with Jetty and not HTTP Apache 
Server integrated ? Is it a licence problem ?
 
Thanks


Re: Deployment fail at persistent EJB

2005-04-14 Thread Katia Aresti Gonzalez

Hello Gianny
I did what you said. This is my new openejb-jar.xml. I said somethig wrong, ShipEJB is a BMP, is this supported? Anyway, my problem is to fix cmp, because its what i realy need now :-). I paste the error deploying just after the descriptor.

http://www.openejb.org/xml/ns/openejb-jar" configId="GeronimoTestEJB" parentId="org/apache/geronimo/Server">
    null    org/apache/geronimo/DefaultDatabase    DefaultDatasource
       CabinEJB   CabinTable              id     col_id       name  col_name          
 deckLevel  col_deckLevel       shipId  col_shipId        bedCount  col_bedCount              jdbc/titanDB   null  
org/apache/geronimo/DefaultDatabase      DefaultDatasource            
   ShipEJB 
   TravelAgentEJB 
      
Error>
C:\gero>java -jar bin/deployer.jar --user system --password manager deploy d:/cmp/build/dist/prueba-ejbs.jarDeployment failed  Server reports: org.apache.geronimo.common.DeploymentException: Unknown or ambiguous resource name query: geronimo.server:J2EEServer=geronimo,J2EEApplication=null,j2eeType=JCAManagedConnectionFactory,name=jdbc/titanDB,* match count: 0    Unknown or ambiguous resource name query: geronimo.server:J2EEServer=geronimo,J2EEApplication=null,j2eeType=JCAManagedConnectionFactory,name=jdbc/titanDB,* match count: 0
 
Thanks a los for four help!!!
Katia
 
>From: Gianny Damour <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Deployment fail at persistent EJB
>Date: Wed, 13 Apr 2005 09:27:08 +1000
>
>Katia,
>
>The last version of Geronimo, built from source, supports CMP.
>
>Also, could you please provide the error message that you get during
>the deployment process?
>
>I comment your openejb-jar.xml deployment descriptor further down.
>
>Thanks,
>Gianny
>
>On 12/04/2005 8:20 PM, Katia Aresti Gonzalez wrote:
>
>>Hello again David
>>
>>The problems still go on xD. The openejb-jar.xml is wrong, and I
>>cant find any reference of an xml file to look at and compare. I
>>know im doing somethig really bad :-).
>>
>>Here is the openejb-jar.xml of the ejb-jar.xml. Can you help me
>>again please? thank you!
>>
>>Katia
>>
>>
>>
>>
configId="GeronimoTestEJB"
>>parentId="org/apache/geronimo/Server">
>>
>>
>> null
>> org/apache/geronimo/DefaultDatabase
>> DefaultDatasource
>>
>>
>OK.
>
>>
>>
>>CabinEJB
>>CabinEJB
>>
>You do not need to specify a jndi-name. This construct is only used
>to specify a global JNDI name, which you do not need in your case.
>
>You need to specifiy a mapping table for this CMP. This is something
>like:
> MyTableName
>
>Furthermore, you also need to specify a mapping for each of the
>persistent fields identified in your ejb-jar.xml DD. This is
>something like:
>
>id
>col_id
>
>
>>
>>jdbc/titanDB
>>  
>>
>This is now enough information. You need to map a resource reference
>to this resource name. This is something like:
>null
>org/apache/geronimo/DefaultDatabase
>DefaultDatasource
>Such a configuration references the default datasource of Geronimo,
>which is by the way the datasource used under the cover by the CMP
>engine to interact with the database.
>
>Please have a look to this file:
>modules/naming-builder/src/schema/geronimo-naming.xsd and especially
>to the resource-refType complex type to understand how mapping
>works.
>
>>
>>
>>
>>ShipEJB
>>ShipEJB
>>
>Same as above.
>
>>
>>jdbc/titanDB
>>
>Same as above.
>
>>  
>>
>>
>>
>>TravelAgentEJB
>>TravelAgentEJB
>>   
>>
>>
>>
Recibe ofertas de empleo adaptadas a tu perfil. Introduce tu CV en MSN Empleo.