[Beginners Corner] - Files and Context Paths
by yj4jboss
Hello,
I have a newbie question regarding files and contexts paths.
I have a CSV file packed in an EAR file which contains a WAR file. The WAR files contains a XHTML files and a CSV file along with other folders such as WEB-INF, META-INF, Style ...etc.
Via a Managed bean i am trying to read the CSV file using the "OpenCSV" libray.
|
| public void readCSV() throws FileNotFoundException, IOException{
|
| log.debug("enter_readCSV");
|
| path="user.csv";
|
| CSVReader reader = new CSVReader(new FileReader(path));
|
| String [] nextLine;
| while ((nextLine = reader.readNext()) != null) {
|
| User tempUser = new User();
| tempUser.setDisplayName(nextLine[0]);
| tempUser.setUserName(nextLine[1]);
|
| importUserList.add(tempUser);
|
| }
|
|
| }
|
|
However, though the code works in Eclipse, it fails in JBoss with the following error msg:
| Caused by: java.io.FileNotFoundException: jbosscsv.csv (The system cannot find the path specified)
|
|
I then changed the code to retrieve the file relative from the local context
|
| public void readCSV() throws FileNotFoundException, IOException{
|
| log.debug("enter_readCSV");
|
| String path = FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath();
|
| path+="/user.csv";
|
| CSVReader reader = new CSVReader(new FileReader(path));
|
| String [] nextLine;
| while ((nextLine = reader.readNext()) != null) {
|
| User tempUser = new User();
| tempUser.setDisplayName(nextLine[0]);
| tempUser.setUserName(nextLine[1]);
|
| importUserList.add(tempUser);
|
| }
|
|
| }
|
|
Still the same error msg is displayed as follows:
|
| Caused by: java.io.FileNotFoundException: \enforcement\jbosscsv.csv (The system cannot find the path specified)
|
|
Any idea what could be wrong ??
Cheers,
Yogesh
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987860#3987860
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987860
19Â years, 5Â months
[EJB 3.0] - Executing a jdbc statement in a session (XACT_ABORT issue)..
by r.simoni
Hi, we have a problem:
we have a SQL Server DB with internally linked a remote oracle DB.
We have created views in out SQL Server DB to map remote oracle tables.
When we try an insert sql on the SQL Server Enterprise Manager on the views all run correctly.
When we use EJB 3.0 to execute the same insert (via persist method) we receive this error:
Unable to start a nested transaction for OLE DB provider 'MSDAORA'. A nested transaction was requir
| ed because the XACT_ABORT option was set to OFF"
we have read that linked server in sql server are provided by a Provider that if doesn't support nested transactions you have to explicitly execute a query:
SET XACT_ABORT ON
How can we execute this statement in EJB 3.0?
createQuery, createNativeQuery doesn't seem to be the solution
How can I obtain the connection used in the "session" to run a simply JDBC statement?
Do you have another solution?
Thanks
Bye
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987859#3987859
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987859
19Â years, 5Â months
[JBoss Seam] - Seam 1.1 CR1: Where have my components gone?
by lowecg2004
I have just upgraded an existing Seam project from 1.0.1GA to 1.1 CR1 and all of my business objects identified by @Name("") have disappeared!
In 1.0.1GA I would see output like this (business components highlighted in bold):
2006-10-16 09:07:09,488 INFO [javax.servlet.ServletContextListener] Welcome to Seam 1.0.1.GA
| 2006-10-16 09:07:09,512 INFO [org.jboss.seam.init.Initialization] reading components.xml
| 2006-10-16 09:07:09,635 INFO [org.jboss.seam.init.Initialization] reading properties from: /seam.properties
| 2006-10-16 09:07:09,637 INFO [org.jboss.seam.init.Initialization] reading properties from: /jndi.properties
| 2006-10-16 09:07:09,655 INFO [org.jboss.seam.init.Initialization] initializing Seam
| 2006-10-16 09:07:09,771 INFO [org.jboss.seam.Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
| 2006-10-16 09:07:11,105 INFO [org.jboss.seam.Component] Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
| 2006-10-16 09:07:11,153 INFO [org.jboss.seam.Component] Component: events, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Events
| 2006-10-16 09:07:11,224 INFO [org.jboss.seam.Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
| 2006-10-16 09:07:11,298 INFO [org.jboss.seam.Component] Component: switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher
| 2006-10-16 09:07:11,341 INFO [org.jboss.seam.Component] Component: redirect, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Redirect
| 2006-10-16 09:07:11,388 INFO [org.jboss.seam.Component] Component: httpError, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.HttpError
| 2006-10-16 09:07:11,406 INFO [org.jboss.seam.Component] Component: userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.UserPrincipal
| 2006-10-16 09:07:11,423 INFO [org.jboss.seam.Component] Component: isUserInRole, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.IsUserInRole
| 2006-10-16 09:07:11,456 INFO [org.jboss.seam.Component] Component: conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
| 2006-10-16 09:07:11,531 INFO [org.jboss.seam.Component] Component: conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
| 2006-10-16 09:07:11,567 INFO [org.jboss.seam.Component] Component: conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
| 2006-10-16 09:07:11,580 INFO [org.jboss.seam.Component] Component: facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext
| 2006-10-16 09:07:11,597 INFO [org.jboss.seam.Component] Component: pageContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PageContext
| 2006-10-16 09:07:11,611 INFO [org.jboss.seam.Component] Component: eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext
| 2006-10-16 09:07:11,626 INFO [org.jboss.seam.Component] Component: sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext
| 2006-10-16 09:07:11,637 INFO [org.jboss.seam.Component] Component: statelessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.StatelessContext
| 2006-10-16 09:07:11,650 INFO [org.jboss.seam.Component] Component: applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext
| 2006-10-16 09:07:11,662 INFO [org.jboss.seam.Component] Component: conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext
| 2006-10-16 09:07:11,678 INFO [org.jboss.seam.Component] Component: businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext
| 2006-10-16 09:07:11,693 INFO [org.jboss.seam.Component] Component: locale, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Locale
| 2006-10-16 09:07:11,710 INFO [org.jboss.seam.Component] Component: messages, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.Messages
| 2006-10-16 09:07:11,721 INFO [org.jboss.seam.Component] Component: theme, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.Theme
| 2006-10-16 09:07:11,762 INFO [org.jboss.seam.Component] Component: themeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.ThemeSelector
| 2006-10-16 09:07:11,780 INFO [org.jboss.seam.Component] Component: interpolator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Interpolator
| 2006-10-16 09:07:11,791 INFO [org.jboss.seam.Component] Component: facesMessages, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesMessages
| 2006-10-16 09:07:11,850 INFO [org.jboss.seam.Component] Component: resourceBundle, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
| 2006-10-16 09:07:11,864 INFO [org.jboss.seam.Component] Component: localeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.LocaleSelector
| 2006-10-16 09:07:11,887 INFO [org.jboss.seam.Component] Component: uiComponent, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.UiComponent
| 2006-10-16 09:07:11,899 INFO [org.jboss.seam.Component] Component: renderParameters, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.RenderParameters
| 2006-10-16 09:07:11,911 INFO [org.jboss.seam.Component] Component: org.jboss.seam.remoting.messaging.subscriptionRegistry, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.remoting.messaging.SubscriptionRegistry
| 2006-10-16 09:07:11,934 INFO [org.jboss.seam.Component] Component: org.jboss.seam.remoting.remotingConfig, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.remoting.RemotingConfig
| 2006-10-16 09:07:12,117 INFO [org.jboss.seam.Component] Component: pojoCache, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PojoCache
| 2006-10-16 09:07:12,127 WARN [org.jboss.seam.Component] Component class should be serializable: emailSession
| 2006-10-16 09:07:12,127 INFO [org.jboss.seam.Component] Component: emailSession, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.mail.OutboundEmailSession
| 2006-10-16 09:07:12,693 INFO [org.jboss.seam.Component] Component: ocssApplicationContext, scope: APPLICATION, type: JAVA_BEAN, class: com.triggersoft.OcssApplicationContext
| 2006-10-16 09:07:12,964 INFO [org.jboss.seam.deployment.Scanner] scanning: /home/ocss/bin/jboss-4.0.4.GA/server/default/tmp/deploy/tmp20394ocss.ear
| 2006-10-16 09:07:12,965 INFO [org.jboss.seam.deployment.Scanner] scanning: /home/ocss/bin/jboss-4.0.4.GA/server/default/tmp/deploy/tmp20394ocss.ear-contents/ocssEJB.jar
| 2006-10-16 09:07:13,734 INFO [org.jboss.seam.deployment.Scanner] scanning: /home/ocss/bin/jboss-4.0.4.GA/server/default/tmp/deploy/tmp20394ocss.ear-contents/ocssWeb-exp.war/WEB-INF/lib/ocssEJB.jar
| 2006-10-16 09:07:13,998 INFO [org.jboss.seam.Component] Component: changePassword, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: com.triggersoft.business.ChangePasswordAction, JNDI: ocss/ChangePasswordAction/local
| 2006-10-16 09:07:14,249 INFO [org.jboss.seam.Component] Component: resetProfile, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: com.triggersoft.business.ResetProfileAction, JNDI: ocss/ResetProfileAction/local
| 2006-10-16 09:07:15,161 INFO [org.jboss.seam.Component] Component: account, scope: SESSION, type: ENTITY_BEAN, class: com.triggersoft.model.Account
| 2006-10-16 09:07:15,237 INFO [org.jboss.seam.Component] Component: selectedAccount, scope: SESSION, type: ENTITY_BEAN, class: com.triggersoft.model.Account
| 2006-10-16 09:07:15,249 INFO [org.jboss.seam.Component] Component: confirmAccount, scope: SESSION, type: ENTITY_BEAN, class: com.triggersoft.model.Account
| 2006-10-16 09:07:15,263 INFO [org.jboss.seam.Component] Component: contactCustomerServices, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: com.triggersoft.business.ContactCustomerServicesDataImpl, JNDI: ocss/ContactCustomerServicesDataImpl/local
| 2006-10-16 09:07:15,297 INFO [org.jboss.seam.Component] Component: emailDao, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: com.triggersoft.model.dao.EmailHome, JNDI: ocss/EmailHome/local
| 2006-10-16 09:07:15,379 INFO [org.jboss.seam.Component] Component: roleDao, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: com.triggersoft.model.dao.RoleHomeSeam, JNDI: ocss/RoleHomeSeam/local
| 2006-10-16 09:07:15,405 INFO [org.jboss.seam.Component] Component: passwordUtils, scope: STATELESS, type: JAVA_BEAN, class: com.triggersoft.ocss.lib.password.PasswordUtils
| 2006-10-16 09:07:15,560 INFO [org.jboss.seam.Component] Component: auditDao, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: com.triggersoft.model.dao.AuditHomeSeam, JNDI: ocss/AuditHomeSeam/local
| 2006-10-16 09:07:15,653 INFO [org.jboss.seam.Component] Component: forgottenPassword, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: com.triggersoft.business.ForgottenPasswordAction, JNDI: ocss/ForgottenPasswordAction/local
| 2006-10-16 09:07:15,684 INFO [org.jboss.seam.Component] Component: auditLog, scope: STATELESS, type: JAVA_BEAN, class: com.triggersoft.business.AuditLogBean
| 2006-10-16 09:07:15,725 INFO [org.jboss.seam.Component] Component: user, scope: SESSION, type: ENTITY_BEAN, class: com.triggersoft.model.User
| 2006-10-16 09:07:15,748 INFO [org.jboss.seam.Component] Component: tempUser, scope: EVENT, type: ENTITY_BEAN, class: com.triggersoft.model.User
| 2006-10-16 09:07:15,765 INFO [org.jboss.seam.Component] Component: passwordUser, scope: EVENT, type: ENTITY_BEAN, class: com.triggersoft.model.User
| 2006-10-16 09:07:15,811 INFO [org.jboss.seam.Component] Component: registrationUser, scope: CONVERSATION, type: ENTITY_BEAN, class: com.triggersoft.model.User
| 2006-10-16 09:07:15,827 INFO [org.jboss.seam.Component] Component: adminUser, scope: SESSION, type: ENTITY_BEAN, class: com.triggersoft.model.User
| 2006-10-16 09:07:15,858 INFO [org.jboss.seam.Component] Component: userAccountDao, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: com.triggersoft.model.dao.UserAccountHome, JNDI: ocss/UserAccountHome/local
| 2006-10-16 09:07:15,933 INFO [org.jboss.seam.Component] Component: contactCustomerServicesAction, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: com.triggersoft.business.ContactCustomerServicesAction, JNDI: ocss/ContactCustomerServicesAction/local
| 2006-10-16 09:07:15,963 INFO [org.jboss.seam.Component] Component: encryptionUtils, scope: STATELESS, type: JAVA_BEAN, class: com.triggersoft.ocss.lib.encryption.EncryptionUtils
| 2006-10-16 09:07:16,108 INFO [org.jboss.seam.Component] Component: registerSubscription, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: com.triggersoft.business.RegisterSubscriptionAction, JNDI: ocss/RegisterSubscriptionAction/local
| 2006-10-16 09:07:16,139 INFO [org.jboss.seam.Component] Component: addressDao, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: com.triggersoft.model.dao.AddressHomeSeam, JNDI: ocss/AddressHomeSeam/local
| 2006-10-16 09:07:16,156 INFO [org.jboss.seam.Component] Component: logout, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: com.triggersoft.business.LogoutAction, JNDI: ocss/LogoutAction/local
| 2006-10-16 09:07:16,214 INFO [org.jboss.seam.Component] Component: login, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: com.triggersoft.business.LoginAction, JNDI: ocss/LoginAction/local
| 2006-10-16 09:07:16,243 INFO [org.jboss.seam.Component] Component: administration, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: com.triggersoft.business.AdministrationAction, JNDI: ocss/AdministrationAction/local
| 2006-10-16 09:07:16,291 INFO [org.jboss.seam.Component] Component: accountTxDao, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: com.triggersoft.model.dao.AccountTxHomeSeam, JNDI: ocss/AccountTxHomeSeam/local
| 2006-10-16 09:07:16,329 INFO [org.jboss.seam.Component] Component: printTransactions, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: com.triggersoft.business.PrintTransactionsAction, JNDI: ocss/PrintTransactionsAction/local
| 2006-10-16 09:07:16,355 INFO [org.jboss.seam.Component] Component: deleteProfile, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: com.triggersoft.business.DeleteProfileAction, JNDI: ocss/DeleteProfileAction/local
| 2006-10-16 09:07:16,387 INFO [org.jboss.seam.Component] Component: currentSession, scope: SESSION, type: ENTITY_BEAN, class: com.triggersoft.model.Session
| 2006-10-16 09:07:16,400 INFO [org.jboss.seam.Component] Component: emailUtils, scope: STATELESS, type: JAVA_BEAN, class: com.triggersoft.ocss.lib.email.EmailUtils
| 2006-10-16 09:07:16,461 INFO [org.jboss.seam.Component] Component: messageUtils, scope: STATELESS, type: JAVA_BEAN, class: com.triggersoft.ocss.lib.resources.MessageUtils
| 2006-10-16 09:07:16,474 WARN [org.jboss.seam.init.Initialization] Component has been previously installed and is being redefined: ocssApplicationContext
| 2006-10-16 09:07:16,474 INFO [org.jboss.seam.Component] Component: ocssApplicationContext, scope: APPLICATION, type: JAVA_BEAN, class: com.triggersoft.OcssApplicationContext
| 2006-10-16 09:07:16,490 INFO [org.jboss.seam.Component] Component: registerProfile, scope: CONVERSATION, type: STATEFUL_SESSION_BEAN, class: com.triggersoft.business.RegisterProfileAction, JNDI: ocss/RegisterProfileAction/local
| 2006-10-16 09:07:16,596 INFO [org.jboss.seam.Component] Component: fulfillmentHouseDao, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: com.triggersoft.model.dao.FulfillmentHouseHomeSeam, JNDI: ocss/FulfillmentHouseHomeSeam/local
| 2006-10-16 09:07:16,760 INFO [org.jboss.seam.Component] Component: accountDao, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: com.triggersoft.model.dao.AccountHomeSeam, JNDI: ocss/AccountHomeSeam/local
| 2006-10-16 09:07:16,784 INFO [org.jboss.seam.Component] Component: mySubscriptions, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: com.triggersoft.business.MySubscriptionsAction, JNDI: ocss/MySubscriptionsAction/local
| 2006-10-16 09:07:16,819 INFO [org.jboss.seam.Component] Component: userDao, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: com.triggersoft.model.dao.UserHomeSeam, JNDI: ocss/UserHomeSeam/local
| 2006-10-16 09:07:16,844 INFO [org.jboss.seam.Component] Component: groupManager, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: com.triggersoft.business.GroupManagerAction, JNDI: ocss/GroupManagerAction/local
| 2006-10-16 09:07:16,872 INFO [org.jboss.seam.Component] Component: sessionDao, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: com.triggersoft.model.dao.SessionHome, JNDI: ocss/SessionHome/local
| 2006-10-16 09:07:16,887 INFO [org.jboss.seam.Component] Component: editProfile, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: com.triggersoft.business.EditProfileAction, JNDI: ocss/EditProfileAction/local
| 2006-10-16 09:07:16,918 INFO [org.jboss.seam.Component] Component: myAccount, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: com.triggersoft.business.MyAccountBean, JNDI: ocss/MyAccountBean/local
| 2006-10-16 09:07:17,220 WARN [org.jboss.seam.init.Initialization] Component has been previously installed and is being redefined: userAccountDao
| 2006-10-16 09:07:17,221 INFO [org.jboss.seam.Component] Component: userAccountDao, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: com.triggersoft.model.dao.UserAccountHomeSeam, JNDI: ocss/UserAccountHomeSeam/local
| 2006-10-16 09:07:17,235 INFO [org.jboss.seam.contexts.Lifecycle] starting up: isUserInRole
| 2006-10-16 09:07:17,236 INFO [org.jboss.seam.contexts.Lifecycle] starting up: statelessContext
| 2006-10-16 09:07:17,236 INFO [org.jboss.seam.contexts.Lifecycle] starting up: conversationContext
| 2006-10-16 09:07:17,237 INFO [org.jboss.seam.contexts.Lifecycle] starting up: applicationContext
| 2006-10-16 09:07:17,237 INFO [org.jboss.seam.contexts.Lifecycle] starting up: userPrincipal
| 2006-10-16 09:07:17,237 INFO [org.jboss.seam.contexts.Lifecycle] starting up: sessionContext
| 2006-10-16 09:07:17,238 INFO [org.jboss.seam.contexts.Lifecycle] starting up: facesContext
| 2006-10-16 09:07:17,238 INFO [org.jboss.seam.contexts.Lifecycle] starting up: businessProcessContext
| 2006-10-16 09:07:17,238 INFO [org.jboss.seam.contexts.Lifecycle] starting up: eventContext
| 2006-10-16 09:07:17,239 INFO [org.jboss.seam.contexts.Lifecycle] starting up: pageContext
| 2006-10-16 09:07:17,239 INFO [org.jboss.seam.init.Initialization] done initializing Seam
Where as under the 1.1 CR1 only the following is produced - i.e. my components are no longer listed:
10:56:13,366 INFO [ServletContextListener] Welcome to Seam 1.1.0.CR1
| 10:56:13,413 INFO [Initialization] Namespace: http://jboss.com/products/seam/framework, package: org.jboss.seam.framework, prefix: org.jboss.seam.core.framework
| 10:56:13,413 INFO [Initialization] Namespace: http://jboss.com/products/seam/jms, package: org.jboss.seam.jms, prefix: org.jboss.seam.jms
| 10:56:13,413 INFO [Initialization] Namespace: http://jboss.com/products/seam/drools, package: org.jboss.seam.drools, prefix: org.jboss.seam.drools
| 10:56:13,413 INFO [Initialization] Namespace: http://jboss.com/products/seam/remoting, package: org.jboss.seam.remoting, prefix: org.jboss.seam.remoting
| 10:56:13,413 INFO [Initialization] Namespace: http://jboss.com/products/seam/theme, package: org.jboss.seam.theme, prefix: org.jboss.seam.theme
| 10:56:13,429 INFO [Scanner] scanning: /C:/bin/seam/jboss-4.0.5.GA/server/default/tmp/deploy/tmp10649ocss.ear
| 10:56:13,429 INFO [Scanner] scanning: /C:/bin/seam/jboss-4.0.5.GA/server/default/tmp/deploy/tmp10649ocss.ear-contents/ocssEJB.jar
| 10:56:13,444 INFO [Scanner] scanning: /C:/bin/seam/jboss-4.0.5.GA/server/default/tmp/deploy/tmp10649ocss.ear-contents/jboss-seam.jar
| 10:56:13,475 INFO [Scanner] scanning: /C:/bin/seam/jboss-4.0.5.GA/server/default/./tmp/deploy/tmp10649ocss.ear-contents/ocssWeb-exp.war/WEB-INF/lib/jboss-seam.jar
| 10:56:13,507 INFO [Initialization] Namespace: http://jboss.com/products/seam/drools, package: org.jboss.seam.drools, prefix: org.jboss.seam.drools
| 10:56:13,507 INFO [Initialization] Namespace: http://jboss.com/products/seam/remoting, package: org.jboss.seam.remoting, prefix: org.jboss.seam.remoting
| 10:56:13,507 INFO [Initialization] Namespace: http://jboss.com/products/seam/theme, package: org.jboss.seam.theme, prefix: org.jboss.seam.theme
| 10:56:13,507 INFO [Initialization] Namespace: http://jboss.com/products/seam/jms, package: org.jboss.seam.jms, prefix: org.jboss.seam.jms
| 10:56:13,507 INFO [Initialization] Namespace: http://jboss.com/products/seam/framework, package: org.jboss.seam.framework, prefix: org.jboss.seam.core.framework
| 10:56:13,507 INFO [Initialization] reading /WEB-INF/components.xml
| 10:56:13,538 INFO [Initialization] reading jar:file:/C:/bin/seam/jboss-4.0.5.GA/server/default/tmp/deploy/tmp10649ocss.ear-contents/jboss-seam.jar!/META-INF/components.xml
| 10:56:13,569 INFO [Initialization] reading jar:file:/C:/bin/seam/jboss-4.0.5.GA/server/default/./tmp/deploy/tmp10649ocss.ear-contents/ocssWeb-exp.war/WEB-INF/lib/jboss-seam.jar!/META-INF/components.xml
| 10:56:13,585 INFO [Initialization] reading properties from: /seam.properties
| 10:56:13,585 INFO [Initialization] reading properties from: /jndi.properties
| 10:56:13,585 INFO [Initialization] initializing Seam
| 10:56:13,600 INFO [Scanner] scanning: /C:/bin/seam/jboss-4.0.5.GA/server/default/tmp/deploy/tmp10649ocss.ear
| 10:56:13,600 INFO [Scanner] scanning: /C:/bin/seam/jboss-4.0.5.GA/server/default/tmp/deploy/tmp10649ocss.ear-contents/ocssEJB.jar
| 10:56:14,350 INFO [Scanner] scanning: /C:/bin/seam/jboss-4.0.5.GA/server/default/tmp/deploy/tmp10649ocss.ear-contents/jboss-seam.jar
| 10:56:15,444 INFO [Scanner] scanning: /C:/bin/seam/jboss-4.0.5.GA/server/default/./tmp/deploy/tmp10649ocss.ear-contents/ocssWeb-exp.war/WEB-INF/lib/jboss-seam.jar
| 10:56:16,304 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
| 10:56:16,350 INFO [Initialization] Installing components...
| 10:56:16,350 INFO [Component] Component: emailSession, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.mail.OutboundEmailSession
| 10:56:16,397 INFO [Component] Component: ocssApplicationContext, scope: EVENT, type: JAVA_BEAN, class: com.triggersoft.OcssApplicationContext
| 10:56:16,397 INFO [Component] Component: org.jboss.seam.core.facesPage, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.FacesPage
| 10:56:16,397 INFO [Component] Component: org.jboss.seam.core.businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext
| 10:56:16,397 INFO [Component] Component: org.jboss.seam.core.conversationEntries, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationEntries
| 10:56:16,397 INFO [Component] Component: org.jboss.seam.securityManager, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.security.SeamSecurityManager
| 10:56:16,397 INFO [Component] Component: org.jboss.seam.core.conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext
| 10:56:16,397 INFO [Component] Component: org.jboss.seam.framework.currentDatetime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDatetime
| 10:56:16,397 INFO [Component] Component: org.jboss.seam.core.userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.UserPrincipal
| 10:56:16,397 INFO [Component] Component: org.jboss.seam.core.localeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.LocaleSelector
| 10:56:16,413 INFO [Component] Component: org.jboss.seam.core.applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext
| 10:56:16,413 INFO [Component] Component: org.jboss.seam.core.eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext
| 10:56:16,413 INFO [Component] Component: org.jboss.seam.core.events, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Events
| 10:56:16,413 INFO [Component] Component: org.jboss.seam.core.validation, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Validation
| 10:56:16,413 INFO [Component] Component: org.jboss.seam.remoting.remotingConfig, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.remoting.RemotingConfig
| 10:56:16,413 INFO [Component] Component: org.jboss.seam.core.locale, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Locale
| 10:56:16,413 INFO [Component] Component: org.jboss.seam.theme.themeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.ThemeSelector
| 10:56:16,413 INFO [Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
| 10:56:16,413 INFO [Component] Component: org.jboss.seam.core.isUserInRole, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.IsUserInRole
| 10:56:16,413 INFO [Component] Component: org.jboss.seam.remoting.messaging.subscriptionRegistry, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.remoting.messaging.SubscriptionRegistry
| 10:56:16,429 INFO [Component] Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
| 10:56:16,429 INFO [Component] Component: org.jboss.seam.core.persistenceContexts, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.PersistenceContexts
| 10:56:16,429 INFO [Component] Component: org.jboss.seam.core.facesMessages, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesMessages
| 10:56:16,429 INFO [Component] Component: org.jboss.seam.core.redirect, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Redirect
| 10:56:16,429 INFO [Component] Component: org.jboss.seam.core.resourceBundle, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
| 10:56:16,444 INFO [Component] Component: org.jboss.seam.core.conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
| 10:56:16,444 INFO [Component] Component: org.jboss.seam.core.conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
| 10:56:16,444 INFO [Component] Component: org.jboss.seam.core.safeActions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SafeActions
| 10:56:16,444 INFO [Component] Component: org.jboss.seam.core.httpError, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.HttpError
| 10:56:16,444 INFO [Component] Component: org.jboss.seam.theme.theme, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.Theme
| 10:56:16,444 INFO [Component] Component: org.jboss.seam.core.exceptions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Exceptions
| 10:56:16,444 INFO [Component] Component: org.jboss.seam.core.uiComponent, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.UiComponent
| 10:56:16,444 INFO [Component] Component: org.jboss.seam.core.facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext
| 10:56:16,444 INFO [Component] Component: org.jboss.seam.core.messages, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.Messages
| 10:56:16,444 INFO [Component] Component: org.jboss.seam.core.pageContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PageContext
| 10:56:16,444 INFO [Component] Component: org.jboss.seam.framework.currentDate, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDate
| 10:56:16,444 INFO [Component] Component: org.jboss.seam.core.sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext
| 10:56:16,444 INFO [Component] Component: org.jboss.seam.core.expressions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Expressions
| 10:56:16,460 INFO [Component] Component: org.jboss.seam.core.interpolator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Interpolator
| 10:56:16,460 INFO [Component] Component: org.jboss.seam.framework.currentTime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentTime
| 10:56:16,460 INFO [Component] Component: org.jboss.seam.core.switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher
| 10:56:16,460 INFO [Component] Component: org.jboss.seam.core.conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
| 10:56:16,460 INFO [Initialization] done initializing Seam
Interestingly earlier in the 1.1 startup logs, I can see that my business beans are now being picked up as EJB3 beans which was not the case before. However they cannot be referenced using their assigned Seam component name.
10:56:11,429 INFO [EJBContainer] STARTED EJB: com.triggersoft.business.AdministrationAction ejbName: AdministrationAction
I'm not really sure on what to do now. I've checked the 1.1 examples for any obvious configuration changes and checked the reference guide. I can see some new log entries from 1.1 that talk about namespaces. Do I need to identify the namespaces of my business logic packages somewhere?
10:56:13,507 INFO [Initialization] Namespace: http://jboss.com/products/seam/framework, package: or
| g.jboss.seam.framework, prefix: org.jboss.seam.core.framework
Any help will be greatly appreciated.
Chris.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987858#3987858
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987858
19Â years, 5Â months
[JBoss Seam] - Seam 1.1.0 CR 1 + AS 4.0.5 + Portal 2.6-DR1
by modendahl
Hi,
there are some problems with the examples which use ajax.
With the installation above I get for every ajax example the
following exception
| 11:07:35,819 INFO [ServletCacheAdministrator] Created new application-scoped ca
| che at key: __oscache_cache
| 11:07:35,928 ERROR [[/seam-booking]] Exception starting filter ajax4jsf
| java.lang.IllegalStateException: No Factories configured for this Application. T
| his happens if the faces-initialization does not work at all - make sure that yo
| u properly include all configuration settings necessary for a basic faces applic
| ation and that all the necessary libs are included. Also check the logging outpu
| t of your web application and your container for any exceptions!
| If you did that and find nothing, the mistake might be due to the fact that you
| use some special web-containers which do not support registering context-listene
| rs via TLD files and a context listener is not setup in your web.xml.
| A typical config looks like this;
| <listener>
| <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</liste
| ner-class>
| </listener>
|
| at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:90)
| at org.ajax4jsf.framework.resource.InternetResourceService.init(Internet
| ResourceService.java:61)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.init(BaseFilter.java
| :121)
| at org.apache.catalina.core.ApplicationFilterConfig.getFilter(Applicatio
| nFilterConfig.java:223)
| at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applica
| tionFilterConfig.java:304)
| at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFi
| lterConfig.java:77)
| at org.apache.catalina.core.StandardContext.filterStart(StandardContext.
| java:3634)
| at sun.reflect.GeneratedMethodAccessor315.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.portal.server.deployment.PortalWebTomcat5App.startFilter(Po
| rtalWebTomcat5App.java:119)
| at org.jboss.portal.server.deployment.PortalWebTomcat5App.instrument(Por
| talWebTomcat5App.java:99)
| at org.jboss.portal.server.deployment.jboss.ServerDeployer.instrument(Se
| rverDeployer.java:319)
| at org.jboss.portal.server.deployment.jboss.ServerDeployer.deploy(Server
| Deployer.java:285)
| at sun.reflect.GeneratedMethodAccessor309.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
| er.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
| java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy93.deploy(Unknown Source)
| at org.jboss.portal.server.deployment.WebAppAdapter.deploy(WebAppAdapter
| .java:54)
| at org.jboss.portal.server.deployment.WebAppIntercepter.handleNotificati
| on(WebAppIntercepter.java:134)
| at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.notification.NotificationListenerProxy.invoke(Notificati
| onListenerProxy.java:153)
| at $Proxy139.handleNotification(Unknown Source)
| at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotificat
| ion(JBossNotificationBroadcasterSupport.java:127)
| at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotificatio
| n(JBossNotificationBroadcasterSupport.java:108)
| at org.jboss.deployment.SubDeployerSupport.emitNotification(SubDeployerS
| upport.java:340)
| at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java
| :308)
| at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:48
| 2)
| at sun.reflect.GeneratedMethodAccessor274.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
| er.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
| or.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
| BeanOperationInterceptor.java:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor
| .java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(Intercepto
| rServiceMBeanSupport.java:238)
| at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInte
| rceptor.java:92)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
| start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
| ptor.java:95)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
| java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy124.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
| er.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
| or.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
| BeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
| java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy6.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
| tScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
| canner.java:610)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
| doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
| loop(AbstractDeploymentScanner.java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
| run(AbstractDeploymentScanner.java:225)
| 11:07:36,116 INFO [EARDeployer] Started J2EE application: file:/C:/Programme/jboss-4.0.5.GA/server/default/deploy/jboss-seam-booking.ear
|
If I remove the jboss-portal.sar from the deployment directory
everything will work fine.
Can someone tell me what is the problem here and how can it be
solved?
Best wishes
Marcel.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987857#3987857
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987857
19Â years, 5Â months