I have created a new Eclipse project using seam-gen from the CVS build using seam new-form created code for a role and updated the test class as below
package za.co.fnb.card.test; | | import static org.testng.AssertJUnit.assertNotNull; | import javax.persistence.EntityManager; | import javax.persistence.EntityManagerFactory; | import javax.persistence.Persistence; | | import org.testng.annotations.Configuration; | import org.testng.annotations.Test; | import org.jboss.seam.mock.SeamTest; | | public class RoleTest extends SeamTest { | | @Configuration(beforeTestClass=true) | public void setup() { | // do some setup stuff | } | | @Configuration(afterTestClass=true) | public void tearDown() { | // do some close down stuff | } | | @Test | public void testListRoles() throws Exception { | | EntityManagerFactory emf = Persistence.createEntityManagerFactory("CardCC"); | EntityManager em = emf.createEntityManager(); | assertNotNull("Entity Manager Not Null", em); | | } | } | I get the following errors when run as > testNG suite against RoleTest.xml (with no updates from the standard suite created by seam-gen. Any assistance would be greatly appreciated. | | [Parser] Running: | C:\Projects\FNBCard\ContactCentre\workspaceTest\CardCC\src\za\co\fnb\card\test\RoleTest.xml | | 11:27:19,236 INFO [Initialization] Namespace: http://jboss.com/products/seam/core, package: org.jboss.seam.core, prefix: org.jboss.seam.core | 11:27:19,236 INFO [Initialization] Namespace: http://jboss.com/products/seam/framework, package: org.jboss.seam.framework, prefix: org.jboss.seam.core.framework | 11:27:19,236 INFO [Initialization] Namespace: http://jboss.com/products/seam/jms, package: org.jboss.seam.jms, prefix: org.jboss.seam.jms | 11:27:19,236 INFO [Initialization] Namespace: http://jboss.com/products/seam/drools, package: org.jboss.seam.drools, prefix: org.jboss.seam.drools | 11:27:19,236 INFO [Initialization] Namespace: http://jboss.com/products/seam/remoting, package: org.jboss.seam.remoting, prefix: org.jboss.seam.remoting | 11:27:19,246 INFO [Initialization] Namespace: http://jboss.com/products/seam/theme, package: org.jboss.seam.theme, prefix: org.jboss.seam.theme | 11:27:19,246 INFO [Scanner] scanning: C:\Projects\FNBCard\ContactCentre\workspaceTest\CardCC\exploded-archives\CardCC.jar | 11:27:19,246 INFO [Scanner] scanning: C:\Projects\FNBCard\ContactCentre\workspaceTest\CardCC\resources | 11:27:19,256 INFO [Scanner] scanning: /C:/Projects/FNBCard/ContactCentre/workspaceTest/CardCC/lib/jboss-seam.jar | 11:27:19,266 INFO [Initialization] Namespace: http://jboss.com/products/seam/drools, package: org.jboss.seam.drools, prefix: org.jboss.seam.drools | 11:27:19,266 INFO [Initialization] Namespace: http://jboss.com/products/seam/remoting, package: org.jboss.seam.remoting, prefix: org.jboss.seam.remoting | 11:27:19,266 INFO [Initialization] Namespace: http://jboss.com/products/seam/theme, package: org.jboss.seam.theme, prefix: org.jboss.seam.theme | 11:27:19,266 INFO [Initialization] Namespace: http://jboss.com/products/seam/core, package: org.jboss.seam.core, prefix: org.jboss.seam.core | 11:27:19,266 INFO [Initialization] Namespace: http://jboss.com/products/seam/jms, package: org.jboss.seam.jms, prefix: org.jboss.seam.jms | 11:27:19,266 INFO [Initialization] Namespace: http://jboss.com/products/seam/framework, package: org.jboss.seam.framework, prefix: org.jboss.seam.core.framework | 11:27:19,276 INFO [Initialization] reading /WEB-INF/components.xml | 11:27:19,417 INFO [Initialization] reading jar:file:/C:/Projects/FNBCard/ContactCentre/workspaceTest/CardCC/lib/jboss-seam.jar!/META-INF/components.xml | 11:27:19,447 INFO [Initialization] reading properties from: /seam.properties | 11:27:19,447 INFO [Initialization] reading properties from: /jndi.properties | 11:27:19,457 INFO [Initialization] initializing Seam | 11:27:19,457 INFO [Scanner] scanning: C:\Projects\FNBCard\ContactCentre\workspaceTest\CardCC\exploded-archives\CardCC.jar | 11:27:19,567 INFO [Scanner] scanning: C:\Projects\FNBCard\ContactCentre\workspaceTest\CardCC\resources | 11:27:19,567 INFO [Scanner] scanning: /C:/Projects/FNBCard/ContactCentre/workspaceTest/CardCC/lib/jboss-seam.jar | 11:27:20,388 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.manager | 11:27:20,398 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.pages | 11:27:20,578 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init | 11:27:20,618 INFO [Initialization] Installing components... | 11:27:20,618 INFO [Component] Component: org.jboss.seam.core.exceptions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Exceptions | 11:27:20,628 INFO [Component] Component: org.jboss.seam.core.applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext | 11:27:20,628 INFO [Component] Component: org.jboss.seam.core.conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack | 11:27:20,628 INFO [Component] Component: org.jboss.seam.remoting.messaging.subscriptionRegistry, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.remoting.messaging.SubscriptionRegistry | 11:27:20,628 INFO [Component] Component: org.jboss.seam.core.isUserInRole, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.IsUserInRole | 11:27:20,628 INFO [Component] Component: org.jboss.seam.core.redirect, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Redirect | 11:27:20,628 INFO [Component] Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.Contexts | 11:27:20,658 INFO [Component] Component: org.jboss.seam.framework.currentDatetime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDatetime | 11:27:20,658 INFO [Component] Component: org.jboss.seam.core.switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher | 11:27:20,658 INFO [Component] Component: org.jboss.seam.core.conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation | 11:27:20,658 INFO [Component] Component: org.jboss.seam.framework.currentDate, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDate | 11:27:20,658 INFO [Component] Component: org.jboss.seam.core.facesMessages, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesMessages | 11:27:20,668 INFO [Component] Component: org.jboss.seam.theme.themeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.ThemeSelector | 11:27:20,668 INFO [Component] Component: org.jboss.seam.core.persistenceContexts, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.PersistenceContexts | 11:27:20,668 INFO [Component] Component: org.jboss.seam.core.safeActions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SafeActions | 11:27:20,668 INFO [Component] Component: org.jboss.seam.core.validation, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Validation | 11:27:20,678 INFO [Component] Component: org.jboss.seam.core.businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext | 11:27:20,678 INFO [Component] Component: org.jboss.seam.core.messages, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.Messages | 11:27:20,678 INFO [Component] Component: org.jboss.seam.core.sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext | 11:27:20,678 INFO [Component] Component: org.jboss.seam.core.conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList | 11:27:20,678 INFO [Component] Component: org.jboss.seam.core.facesPage, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.FacesPage | 11:27:20,678 INFO [Component] Component: org.jboss.seam.core.conversationEntries, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationEntries | 11:27:20,678 INFO [Component] Component: org.jboss.seam.debug.introspector, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.debug.Introspector | 11:27:20,689 INFO [Component] Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages | 11:27:20,689 INFO [Component] Component: org.jboss.seam.core.resourceBundle, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle | 11:27:20,699 INFO [Component] Component: org.jboss.seam.theme.theme, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.Theme | 11:27:20,699 INFO [Component] Component: role, scope: CONVERSATION, type: STATEFUL_SESSION_BEAN, class: za.co.fnb.card.RoleBean, JNDI: RoleBean/local | 11:27:20,719 INFO [Component] Component: org.jboss.seam.core.localeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.LocaleSelector | 11:27:20,729 INFO [Component] Component: org.jboss.seam.remoting.remotingConfig, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.remoting.RemotingConfig | 11:27:20,729 INFO [Component] Component: org.jboss.seam.core.facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext | 11:27:20,729 INFO [Component] Component: org.jboss.seam.core.httpError, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.HttpError | 11:27:20,729 INFO [Component] Component: org.jboss.seam.securityManager, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.security.SeamSecurityManager | 11:27:20,729 INFO [Component] Component: org.jboss.seam.core.uiComponent, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.UiComponent | 11:27:20,729 INFO [Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager | 11:27:20,739 INFO [Component] Component: org.jboss.seam.core.events, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Events | 11:27:20,739 INFO [Component] Component: org.jboss.seam.core.userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.UserPrincipal | 11:27:20,739 INFO [Component] Component: org.jboss.seam.persistence.persistenceProvider, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.persistence.HibernatePersistenceProvider | 11:27:20,739 INFO [Component] Component: org.jboss.seam.core.interpolator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Interpolator | 11:27:20,739 INFO [Component] Component: org.jboss.seam.core.locale, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Locale | 11:27:20,739 INFO [Component] Component: entityManager, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.ManagedPersistenceContext | 11:27:20,739 INFO [Component] Component: org.jboss.seam.core.ejb, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Ejb | 11:27:20,749 INFO [Component] Component: org.jboss.seam.core.eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext | 11:27:20,749 INFO [Component] Component: org.jboss.seam.security.identity, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.security.Identity | 11:27:20,749 INFO [Component] Component: org.jboss.seam.core.pageContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PageContext | 11:27:20,749 INFO [Component] Component: org.jboss.seam.core.conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext | 11:27:20,749 INFO [Component] Component: org.jboss.seam.framework.currentTime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentTime | 11:27:20,809 INFO [Component] Component: org.jboss.seam.core.expressions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Expressions | 11:27:20,809 INFO [Component] Component: org.jboss.seam.core.pojoCache, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PojoCache | 11:27:20,809 INFO [Lifecycle] starting up: org.jboss.seam.core.ejb | 11:27:20,809 INFO [Ejb] starting the embedded EJB container | 11:27:21,430 WARN [BeanSchemaBinding] You should use the 2.0 version of the Microcontainer xml. xmlns='urn:jboss:bean-deployer:2.0' | 11:27:21,780 INFO [LocalTxDataSource] Bound datasource to JNDI name 'java:/DefaultDS' | 11:27:22,241 INFO [LocalTxDataSource] Bound datasource to JNDI name 'java:/CardCCDatasource' | 11:27:22,761 INFO [Ejb3Deployment] EJB3 deployment time took: 500 | 11:27:22,942 INFO [Ejb3DescriptorHandler] adding class annotation org.jboss.annotation.internal.DefaultInterceptorMarker to za.co.fnb.card.RoleBean [EMAIL PROTECTED] | 11:27:22,962 INFO [Ejb3Deployment] EJB3 deployment time took: 201 | 11:27:23,092 INFO [MCKernelAbstraction] installing bean: persistence.units:unitName=CardCC with dependencies: | 11:27:23,092 INFO [MCKernelAbstraction] [EMAIL PROTECTED] | 11:27:23,102 INFO [Version] Hibernate EntityManager 3.2.0.CR1 | 11:27:23,162 INFO [Version] Hibernate Annotations 3.2.0.CR1 | 11:27:23,182 INFO [Environment] Hibernate 3.2 cr2 | 11:27:23,182 INFO [Environment] hibernate.properties not found | 11:27:23,182 INFO [Environment] Bytecode provider name : cglib | 11:27:23,192 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling | 11:27:23,312 INFO [Ejb3Configuration] Processing PersistenceUnitInfo [ | name: CardCC | ...] | 11:27:23,312 WARN [Ejb3Configuration] Persistence provider caller does not implements the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null. | 11:27:23,322 INFO [Configuration] Reading mappings from resource: META-INF/orm.xml | 11:27:23,322 INFO [Ejb3Configuration] [PersistenceUnit: CardCC] no META-INF/orm.xml found | 11:27:23,422 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider | 11:27:23,432 INFO [InjectedDataSourceConnectionProvider] Using provided datasource | 11:27:23,833 INFO [SettingsFactory] RDBMS: PostgreSQL, version: 8.1.4 | 11:27:23,833 INFO [SettingsFactory] JDBC driver: PostgreSQL Native Driver, version: PostgreSQL 8.1 JDBC3 with SSL (build 405) | 11:27:23,853 INFO [Dialect] Using dialect: org.hibernate.dialect.PostgreSQLDialect | 11:27:23,913 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory | 11:27:23,913 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup | 11:27:23,913 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup | 11:27:23,913 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled | 11:27:23,913 INFO [SettingsFactory] Automatic session close at end of transaction: disabled | 11:27:23,913 INFO [SettingsFactory] JDBC batch size: 15 | 11:27:23,913 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled | 11:27:23,913 INFO [SettingsFactory] Scrollable result sets: enabled | 11:27:23,913 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled | 11:27:23,913 INFO [SettingsFactory] Connection release mode: auto | 11:27:23,923 INFO [SettingsFactory] Default batch fetch size: 1 | 11:27:23,923 INFO [SettingsFactory] Generate SQL with comments: disabled | 11:27:23,923 INFO [SettingsFactory] Order SQL updates by primary key: disabled | 11:27:23,923 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory | 11:27:23,933 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory | 11:27:23,933 INFO [SettingsFactory] Query language substitutions: {} | 11:27:23,933 INFO [SettingsFactory] Second-level cache: enabled | 11:27:23,933 INFO [SettingsFactory] Query cache: enabled | 11:27:23,933 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider | 11:27:23,933 INFO [SettingsFactory] Optimize cache for minimal puts: disabled | 11:27:23,933 INFO [SettingsFactory] Structured second-level cache entries: disabled | 11:27:23,933 INFO [SettingsFactory] Query cache factory: org.hibernate.cache.StandardQueryCacheFactory | 11:27:23,963 INFO [SettingsFactory] Echoing all SQL to stdout | 11:27:23,963 INFO [SettingsFactory] Statistics: disabled | 11:27:23,963 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled | 11:27:23,963 INFO [SettingsFactory] Default entity-mode: pojo | 11:27:24,023 INFO [SessionFactoryImpl] building session factory | 11:27:24,033 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured | 11:27:24,033 INFO [SchemaUpdate] Running hbm2ddl schema update | 11:27:24,033 INFO [SchemaUpdate] fetching database metadata | 11:27:24,113 INFO [SchemaUpdate] updating schema | 11:27:24,113 INFO [SchemaUpdate] schema update complete | 11:27:24,123 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} | 11:27:24,123 INFO [UpdateTimestampsCache] starting update timestamps cache at region: org.hibernate.cache.UpdateTimestampsCache | 11:27:24,123 INFO [StandardQueryCache] starting query cache at region: org.hibernate.cache.StandardQueryCache | 11:27:24,123 INFO [MCKernelAbstraction] installing bean: persistence.units:jar=CardCC.jar,unitName=CardCC with dependencies: | 11:27:24,133 INFO [MCKernelAbstraction] [EMAIL PROTECTED] | 11:27:24,133 INFO [Ejb3Configuration] Processing PersistenceUnitInfo [ | name: CardCC | ...] | 11:27:24,133 WARN [Ejb3Configuration] Persistence provider caller does not implements the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null. | 11:27:24,133 INFO [Configuration] Reading mappings from resource: META-INF/orm.xml | 11:27:24,143 INFO [Ejb3Configuration] [PersistenceUnit: CardCC] no META-INF/orm.xml found | 11:27:24,164 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider | 11:27:24,164 INFO [InjectedDataSourceConnectionProvider] Using provided datasource | 11:27:24,164 INFO [SettingsFactory] RDBMS: PostgreSQL, version: 8.1.4 | 11:27:24,164 INFO [SettingsFactory] JDBC driver: PostgreSQL Native Driver, version: PostgreSQL 8.1 JDBC3 with SSL (build 405) | 11:27:24,164 INFO [Dialect] Using dialect: org.hibernate.dialect.PostgreSQLDialect | 11:27:24,164 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory | 11:27:24,164 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup | 11:27:24,164 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup | 11:27:24,164 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled | 11:27:24,164 INFO [SettingsFactory] Automatic session close at end of transaction: disabled | 11:27:24,164 INFO [SettingsFactory] JDBC batch size: 15 | 11:27:24,164 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled | 11:27:24,164 INFO [SettingsFactory] Scrollable result sets: enabled | 11:27:24,164 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled | 11:27:24,164 INFO [SettingsFactory] Connection release mode: auto | 11:27:24,164 INFO [SettingsFactory] Default batch fetch size: 1 | 11:27:24,164 INFO [SettingsFactory] Generate SQL with comments: disabled | 11:27:24,164 INFO [SettingsFactory] Order SQL updates by primary key: disabled | 11:27:24,164 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory | 11:27:24,164 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory | 11:27:24,164 INFO [SettingsFactory] Query language substitutions: {} | 11:27:24,164 INFO [SettingsFactory] Second-level cache: enabled | 11:27:24,164 INFO [SettingsFactory] Query cache: enabled | 11:27:24,164 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider | 11:27:24,164 INFO [SettingsFactory] Optimize cache for minimal puts: disabled | 11:27:24,164 INFO [SettingsFactory] Structured second-level cache entries: disabled | 11:27:24,164 INFO [SettingsFactory] Query cache factory: org.hibernate.cache.StandardQueryCacheFactory | 11:27:24,164 INFO [SettingsFactory] Echoing all SQL to stdout | 11:27:24,164 INFO [SettingsFactory] Statistics: disabled | 11:27:24,164 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled | 11:27:24,164 INFO [SettingsFactory] Default entity-mode: pojo | 11:27:24,164 INFO [SessionFactoryImpl] building session factory | 11:27:24,164 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured | 11:27:24,164 INFO [SchemaUpdate] Running hbm2ddl schema update | 11:27:24,164 INFO [SchemaUpdate] fetching database metadata | 11:27:24,164 INFO [SchemaUpdate] updating schema | 11:27:24,164 INFO [SchemaUpdate] schema update complete | 11:27:24,164 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} | 11:27:24,164 INFO [UpdateTimestampsCache] starting update timestamps cache at region: org.hibernate.cache.UpdateTimestampsCache | 11:27:24,164 INFO [StandardQueryCache] starting query cache at region: org.hibernate.cache.StandardQueryCache | 11:27:24,174 ERROR [AbstractKernelController] Error installing to Start: name=persistence.units:jar=CardCC.jar,unitName=CardCC state=Create | javax.naming.NameAlreadyBoundException | at org.jnp.server.NamingServer.bind(NamingServer.java:144) | at org.jnp.interfaces.NamingContext.bind(NamingContext.java:567) | at org.jnp.interfaces.NamingContext.bind(NamingContext.java:532) | at org.jboss.ejb3.NonSerializableFactory.bind(NonSerializableFactory.java:94) | at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:278) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | at java.lang.reflect.Method.invoke(Unknown Source) | at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:55) | at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:107) | at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66) | at org.jboss.kernel.plugins.dependency.KernelControllerContextActions.dispatchJoinPoint(KernelControllerContextActions.java:100) | at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$LifecycleAction.installAction(KernelControllerContextActions.java:582) | at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$KernelControllerContextAction.install(KernelControllerContextActions.java:175) | at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) | at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226) | at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:593) | at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:346) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:438) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:379) | at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:225) | at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:151) | at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:79) | at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:73) | at org.jboss.ejb3.MCKernelAbstraction.install(MCKernelAbstraction.java:91) | at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:626) | at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:475) | at org.jboss.ejb3.embedded.EJB3StandaloneDeployer.start(EJB3StandaloneDeployer.java:460) | at org.jboss.seam.core.Ejb.startup(Ejb.java:54) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | at java.lang.reflect.Method.invoke(Unknown Source) | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18) | at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:102) | at org.jboss.seam.Component.callComponentMethod(Component.java:1793) | at org.jboss.seam.Component.callCreateMethod(Component.java:1741) | at org.jboss.seam.Component.newInstance(Component.java:1730) | at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:152) | at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:126) | at org.jboss.seam.init.Initialization.init(Initialization.java:430) | at org.jboss.seam.mock.SeamTest.init(SeamTest.java:686) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | at java.lang.reflect.Method.invoke(Unknown Source) | at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:623) | at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:336) | at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:170) | at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:86) | at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:163) | at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:115) | at org.testng.TestRunner.runWorkers(TestRunner.java:665) | at org.testng.TestRunner.privateRun(TestRunner.java:636) | at org.testng.TestRunner.run(TestRunner.java:513) | at org.testng.SuiteRunner.runTest(SuiteRunner.java:279) | at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:264) | at org.testng.SuiteRunner.privateRun(SuiteRunner.java:244) | at org.testng.SuiteRunner.run(SuiteRunner.java:168) | at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:989) | at org.testng.TestNG.runSuitesLocally(TestNG.java:953) | at org.testng.TestNG.run(TestNG.java:701) | at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73) | at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:122) | 11:27:24,214 INFO [MCKernelAbstraction] installing bean: jboss.j2ee:jar=CardCC,name=RoleBean,service=EJB3 with dependencies: | 11:27:24,594 INFO [EJBContainer] STARTED EJB: za.co.fnb.card.RoleBean ejbName: RoleBean | 11:27:24,624 INFO [Initialization] done initializing Seam | 11:27:24,674 FATAL [Ejb3Configuration] import.sqlO-:-Ofalse | 11:27:24,674 FATAL [Ejb3Configuration] META-INF/ejb-jar.xmlO-:-Ofalse | 11:27:24,674 FATAL [Ejb3Configuration] META-INF/persistence.xmlO-:-Ofalse | 11:27:24,674 FATAL [Ejb3Configuration] seam.propertiesO-:-Ofalse | 11:27:24,684 INFO [NamingHelper] JNDI InitialContext properties:{} | 11:27:24,684 INFO [DatasourceConnectionProvider] Using datasource: java:/CardCCDatasource | 11:27:24,684 INFO [SettingsFactory] RDBMS: PostgreSQL, version: 8.1.4 | 11:27:24,684 INFO [SettingsFactory] JDBC driver: PostgreSQL Native Driver, version: PostgreSQL 8.1 JDBC3 with SSL (build 405) | 11:27:24,744 INFO [Dialect] Using dialect: org.hibernate.dialect.PostgreSQLDialect | 11:27:24,744 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory | 11:27:24,744 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended) | 11:27:24,744 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled | 11:27:24,744 INFO [SettingsFactory] Automatic session close at end of transaction: disabled | 11:27:24,744 INFO [SettingsFactory] JDBC batch size: 15 | 11:27:24,744 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled | 11:27:24,744 INFO [SettingsFactory] Scrollable result sets: enabled | 11:27:24,744 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled | 11:27:24,744 INFO [SettingsFactory] Connection release mode: auto | 11:27:24,744 INFO [SettingsFactory] Default batch fetch size: 1 | 11:27:24,744 INFO [SettingsFactory] Generate SQL with comments: disabled | 11:27:24,744 INFO [SettingsFactory] Order SQL updates by primary key: disabled | 11:27:24,744 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory | 11:27:24,744 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory | 11:27:24,744 INFO [SettingsFactory] Query language substitutions: {} | 11:27:24,744 INFO [SettingsFactory] Second-level cache: enabled | 11:27:24,744 INFO [SettingsFactory] Query cache: enabled | 11:27:24,744 INFO [SettingsFactory] Cache provider: org.hibernate.cache.EhCacheProvider | 11:27:24,764 INFO [Ejb] stopping the embedded EJB container | 11:27:24,764 INFO [SessionFactoryImpl] closing | 11:27:24,764 ERROR [AbstractKernelController] Internal error during uninstall current state not found: name=persistence.units:jar=CardCC.jar,unitName=CardCC state=**ERROR** error=javax.naming.NameAlreadyBoundException: null | 11:27:24,764 ERROR [AbstractKernelController] Internal error during uninstall: [EMAIL PROTECTED] Installed} context=name=persistence.units:jar=CardCC.jar,unitName=CardCC state=**ERROR** error=javax.naming.NameAlreadyBoundException: null | FAILED: testListRoles | java.lang.NoClassDefFoundError: net/sf/ehcache/CacheException | at java.lang.Class.getDeclaredConstructors0(Native Method) | at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) | at java.lang.Class.getConstructor0(Unknown Source) | at java.lang.Class.newInstance0(Unknown Source) | at java.lang.Class.newInstance(Unknown Source) | at org.hibernate.cfg.SettingsFactory.createCacheProvider(SettingsFactory.java:346) | at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:220) | at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1928) | at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1211) | at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:631) | at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:760) | at org.hibernate.ejb.Ejb3Configuration.createFactory(Ejb3Configuration.java:151) | at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:205) | at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:114) | at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37) | at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:27) | at za.co.fnb.card.test.RoleTest.testListRoles(RoleTest.java:27) | ... Removed 21 stack frames | | =============================================== | Role Test | Tests run: 1, Failures: 1, Skips: 0 | =============================================== | | | =============================================== | Role Tests | Total tests run: 1, Failures: 1, Skips: 0 | =============================================== | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991573#3991573 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991573 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user