3 Replies Latest reply on Mar 13, 2008 6:31 AM by jaikiran pai

    Tomcat 6 + Seam 2.0  + Hibernate -  Cannot find datasource!!

    Bill Evans Newbie

      I have successfully built an application using Seam 2.0 running on JBoss4.2 AS. Now I want to run same on Tomcat 6, but having ridiculous problems trying to configure my Hibernate data source. Tomcat console appears to suggest that my data source ("gaDatasource")is bound to JNDI successfully, but when Hibernate goes to look it up it can't find it!!!

      I know others have experienced this same problem but is there anyone out there who knows what the heck is going on??

      Here's Tomcat console:

      ---------

      2008.03.08 17:55:15,631 INFO [Initialization] Namespace: http://jboss.com/products/seam/international, package: org.jboss.seam.international, prefix: org.jboss.seam.international
      2008.03.08 17:55:15,647 INFO [Initialization] Namespace: http://jboss.com/products/seam/security, package: org.jboss.seam.security, prefix: org.jboss.seam.security
      2008.03.08 17:55:15,647 INFO [Initialization] Namespace: http://jboss.com/products/seam/persistence, package: org.jboss.seam.persistence, prefix: org.jboss.seam.persistence
      2008.03.08 17:55:15,647 INFO [Initialization] Namespace: http://jboss.com/products/seam/remoting, package: org.jboss.seam.remoting, prefix: org.jboss.seam.remoting
      2008.03.08 17:55:15,647 INFO [Initialization] Namespace: http://jboss.com/products/seam/core, package: org.jboss.seam.core, prefix: org.jboss.seam.core
      2008.03.08 17:55:15,647 INFO [Initialization] Namespace: http://jboss.com/products/seam/captcha, package: org.jboss.seam.captcha, prefix: org.jboss.seam.captcha
      2008.03.08 17:55:15,647 INFO [Initialization] Namespace: http://jboss.com/products/seam/async, package: org.jboss.seam.async, prefix: org.jboss.seam.async
      2008.03.08 17:55:15,647 INFO [Initialization] Namespace: http://jboss.com/products/seam/drools, package: org.jboss.seam.drools, prefix: org.jboss.seam.drools
      2008.03.08 17:55:15,647 INFO [Initialization] Namespace: http://jboss.com/products/seam/spring, package: org.jboss.seam.ioc.spring, prefix: org.jboss.seam.ioc.spring
      2008.03.08 17:55:15,647 INFO [Initialization] Namespace: http://jboss.com/products/seam/pdf, package: org.jboss.seam.pdf, prefix:
      2008.03.08 17:55:15,647 INFO [Initialization] Namespace: http://jboss.com/products/seam/mail, package: org.jboss.seam.mail, prefix: org.jboss.seam.mail
      2008.03.08 17:55:15,647 INFO [Initialization] Namespace: http://jboss.com/products/seam/transaction, package: org.jboss.seam.transaction, prefix: org.jboss.seam.transaction
      2008.03.08 17:55:15,647 INFO [Initialization] Namespace: http://jboss.com/products/seam/web, package: org.jboss.seam.web, prefix: org.jboss.seam.web
      2008.03.08 17:55:15,647 INFO [Initialization] Namespace: http://jboss.com/products/seam/security/management, package: org.jboss.seam.security.management, prefix: org.jboss.seam.security.management
      2008.03.08 17:55:15,647 INFO [Initialization] Namespace: http://jboss.com/products/seam/theme, package: org.jboss.seam.theme, prefix: org.jboss.seam.theme
      2008.03.08 17:55:15,647 INFO [Initialization] Namespace: http://jboss.com/products/seam/navigation, package: org.jboss.seam.navigation, prefix: org.jboss.seam.navigation
      2008.03.08 17:55:15,647 INFO [Initialization] Namespace: http://jboss.com/products/seam/bpm, package: org.jboss.seam.bpm, prefix: org.jboss.seam.bpm
      2008.03.08 17:55:15,647 INFO [Initialization] Namespace: http://jboss.com/products/seam/framework, package: org.jboss.seam.framework, prefix: org.jboss.seam.core.framework
      2008.03.08 17:55:15,647 INFO [Initialization] Namespace: http://jboss.com/products/seam/jms, package: org.jboss.seam.jms, prefix: org.jboss.seam.jms
      2008.03.08 17:55:15,647 INFO [Initialization] reading /WEB-INF/components.xml
      2008.03.08 17:55:15,725 INFO [Initialization] reading jar:file:/C:/apache-tomcat-6.0.14/webapps/newRiskApp/WEB-INF/lib/jboss-seam-ioc.jar!/META-INF/components.xml
      2008.03.08 17:55:15,725 INFO [Initialization] reading jar:file:/C:/apache-tomcat-6.0.14/webapps/newRiskApp/WEB-INF/lib/jboss-seam-remoting.jar!/META-INF/components.xml
      2008.03.08 17:55:15,725 INFO [Initialization] reading jar:file:/C:/apache-tomcat-6.0.14/webapps/newRiskApp/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/components.xml
      2008.03.08 17:55:15,725 INFO [Initialization] reading jar:file:/C:/apache-tomcat-6.0.14/webapps/newRiskApp/WEB-INF/lib/jboss-seam.jar!/META-INF/components.xml
      2008.03.08 17:55:15,725 INFO [Initialization] reading properties from: /seam.properties
      2008.03.08 17:55:15,725 INFO [Initialization] reading properties from: /jndi.properties
      2008.03.08 17:55:15,741 INFO [Initialization] initializing Seam
      2008.03.08 17:55:15,866 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.locale
      2008.03.08 17:55:15,866 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.web.exceptionFilter
      2008.03.08 17:55:15,866 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.locale
      2008.03.08 17:55:15,866 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.web.parameters
      2008.03.08 17:55:15,866 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.manager
      2008.03.08 17:55:15,881 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.web.userPrincipal
      2008.03.08 17:55:15,881 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.expressions
      2008.03.08 17:55:15,881 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.resourceLoader
      2008.03.08 17:55:15,881 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.transaction.transaction
      2008.03.08 17:55:15,897 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.transaction.synchronizations
      2008.03.08 17:55:15,897 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.persistence.persistenceProvider
      2008.03.08 17:55:15,897 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.web.redirectFilter
      2008.03.08 17:55:15,897 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.bpm.businessProcess
      2008.03.08 17:55:15,897 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.manager
      2008.03.08 17:55:15,897 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.security.identity
      2008.03.08 17:55:15,897 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.web.isUserInRole
      2008.03.08 17:55:15,928 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
      2008.03.08 17:55:16,053 INFO [Initialization] Installing components...
      2008.03.08 17:55:16,085 INFO [Component] Component: account, scope: CONVERSATION, type: JAVA_BEAN, class: com.ga.riskapp.account.UserAccount
      2008.03.08 17:55:16,131 INFO [Component] Component: accountDetail, scope: CONVERSATION, type: JAVA_BEAN, class: com.ga.riskapp.action.AccountDetailAction
      ....
      ..
      ....
      2008.03.08 17:55:16,507 INFO [Component] Component: logout, scope: EVENT, type: JAVA_BEAN, class: com.ga.riskapp.action.LogoutAction
      2008.03.08 17:55:16,507 INFO [Component] Component: newUser, scope: SESSION, type: ENTITY_BEAN, class: com.ga.riskapp.usermgmt.RiskAppUser
      2008.03.08 17:55:16,507 INFO [Component] Component: notifyEngine, scope: SESSION, type: JAVA_BEAN, class: com.ga.riskapp.notifymgmt.NotificationEngineAccess
      2008.03.08 17:55:16,522 INFO [Component] Component: org.jboss.seam.async.dispatcher, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.async.ThreadPoolDispatcher
      2008.03.08 17:55:16,538 INFO [Component] Component: org.jboss.seam.captcha.captcha, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.captcha.Captcha
      2008.03.08 17:55:16,538 INFO [Component] Component: org.jboss.seam.captcha.captchaImage, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.captcha.CaptchaImage
      2008.03.08 17:55:16,553 INFO [Component] Component: org.jboss.seam.core.ConversationIdGenerator, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationIdGenerator
      2008.03.08 17:55:16,553 INFO [Component] Component: org.jboss.seam.core.contexts, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Contexts
      2008.03.08 17:55:16,553 INFO [Component] Component: org.jboss.seam.core.conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
      2008.03.08 17:55:16,569 INFO [Component] Component: org.jboss.seam.core.conversationEntries, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationEntries
      2008.03.08 17:55:16,569 INFO [Component] Component: org.jboss.seam.core.conversationListFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
      2008.03.08 17:55:16,569 INFO [Component] Component: org.jboss.seam.core.conversationPropagation, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationPropagation
      2008.03.08 17:55:16,585 INFO [Component] Component: org.jboss.seam.core.conversationStackFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
      2008.03.08 17:55:16,585 INFO [Component] Component: org.jboss.seam.core.events, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Events
      2008.03.08 17:55:16,585 INFO [Component] Component: org.jboss.seam.core.expressions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesExpressions
      2008.03.08 17:55:16,600 INFO [Component] Component: org.jboss.seam.core.interpolator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Interpolator
      2008.03.08 17:55:16,600 INFO [Component] Component: org.jboss.seam.core.locale, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.international.Locale
      2008.03.08 17:55:16,600 INFO [Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesManager
      2008.03.08 17:55:16,616 INFO [Component] Component: org.jboss.seam.core.pojoCache, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PojoCache
      2008.03.08 17:55:16,616 INFO [Component] Component: org.jboss.seam.core.resourceBundle, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
      2008.03.08 17:55:16,632 INFO [Component] Component: org.jboss.seam.core.resourceLoader, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.faces.ResourceLoader
      2008.03.08 17:55:16,632 INFO [Component] Component: org.jboss.seam.core.validators, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Validators
      2008.03.08 17:55:16,647 INFO [Component] Component: org.jboss.seam.exception.exceptions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.exception.Exceptions
      2008.03.08 17:55:16,647 INFO [Component] Component: org.jboss.seam.faces.dataModels, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.faces.DataModels
      2008.03.08 17:55:16,663 INFO [Component] Component: org.jboss.seam.faces.facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesContext
      2008.03.08 17:55:16,663 INFO [Component] Component: org.jboss.seam.faces.facesMessages, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesMessages
      2008.03.08 17:55:16,663 INFO [Component] Component: org.jboss.seam.faces.facesPage, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesPage
      2008.03.08 17:55:16,679 INFO [Component] Component: org.jboss.seam.faces.httpError, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.HttpError
      2008.03.08 17:55:16,679 INFO [Component] Component: org.jboss.seam.faces.redirect, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.faces.Redirect
      2008.03.08 17:55:16,679 INFO [Component] Component: org.jboss.seam.faces.renderer, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.ui.facelet.FaceletsRenderer
      2008.03.08 17:55:16,694 INFO [Component] Component: org.jboss.seam.faces.switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.faces.Switcher
      2008.03.08 17:55:16,694 INFO [Component] Component: org.jboss.seam.faces.uiComponent, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.faces.UiComponent
      2008.03.08 17:55:16,694 INFO [Component] Component: org.jboss.seam.faces.validation, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.faces.Validation
      2008.03.08 17:55:16,710 INFO [Component] Component: org.jboss.seam.framework.currentDate, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDate
      2008.03.08 17:55:16,710 INFO [Component] Component: org.jboss.seam.framework.currentDatetime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDatetime
      2008.03.08 17:55:16,710 INFO [Component] Component: org.jboss.seam.framework.currentTime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentTime
      2008.03.08 17:55:16,725 INFO [Component] Component: org.jboss.seam.graphicImage.image, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.Image
      2008.03.08 17:55:16,725 INFO [Component] Component: org.jboss.seam.international.localeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.international.LocaleSelector
      2008.03.08 17:55:16,741 INFO [Component] Component: org.jboss.seam.international.messagesFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.international.Messages
      2008.03.08 17:55:16,741 INFO [Component] Component: org.jboss.seam.international.timeZone, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.international.TimeZone
      2008.03.08 17:55:16,741 INFO [Component] Component: org.jboss.seam.international.timeZoneSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.international.TimeZoneSelector
      2008.03.08 17:55:16,757 INFO [Component] Component: org.jboss.seam.mail.mailSession, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.mail.MailSession
      2008.03.08 17:55:16,757 INFO [Component] Component: org.jboss.seam.navigation.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.navigation.Pages
      2008.03.08 17:55:16,772 INFO [Component] Component: org.jboss.seam.navigation.safeActions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.navigation.SafeActions
      2008.03.08 17:55:16,772 INFO [Component] Component: org.jboss.seam.pdf.documentStore, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.pdf.DocumentStore
      2008.03.08 17:55:16,788 INFO [Component] Component: org.jboss.seam.persistence.persistenceContexts, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.persistence.PersistenceContexts
      2008.03.08 17:55:16,788 INFO [Component] Component: org.jboss.seam.persistence.persistenceProvider, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.persistence.HibernatePersistenceProvider
      2008.03.08 17:55:16,788 INFO [Component] Component: org.jboss.seam.remoting.gwt.gwtToSeamAdapter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.remoting.gwt.GWTToSeamAdapter
      2008.03.08 17:55:16,804 INFO [Component] Component: org.jboss.seam.remoting.remoting, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.remoting.Remoting
      2008.03.08 17:55:16,804 INFO [Component] Component: org.jboss.seam.security.configurationFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.security.Configuration
      2008.03.08 17:55:16,819 INFO [Component] Component: org.jboss.seam.security.facesSecurityEvents, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.security.FacesSecurityEvents
      2008.03.08 17:55:16,819 INFO [Component] Component: org.jboss.seam.security.identity, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.security.RuleBasedIdentity
      2008.03.08 17:55:16,835 INFO [Component] Component: org.jboss.seam.security.identityManager, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.security.management.IdentityManager
      2008.03.08 17:55:16,835 INFO [Component] Component: org.jboss.seam.theme.themeFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.theme.Theme
      2008.03.08 17:55:16,835 INFO [Component] Component: org.jboss.seam.theme.themeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.ThemeSelector
      2008.03.08 17:55:16,850 INFO [Component] Component: org.jboss.seam.transaction.synchronizations, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.transaction.SeSynchronizations
      2008.03.08 17:55:16,850 INFO [Component] Component: org.jboss.seam.transaction.transaction, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.transaction.HibernateTransaction
      2008.03.08 17:55:16,866 INFO [Component] Component: org.jboss.seam.ui.EntityConverter, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.ui.converter.EntityConverter
      2008.03.08 17:55:16,866 INFO [Component] Component: org.jboss.seam.ui.entityIdentifierStore, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.ui.converter.entityConverter.EntityIdentifierStore
      2008.03.08 17:55:16,882 INFO [Component] Component: org.jboss.seam.ui.entityLoader, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.ui.converter.entityConverter.EntityLoader
      2008.03.08 17:55:16,882 INFO [Component] Component: org.jboss.seam.ui.graphicImage.graphicImageResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.GraphicImageResource
      2008.03.08 17:55:16,882 INFO [Component] Component: org.jboss.seam.ui.graphicImage.graphicImageStore, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.GraphicImageStore
      2008.03.08 17:55:16,897 INFO [Component] Component: org.jboss.seam.ui.hibernateEntityLoader, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.ui.converter.entityConverter.HibernateEntityLoader
      2008.03.08 17:55:16,897 INFO [Component] Component: org.jboss.seam.ui.resource.styleResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.resource.StyleResource
      2008.03.08 17:55:16,897 INFO [Component] Component: org.jboss.seam.ui.resource.webResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.resource.WebResource
      2008.03.08 17:55:16,913 INFO [Component] Component: org.jboss.seam.web.ajax4jsfFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.Ajax4jsfFilter
      2008.03.08 17:55:16,913 INFO [Component] Component: org.jboss.seam.web.ajax4jsfFilterInstantiator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.ui.filter.Ajax4jsfFilterInstantiator
      2008.03.08 17:55:16,929 INFO [Component] Component: org.jboss.seam.web.exceptionFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.ExceptionFilter
      2008.03.08 17:55:16,929 INFO [Component] Component: org.jboss.seam.web.isUserInRole, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.IsUserInRole
      2008.03.08 17:55:16,929 INFO [Component] Component: org.jboss.seam.web.loggingFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.LoggingFilter
      2008.03.08 17:55:16,944 INFO [Component] Component: org.jboss.seam.web.multipartFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.MultipartFilter
      2008.03.08 17:55:16,944 INFO [Component] Component: org.jboss.seam.web.parameters, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.faces.Parameters
      2008.03.08 17:55:16,944 INFO [Component] Component: org.jboss.seam.web.redirectFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.RedirectFilter
      2008.03.08 17:55:16,960 INFO [Component] Component: org.jboss.seam.web.servletContexts, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.web.ServletContexts
      2008.03.08 17:55:16,960 INFO [Component] Component: org.jboss.seam.web.session, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.web.Session
      2008.03.08 17:55:16,960 INFO [Component] Component: org.jboss.seam.web.userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.UserPrincipal
      2008.03.08 17:55:16,975 WARN [Component] Component class should be serializable: reportFilter
      2008.03.08 17:55:16,975 INFO [Component] Component: reportFilter, scope: SESSION, type: JAVA_BEAN, class: com.ga.riskapp.session.UserSessionFilter
      2008.03.08 17:55:16,991 INFO [Component] Component: reportGenAction, scope: SESSION, type: JAVA_BEAN, class: com.ga.riskapp.action.ReportGenerationAction
      2008.03.08 17:55:17,007 INFO [Component] Component: reportsView, scope: SESSION, type: JAVA_BEAN, class: com.ga.riskapp.action.ReportsViewAction
      2008.03.08 17:55:17,007 INFO [Component] Component: securityRules, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.drools.RuleBase
      2008.03.08 17:55:17,007 INFO [Component] Component: selcdUser, scope: SESSION, type: ENTITY_BEAN, class: com.ga.riskapp.usermgmt.RiskAppUser
      2008.03.08 17:55:17,022 INFO [Component] Component: selectedAccount, scope: SESSION, type: JAVA_BEAN, class: com.ga.riskapp.account.UserAccount
      2008.03.08 17:55:17,022 INFO [Component] Component: selectedCase, scope: SESSION, type: ENTITY_BEAN, class: com.ga.riskapp.casemgmt.Case
      2008.03.08 17:55:17,022 INFO [Component] Component: selectedSession, scope: CONVERSATION, type: JAVA_BEAN, class: com.ga.riskapp.session.UserSession
      2008.03.08 17:55:17,038 INFO [Component] Component: sessionRepository, scope: APPLICATION, type: JAVA_BEAN, class: com.ga.riskapp.session.SessionRepository
      2008.03.08 17:55:17,038 INFO [Component] Component: timingsCollector, scope: APPLICATION, type: JAVA_BEAN, class: com.ga.riskapp.utils.measurements.TimingsCollector
      2008.03.08 17:55:17,038 INFO [Component] Component: user, scope: SESSION, type: ENTITY_BEAN, class: com.ga.riskapp.usermgmt.RiskAppUser
      2008.03.08 17:55:17,054 WARN [Component] Component class should be serializable: userDirectory
      2008.03.08 17:55:17,054 INFO [Component] Component: userDirectory, scope: SESSION, type: JAVA_BEAN, class: com.ga.riskapp.usermgmt.RiskAppUserDirectory
      2008.03.08 17:55:17,054 INFO [Contexts] starting up: timingsCollector
      2008.03.08 17:55:17,054 INFO [TimingsCollector] TimingsCollector started! TimingsCollector. Size=25
      2008.03.08 17:55:17,054 INFO [Contexts] starting up: gaMessages
      2008.03.08 17:55:17,054 INFO [Contexts] starting up: configMgr
      2008.03.08 17:55:17,054 WARN [ConfigurationMgr] ConfigurationMgr: Version=-Unknown- Language=en
      2008.03.08 17:55:17,069 INFO [Environment] Hibernate 3.2.4.sp1
      2008.03.08 17:55:17,069 INFO [Environment] hibernate.properties not found
      2008.03.08 17:55:17,085 INFO [Environment] Bytecode provider name : cglib
      2008.03.08 17:55:17,085 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
      2008.03.08 17:55:17,116 INFO [Configuration] configuring from resource: hibernate.cfg.xml
      2008.03.08 17:55:17,116 INFO [Configuration] Configuration resource: hibernate.cfg.xml
      2008.03.08 17:55:17,116 DEBUG [DTDEntityResolver] trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd]
      2008.03.08 17:55:17,116 DEBUG [DTDEntityResolver] recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
      2008.03.08 17:55:17,116 DEBUG [DTDEntityResolver] located [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd] in classpath
      2008.03.08 17:55:17,132 DEBUG [Configuration] show_sql=true
      2008.03.08 17:55:17,132 DEBUG [Configuration] dialect=org.hibernate.dialect.MySQLDialect
      2008.03.08 17:55:17,132 DEBUG [Configuration] connection.datasource=java:/gaDatasource
      2008.03.08 17:55:17,132 DEBUG [Configuration] cache.provider_class=org.hibernate.cache.HashtableCacheProvider
      2008.03.08 17:55:17,132 DEBUG [Configuration] transaction.flush_before_completion=true
      2008.03.08 17:55:17,132 DEBUG [Configuration] connection.release_mode=after_statement
      2008.03.08 17:55:17,132 DEBUG [Configuration] transaction.manager_lookup_class=org.hibernate.transaction.JBossTransactionManagerLookup
      2008.03.08 17:55:17,132 DEBUG [Configuration] transaction.factory_class=org.hibernate.transaction.JTATransactionFactory
      2008.03.08 17:55:17,132 DEBUG [Configuration] java:/gadb<-org.dom4j.tree.DefaultAttribute@bdd2e7 [Attribute: name resource value "com/ga/riskapp/casemgmt/Case.hbm.xml"]
      2008.03.08 17:55:17,132 INFO [Configuration] Reading mappings from resource : com/ga/riskapp/casemgmt/Case.hbm.xml
      2008.03.08 17:55:17,132 DEBUG [DTDEntityResolver] trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd]
      2008.03.08 17:55:17,132 DEBUG [DTDEntityResolver] recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
      2008.03.08 17:55:17,132 DEBUG [DTDEntityResolver] located [http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd] in classpath
      2008.03.08 17:55:17,194 INFO [HbmBinder] Mapping class: com.ga.riskapp.casemgmt.Case -> ga_ra_case
      2008.03.08 17:55:17,194 DEBUG [HbmBinder] Mapped property: id -> ID
      2008.03.08 17:55:17,241 DEBUG [HbmBinder] Mapped property: status -> STATUS_ID
      2008.03.08 17:55:17,241 DEBUG [HbmBinder] Mapped property: priority -> PRIORITY
      .......
      ....
      ..........
      2008.03.08 17:55:17,491 DEBUG [CollectionSecondPass] Mapped collection key: VIEW_ID, element: PROP_ID, PROP_VALUE
      2008.03.08 17:55:17,491 DEBUG [CollectionSecondPass] Second pass for collection: com.ga.riskapp.config.dbsource.HostService.propertyDefs
      2008.03.08 17:55:17,491 INFO [HbmBinder] Mapping collection: com.ga.riskapp.config.dbsource.HostService.propertyDefs -> ga_ra_session_prop_def
      2008.03.08 17:55:17,491 DEBUG [CollectionSecondPass] Mapped collection key: HOST_APP_ID, one-to-many: com.ga.riskapp.config.dbsource.UserSessionPropDef
      ........
      ...
      ........
      2008.03.08 17:55:17,491 DEBUG [Configuration] processing native query and ResultSetMapping mappings
      2008.03.08 17:55:17,491 DEBUG [Configuration] processing association property references
      2008.03.08 17:55:17,491 DEBUG [Configuration] processing foreign key constraints
      2008.03.08 17:55:17,491 DEBUG [Configuration] resolving reference to class: com.ga.riskapp.config.dbsource.UserActivityType
      ....
      ..
      .....
      2008.03.08 17:55:17,491 DEBUG [Configuration] resolving reference to class: com.ga.riskapp.session.UserSessionView
      2008.03.08 17:55:17,523 INFO [NamingHelper] JNDI InitialContext properties:{}
      2008.03.08 17:55:17,523 FATAL [DatasourceConnectionProvider] Could not find datasource: java:/gaDatasource
      javax.naming.NameNotFoundException: Name gaDatasource is not bound in this Context
      at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
      at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
      at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
      at javax.naming.InitialContext.lookup(InitialContext.java:351)
      at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
      at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
      at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
      at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:414)
      at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
      at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
      at com.ga.riskapp.config.dbsource.AppWideSettings.(AppWideSettings.java:72)
      at com.ga.riskapp.config.ConfigurationMgr.onCreate(ConfigurationMgr.java:226)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
      at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
      at org.jboss.seam.Component.callComponentMethod(Component.java:2084)
      at org.jboss.seam.Component.callCreateMethod(Component.java:2007)
      at org.jboss.seam.Component.newInstance(Component.java:1978)
      at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
      at org.jboss.seam.contexts.Contexts.startup(Contexts.java:296)
      at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
      at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:95)
      at org.jboss.seam.init.Initialization.init(Initialization.java:592)
      at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
      at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
      at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
      at org.apache.catalina.core.StandardService.start(StandardService.java:516)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)


      ---------

      MANY MANY THANKS to anyone who can help me out!!

        • 1. Re: Tomcat 6 + Seam 2.0  + Hibernate -  Cannot find datasour
          jaikiran pai Master

           

          2008.03.08 17:55:17,523 FATAL [DatasourceConnectionProvider] Could not find datasource: java:/gaDatasource
          javax.naming.NameNotFoundException: Name gaDatasource is not bound in this Context


          Are you sure the gaDatasource is bound in the java: namespace? Or is it bound to the global jndi-name namespace, in which case you will have to change the hibernate configuration file to remove the java: prefix from the datasource jndi-name. What does the tomcat console logs show about the jndi-name to which the datasource is bound?

          • 2. Re: Tomcat 6 + Seam 2.0  + Hibernate -  Cannot find datasour
            Bill Evans Newbie

            Thank you, jaikirin...

            I have fiddled with these names, adding & removing prefixes to no avail.

            This is what my log tells me:

            2008.03.10 10:10:25,176 DEBUG [Configuration] show_sql=true
            2008.03.10 10:10:25,176 DEBUG [Configuration] dialect=org.hibernate.dialect.MySQLDialect
            2008.03.10 10:10:25,176 DEBUG [Configuration] connection.datasource=java:/gaDatasource
            2008.03.10 10:10:25,176 DEBUG [Configuration] cache.provider_class=org.hibernate.cache.HashtableCacheProvider
            2008.03.10 10:10:25,176 DEBUG [Configuration] transaction.flush_before_completion=true
            2008.03.10 10:10:25,176 DEBUG [Configuration] connection.release_mode=after_statement
            2008.03.10 10:10:25,176 DEBUG [Configuration] transaction.manager_lookup_class=org.hibernate.transaction.JBossTransactionManagerLookup
            2008.03.10 10:10:25,176 DEBUG [Configuration] transaction.factory_class=org.hibernate.transaction.JTATransactionFactory

            ....
            [Hibernate has found the datasource and appears to correctly connect it with a Session factory]


            2008.03.10 10:10:25,518 INFO [Configuration] Configured SessionFactory: java:/gadb
            2008.03.10 10:10:25,518 DEBUG [Configuration] properties: {java.vendor=Sun Microsystems Inc., show_sql=true, sun.java.launcher=SUN_STANDARD, catalina.base=C:\apache-tomcat-6.0.14, sun.management.compiler=HotSpot Client Compiler, connection.datasource=java:/gaDatasource, catalina.useNaming=true, hibernate.transaction.flush_before_completion=true, os.name=Windows XP, sun.boot.class.path=c:\Program Files\Java\jdk1.5.0_12\jre\lib\rt.jar;c:\Program Files\Java\jdk1.5.0_12\jre\lib\i18n.jar;c:\Program Files\Java\jdk1.5.0_12\jre\lib\sunrsasign.jar;c:\Program Files\Java\jdk1.5.0_12\jre\lib\jsse.jar;c:\Program Files\Java\jdk1.5.0_12\jre\lib\jce.jar;c:\Program Files\Java\jdk1.5.0_12\jre\lib\charsets.jar;c:\Program Files\Java\jdk1.5.0_12\jre\classes, java.util.logging.config.file=C:\apache-tomcat-6.0.14\conf\logging.properties, sun.desktop=windows, java.vm.specification.vendor=Sun Microsystems Inc., java.runtime.version=1.5.0_12-b04, hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider, user.name=bevans, shared.loader=, tomcat.util.buf.StringCache.byte.enabled=true, hibernate.connection.release_mode=after_statement, hibernate.session_factory_name=java:/gadb, user.language=en, java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory, sun.boot.library.path=c:\Program Files\Java\jdk1.5.0_12\jre\bin, dialect=org.hibernate.dialect.MySQLDialect, java.version=1.5.0_12, java.util.logging.manager=org.apache.juli.ClassLoaderLogManager, user.timezone=America/Los_Angeles, sun.arch.data.model=32, java.endorsed.dirs=C:\apache-tomcat-6.0.14\endorsed, sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86, sun.jnu.encoding=Cp1252, file.encoding.pkg=sun.io, package.access=sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans., file.separator=\, java.specification.name=Java Platform API Specification, java.class.version=49.0, user.country=US, java.home=c:\Program Files\Java\jdk1.5.0_12\jre, java.vm.info=mixed mode, sharing, os.version=5.1, transaction.factory_class=org.hibernate.transaction.JTATransactionFactory, hibernate.transaction.factory_class=org.hibernate.transaction.JTATransactionFactory, hibernate.connection.datasource=java:/gaDatasource, path.separator=;, java.vm.version=1.5.0_12-b04, user.variant=, java.awt.printerjob=sun.awt.windows.WPrinterJob, sun.io.unicode.encoding=UnicodeLittle, awt.toolkit=sun.awt.windows.WToolkit, package.definition=sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper., transaction.manager_lookup_class=org.hibernate.transaction.JBossTransactionManagerLookup, java.naming.factory.url.pkgs=org.apache.naming, user.home=C:\Documents and Settings\bevans, java.specification.vendor=Sun Microsystems Inc., java.library.path=c:\Program Files\Java\jdk1.5.0_12\bin;.;C:\WINDOWS\system32;C:\WINDOWS;c:\program files\java\jdk1.5.0_12\bin;C:\oracle\product\10.2.0\db_1\bin;C:\Eclipse\plugins\org.tigris.subversion.javahl.win32_1.2.2;C:\oracle\product\10.2.0\client_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\QuickTime\QTSystem\;C:\apache-ant-1.7.0\bin, java.vendor.url=http://java.sun.com/, java.vm.vendor=Sun Microsystems Inc., hibernate.dialect=org.hibernate.dialect.MySQLDialect, common.loader=${catalina.home}/lib,${catalina.home}/lib/*.jar, java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, java.class.path=c:\Program Files\Java\jdk1.5.0_12\lib\tools.jar;C:\apache-tomcat-6.0.14\bin\bootstrap.jar, hibernate.bytecode.use_reflection_optimizer=false, java.vm.specification.name=Java Virtual Machine Specification, java.vm.specification.version=1.0, catalina.home=C:\apache-tomcat-6.0.14, sun.cpu.endian=little, sun.os.patch.level=Service Pack 2, java.io.tmpdir=C:\apache-tomcat-6.0.14\temp, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, connection.release_mode=after_statement, server.loader=, transaction.flush_before_completion=true, os.arch=x86, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.ext.dirs=c:\Program Files\Java\jdk1.5.0_12\jre\lib\ext, user.dir=C:\apache-tomcat-6.0.14\bin, line.separator=
            , java.vm.name=Java HotSpot(TM) Client VM, cache.provider_class=org.hibernate.cache.HashtableCacheProvider, file.encoding=Cp1252, hibernate.transaction.manager_lookup_class=org.hibernate.transaction.JBossTransactionManagerLookup, java.specification.version=1.5, hibernate.show_sql=true}
            2008.03.10 10:10:25,518 DEBUG [Configuration] Preparing to build session factory with filters : {}
            2008.03.10 10:10:25,518 DEBUG [Configuration] processing extends queue
            2008.03.10 10:10:25,518 DEBUG [Configuration] processing collection mappings

            ....

            [Then, when my code actually tries to get a session it barfs:]


            2008.03.10 10:10:25,533 DEBUG [Configuration] resolving reference to class: com.ga.riskapp.session.UserSessionView
            2008.03.10 10:10:25,563 INFO [NamingHelper] JNDI InitialContext properties:{}
            2008.03.10 10:10:25,563 FATAL [DatasourceConnectionProvider] Could not find datasource: java:/gaDatasource
            javax.naming.NameNotFoundException: Name gaDatasource is not bound in this Context
            at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
            at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
            at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
            at javax.naming.InitialContext.lookup(InitialContext.java:351)
            at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
            at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
            at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
            at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:414)
            at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
            at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
            at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
            at com.ga.riskapp.config.dbsource.AppWideSettings.(AppWideSettings.java:72)

            • 3. Re: Tomcat 6 + Seam 2.0  + Hibernate -  Cannot find datasour
              jaikiran pai Master

              Follow the steps mentioned at http://wiki.jboss.org/wiki/Wiki.jsp?page=DisplayTheJDNITreeWithTheJMXConsole and post the output of the jndi view here. Also, post the code where you are doing the datasource lookup.

              While posting the ouptut and the code, remember to wrap it in a code block using the Code button in the message editor window. Please hit the Preview button before posting, to ensure that the post is properly formatted.