Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 76785 invoked from network); 15 Apr 2005 00:14:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Apr 2005 00:14:12 -0000 Received: (qmail 99851 invoked by uid 500); 15 Apr 2005 00:14:10 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 99834 invoked by uid 500); 15 Apr 2005 00:14:10 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 99819 invoked by uid 99); 15 Apr 2005 00:14:10 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of dblevins@visi.com designates 208.42.156.9 as permitted sender) Received: from cenn.mc.mpls.visi.com (HELO cenn.mc.mpls.visi.com) (208.42.156.9) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 14 Apr 2005 17:14:09 -0700 Received: from isis.visi.com (isis.visi.com [209.98.98.8]) by cenn.mc.mpls.visi.com (Postfix) with ESMTP id 04B6F820A for ; Thu, 14 Apr 2005 19:14:07 -0500 (CDT) Received: by isis.visi.com (Postfix, from userid 21236) id C04D676C5C; Thu, 14 Apr 2005 19:14:06 -0500 (CDT) Date: Thu, 14 Apr 2005 19:14:06 -0500 From: David Blevins To: user@geronimo.apache.org Subject: Re: Deployment fail at persistent EJB Message-ID: <20050415001406.GA15215@isis.visi.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.3.27i X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 +0000, 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: > reentrant@ht at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1224) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1050) > tp://java.sun.com/xml/ns/j2ee in element > entity@http://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 > p-field@http://java.sun.com/xml/ns/j2ee in element > entity@http://java.sun.com/xm > l/ns/j2ee, error: Element not allowed: > cmp-field@http://java.sun.com/xml/ns/j2ee > in element entity@http://java.sun.com/xml/ns/j2ee, error: Element not > allowed: > cmp-field@http://java.sun.com/xml/ns/j2ee in element > entity@http://java.sun.com/ > xml/ns/j2ee, error: Element not allowed: > cmp-field@http://java.sun.com/xml/ns/j2 > ee in element entity@http://java.sun.com/xml/ns/j2ee, error: Element not > allowed > : cmp-field@http://java.sun.com/xml/ns/j2ee in element > entity@http://java.sun.co > m/xml/ns/j2ee, error: Element not allowed: > primkey-field@http://java.sun.com/xml > /ns/j2ee in element entity@http://java.sun.com/xml/ns/j2ee, error: Element > not a > llowed: resource-ref@http://java.sun.com/xml/ns/j2ee in element > entity@http://ja > va.sun.com/xml/ns/j2ee, error: Expected element(s) in element > entity@http://java > .sun.com/xml/ns/j2ee, error: Element not allowed: > reentrant@http://java.sun.com/ > xml/ns/j2ee in element entity@http://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: > primkey-field@http://java > .sun.com/xml/ns/j2ee in element entity@http://java.sun.com/xml/ns/j2ee, > error: E > lement not allowed: resource-ref@http://java.sun.com/xml/ns/j2ee in element > enti > ty@http://java.sun.com/xml/ns/j2ee, error: Expected element(s) in element > entity > @http://java.sun.com/xml/ns/j2ee] > Descriptor: xsi:schemaLocation="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. at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java :1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:13 04) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.jav a:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) > 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---------- > > at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java :1332) at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java :367) at java.lang.Throwable.writeObject(Throwable.java:648) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:80 9) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:12 96) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.jav a:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) eFields(ObjectOutputStream.java :1332) at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java :367) at java.lang.Throwable.writeObject(Throwable.java:648) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:80 9) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:12 96) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.jav a:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) OutputStream.java:13 04) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.jav a:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) > > container-id="Default CMP Container"> > > > container-id="Default BMP Container"> > > > deployment-id="titan/TravelAgentEJB" container-id="Default Stateless > Container"/> > ) at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod Invoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio n.java:118) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance. java:710) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:5 7) at org.apache.geronimo.kernel.proxy.RawOperationInvoker.invoke(RawOperat ionInvoker.java:36) at org.apache.geronimo.kernel.proxy.ProxyMethodInterceptor.intercept(Pro xyMethodInterceptor.java:92) at org.openejb.server.ServerService$$EnhancerByCGLIB$$8c43612f.service(< generated>) at org.openejb.server.ServicePool$2.run(ServicePool.java:106) at org.openejb.server.ServicePool$3.run(ServicePool.java:129) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown So urce) at java.lang.Thread.run(Thread.java:534) jar> > > _________________________________________________________________ > Acepta el reto MSN Premium: Correos m�s divertidos con fotos y textos > incre�bles en MSN Premium. Desc�rgalo y pru�balo 2 meses gratis. > http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_correosmasdivertidos