Buildfile: build.xml setdefaultmode: [echo] So you are using Platform Edition print-props: [echo] admin.user=admin [echo] admin.port=4848 [echo] admin.domain=domain1 [echo] appserver.instance.name=server setOSConditions: setToolWin: setToolUnix: setToolProperty: setS1ASclassPath: [echo] Workaround for early v3: create directories... setS1AS80classPath: setS1WSclassPath: setJWSDPclassPath: setTimeStamp: init-password-file: init-common: init-password-file: create-password-file: create-report-dir: setup_se: [copy] Copying 1 file to /space/test1/SRC/c10/appserver-sqe/pe/ejb/ejb30/issue/9539/descriptor build_se: [mkdir] Created dir: /space/test1/SRC/c10/appserver-sqe/pe/ejb/ejb30/issue/9539/classes [javac] Compiling 3 source files to /space/test1/SRC/c10/appserver-sqe/pe/ejb/ejb30/issue/9539/classes [javac] Compiling 1 source file to /space/test1/SRC/c10/appserver-sqe/pe/ejb/ejb30/issue/9539/classes [mkdir] Created dir: /space/test1/SRC/c10/appserver-sqe/pe/ejb/ejb30/issue/9539/classes/META-INF [copy] Copying 1 file to /space/test1/SRC/c10/appserver-sqe/pe/ejb/ejb30/issue/9539/classes/META-INF run_se: [java] JVM args ignored when same JVM is used. [java] WS HOME appserver-sqe [java] [EL Config]: 2010-01-07 07:51:23.297--ServerSession(29263633)--Thread(Thread[main,5,main])--The access type for the persistent class [class ejb30.issue.Image] is set to [PROPERTY]. [java] [EL Config]: 2010-01-07 07:51:23.701--ServerSession(29263633)--Thread(Thread[main,5,main])--The alias name for the entity class [class ejb30.issue.Image] is being defaulted to: Image. [java] [EL Config]: 2010-01-07 07:51:23.811--ServerSession(29263633)--Thread(Thread[main,5,main])--The column name for element [method getId] is being defaulted to: ID. [java] [EL Config]: 2010-01-07 07:51:23.821--ServerSession(29263633)--Thread(Thread[main,5,main])--The column name for element [method getPicture] is being defaulted to: PICTURE. [java] [EL Config]: 2010-01-07 07:51:23.826--ServerSession(29263633)--Thread(Thread[main,5,main])--The column name for element [method getImageAttribute] is being defaulted to: IMAGEATTRIBUTE. [java] [EL Config]: 2010-01-07 07:51:23.828--ServerSession(29263633)--Thread(Thread[main,5,main])--The column name for element [method getCommentary] is being defaulted to: COMMENTARY. [java] [EL Config]: 2010-01-07 07:51:23.829--ServerSession(29263633)--Thread(Thread[main,5,main])--The column name for element [method getAudio] is being defaulted to: AUDIO. [java] [EL Config]: 2010-01-07 07:51:23.83--ServerSession(29263633)--Thread(Thread[main,5,main])--The column name for element [method getCustomAttribute1] is being defaulted to: CUSTOMATTRIBUTE1. [java] [EL Config]: 2010-01-07 07:51:23.838--ServerSession(29263633)--Thread(Thread[main,5,main])--The column name for element [method getScript] is being defaulted to: SCRIPT. [java] [EL Config]: 2010-01-07 07:51:23.845--ServerSession(29263633)--Thread(Thread[main,5,main])--The column name for element [method getCustomAttribute2] is being defaulted to: CUSTOMATTRIBUTE2. [java] [EL Config]: 2010-01-07 07:51:23.865--ServerSession(29263633)--Thread(Thread[main,5,main])--The secondary table primary key column name for element [class ejb30.issue.Image] is being defaulted to: ID. [java] [EL Config]: 2010-01-07 07:51:23.866--ServerSession(29263633)--Thread(Thread[main,5,main])--The secondary table foreign key column name for element [class ejb30.issue.Image] is being defaulted to: ID. [java] Jan 7, 2010 7:51:24 AM org.hibernate.validator.util.Version [java] INFO: Hibernate Validator bean-validator-3.0-JBoss-4.0.2 [java] Jan 7, 2010 7:51:24 AM org.hibernate.validator.engine.resolver.DefaultTraversableResolver detectJPA [java] INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver. [java] [EL Info]: 2010-01-07 07:51:25.673--ServerSession(29263633)--Thread(Thread[main,5,main])--EclipseLink, version: Eclipse Persistence Services - 2.0.0.v20091127-r5931 [java] Jan 7, 2010 7:51:25 AM oracle.jdbc.driver.OracleDriver registerMBeans [java] SEVERE: Error while registering Oracle JDBC Diagnosability MBean. [java] java.security.AccessControlException: access denied (javax.management.MBeanTrustPermission register) [java] at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) [java] at java.lang.SecurityManager.checkPermission(SecurityManager.java:568) [java] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanTrustPermission(DefaultMBeanServerInterceptor.java:1824) [java] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:310) [java] at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482) [java] at oracle.jdbc.driver.OracleDriver.registerMBeans(OracleDriver.java:345) [java] at oracle.jdbc.driver.OracleDriver$1.run(OracleDriver.java:197) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at oracle.jdbc.driver.OracleDriver.(OracleDriver.java:193) [java] at java.lang.Class.forName0(Native Method) [java] at java.lang.Class.forName(Class.java:247) [java] at sun.misc.Service$LazyIterator.next(Service.java:271) [java] at java.sql.DriverService.run(DriverManager.java:664) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at java.sql.DriverManager.loadInitialDrivers(DriverManager.java:506) [java] at java.sql.DriverManager.initialize(DriverManager.java:612) [java] at java.sql.DriverManager.registerDriver(DriverManager.java:281) [java] at org.apache.derby.jdbc.ClientDriver.(Unknown Source) [java] at java.lang.Class.forName0(Native Method) [java] at java.lang.Class.forName(Class.java:247) [java] at org.eclipse.persistence.internal.security.PrivilegedAccessHelper.getClassForName(PrivilegedAccessHelper.java:88) [java] at org.eclipse.persistence.sessions.DefaultConnector.loadDriverClass(DefaultConnector.java:253) [java] at org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConnector.java:85) [java] at org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:162) [java] at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:584) [java] at org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:228) [java] at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:368) [java] at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:151) [java] at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:207) [java] at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:195) [java] at ejb30.issue.TestClient.test1(TestClient.java:26) [java] at ejb30.issue.TestClient.main(TestClient.java:79) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:764) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:218) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.Target.execute(Target.java:357) [java] at org.apache.tools.ant.Target.performTasks(Target.java:385) [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1306) [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1189) [java] at org.apache.tools.ant.Main.runBuild(Main.java:758) [java] at org.apache.tools.ant.Main.startAnt(Main.java:217) [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) [java] [EL Fine]: 2010-01-07 07:51:26.512--Thread(Thread[main,5,main])--Detected Vendor platform: org.eclipse.persistence.platform.database.JavaDBPlatform [java] [EL Config]: 2010-01-07 07:51:26.598--ServerSession(29263633)--Connection(13809944)--Thread(Thread[main,5,main])--connecting(DatabaseLogin( [java] platform=>JavaDBPlatform [java] user name=> "dbuser" [java] datasource URL=> "jdbc:derby://localhost:1527/testdb;retrieveMessagesFromServerOnGetMessage=true;create=true;user=dbuser;password=dbpassword;" [java] )) [java] [EL Config]: 2010-01-07 07:51:26.613--ServerSession(29263633)--Connection(7739053)--Thread(Thread[main,5,main])--Connected: jdbc:derby://localhost:1527/testdb;create=true;retrieveMessagesFromServerOnGetMessage=true [java] User: dbuser [java] Database: Apache Derby Version: 10.5.3.0 - (802917) [java] Driver: Apache Derby Network Client JDBC Driver Version: 10.5.3.0 - (802917) [java] [EL Config]: 2010-01-07 07:51:26.615--ServerSession(29263633)--Connection(13299843)--Thread(Thread[main,5,main])--connecting(DatabaseLogin( [java] platform=>JavaDBPlatform [java] user name=> "dbuser" [java] datasource URL=> "jdbc:derby://localhost:1527/testdb;retrieveMessagesFromServerOnGetMessage=true;create=true;user=dbuser;password=dbpassword;" [java] )) [java] [EL Config]: 2010-01-07 07:51:26.632--ServerSession(29263633)--Connection(24391166)--Thread(Thread[main,5,main])--Connected: jdbc:derby://localhost:1527/testdb;create=true;retrieveMessagesFromServerOnGetMessage=true [java] User: dbuser [java] Database: Apache Derby Version: 10.5.3.0 - (802917) [java] Driver: Apache Derby Network Client JDBC Driver Version: 10.5.3.0 - (802917) [java] [EL Info]: 2010-01-07 07:51:27.188--ServerSession(29263633)--Thread(Thread[main,5,main])--file:/space/test1/SRC/c10/appserver-sqe/pe/ejb/ejb30/issue/9539/classes/_pu1 login successful [java] [EL Fine]: 2010-01-07 07:51:27.576--ServerSession(29263633)--Connection(24391166)--Thread(Thread[main,5,main])--ALTER TABLE CMP3_CLIP DROP CONSTRAINT FK_CMP3_CLIP_ID [java] [EL Fine]: 2010-01-07 07:51:27.7--ServerSession(29263633)--Thread(Thread[main,5,main])--VALUES(1) [java] [EL Warning]: 2010-01-07 07:51:27.779--ServerSession(29263633)--Thread(Thread[main,5,main])--Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.0.0.v20091127-r5931): org.eclipse.persistence.exceptions.DatabaseException [java] Internal Exception: java.sql.SQLSyntaxErrorException: 'ALTER TABLE' cannot be performed on 'CMP3_CLIP' because it does not exist. [java] Error Code: -1 [java] Call: ALTER TABLE CMP3_CLIP DROP CONSTRAINT FK_CMP3_CLIP_ID [java] Query: DataModifyQuery(sql="ALTER TABLE CMP3_CLIP DROP CONSTRAINT FK_CMP3_CLIP_ID") [java] [EL Fine]: 2010-01-07 07:51:27.799--ServerSession(29263633)--Connection(24391166)--Thread(Thread[main,5,main])--DROP TABLE CMP3_CLIP [java] [EL Fine]: 2010-01-07 07:51:27.813--ServerSession(29263633)--Thread(Thread[main,5,main])--VALUES(1) [java] [EL Warning]: 2010-01-07 07:51:27.861--ServerSession(29263633)--Thread(Thread[main,5,main])--Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.0.0.v20091127-r5931): org.eclipse.persistence.exceptions.DatabaseException [java] Internal Exception: java.sql.SQLSyntaxErrorException: 'DROP TABLE' cannot be performed on 'CMP3_CLIP' because it does not exist. [java] Error Code: -1 [java] Call: DROP TABLE CMP3_CLIP [java] Query: DataModifyQuery(sql="DROP TABLE CMP3_CLIP") [java] [EL Fine]: 2010-01-07 07:51:27.863--ServerSession(29263633)--Connection(24391166)--Thread(Thread[main,5,main])--CREATE TABLE CMP3_CLIP (ID INTEGER NOT NULL, COMMENTARY CLOB(2147483647), AUDIO BLOB(2147483647), PRIMARY KEY (ID)) [java] [EL Fine]: 2010-01-07 07:51:28.05--ServerSession(29263633)--Connection(24391166)--Thread(Thread[main,5,main])--DROP TABLE CMP3_IMAGE [java] [EL Fine]: 2010-01-07 07:51:28.063--ServerSession(29263633)--Thread(Thread[main,5,main])--VALUES(1) [java] [EL Warning]: 2010-01-07 07:51:28.067--ServerSession(29263633)--Thread(Thread[main,5,main])--Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.0.0.v20091127-r5931): org.eclipse.persistence.exceptions.DatabaseException [java] Internal Exception: java.sql.SQLSyntaxErrorException: 'DROP TABLE' cannot be performed on 'CMP3_IMAGE' because it does not exist. [java] Error Code: -1 [java] Call: DROP TABLE CMP3_IMAGE [java] Query: DataModifyQuery(sql="DROP TABLE CMP3_IMAGE") [java] [EL Fine]: 2010-01-07 07:51:28.069--ServerSession(29263633)--Connection(24391166)--Thread(Thread[main,5,main])--CREATE TABLE CMP3_IMAGE (ID INTEGER NOT NULL, PICTURE BLOB(2147483647), IMAGEATTRIBUTE BIGINT, CUSTOMATTRIBUTE1 BLOB(2147483647), SCRIPT CLOB(2147483647), CUSTOMATTRIBUTE2 BLOB(2147483647), PRIMARY KEY (ID)) [java] [EL Fine]: 2010-01-07 07:51:28.2--ServerSession(29263633)--Connection(24391166)--Thread(Thread[main,5,main])--ALTER TABLE CMP3_CLIP ADD CONSTRAINT FK_CMP3_CLIP_ID FOREIGN KEY (ID) REFERENCES CMP3_IMAGE (ID) [java] [EL Fine]: 2010-01-07 07:51:28.753--ClientSession(7718724)--Connection(24391166)--Thread(Thread[main,5,main])--INSERT INTO CMP3_IMAGE (ID, PICTURE, IMAGEATTRIBUTE, CUSTOMATTRIBUTE1, SCRIPT, CUSTOMATTRIBUTE2) VALUES (?, ?, ?, ?, ?, ?) [java] bind => [5001, null, 11, [B@ccd21c, null, [B@f62eba] [java] [EL Fine]: 2010-01-07 07:51:28.804--ClientSession(7718724)--Connection(24391166)--Thread(Thread[main,5,main])--INSERT INTO CMP3_CLIP (COMMENTARY, AUDIO, ID) VALUES (?, ?, ?) [java] bind => [null, null, 5001] [java] [EL Fine]: 2010-01-07 07:51:29.032--ClientSession(22007194)--Connection(24391166)--Thread(Thread[main,5,main])--UPDATE CMP3_IMAGE SET IMAGEATTRIBUTE = ?, CUSTOMATTRIBUTE1 = ? WHERE (ID = ?) [java] bind => [21, [B@12d26d2, 5001] [java] [EL Fine]: 2010-01-07 07:51:29.251--ServerSession(29263633)--Connection(24391166)--Thread(Thread[main,5,main])--SELECT t0.ID, t1.ID, t0.PICTURE, t0.IMAGEATTRIBUTE, t1.COMMENTARY, t1.AUDIO, t0.CUSTOMATTRIBUTE1, t0.SCRIPT, t0.CUSTOMATTRIBUTE2 FROM CMP3_IMAGE t0, CMP3_CLIP t1 WHERE ((t0.ID = ?) AND (t1.ID = t0.ID)) [java] bind => [5001] [java] after merge, val=2 [java] Generating report at /space/test1/SRC/c10/appserver-sqe/test_results.xml [java] [java] [java] ----------------------------------------- [java] - JPA1-Issue9539-J2DB-SE:test1: PASS - [java] ----------------------------------------- [java] Total PASS: 1 [java] Total FAIL: 0 [java] Total DNR: 0 [java] ----------------------------------------- unsetup_se: [delete] Deleting: /space/test1/SRC/c10/appserver-sqe/pe/ejb/ejb30/issue/9539/descriptor/persistence.xml clean_se: [delete] Deleting directory /space/test1/SRC/c10/appserver-sqe/pe/ejb/ejb30/issue/9539/classes [delete] Deleting: /space/test1/SRC/c10/appserver-sqe/pe/ejb/ejb30/issue/9539/RepRunConf.txt all_se: BUILD SUCCESSFUL Total time: 29 seconds