Re: Deployment fail at persistent EJB
Quick update for those following the thread. I chatted with Katia on IRC and we made some progress. Turns out the example was a CMP 1.1 example. We updated the deployment descriptor to include the right cmp-version and the ejb jar deploys fine. Katia was also able to successfully get an client to run accessing the CMP. The current error is now because the table for the CMP doesn't exist in the Derby database. Not sure what is required to get that going. Here is the trimmed stack trace for future reference and archive purposes. 01:45:48,156 ERROR [AbstractTransactionContext] Unable to roll back transaction java.lang.IllegalStateException: Status is STATUS_NO_TRANSACTION at org.apache.geronimo.transaction.manager.TransactionImpl.rollback(TransactionImpl.java:438) at org.apache.geronimo.transaction.context.InheritableTransactionContext.rollbackAndThrow(InheritableTransactionContext.java:305) at org.apache.geronimo.transaction.context.InheritableTransactionContext.complete(InheritableTransactionContext.java:196) at org.apache.geronimo.transaction.context.InheritableTransactionContext.commit(InheritableTransactionContext.java:143) at org.openejb.transaction.ContainerPolicy$TxRequired.invoke(ContainerPolicy.java:152) at org.openejb.transaction.TransactionContextInterceptor.invoke(TransactionContextInterceptor.java:80) [snip] 01:45:48,187 WARN [SystemExceptionInterceptor] CabinEJB javax.transaction.SystemException: Unable to commit container transaction at org.apache.geronimo.transaction.context.InheritableTransactionContext.rollbackAndThrow(InheritableTransactionContext.java:324) at org.apache.geronimo.transaction.context.InheritableTransactionContext.complete(InheritableTransactionContext.java:196) at org.apache.geronimo.transaction.context.InheritableTransactionContext.commit(InheritableTransactionContext.java:143) at org.openejb.transaction.ContainerPolicy$TxRequired.invoke(ContainerPolicy.java:152) at org.openejb.transaction.TransactionContextInterceptor.invoke(TransactionContextInterceptor.java:80) [snip] at java.lang.Thread.run(Thread.java:534) Caused by: org.tranql.ql.QueryException: Error executing statement: INSERT INTO CabinTable(col_id, col_name, col_deckLevel, col_shipId, col_bedCount) VALUES (?, ?, ?, ?, ?) at org.tranql.sql.jdbc.JDBCUpdateCommand.execute(JDBCUpdateCommand.java:69) [snip] ... 23 more Caused by: SQL Exception: Table 'CABINTABLE' does not exist. at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Util.java) at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java) at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java) at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java) at org.apache.derby.impl.jdbc.ConnectionChild.handleException(ConnectionChild.java) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.(EmbedPreparedStatement.java) at org.apache.derby.impl.jdbc.EmbedPreparedStatement20.(EmbedPreparedStatement20.java) at org.apache.derby.impl.jdbc.EmbedPreparedStatement30.(EmbedPreparedStatement30.java) at org.apache.derby.jdbc.Driver30.newEmbedPreparedStatement(Driver30.java) at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(EmbedConnection.java) at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(EmbedConnection.java) at org.apache.derby.iapi.jdbc.BrokeredConnection.prepareStatement(BrokeredConnection.java) at org.tranql.connector.jdbc.ConnectionHandle.prepareStatement(ConnectionHandle.java:231) at org.tranql.sql.jdbc.JDBCUpdateCommand.execute(JDBCUpdateCommand.java:63) ... 28 more 01:45:48,250 FATAL [EjbRequestHandler] Invocation result object is not serializable: java.rmi.RemoteException java.io.NotSerializableException: org.apache.derby.impl.sql.compile.TableName at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) [blah blah blah] -David On Mon, Apr 11, 2005 at 10:39:34PM +, Katia Aresti Gonzalez wrote: > Hello!!! > > I was trying to deploy the persistent EJB. Im using the OpenEJB example off > ships and titan... Its an easy example, just 2 entity bean and a session > bean. The problem is that the deployment fails and this the error > that appears: > > i cant guess what is the problem. Im trying to deploy de jar, build with > maven, and buils succesfull, > using the ejb-jar.xml and the openejb-jar.xml > > Anybody can help??? thank you > > Katia > > > C:\gero>start java -jar bin/server.jar > > 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.DeploymentE
Re: Deployment fail at persistent EJB
I forgot: Ive have done already a proyect using cmp beans with tomcat and the sun server, using a class like a bridge to make everything work. But on geronimo is very diferent, and the documentation i read is very poor, and i understand the reason of not being so much new documentation for begginers, but the reallity is that there isnt, or im blind and i havent found it... (for begginers, all very well explained). The good thing is the user lists and peoples help, because if that didnt exist, i would be very lose, and i wouldnt be able even to make geronimo build from source. Thanks a lot again Gianny and everybody KatiaTu horóscopo diario, semanal y gratuito. Cartas, tarot y predicciones en MSN Horóscopo --- Begin Message --- Hi! thanks a lot for your help! Ive done it in the end, im just trying to make it work, but i deployed the cmp. Ive read about it before, but its diferent in Geronimo and it very dificult for me, a begginer, to make things go on without new documentation of geronimo, and also everithing in english, which makes me much difficult to read and understand. Thats why im asking for more help than anybody else. And by the way say that i will program my own examples and explain everything in a huge documentation, because its not an exam what i have to pass, i have to do a presentation at university of what ive been working on, and its my final proyect of engineering studies. If I had 2 months more, i wouldn ask for help so desperately, because you might not know, but i started with this, reading documenting and working on november. And when i finish the proyect, I will give it for you, all the comunity so you can put it wherever you want as a Geronimo Documentation in spanish, and may be, will be usefull for begginers like me. Thanks you very very much for your help!!! Katia I will report when everything works :-) >From: Gianny Damour <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Re: Deployment fail at persistent EJB >Date: Fri, 15 Apr 2005 09:30:17 +1000 > >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 Coches nuevos, coches de ocasión, coches de Km 0 Si piensas en cambiar de coche, MSN Motor. --- End Message ---
Re: Deployment fail at persistent EJB
Hi! thanks a lot for your help! Ive done it in the end, im just trying to make it work, but i deployed the cmp. Ive read about it before, but its diferent in Geronimo and it very dificult for me, a begginer, to make things go on without new documentation of geronimo, and also everithing in english, which makes me much difficult to read and understand. Thats why im asking for more help than anybody else. And by the way say that i will program my own examples and explain everything in a huge documentation, because its not an exam what i have to pass, i have to do a presentation at university of what ive been working on, and its my final proyect of engineering studies. If I had 2 months more, i wouldn ask for help so desperately, because you might not know, but i started with this, reading documenting and working on november. And when i finish the proyect, I will give it for you, all the comunity so you can put it wherever you want as a Geronimo Documentation in spanish, and may be, will be usefull for begginers like me. Thanks you very very much for your help!!! Katia I will report when everything works :-) >From: Gianny Damour <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Re: Deployment fail at persistent EJB >Date: Fri, 15 Apr 2005 09:30:17 +1000 > >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 Coches nuevos, coches de ocasión, coches de Km 0 Si piensas en cambiar de coche, MSN Motor.
Re: Deployment fail at persistent EJB
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
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
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: Deployment fail at persistent EJB, help please!!
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 &g
Re: Deployment fail at persistent EJB
) at mx4j.remote.rmi.RMIConnectionSubjectInvoker.subjectInvoke(RMIConnection SubjectInvoker.java:86) at mx4j.remote.rmi.RMIConnectionSubjectInvoker.invoke(RMIConnectionSubject Invoker.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.ja va:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261) at sun.rmi.transport.Transport$1.run(Transport.java:148) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:144) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java: 460) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.j ava:701) at java.lang.Thread.run(Thread.java:534) Caused by: java.lang.ArrayIndexOutOfBoundsException: -1 at org.openejb.entity.cmp.CMPInstanceContextFactory.(CMPInstanceCont extFactory.java:127) at org.openejb.deployment.CMPContainerBuilder.buildIt(CMPContainerBuilder. java:306) at org.openejb.deployment.AbstractContainerBuilder.createConfiguration(Abs tractContainerBuilder.java:355) at org.openejb.deployment.CMPEntityBuilder.createBean(CMPEntityBuilder.jav a:743) ... 63 more >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:19:10 -0700 > >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 sys
Re: Deployment fail at persistent EJB
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261) at sun.rmi.transport.Transport$1.run(Transport.java:148) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:144) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) at java.lang.Thread.run(Thread.java:534)Caused by: java.lang.ArrayIndexOutOfBoundsException: -1 at org.openejb.entity.cmp.CMPInstanceContextFactory.(CMPInstanceContextFactory.java:127) at org.openejb.deployment.CMPContainerBuilder.buildIt(CMPContainerBuilder.java:306) at org.openejb.deployment.AbstractContainerBuilder.createConfiguration(AbstractContainerBuilder.java:355) at org.openejb.deployment.CMPEntityBuilder.createBean(CMPEntityBuilder.java:743) ... 63 more >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:19:10 -0700 > >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... >> >> >> >>>>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 resour
Re: Deployment fail at persistent EJB
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
Re: Deployment fail at persistent EJB
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 >> >> >>
Re: Deployment fail at persistent EJB
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 >> >> >>
Re: Deployment fail at persistent EJB
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. >> >> >>
Re: Deployment fail at persistent EJB
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 >> >>
Re: Deployment fail at persistent EJB
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? >>
Re: Deployment fail at persistent EJB
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 :-). >&g
Re: Deployment fail at persistent EJB
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: Deployment fail at persistent EJB
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.
Re: Deployment fail at persistent EJB
Hello Gianny!! Im going to try what you say tomorrow morning (here is now 2:00 am, Bilbao :-) ), and i will tell you, and copy the error in the answer message. Thank you very much!!! 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 >> >> >> >> Busca a la vez en Internet, en directorios, en enciclopedias... Atrévete con el nuevo MSN Search
Re: Deployment fail at persistent EJB
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
Re: Deployment fail at persistent EJB
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 CabinEJB CabinEJB jdbc/titanDB ShipEJB ShipEJB jdbc/titanDB TravelAgentEJB TravelAgentEJB >From: David Jencks <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Re: Deployment fail at persistent EJB >Date: Mon, 11 Apr 2005 17:05:11 -0700 > > >On Apr 11, 2005, at 4:39 PM, Katia Aresti Gonzalez wrote: > >>Hi David!!! >> >>It helps, but i dont understand what you say >>about persistence-type has the wrong case (should be Container or >>Bean). > >instead of container >it should be Container > >> Can i fix this xml problems with any tutorial or how to, or an >>example of the ejb-jar.xml and openejb-jar.xml should be?? > >I think studying the ejb-jar-2_1.xsd schema is the only way to >figure out what goes in the ejb-jar.xml document. (there might be >validating xml editors, but I've never seen one). Similarly there >is an openejb-jar.xsd schema for the vendor specific plan. It looks >to me as if you may have a plan for version 1 of openejb: this would >be useless with openejb 2, the version integrated in geronimo. > >>I understand what they are for, but im a bit loose between the >>diferences that i should make in the original xml and the ones >>geronimo needs. Have you got any example to let me or send me to my >>personal email address, please? If not, is there any tutorial? When >>I finish with this, i will start programming longer examples for my >>proyect, i have only 2 weeks to do this, because i have to give the >>documentation 12th of May :-). I will send it for you to have a >>look, cause will be a user start into geronimo in spanish, and >>might be very usefull for spanish comunity!!! >> >>Ok, so... can you or anybody help me again please??? ;-) >> >> And the last question. To try de EJBs, ok... I just want to try >>then into Geronimo with a client main(), just deploying a jar. Do i >>need a application.xml? When i use the examples on a web >>application i know it need web.xml and the application.xml. How can >>I see with a client main that my EJBs work into Geronimo? > >If you are deploying a single module (web or ejb, or application >client, or resource adapter) you don't need an application.xml and >you don't need to pack the module into an .ear. If you are >deploying several modules packed in an ear then you need an >application.xml. > >I don't understand if you want to write a j2ee application client >that would be packed in an ear with the ejb jar or a standalone >non-j2ee client that would be completely separate. One advantage of >the app-client is that you can use ejb-refs to "find" the ejbs in >the rest of the app. Otherwise you have to set up jndi properties >yourself and be sure to add jndi-name elements to your openejb-jar >plans. The openejb itests are all non-j2ee clients. I'm not aware >of a publically available example of a j2ee app client. > >thanks >david jencks > >> >>Than you a lot for your help! >> >>Katia >> >> >> >> >> >From: David Jencks <[EMAIL PROTECTED]> >> >Reply-To: [EMAIL PROTECTED] >> >To: [EMAIL PROTECTED] >> >Subject: Re: Deployment fail at persistent EJB >> >Date: Mon, 11 Apr 2005 16:00:13 -0700 >> > >> >A couple of obvious problems are that the reentrant element >>should >> >be after prim-key-class and all lowercase (false not False) and >>the >> > persistence-type has the wrong case (should be Container or >>Bean). >> > >> >I've found that looking at the errors reported by xmlbeans and >> >comparing with the schema has always led me to a valid xml >>document. >> > >> >hope this helps >> >david jencks >> > >> >On Apr 11, 2005, at 3:39 PM, Katia Aresti Gonzalez wrote: >> > >> >>Hello!!! >> >> >> >>I was trying to deploy the persistent EJB. Im using the >>OpenEJB >> >>example off ships and titan... Its an easy e
Re: Deployment fail at persistent EJB
Hi again David!!! I understand everything better now :-). The thing is that first of all, ive been trying littel applicattions run into Geronimo, because if i run a cmp, i can run 5 :-) hehehe My idea is to do separete littel examples taking the examples I have from reference, and do a bigger example packed on a ear file. This is just to show how it works, and because my teachers will look what Ive done, and its better to show a beauty example that integrates "everything". The thing is that 2 of the teachers will value myself just on 15 minutes of explanation, and show, I dont know if i making me understood, by english sometimes is awfull. Ive fixed the problem with the ejb-jar, and now i will try to fix the open-ejb jar. Thanks a lot for your help!! I will tell you. Katia >From: David Jencks <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Re: Deployment fail at persistent EJB >Date: Mon, 11 Apr 2005 17:05:11 -0700 > > >On Apr 11, 2005, at 4:39 PM, Katia Aresti Gonzalez wrote: > >>Hi David!!! >> >>It helps, but i dont understand what you say >>about persistence-type has the wrong case (should be Container or >>Bean). > >instead of container >it should be Container > >> Can i fix this xml problems with any tutorial or how to, or an >>example of the ejb-jar.xml and openejb-jar.xml should be?? > >I think studying the ejb-jar-2_1.xsd schema is the only way to >figure out what goes in the ejb-jar.xml document. (there might be >validating xml editors, but I've never seen one). Similarly there >is an openejb-jar.xsd schema for the vendor specific plan. It looks >to me as if you may have a plan for version 1 of openejb: this would >be useless with openejb 2, the version integrated in geronimo. > >>I understand what they are for, but im a bit loose between the >>diferences that i should make in the original xml and the ones >>geronimo needs. Have you got any example to let me or send me to my >>personal email address, please? If not, is there any tutorial? When >>I finish with this, i will start programming longer examples for my >>proyect, i have only 2 weeks to do this, because i have to give the >>documentation 12th of May :-). I will send it for you to have a >>look, cause will be a user start into geronimo in spanish, and >>might be very usefull for spanish comunity!!! >> >>Ok, so... can you or anybody help me again please??? ;-) >> >> And the last question. To try de EJBs, ok... I just want to try >>then into Geronimo with a client main(), just deploying a jar. Do i >>need a application.xml? When i use the examples on a web >>application i know it need web.xml and the application.xml. How can >>I see with a client main that my EJBs work into Geronimo? > >If you are deploying a single module (web or ejb, or application >client, or resource adapter) you don't need an application.xml and >you don't need to pack the module into an .ear. If you are >deploying several modules packed in an ear then you need an >application.xml. > >I don't understand if you want to write a j2ee application client >that would be packed in an ear with the ejb jar or a standalone >non-j2ee client that would be completely separate. One advantage of >the app-client is that you can use ejb-refs to "find" the ejbs in >the rest of the app. Otherwise you have to set up jndi properties >yourself and be sure to add jndi-name elements to your openejb-jar >plans. The openejb itests are all non-j2ee clients. I'm not aware >of a publically available example of a j2ee app client. > >thanks >david jencks > >> >>Than you a lot for your help! >> >>Katia >> >> >> >> >> >From: David Jencks <[EMAIL PROTECTED]> >> >Reply-To: [EMAIL PROTECTED] >> >To: [EMAIL PROTECTED] >> >Subject: Re: Deployment fail at persistent EJB >> >Date: Mon, 11 Apr 2005 16:00:13 -0700 >> > >> >A couple of obvious problems are that the reentrant element >>should >> >be after prim-key-class and all lowercase (false not False) and >>the >> > persistence-type has the wrong case (should be Container or >>Bean). >> > >> >I've found that looking at the errors reported by xmlbeans and >> >comparing with the schema has always led me to a valid xml >>document. >> > >> >hope this helps >> >david jencks >> > >> >On Apr 11, 2005, at 3:39 PM, Katia Aresti Gonzalez wrote: >> > >> >>Hello!!! >> >> >> >>I was trying to deploy the per
Re: Deployment fail at persistent EJB
Hi again!! The ejb-jar.xml seems to be ok. Now im goig to try to fix the problem with de open-ejb.xml. Anyway, if you could answer the question ooff the last message will be great!!! thank you very much Katia >From: "Katia Aresti Gonzalez" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Re: Deployment fail at persistent EJB >Date: Mon, 11 Apr 2005 23:39:44 + > Acepta el reto MSN Premium: Envía hasta 500 megas diarios de fotos desde Hotmail. Descárgalo y pruébalo 2 meses gratis. --- Begin Message --- Hi David!!! It helps, but i dont understand what you say about persistence-type has the wrong case (should be Container or Bean). Can i fix this xml problems with any tutorial or how to, or an example of the ejb-jar.xml and openejb-jar.xml should be?? I understand what they are for, but im a bit loose between the diferences that i should make in the original xml and the ones geronimo needs. Have you got any example to let me or send me to my personal email address, please? If not, is there any tutorial? When I finish with this, i will start programming longer examples for my proyect, i have only 2 weeks to do this, because i have to give the documentation 12th of May :-). I will send it for you to have a look, cause will be a user start into geronimo in spanish, and might be very usefull for spanish comunity!!! Ok, so... can you or anybody help me again please??? ;-) And the last question. To try de EJBs, ok... I just want to try then into Geronimo with a client main(), just deploying a jar. Do i need a application.xml? When i use the examples on a web application i know it need web.xml and the application.xml. How can I see with a client main that my EJBs work into Geronimo? Than you a lot for your help! Katia >From: David Jencks <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Re: Deployment fail at persistent EJB >Date: Mon, 11 Apr 2005 16:00:13 -0700 > >A couple of obvious problems are that the reentrant element should >be after prim-key-class and all lowercase (false not False) and the > persistence-type has the wrong case (should be Container or Bean). > >I've found that looking at the errors reported by xmlbeans and >comparing with the schema has always led me to a valid xml document. > >hope this helps >david jencks > >On Apr 11, 2005, at 3:39 PM, Katia Aresti Gonzalez wrote: > >>Hello!!! >> >>I was trying to deploy the persistent EJB. Im using the OpenEJB >>example off ships and titan... Its an easy example, just 2 entity >>bean and a session bean. The problem is that the deployment fails >>and this the error >>that appears: >> >>i cant guess what is the problem. Im trying to deploy de jar, build >> with maven, and buils succesfull, >>using the ejb-jar.xml and the openejb-jar.xml >> >>Anybody can help??? thank you >> >>Katia >> >> >>C:\gero>start java -jar bin/server.jar >> >>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: >>Error parsing >>ejb-jar.xml >>Error parsing ejb-jar.xml >>Invalid deployment descriptor: [error: Element not allowed: >> [EMAIL PROTECTED] >>tp://java.sun.com/xml/ns/j2ee in element >>[EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee, >>error: String 'container' is not a valid enumerated value for >>persistence-typeT >>ype in namespace http://java.sun.com/xml/ns/j2ee, error: Element >>not allowed: cm >>[EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee in element >>[EMAIL PROTECTED]://java.sun.com/xm >>l/ns/j2ee, error: Element not allowed: >>[EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee >>in element [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee, error: Element >>not allowed: >>[EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee in element >>[EMAIL PROTECTED]://java.sun.com/ >>xml/ns/j2ee, error: Element not allowed: >>[EMAIL PROTECTED]://java.sun.com/xml/ns/j2 >>ee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee, error: >>Element not allowed >>: [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee in element >>[EMAIL PROTECTED]://java.sun.co >>m/xml/ns/j2ee, error: Element not allowed: >>[EMAIL PROTECTED]://java.sun.com/xml >>/ns/j2ee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee, error: >>Element not a >>llowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee in element >>[EMAIL PROTECTED]://ja >>va.sun.com/xml/ns/j2ee, error: Expected element(s
Re: Deployment fail at persistent EJB
On Apr 11, 2005, at 4:39 PM, Katia Aresti Gonzalez wrote: Hi David!!! It helps, but i dont understand what you say about persistence-type has the wrong case (should be Container or Bean). instead of container it should be Container Can i fix this xml problems with any tutorial or how to, or an example of the ejb-jar.xml and openejb-jar.xml should be?? I think studying the ejb-jar-2_1.xsd schema is the only way to figure out what goes in the ejb-jar.xml document. (there might be validating xml editors, but I've never seen one). Similarly there is an openejb-jar.xsd schema for the vendor specific plan. It looks to me as if you may have a plan for version 1 of openejb: this would be useless with openejb 2, the version integrated in geronimo. I understand what they are for, but im a bit loose between the diferences that i should make in the original xml and the ones geronimo needs. Have you got any example to let me or send me to my personal email address, please? If not, is there any tutorial? When I finish with this, i will start programming longer examples for my proyect, i have only 2 weeks to do this, because i have to give the documentation 12th of May :-). I will send it for you to have a look, cause will be a user start into geronimo in spanish, and might be very usefull for spanish comunity!!! Ok, so... can you or anybody help me again please??? ;-) And the last question. To try de EJBs, ok... I just want to try then into Geronimo with a client main(), just deploying a jar. Do i need a application.xml? When i use the examples on a web application i know it need web.xml and the application.xml. How can I see with a client main that my EJBs work into Geronimo? If you are deploying a single module (web or ejb, or application client, or resource adapter) you don't need an application.xml and you don't need to pack the module into an .ear. If you are deploying several modules packed in an ear then you need an application.xml. I don't understand if you want to write a j2ee application client that would be packed in an ear with the ejb jar or a standalone non-j2ee client that would be completely separate. One advantage of the app-client is that you can use ejb-refs to "find" the ejbs in the rest of the app. Otherwise you have to set up jndi properties yourself and be sure to add jndi-name elements to your openejb-jar plans. The openejb itests are all non-j2ee clients. I'm not aware of a publically available example of a j2ee app client. thanks david jencks Than you a lot for your help! Katia >From: David Jencks <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Re: Deployment fail at persistent EJB >Date: Mon, 11 Apr 2005 16:00:13 -0700 > >A couple of obvious problems are that the reentrant element should >be after prim-key-class and all lowercase (false not False) and the > persistence-type has the wrong case (should be Container or Bean). > >I've found that looking at the errors reported by xmlbeans and >comparing with the schema has always led me to a valid xml document. > >hope this helps >david jencks > >On Apr 11, 2005, at 3:39 PM, Katia Aresti Gonzalez wrote: > >>Hello!!! >> >>I was trying to deploy the persistent EJB. Im using the OpenEJB >>example off ships and titan... Its an easy example, just 2 entity >>bean and a session bean. The problem is that the deployment fails >>and this the error >>that appears: >> >>i cant guess what is the problem. Im trying to deploy de jar, build >> with maven, and buils succesfull, >>using the ejb-jar.xml and the openejb-jar.xml >> >>Anybody can help??? thank you >> >>Katia >> >> >>C:\gero>start java -jar bin/server.jar >> >>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: >>Error parsing >>ejb-jar.xml >>Error parsing ejb-jar.xml >>Invalid deployment descriptor: [error: Element not allowed: >>[EMAIL PROTECTED] >>tp://java.sun.com/xml/ns/j2ee in element >>[EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee, >>error: String 'container' is not a valid enumerated value for >>persistence-typeT >>ype in namespace http://java.sun.com/xml/ns/j2ee, error: Element >>not allowed: cm >>[EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee in element >>[EMAIL PROTECTED]://java.sun.com/xm >>l/ns/j2ee, error: Element not allowed: >>[EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee >>in element [EMAIL PROTECTED]://java.su
Re: Deployment fail at persistent EJB
Hi David!!! It helps, but i dont understand what you say about persistence-type has the wrong case (should be Container or Bean). Can i fix this xml problems with any tutorial or how to, or an example of the ejb-jar.xml and openejb-jar.xml should be?? I understand what they are for, but im a bit loose between the diferences that i should make in the original xml and the ones geronimo needs. Have you got any example to let me or send me to my personal email address, please? If not, is there any tutorial? When I finish with this, i will start programming longer examples for my proyect, i have only 2 weeks to do this, because i have to give the documentation 12th of May :-). I will send it for you to have a look, cause will be a user start into geronimo in spanish, and might be very usefull for spanish comunity!!! Ok, so... can you or anybody help me again please??? ;-) And the last question. To try de EJBs, ok... I just want to try then into Geronimo with a client main(), just deploying a jar. Do i need a application.xml? When i use the examples on a web application i know it need web.xml and the application.xml. How can I see with a client main that my EJBs work into Geronimo? Than you a lot for your help! Katia >From: David Jencks <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Re: Deployment fail at persistent EJB >Date: Mon, 11 Apr 2005 16:00:13 -0700 > >A couple of obvious problems are that the reentrant element should >be after prim-key-class and all lowercase (false not False) and the > persistence-type has the wrong case (should be Container or Bean). > >I've found that looking at the errors reported by xmlbeans and >comparing with the schema has always led me to a valid xml document. > >hope this helps >david jencks > >On Apr 11, 2005, at 3:39 PM, Katia Aresti Gonzalez wrote: > >>Hello!!! >> >>I was trying to deploy the persistent EJB. Im using the OpenEJB >>example off ships and titan... Its an easy example, just 2 entity >>bean and a session bean. The problem is that the deployment fails >>and this the error >>that appears: >> >>i cant guess what is the problem. Im trying to deploy de jar, build >> with maven, and buils succesfull, >>using the ejb-jar.xml and the openejb-jar.xml >> >>Anybody can help??? thank you >> >>Katia >> >> >>C:\gero>start java -jar bin/server.jar >> >>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: >>Error parsing >>ejb-jar.xml >>Error parsing ejb-jar.xml >>Invalid deployment descriptor: [error: Element not allowed: >> [EMAIL PROTECTED] >>tp://java.sun.com/xml/ns/j2ee in element >>[EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee, >>error: String 'container' is not a valid enumerated value for >>persistence-typeT >>ype in namespace http://java.sun.com/xml/ns/j2ee, error: Element >>not allowed: cm >>[EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee in element >>[EMAIL PROTECTED]://java.sun.com/xm >>l/ns/j2ee, error: Element not allowed: >>[EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee >>in element [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee, error: Element >>not allowed: >>[EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee in element >>[EMAIL PROTECTED]://java.sun.com/ >>xml/ns/j2ee, error: Element not allowed: >>[EMAIL PROTECTED]://java.sun.com/xml/ns/j2 >>ee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee, error: >>Element not allowed >>: [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee in element >>[EMAIL PROTECTED]://java.sun.co >>m/xml/ns/j2ee, error: Element not allowed: >>[EMAIL PROTECTED]://java.sun.com/xml >>/ns/j2ee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee, error: >>Element not a >>llowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee in element >>[EMAIL PROTECTED]://ja >>va.sun.com/xml/ns/j2ee, error: Expected element(s) in element >>[EMAIL PROTECTED]://java >>.sun.com/xml/ns/j2ee, error: Element not allowed: >>[EMAIL PROTECTED]://java.sun.com/ >>xml/ns/j2ee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee, >>error: String 'be >>an' is not a valid enumerated value for persistence-typeType in >>namespace http:/ >>/java.sun.com/xml/ns/j2ee, error: Element not allowed: >>[EMAIL PROTECTED]://java >>.sun.com/xml/ns/j2ee in element >>[EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee, e
Re: Deployment fail at persistent EJB
A couple of obvious problems are that the reentrant element should be after prim-key-class and all lowercase (false not False) and the persistence-type has the wrong case (should be Container or Bean). I've found that looking at the errors reported by xmlbeans and comparing with the schema has always led me to a valid xml document. hope this helps david jencks On Apr 11, 2005, at 3:39 PM, Katia Aresti Gonzalez wrote: Hello!!! I was trying to deploy the persistent EJB. Im using the OpenEJB example off ships and titan... Its an easy example, just 2 entity bean and a session bean. The problem is that the deployment fails and this the error that appears: i cant guess what is the problem. Im trying to deploy de jar, build with maven, and buils succesfull, using the ejb-jar.xml and the openejb-jar.xml Anybody can help??? thank you Katia C:\gero>start java -jar bin/server.jar 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: Error parsing ejb-jar.xml Error parsing ejb-jar.xml Invalid deployment descriptor: [error: Element not allowed: [EMAIL PROTECTED] tp://java.sun.com/xml/ns/j2ee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee, error: String 'container' is not a valid enumerated value for persistence-typeT ype in namespace http://java.sun.com/xml/ns/j2ee, error: Element not allowed: cm [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee in element [EMAIL PROTECTED]://java.sun.com/xm l/ns/j2ee, error: Element not allowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee, error: Element not allowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee in element [EMAIL PROTECTED]://java.sun.com/ xml/ns/j2ee, error: Element not allowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/j2 ee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee, error: Element not allowed : [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee in element [EMAIL PROTECTED]://java.sun.co m/xml/ns/j2ee, error: Element not allowed: [EMAIL PROTECTED]://java.sun.com/xml /ns/j2ee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee, error: Element not a llowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee in element [EMAIL PROTECTED]://ja va.sun.com/xml/ns/j2ee, error: Expected element(s) in element [EMAIL PROTECTED]://java .sun.com/xml/ns/j2ee, error: Element not allowed: [EMAIL PROTECTED]://java.sun.com/ xml/ns/j2ee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee, error: String 'be an' is not a valid enumerated value for persistence-typeType in namespace http:/ /java.sun.com/xml/ns/j2ee, error: Element not allowed: [EMAIL PROTECTED]://java .sun.com/xml/ns/j2ee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee, error: E lement not allowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee in element enti [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee, error: Expected element(s) in element entity @http://java.sun.com/xml/ns/j2ee] Descriptor: http://java.sun.com/xml/ns/j2eehttp://j ava.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd" version="2.1" xmlns:xsi="http://www.w3. org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/j2ee";> CabinEJB com.titan.cabin.CabinHomeRemote com.titan.cabin.CabinRemote com.titan.cabin.CabinBean False container java.lang.Integer id name deckLevel shipId bedCount id jdbc/titanDB javax.sql.DataSource Container This bean represents a cruise ship. ShipEJB com.titan.ship.ShipHomeRemote com.titan.ship.ShipRemote com.titan.ship.ShipBean False bean java.lang.Integer id DataSource for the Titan database jdbc/titanDB javax.sql.DataSource Container TravelAgentEJB com.titan.travelagent.TravelAgentHomeRemote com.titan.travelagent.TravelAgentRemote com.titan.travelagent.TravelAgentBean Stateless Container ejb/titan/CabinEJB Entity com.titan.cabin.CabinHomeRemote com.titan.cabin.CabinRemote CabinEJB This role represents everyone who is allowed full access to te CabinEJB. everyone everyone CabinEJB * TravelAgentEJB * everyone ShipEJB * CabinEJB * ShipEJB * TravelAgentEJB * Required /---open EJB jar.xml-- http://www.openejb.org/openejb-jar/1.1";> _ Acepta el ret