[JBoss Seam] - Re: resource-bundle question
by yoav200
when i wrote 'bundleLoader' i mean a bean that loads the resource bundle and i use resources throw the bean. that way i can sort and do all kind of mnipulation on the data before i show it.
i do not use f:loadBundle .
What i want to do is this:
| <t:dataTable id="myTripsTable"
| styleClass="data_table"
| var="aTrip"
| value="#{tripList}"
| rendered="#{tripList.rowCount>0}"
| cellpadding="2" cellspacing="0" border="0"
| rowOnMouseOver="this.bgColor='#DEDEDE';"
| rowOnMouseOut="this.bgColor='#FFFFFF';" >
| <t:column style="width:30%;">
| <s:link view="/TripDetails.jsp" value="#{aTrip.name}" action="#{tripManager.selectFromRequest}" propagation="end">
| <f:param name="id" value="#{aTrip.id}"/>
| </s:link>
| </t:column>
| <t:column style="width:20%;">
| <h:outputText value="#{aTrip.startDate.time}">
| <f:convertDateTime pattern="dd/MM/yyyy"/>
| </h:outputText>
| </t:column>
|
| <t:column style="width:20%;">
| <h:outputText value="#{aTrip.country}" />
| </t:column>
|
| <t:column style="width:5%;">
| <a4j:commandLink action="#{tripsManager.selectTripForEdit}"
| oncomplete="openPopup('tripFormPopup',500,250);"
| reRender="editTripTable">
| <h:graphicImage url="images/edit_icon.gif" alt="Edit Trip" style="border:0px;" />
| </a4j:commandLink>
| </t:column>
| <t:column style="width:5%;">
| <a4j:commandLink action="#{tripsManager.deleteTrip}"
| onclick="if (!window.confirm('Delete Trip ?')) return false;"
| reRender="myTripsTable">
| <h:graphicImage url="images/delete.gif" alt="Delete Trip" style="border:0px;" />
| </a4j:commandLink>
| </t:column>
| </t:dataTable>
|
look at the: aTrip.country - the country that the aTrip holds is a key in the country resource, i want to display the value.
so i need to do something like this: #{country[ aTrip.country ]}
of course this will not work, so wht will ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002335#4002335
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002335
19 years, 3 months
[JBoss Seam] - Re: Testing FacesMessages with wmbedded container and inject
by dsvmacdonald@nuarch.com
[testng] 10:52:51,625 INFO [Initialization] Namespace: http://jboss.com/products/seam/core, package: org.jboss.seam.core, prefix: org.jboss.seam.core
[testng] 10:52:51,640 INFO [Initialization] Namespace: http://jboss.com/products/seam/framework, package: org.jboss.seam.framework, prefix: org.jboss.seam.core.framework
[testng] 10:52:51,640 INFO [Initialization] Namespace: http://jboss.com/products/seam/jms, package: org.jboss.seam.jms, prefix: org.jboss.seam.jms
[testng] 10:52:51,640 INFO [Initialization] Namespace: http://jboss.com/products/seam/drools, package: org.jboss.seam.drools, prefix: org.jboss.seam.drools
[testng] 10:52:51,640 INFO [Initialization] Namespace: http://jboss.com/products/seam/remoting, package: org.jboss.seam.remoting, prefix: org.jboss.seam.remoting
[testng] 10:52:51,640 INFO [Initialization] Namespace: http://jboss.com/products/seam/theme, package: org.jboss.seam.theme, prefix: org.jboss.seam.theme
[testng] 10:52:51,656 INFO [Scanner] scanning: C:\Users\dsvmacdonald\Files\Work\nuArch\Clients\Project\Projects\Project-Beta\build\test
[testng] 10:52:51,656 INFO [Scanner] scanning: /C:/Users/dsvmacdonald/Files/Work/nuArch/Clients/Project/Projects/Project-Beta/lib/jboss-seam.jar
[testng] 10:52:51,671 INFO [Initialization] Namespace: http://jboss.com/products/seam/drools, package: org.jboss.seam.drools, prefix: org.jboss.seam.drools
[testng] 10:52:51,671 INFO [Initialization] Namespace: http://jboss.com/products/seam/remoting, package: org.jboss.seam.remoting, prefix: org.jboss.seam.remoting
[testng] 10:52:51,671 INFO [Initialization] Namespace: http://jboss.com/products/seam/theme, package: org.jboss.seam.theme, prefix: org.jboss.seam.theme
[testng] 10:52:51,671 INFO [Initialization] Namespace: http://jboss.com/products/seam/core, package: org.jboss.seam.core, prefix: org.jboss.seam.core
[testng] 10:52:51,671 INFO [Initialization] Namespace: http://jboss.com/products/seam/jms, package: org.jboss.seam.jms, prefix: org.jboss.seam.jms
[testng] 10:52:51,671 INFO [Initialization] Namespace: http://jboss.com/products/seam/framework, package: org.jboss.seam.framework, prefix: org.jboss.seam.core.framework
[testng] 10:52:51,687 INFO [Initialization] reading /WEB-INF/components.xml
[testng] 10:52:51,796 INFO [Initialization] reading jar:file:/C:/Users/dsvmacdonald/Files/Work/nuArch/Clients/Project/Projects/Project-Beta/lib/jboss-seam.jar!/META-INF/components.xml
[testng] 10:52:51,828 INFO [Initialization] reading properties from: /seam.properties
[testng] 10:52:51,828 INFO [Initialization] reading properties from: /jndi.properties
[testng] 10:52:51,828 INFO [Initialization] initializing Seam
[testng] 10:52:51,843 INFO [Scanner] scanning: C:\Users\dsvmacdonald\Files\Work\nuArch\Clients\Project\Projects\Project-Beta\build\test
[testng] 10:52:51,937 INFO [Scanner] scanning: /C:/Users/dsvmacdonald/Files/Work/nuArch/Clients/Project/Projects/Project-Beta/lib/jboss-seam.jar
[testng] 10:52:52,953 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.manager
[testng] 10:52:53,000 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.pages
[testng] 10:52:53,046 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
[testng] 10:52:53,093 INFO [Initialization] Installing components...
[testng] 10:52:53,093 INFO [Component] Component: org.jboss.seam.core.applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext
[testng] 10:52:53,109 INFO [Component] Component: org.jboss.seam.core.exceptions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Exceptions
[testng] 10:52:53,109 INFO [Component] Component: org.jboss.seam.core.conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
[testng] 10:52:53,109 INFO [Component] Component: login, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: com.nuarch.login.LoginAction, JNDI: LoginAction/local
[testng] 10:52:53,140 INFO [Component] Component: org.jboss.seam.remoting.messaging.subscriptionRegistry, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.remoting.messaging.SubscriptionRegistry
[testng] 10:52:53,140 INFO [Component] Component: org.jboss.seam.core.isUserInRole, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.IsUserInRole
[testng] 10:52:53,156 INFO [Component] Component: org.jboss.seam.core.redirect, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Redirect
[testng] 10:52:53,156 INFO [Component] Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.Contexts
[testng] 10:52:53,156 INFO [Component] Component: org.jboss.seam.framework.currentDatetime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDatetime
[testng] 10:52:53,156 INFO [Component] Component: org.jboss.seam.core.switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher
[testng] 10:52:53,156 INFO [Component] Component: org.jboss.seam.core.conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
[testng] 10:52:53,156 INFO [Component] Component: org.jboss.seam.framework.currentDate, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDate
[testng] 10:52:53,171 INFO [Component] Component: org.jboss.seam.theme.themeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.ThemeSelector
[testng] 10:52:53,171 INFO [Component] Component: org.jboss.seam.core.facesMessages, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesMessages
[testng] 10:52:53,171 INFO [Component] Component: org.jboss.seam.core.persistenceContexts, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.PersistenceContexts
[testng] 10:52:53,171 INFO [Component] Component: org.jboss.seam.core.safeActions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SafeActions
[testng] 10:52:53,187 INFO [Component] Component: org.jboss.seam.core.validation, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Validation
[testng] 10:52:53,187 INFO [Component] Component: org.jboss.seam.core.businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext
[testng] 10:52:53,187 INFO [Component] Component: address, scope: CONVERSATION, type: ENTITY_BEAN, class: com.nuarch.model.Address
[testng] 10:52:53,218 INFO [Component] Component: org.jboss.seam.core.messages, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.Messages
[testng] 10:52:53,218 INFO [Component] Component: org.jboss.seam.core.sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext
[testng] 10:52:53,218 INFO [Component] Component: org.jboss.seam.core.conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
[testng] 10:52:53,218 INFO [Component] Component: org.jboss.seam.core.facesPage, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.FacesPage
[testng] 10:52:53,234 INFO [Component] Component: org.jboss.seam.core.conversationEntries, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationEntries
[testng] 10:52:53,234 INFO [Component] Component: org.jboss.seam.debug.introspector, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.debug.Introspector
[testng] 10:52:53,234 INFO [Component] Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
[testng] 10:52:53,234 INFO [Component] Component: org.jboss.seam.theme.theme, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.Theme
[testng] 10:52:53,234 INFO [Component] Component: org.jboss.seam.core.resourceBundle, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
[testng] 10:52:53,250 INFO [Component] Component: org.jboss.seam.core.localeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.LocaleSelector
[testng] 10:52:53,250 INFO [Component] Component: org.jboss.seam.remoting.remotingConfig, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.remoting.RemotingConfig
[testng] 10:52:53,250 INFO [Component] Component: org.jboss.seam.core.httpError, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.HttpError
[testng] 10:52:53,250 INFO [Component] Component: org.jboss.seam.core.facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext
[testng] 10:52:53,250 INFO [Component] Component: org.jboss.seam.securityManager, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.security.SeamSecurityManager
[testng] 10:52:53,265 INFO [Component] Component: org.jboss.seam.core.uiComponent, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.UiComponent
[testng] 10:52:53,265 INFO [Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
[testng] 10:52:53,265 INFO [Component] Component: user, scope: SESSION, type: ENTITY_BEAN, class: com.nuarch.model.User
[testng] 10:52:53,281 INFO [Component] Component: org.jboss.seam.core.events, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Events
[testng] 10:52:53,296 INFO [Component] Component: org.jboss.seam.core.userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.UserPrincipal
[testng] 10:52:53,296 INFO [Component] Component: org.jboss.seam.persistence.persistenceProvider, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.persistence.HibernatePersistenceProvider
[testng] 10:52:53,296 INFO [Component] Component: org.jboss.seam.core.interpolator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Interpolator
[testng] 10:52:53,296 INFO [Component] Component: org.jboss.seam.core.locale, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Locale
[testng] 10:52:53,296 INFO [Component] Component: entityManager, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.ManagedPersistenceContext
[testng] 10:52:53,296 INFO [Component] Component: org.jboss.seam.core.ejb, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Ejb
[testng] 10:52:53,296 INFO [Component] Component: org.jboss.seam.core.eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext
[testng] 10:52:53,296 INFO [Component] Component: org.jboss.seam.core.pageContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PageContext
[testng] 10:52:53,312 INFO [Component] Component: org.jboss.seam.core.conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext
[testng] 10:52:53,312 INFO [Component] Component: org.jboss.seam.framework.currentTime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentTime
[testng] 10:52:53,312 INFO [Component] Component: org.jboss.seam.core.expressions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Expressions
[testng] 10:52:53,312 INFO [Component] Component: org.jboss.seam.core.pojoCache, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PojoCache
[testng] 10:52:53,312 INFO [Component] Component: register, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: com.nuarch.register.RegisterAction, JNDI: RegisterAction/local
[testng] 10:52:53,312 INFO [Lifecycle] starting up: org.jboss.seam.core.ejb
[testng] 10:52:53,312 INFO [Ejb] starting the embedded EJB container
[testng] 10:52:53,953 WARN [BeanSchemaBinding] You should use the 2.0 version of the Microcontainer xml. xmlns='urn:jboss:bean-deployer:2.0'
[testng] 10:52:54,281 INFO [LocalTxDataSource] Bound datasource to JNDI name 'java:/DefaultDS'
[testng] 10:52:54,671 INFO [LocalTxDataSource] Bound datasource to JNDI name 'java:/Project-BetaDatasource'
[testng] 10:52:55,218 INFO [Ejb3DescriptorHandler] adding class annotation org.jboss.annotation.internal.DefaultInterceptorMarker to com.nuarch.login.LoginAction org.jboss.annotation.internal.DefaultInterceptorMarkerImpl@18e18a3
[testng] 10:52:55,265 INFO [Ejb3DescriptorHandler] adding class annotation org.jboss.annotation.internal.DefaultInterceptorMarker to com.nuarch.register.RegisterAction org.jboss.annotation.internal.DefaultInterceptorMarkerImpl@2515
[testng] 10:52:55,312 INFO [Ejb3Deployment] EJB3 deployment time took: 609
[testng] 10:52:55,312 INFO [MCKernelAbstraction] installing bean: persistence.units:jar=test.jar,unitName=Project-Beta with dependencies:
[testng] 10:52:55,312 INFO [MCKernelAbstraction] AbstractDependencyMetaData@3228a1{dependency=Project-BetaDatasource}
[testng] 10:52:55,343 INFO [Version] Hibernate EntityManager 3.2.0.CR1
[testng] 10:52:55,359 INFO [Version] Hibernate Annotations 3.2.0.CR1
[testng] 10:52:55,359 INFO [Environment] Hibernate 3.2 cr2
[testng] 10:52:55,375 INFO [Environment] hibernate.properties not found
[testng] 10:52:55,375 INFO [Environment] Bytecode provider name : cglib
[testng] 10:52:55,375 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
[testng] 10:52:55,468 INFO [Ejb3Configuration] Processing PersistenceUnitInfo [
[testng] name: Project-Beta
[testng] ...]
[testng] 10:52:55,484 INFO [Ejb3Configuration] found EJB3 Entity bean: com.nuarch.model.Address
[testng] 10:52:55,500 INFO [Ejb3Configuration] found EJB3 Entity bean: com.nuarch.model.User
[testng] 10:52:55,515 WARN [Ejb3Configuration] Persistence provider caller does not implements the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null.
[testng] 10:52:55,562 INFO [Configuration] Reading mappings from resource: META-INF/orm.xml
[testng] 10:52:55,562 INFO [Ejb3Configuration] [PersistenceUnit: Project-Beta] no META-INF/orm.xml found
[testng] 10:52:55,625 INFO [AnnotationBinder] Binding entity from annotated class: com.nuarch.model.Address
[testng] 10:52:55,656 INFO [EntityBinder] Bind entity com.nuarch.model.Address on table ADDRESS
[testng] 10:52:55,703 INFO [AnnotationBinder] Binding entity from annotated class: com.nuarch.model.User
[testng] 10:52:55,703 INFO [EntityBinder] Bind entity com.nuarch.model.User on table USERS
[testng] 10:52:55,843 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
[testng] 10:52:55,843 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
[testng] 10:52:56,296 INFO [SettingsFactory] RDBMS: HSQL Database Engine, version: 1.8.0
[testng] 10:52:56,296 INFO [SettingsFactory] JDBC driver: HSQL Database Engine Driver, version: 1.8.0
[testng] 10:52:56,312 INFO [Dialect] Using dialect: org.hibernate.dialect.HSQLDialect
[testng] 10:52:56,328 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
[testng] 10:52:56,328 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
[testng] 10:52:56,328 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
[testng] 10:52:56,328 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
[testng] 10:52:56,328 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
[testng] 10:52:56,328 INFO [SettingsFactory] JDBC batch size: 15
[testng] 10:52:56,328 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
[testng] 10:52:56,328 INFO [SettingsFactory] Scrollable result sets: enabled
[testng] 10:52:56,328 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
[testng] 10:52:56,328 INFO [SettingsFactory] Connection release mode: auto
[testng] 10:52:56,328 INFO [SettingsFactory] Default batch fetch size: 1
[testng] 10:52:56,328 INFO [SettingsFactory] Generate SQL with comments: disabled
[testng] 10:52:56,328 INFO [SettingsFactory] Order SQL updates by primary key: disabled
[testng] 10:52:56,328 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
[testng] 10:52:56,343 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
[testng] 10:52:56,343 INFO [SettingsFactory] Query language substitutions: {}
[testng] 10:52:56,343 INFO [SettingsFactory] Second-level cache: enabled
[testng] 10:52:56,343 INFO [SettingsFactory] Query cache: enabled
[testng] 10:52:56,343 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
[testng] 10:52:56,343 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
[testng] 10:52:56,343 INFO [SettingsFactory] Structured second-level cache entries: disabled
[testng] 10:52:56,343 INFO [SettingsFactory] Query cache factory: org.hibernate.cache.StandardQueryCacheFactory
[testng] 10:52:56,343 INFO [SettingsFactory] Echoing all SQL to stdout
[testng] 10:52:56,343 INFO [SettingsFactory] Statistics: disabled
[testng] 10:52:56,343 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
[testng] 10:52:56,343 INFO [SettingsFactory] Default entity-mode: pojo
[testng] 10:52:56,406 INFO [SessionFactoryImpl] building session factory
[testng] 10:52:56,750 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
[testng] 10:52:56,765 INFO [SchemaExport] Running hbm2ddl schema export
[testng] 10:52:56,765 INFO [SchemaExport] exporting generated schema to database
[testng] 10:52:56,781 INFO [SchemaExport] Executing import script: /import.sql
[testng] 10:52:56,781 INFO [SchemaExport] schema export complete
[testng] 10:52:56,796 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
[testng] 10:52:56,796 INFO [UpdateTimestampsCache] starting update timestamps cache at region: org.hibernate.cache.UpdateTimestampsCache
[testng] 10:52:56,812 INFO [StandardQueryCache] starting query cache at region: org.hibernate.cache.StandardQueryCache
[testng] 10:52:56,859 INFO [MCKernelAbstraction] installing bean: jboss.j2ee:jar=test,name=LoginAction,service=EJB3 with dependencies:
[testng] 10:52:56,859 INFO [MCKernelAbstraction] AbstractDependencyMetaData@177ff35{dependency=persistence.units:jar=test.jar,unitName=Project-Beta}
[testng] 10:52:57,031 INFO [EJBContainer] STARTED EJB: com.nuarch.login.LoginAction ejbName: LoginAction
[testng] 10:52:57,046 INFO [MCKernelAbstraction] installing bean: jboss.j2ee:jar=test,name=RegisterAction,service=EJB3 with dependencies:
[testng] 10:52:57,062 INFO [MCKernelAbstraction] AbstractDependencyMetaData@14b74a7{dependency=persistence.units:jar=test.jar,unitName=Project-Beta}
[testng] 10:52:57,093 INFO [EJBContainer] STARTED EJB: com.nuarch.register.RegisterAction ejbName: RegisterAction
[testng] 10:52:57,109 INFO [Initialization] done initializing Seam
[testng] 10:52:57,140 INFO [Events] no events.xml file found
[testng] 10:52:57,156 INFO [Pages] no pages.xml file found
[testng] 10:52:57,343 INFO [ExceptionInterceptor] no exceptions.xml file found
[testng] 10:52:57,359 ERROR [ExceptionInterceptor] redirecting to debug page
[testng] javax.ejb.EJBException: javax.el.PropertyNotFoundException: Property 'jboss' is not found on type: org.jboss.seam.Namespace
[testng] at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
[testng] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
[testng] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
[testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
[testng] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
[testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
[testng] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
[testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
[testng] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
[testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
[testng] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
[testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
[testng] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
[testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
[testng] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:181)
[testng] at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:79)
[testng] at $Proxy46.doLogin(Unknown Source)
[testng] at com.nuarch.login.Login$$FastClassByCGLIB$$8dcdb440.invoke()
[testng] at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
[testng] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
[testng] at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:69)
[testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
[testng] at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:38)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:585)
[testng] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
[testng] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
[testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
[testng] at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
[testng] at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
[testng] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
[testng] at org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.java:78)
[testng] at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:47)
[testng] at org.jboss.seam.intercept.Proxy$$EnhancerByCGLIB$$95f2bef5.doLogin()
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:585)
[testng] at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
[testng] at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
[testng] at org.jboss.seam.util.UnifiedELMethodBinding.invoke(UnifiedELMethodBinding.java:36)
[testng] at org.jboss.seam.actionparam.ActionParamBindingHelper.invokeTheExpression(ActionParamBindingHelper.java:59)
[testng] at org.jboss.seam.actionparam.ActionParamMethodBinding.invoke(ActionParamMethodBinding.java:71)
[testng] at org.jboss.seam.mock.SeamTest$Request.invokeMethod(SeamTest.java:390)
[testng] at com.nuarch.login.LoginTest$1.invokeApplication(LoginTest.java:38)
[testng] at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:478)
[testng] at com.nuarch.login.LoginTest.doLogin(LoginTest.java:51)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:585)
[testng] at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:529)
[testng] at org.testng.internal.Invoker.invokeMethod(Invoker.java:398)
[testng] at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:625)
[testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:88)
[testng] at org.testng.TestRunner.privateRun(TestRunner.java:614)
[testng] at org.testng.TestRunner.run(TestRunner.java:505)
[testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:221)
[testng] at org.testng.SuiteRunner.run(SuiteRunner.java:147)
[testng] at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:576)
[testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:539)
[testng] at org.testng.TestNG.run(TestNG.java:316)
[testng] at org.testng.TestNG.privateMain(TestNG.java:666)
[testng] at org.testng.TestNG.main(TestNG.java:608)
[testng] Caused by: javax.el.PropertyNotFoundException: Property 'jboss' is not found on type: org.jboss.seam.Namespace
[testng] at javax.el.BeanELResolver.getValue(BeanELResolver.java:230)
[testng] at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:135)
[testng] at com.sun.el.parser.AstValue.getValue(AstValue.java:117)
[testng] at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
[testng] at org.jboss.seam.util.UnifiedELValueBinding.getValue(UnifiedELValueBinding.java:34)
[testng] at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:51)
[testng] at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1668)
[testng] at org.jboss.seam.Component.getInstance(Component.java:1617)
[testng] at org.jboss.seam.Component.getInstance(Component.java:1594)
[testng] at org.jboss.seam.Component.getInstanceToInject(Component.java:1844)
[testng] at org.jboss.seam.Component.injectFields(Component.java:1344)
[testng] at org.jboss.seam.Component.inject(Component.java:1114)
[testng] at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:48)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:585)
[testng] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
[testng] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
[testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
[testng] at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:585)
[testng] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
[testng] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
[testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
[testng] at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:51)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:585)
[testng] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
[testng] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
[testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
[testng] at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
[testng] at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
[testng] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
[testng] at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:49)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:585)
[testng] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
[testng] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
[testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
[testng] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
[testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
[testng] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
[testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
[testng] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
[testng] ... 64 more
[testng] 10:52:57,390 INFO [Ejb] stopping the embedded EJB container
[testng] 10:52:57,390 INFO [SessionFactoryImpl] closing
[testng] 10:52:57,390 INFO [SchemaExport] Running hbm2ddl schema export
[testng] 10:52:57,390 INFO [SchemaExport] exporting generated schema to database
[testng] 10:52:57,390 INFO [SchemaExport] schema export complete
[testng] Creating C:\Users\dsvmacdonald\Files\Work\nuArch\Clients\Project\Projects\Project-Beta\testng-report\Login.html
[testng] FAILED: com.nuarch.login.LoginTest.doLogin()
[testng] javax.el.ELException: javax.ejb.EJBException: javax.el.PropertyNotFoundException: Property 'jboss' is not found on type: org.jboss.seam.Namespace
[testng] at com.sun.el.parser.AstValue.invoke(AstValue.java:155)
[testng] at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
[testng] at org.jboss.seam.util.UnifiedELMethodBinding.invoke(UnifiedELMethodBinding.java:36)
[testng] at org.jboss.seam.actionparam.ActionParamBindingHelper.invokeTheExpression(ActionParamBindingHelper.java:59)
[testng] at org.jboss.seam.actionparam.ActionParamMethodBinding.invoke(ActionParamMethodBinding.java:71)
[testng] at org.jboss.seam.mock.SeamTest$Request.invokeMethod(SeamTest.java:390)
[testng] at com.nuarch.login.LoginTest$1.invokeApplication(LoginTest.java:38)
[testng] at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:478)
[testng] at com.nuarch.login.LoginTest.doLogin(LoginTest.java:51)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:585)
[testng] at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:529)
[testng] at org.testng.internal.Invoker.invokeMethod(Invoker.java:398)
[testng] at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:625)
[testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:88)
[testng] at org.testng.TestRunner.privateRun(TestRunner.java:614)
[testng] at org.testng.TestRunner.run(TestRunner.java:505)
[testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:221)
[testng] at org.testng.SuiteRunner.run(SuiteRunner.java:147)
[testng] at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:576)
[testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:539)
[testng] at org.testng.TestNG.run(TestNG.java:316)
[testng] at org.testng.TestNG.privateMain(TestNG.java:666)
[testng] at org.testng.TestNG.main(TestNG.java:608)
[testng] Caused by: javax.ejb.EJBException: javax.el.PropertyNotFoundException: Property 'jboss' is not found on type: org.jboss.seam.Namespace
[testng] at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
[testng] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
[testng] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
[testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
[testng] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
[testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
[testng] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
[testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
[testng] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
[testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
[testng] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
[testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
[testng] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
[testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
[testng] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:181)
[testng] at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:79)
[testng] at $Proxy46.doLogin(Unknown Source)
[testng] at com.nuarch.login.Login$$FastClassByCGLIB$$8dcdb440.invoke()
[testng] at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
[testng] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
[testng] at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:69)
[testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
[testng] at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:38)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:585)
[testng] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
[testng] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
[testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
[testng] at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
[testng] at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
[testng] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
[testng] at org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.java:78)
[testng] at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:47)
[testng] at org.jboss.seam.intercept.Proxy$$EnhancerByCGLIB$$95f2bef5.doLogin()
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:585)
[testng] at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
[testng] ... 25 more
[testng] Caused by: javax.el.PropertyNotFoundException: Property 'jboss' is not found on type: org.jboss.seam.Namespace
[testng] at javax.el.BeanELResolver.getValue(BeanELResolver.java:230)
[testng] at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:135)
[testng] at com.sun.el.parser.AstValue.getValue(AstValue.java:117)
[testng] at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
[testng] at org.jboss.seam.util.UnifiedELValueBinding.getValue(UnifiedELValueBinding.java:34)
[testng] at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:51)
[testng] at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1668)
[testng] at org.jboss.seam.Component.getInstance(Component.java:1617)
[testng] at org.jboss.seam.Component.getInstance(Component.java:1594)
[testng] at org.jboss.seam.Component.getInstanceToInject(Component.java:1844)
[testng] at org.jboss.seam.Component.injectFields(Component.java:1344)
[testng] at org.jboss.seam.Component.inject(Component.java:1114)
[testng] at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:48)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:585)
[testng] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
[testng] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
[testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
[testng] at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:585)
[testng] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
[testng] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
[testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
[testng] at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:51)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:585)
[testng] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
[testng] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
[testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
[testng] at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
[testng] at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
[testng] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
[testng] at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:49)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:585)
[testng] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
[testng] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
[testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
[testng] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
[testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
[testng] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
[testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
[testng] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
[testng] ... 64 more
[testng] ===============================================
[testng] Login
[testng] Tests run: 1, Failures: 1, Skips: 0
[testng] ===============================================
[testng] Creating C:\Users\dsvmacdonald\Files\Work\nuArch\Clients\Project\Projects\Project-Beta\testng-report\testng-failed.xml
[testng] ===============================================
[testng] Project
[testng] Total tests run: 1, Failures: 1, Skips: 0
[testng] ===============================================
[testng] Creating C:\Users\dsvmacdonald\Files\Work\nuArch\Clients\Project\Projects\Project-Beta\testng-report\toc.html
[testng] Creating C:\Users\dsvmacdonald\Files\Work\nuArch\Clients\Project\Projects\Project-Beta\testng-report\Login.properties
[testng] Creating C:\Users\dsvmacdonald\Files\Work\nuArch\Clients\Project\Projects\Project-Beta\testng-report\index.html
[testng] Creating C:\Users\dsvmacdonald\Files\Work\nuArch\Clients\Project\Projects\Project-Beta\testng-report\main.html
[testng] Creating C:\Users\dsvmacdonald\Files\Work\nuArch\Clients\Project\Projects\Project-Beta\testng-report\groups.html
[testng] Creating C:\Users\dsvmacdonald\Files\Work\nuArch\Clients\Project\Projects\Project-Beta\testng-report\methods.html
[testng] Creating C:\Users\dsvmacdonald\Files\Work\nuArch\Clients\Project\Projects\Project-Beta\testng-report\classes.html
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002330#4002330
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002330
19 years, 3 months
[EJB 3.0] - ClassCastException in Stateful Session-Bean
by te-bachi
I'm a beginner and would like to run some JBoss EJB 3.0 examples:
Calculator (Stateless SessionBean) - OK!
ShoppingCart (Stateful SessionBean) - ClassCastException
Environment:
o Java 1.5.0_09
o IntelliJ IDEA 6.0.4
o JBoss 4.0.5 AS (JEMS Installer with ejb3)
o Windows XP SP2
Interfaces:
| @Local
| @Remote
| public interface Calculator {
| int add(int x, int y);
| int subtract(int x, int y);
| }
|
| @Local
| @Remote
| public interface ShoppingCart {
| void buy(String product, int quantity);
| HashMap<String, Integer> getCartContents();
| }
|
SessionBeans:
| @Stateless
| public class CalculatorBean implements Calculator {
| public int add(int x, int y) {
| return x + y;
| }
|
| public int subtract(int x, int y) {
| return x - y;
| }
| }
|
| @Stateful
| public class ShoppingCartBean implements ShoppingCart {
| private HashMap<String, Integer> cart;
|
| public ShoppingCartBean() {
| cart = new HashMap<String, Integer>();
| }
|
| public void buy(String product, int quantity) {
| if (cart.containsKey(product)) {
| int currq = cart.get(product);
| currq += quantity;
| cart.put(product, currq);
| } else {
| cart.put(product, quantity);
| }
| }
|
| public HashMap<String, Integer> getCartContents() {
| return cart;
| }
| }
|
Client:
| public class Client {
| public static void main(String[] args) throws Exception {
| System.setSecurityManager(new RMISecurityManager());
|
| InitialContext ctx = new InitialContext();
| ctx.addToEnvironment(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
| ctx.addToEnvironment(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
| ctx.addToEnvironment(Context.PROVIDER_URL, "jnp://localhost:1099");
|
| Calculator calculator = (Calculator) ctx.lookup("MyApplication/CalculatorBean/remote");
|
| System.out.println("1 + 1 = " + calculator.add(1, 1));
| System.out.println("1 - 1 = " + calculator.subtract(1, 1));
| }
| }
|
| public class Client {
| public static void main(String[] args) throws Exception {
| System.setSecurityManager(new RMISecurityManager());
|
| InitialContext ctx = new InitialContext();
| ctx.addToEnvironment(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
| ctx.addToEnvironment(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
| ctx.addToEnvironment(Context.PROVIDER_URL, "jnp://localhost:1099");
|
| ShoppingCart cart = (ShoppingCart) ctx.lookup("MyApplication/ShoppingCartBean/remote");
| }
| }
|
Policy:
| grant {
| permission java.security.AllPermission;
| };
|
JBoss LOG:
| [...]
| 16:34:50,404 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=MyApplication.ear,jar=MyEjb.jar,name=ShoppingCartBean,service=EJB3 with dependencies:
| 16:34:50,419 INFO [EJBContainer] STARTED EJB: org.jboss.tutorial.stateful.bean.ShoppingCartBean ejbName: ShoppingCartBean
| 16:34:50,466 INFO [SimpleStatefulCache] Initializing SimpleStatefulCache with maxSize: 100000 timeout: 300 for jboss.j2ee:ear=MyApplication.ear,jar=MyEjb.jar,name=ShoppingCartBean,service=EJB3
| 16:34:50,466 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=MyApplication.ear,jar=MyEjb.jar,name=CalculatorBean,service=EJB3 with dependencies:
| 16:34:50,466 INFO [EJBContainer] STARTED EJB: org.jboss.tutorial.stateless.bean.CalculatorBean ejbName: CalculatorBean
| [...]
|
Command:
| java \
| -Djava.security.policy=java.policy \
| -classpath jbossall-client.jar;jboss-aop-jdk50-client.jar" \
| org.jboss.tutorial.stateless.client.Client
|
| 1 + 1 = 2
| 1 - 1 = 0
|
| java \
| -Djava.security.policy=java.policy \
| -classpath jbossall-client.jar;jboss-aop-jdk50-client.jar" \
| org.jboss.tutorial.stateful.client.Client
|
| Exception in thread "main" java.lang.ClassCastException: javax.naming.Reference
| at org.jboss.tutorial.stateful.client.Client.main(Client.java:20)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002326#4002326
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002326
19 years, 3 months
[JBoss Portal] - Re: JCR CMS Repository on distant machine
by sohil.shah@jboss.com
anonymous wrote :
| I guess : the JCR is base on JackRabbit and JMX service, so it must be possible to do it.
| My question is : how, tricks, drawbacks etc....
|
This can be done by exposing the PortalCMS JMX service remotely
Try adding this to jboss-portal.sar/portal-cms.sar/META-INF/jboss-service.xml
| <!-- Proxy factory for CMS -->
| <mbean code="org.jboss.invocation.jrmp.server.JRMPProxyFactory"
| name="jboss.jmx:type=adaptor,name=RemoteCMS,protocol=jrmp,service=proxyFactory">
| <!-- Use the standard JRMPInvoker from conf/jboss-service.xxml -->
| <depends optional-attribute-name="InvokerName">jboss:service=invoker,type=jrmp</depends>
| <!-- The target MBean -->
| <depends optional-attribute-name="TargetName">portal:service=CMS</depends>
| <!-- Where to bind the proxy factory -->
| <attribute name="JndiName">RemoteCMS</attribute>
| <!-- Invoke target method instead of invoke(Invocation mi) -->
| <attribute name="InvokeTargetMethod">true</attribute>
| <!-- Comma-separated list of exported interfaces -->
| <attribute name="ExportedInterfaces">org.jboss.portal.cms.CMS</attribute>
| <!-- client-side interceptors -->
| <attribute name="ClientInterceptors">
| <interceptors>
| <interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor>
| <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>
| <interceptor>org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor</interceptor>
| <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
| </interceptors>
| </attribute>
| </mbean>
|
This will provide you a remote cms proxy on which you can execute CMS Commands that you can create via the CommandFactory.
For examples with how to use the CMS object look at our org.jboss.portal.core.portlet.cms.CMSPortlet and org.jboss.portal.core.portlet.cms.admin.CMSAdminPortlet source code
one possible drawback of this way to access the CMS service is the access will be treated as "Anonymous" access which could lead possible lead to Access issues with the newly integrated fine grained security in Portal 2.6 Alpha1 release
The PortalCMS service sits on top of JackRabbit (JCR Impl), and to get file based storage of content, you should just be able to configure one of the FileBasedPersistence Managers packaged with JackRabbit. By default, the PortalCMS uses a Hibernate based Peristence Manager which is optimized for performance using JBossCache.
We are also evaluating integration with Alfresco especially their JCR Impl as an alternative to JackRabbit JCR Impl.
Hope this helps
Thanks
Sohil
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002325#4002325
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002325
19 years, 3 months