Hi, I used NetBean 5.5 to create a EJB 3 module, then I created an enterprise application to include this ejb module. the project built sucessfully in NetBean, but it failed on deployment. I'm seeing the following error in the glassfish server log. Anyboby know what is causing the error? thanks a lot ! [TopLink Config]: 2007.04.29 03:28:43.347--ServerSession(26985473)--Connection(29068073)--Connected: jdbc:derby://localhost:1527/auction_database User: admin Database: Apache Derby Version: 10.1.3.1 Driver: Apache Derby Network Client JDBC Driver Version: 10.1.3.1 [TopLink Info]: 2007.04.29 03:28:43.407--ServerSession(26985473)--file:/C:/Sun/SDK/domains/domain1/applications/j2ee-apps/AuctionEnterpriseApplication/AuctionEnterpriseApplication-ejb_jar/-AuctionEnterpriseApplication-ejbPU login successful [TopLink Config]: 2007.04.29 03:28:43.437--ServerSession(26985473)--Connection(6880990)--disconnect [TopLink Info]: 2007.04.29 03:28:43.437--ServerSession(26985473)--file:/C:/Sun/SDK/domains/domain1/applications/j2ee-apps/AuctionEnterpriseApplication/AuctionEnterpriseApplication-ejb_jar/-AuctionEnterpriseApplication-ejbPU logout successful UTIL6040: Error attempting to delete C:\Sun\SDK\domains\domain1\generated\ejb\j2ee-apps\AuctionEnterpriseApplication\AuctionEnterpriseApplication_AuctionEnterpriseApplication-ejb_AuctionEnterpriseApplication-ejbPU_createDDL.jdbc UTIL6041: Performing gc to try to force file closures UTIL6042: Attempt to delete C:\Sun\SDK\domains\domain1\generated\ejb\j2ee-apps\AuctionEnterpriseApplication\AuctionEnterpriseApplication_AuctionEnterpriseApplication-ejb_AuctionEnterpriseApplication-ejbPU_createDDL.jdbc succeeded after 2 retries Exception occured in J2EEC Phase com.sun.enterprise.deployment.backend.IASDeploymentException at oracle.toplink.essentials.tools.schemaframework.DefaultTableGenerator.addForeignKeyFieldToFieldDefinition(DefaultTableGenerator.java:409) at oracle.toplink.essentials.tools.schemaframework.DefaultTableGenerator.addForeignKeyFieldToSourceTargetTable(DefaultTableGenerator.java:384) at oracle.toplink.essentials.tools.schemaframework.DefaultTableGenerator.postInitTableSchema(DefaultTableGenerator.java:285) at oracle.toplink.essentials.tools.schemaframework.DefaultTableGenerator.generateDefaultTableCreator(DefaultTableGenerator.java:138) at oracle.toplink.essentials.tools.schemaframework.SchemaManager.replaceDefaultTables(SchemaManager.java:817) at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createOrReplaceDefaultTables(EntityManagerFactoryProvider.java:307) at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.writeDDLsToFiles(EntityManagerFactoryProvider.java:330) at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.generateDDLFiles(EntityManagerFactoryProvider.java:235) at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:231) at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:78) at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:113) at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:107) at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:76) at com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.loadPersistenceUnitBundle(PersistenceProcessor.java:468) at com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.createTablesInDB(PersistenceProcessor.java:325) at com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processAppBundle(PersistenceProcessor.java:190) at com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processApplication(PersistenceProcessor.java:125) at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processApplication(DeploymentEventListenerImpl.java:193) at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processEvent(DeploymentEventListenerImpl.java:152) at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.notifyDeploymentEvent(DeploymentEventListenerImpl.java:109) at com.sun.enterprise.deployment.backend.DeploymentEventManager.notifyDeploymentEvent(DeploymentEventManager.java:66) at com.sun.enterprise.deployment.backend.AppDeployer.postDeploy(AppDeployer.java:429) at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:225) at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:129) at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:169) at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95) at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:266) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:739) at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:174) at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:210)