[jboss-user] [JBoss/Spring Integration] - Re: Use of Deployed Spring Beans directly on webapp
svelascob
do-not-reply at jboss.com
Mon Sep 25 12:39:59 EDT 2006
Hi Ales and All,
I was able to define the spring context as a parent of the webapp context using beanRefContext to define all the contexts inside the ear. JBoss deployed both the .spring and the webpp module and preinstantated all the applicable beans. Now when I'm trying to use the services, it gave me an 'Hibernate session not bound to thread' exception, I'm suspecting classloading issues on this one. Can anybody please point me what could be the issue here? All the beans are defined on the .spring module (the webapp doesnt define any bean), and the spring library is located on the deployer directory.
This is part of my actual configuration:
web.xml:
<web-app>
[...]
<context-param>
<param-name>locatorFactorySelector</param-name>
<param-value>WEB-INF/beanRefContext.xml</param-value>
</context-param>
<context-param>
<param-name>parentContextKey</param-name>
<param-value>komodo-context</param-value>
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>WEB-INF/komodo-servlet.xml</param-value>
</context-param>
[...]
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
beanRefContext.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
Bean Reference Context for All Beans
<constructor-arg>
classpath*:/META-INF/jboss-spring.xml
</constructor-arg>
this is the deployment log and exception:
12:35:20,166 INFO [EARDeployer] Init J2EE application: file:/C:/Program Files/j
boss-4.0.4.GA/server/default/deploy/komodo.ear
12:35:35,619 INFO [CollectionFactory] JDK 1.4+ collections available
12:35:35,682 INFO [NamedXmlBeanDefinitionReader] Loading XML bean definitions f
rom URL [jar:file:/C:/Program Files/jboss-4.0.4.GA/server/default/tmp/deploy/tmp
25694komodo.ear-contents/komodo.spring!/META-INF/jboss-spring.xml]
12:35:35,775 INFO [DefaultNamespaceHandlerResolver] Ignoring handler [org.sprin
gframework.web.servlet.config.MvcNamespaceHandler]: class not found
12:35:35,791 INFO [NamedXmlBeanDefinitionParser] Bean names [description tag]:
BeanFactory=(komodospr)
12:35:36,197 INFO [NamedXmlApplicationContext] Bean factory for application con
text [org.jboss.spring.factory.NamedXmlApplicationContext;hashCode=6207304]: org
.springframework.beans.factory.support.DefaultListableBeanFactory defining beans
[kmDataSource,jndiTMan,jndiUT,transactionManager,interceptorTemplate,sessionFac
tory,aggregateFunctionDao,columnDao,columnClauseDao,selectDao,groupByDao,orderBy
Dao,columnRoleDao,dataSourceDao,dsDataTypeDao,expressionClauseDao,expressionGrou
pDao,expressionOperandDao,expressionsDao,betweenExpDao,inExpDao,householdDao,hho
ldCardDao,partnerDao,permissionDao,profileDao,columnClauseColumnDao,endValueDao,
startValueDao,lValueDao,joinColumnDao,joinDao,roleDao,segmentDao,spendLevelDao,t
ableDao,tableRoleDao,userDao,upcListsDao,valueDao,dataInterface,userServiceTarge
t,uServiceTx,userService,segmentServiceTarget,sServiceTx,segmentService,profileS
erviceTarget,pServiceTx,profileService,tableServiceTarget,tServiceTx,tableServic
e,functionServiceTarget,fServiceTx,oFunctionService,criteriaServiceTarget,cServi
ceTx,criteriaService,expressionServiceTarget,eServiceTx,expressionService,clause
ServiceTarget,clServiceTx,clauseService,partnerServiceTarget,ptServiceTx,partner
Service,roleServiceTarget,rServiceTx,roleService,upcListServiceTarget,ulServiceT
x,upcService]; root of BeanFactory hierarchy
12:35:36,228 INFO [NamedXmlApplicationContext] 74 beans defined in application
context [org.jboss.spring.factory.NamedXmlApplicationContext;hashCode=6207304]
12:35:36,260 INFO [NamedXmlApplicationContext] Unable to locate MessageSource w
ith name 'messageSource': using default [org.springframework.context.support.Del
egatingMessageSource at 109062e]
12:35:36,260 INFO [NamedXmlApplicationContext] Unable to locate ApplicationEven
tMulticaster with name 'applicationEventMulticaster': using default [org.springf
ramework.context.event.SimpleApplicationEventMulticaster at 14e2c9c]
12:35:36,260 INFO [DefaultListableBeanFactory] Pre-instantiating singletons in
factory [org.springframework.beans.factory.support.DefaultListableBeanFactory de
fining beans [kmDataSource,jndiTMan,jndiUT,transactionManager,interceptorTemplat
e,sessionFactory,aggregateFunctionDao,columnDao,columnClauseDao,selectDao,groupB
yDao,orderByDao,columnRoleDao,dataSourceDao,dsDataTypeDao,expressionClauseDao,ex
pressionGroupDao,expressionOperandDao,expressionsDao,betweenExpDao,inExpDao,hous
eholdDao,hholdCardDao,partnerDao,permissionDao,profileDao,columnClauseColumnDao,
endValueDao,startValueDao,lValueDao,joinColumnDao,joinDao,roleDao,segmentDao,spe
ndLevelDao,tableDao,tableRoleDao,userDao,upcListsDao,valueDao,dataInterface,user
ServiceTarget,uServiceTx,userService,segmentServiceTarget,sServiceTx,segmentServ
ice,profileServiceTarget,pServiceTx,profileService,tableServiceTarget,tServiceTx
,tableService,functionServiceTarget,fServiceTx,oFunctionService,criteriaServiceT
arget,cServiceTx,criteriaService,expressionServiceTarget,eServiceTx,expressionSe
rvice,clauseServiceTarget,clServiceTx,clauseService,partnerServiceTarget,ptServi
ceTx,partnerService,roleServiceTarget,rServiceTx,roleService,upcListServiceTarge
t,ulServiceTx,upcService]; root of BeanFactory hierarchy]
12:35:36,353 INFO [JndiTemplate] Looking up JNDI object with name [java:jdbc/ko
modoDBXA]
12:35:36,369 INFO [JndiTemplate] Looking up JNDI object with name [java:/Transa
ctionManager]
12:35:36,369 INFO [JndiTemplate] Looking up JNDI object with name [/UserTransac
tion]
12:35:36,385 INFO [JtaTransactionManager] Using JTA UserTransaction: org.jboss.
tm.usertx.client.ServerVMClientUserTransaction at 132a4df
12:35:36,385 INFO [JtaTransactionManager] Using JTA TransactionManager: org.jbo
ss.tm.TxManager at 1e6385e
12:35:36,463 INFO [Environment] Hibernate 3.2 cr2
12:35:36,494 INFO [Environment] hibernate.properties not found
12:35:36,494 INFO [Environment] Bytecode provider name : javassist
12:35:36,510 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
12:35:36,791 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.profiles.AggregateFunction -> crit_aggregate_function
12:35:36,853 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.querybuilding.Column -> seg_column
12:35:37,010 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.profiles.ColumnClause -> crit_column_clause
12:35:37,135 INFO [HbmBinder] Mapping subclass: com.shsolutions.segment.data.hi
bernate.profiles.Select -> crit_column_clause
12:35:37,135 INFO [HbmBinder] Mapping subclass: com.shsolutions.segment.data.hi
bernate.profiles.GroupBy -> crit_column_clause
12:35:37,135 INFO [HbmBinder] Mapping subclass: com.shsolutions.segment.data.hi
bernate.profiles.OrderBy -> crit_column_clause
12:35:37,150 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.querybuilding.ColumnRolePermission -> seg_column_role_permission
12:35:37,166 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.querybuilding.DataSource -> seg_datasource
12:35:37,182 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.querybuilding.DataSourceDataType -> seg_datasource_datatype
12:35:37,197 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.profiles.ExpressionClause -> crit_expression_clause
12:35:37,213 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.profiles.ExpressionGroup -> crit_expression_group
12:35:37,244 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.profiles.ExpressionOperand -> crit_operand
12:35:37,244 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.profiles.AExpression -> crit_expression
12:35:37,260 INFO [HbmBinder] Mapping subclass: com.shsolutions.segment.data.hi
bernate.profiles.Expression -> crit_expression
12:35:37,260 INFO [HbmBinder] Mapping subclass: com.shsolutions.segment.data.hi
bernate.profiles.BetweenExpression -> crit_expression
12:35:37,260 INFO [HbmBinder] Mapping subclass: com.shsolutions.segment.data.hi
bernate.profiles.InExpression -> crit_expression
12:35:37,275 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.querybuilding.Partner -> seg_partner
12:35:37,275 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.querybuilding.Partner.users -> seg_user_partner
12:35:37,291 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.querybuilding.Permission -> seg_permission
12:35:37,291 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.profiles.Profile -> crit_criteria
12:35:37,291 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.profiles.Profile.joins -> crit_join
12:35:37,307 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.profiles.ColumnClauseColumn -> crit_column_clause_column
12:35:37,322 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.querybuilding.Join -> seg_join
12:35:37,322 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.querybuilding.JoinColumn -> seg_join_column
12:35:37,338 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.querybuilding.Role -> seg_role
12:35:37,338 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.querybuilding.Role.users -> seg_user_role
12:35:37,353 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.segments.Segment -> seg_segment
12:35:37,369 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.segments.Household -> seg_segment_household
12:35:37,369 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.segments.HouseholdCard -> seg_segment_household_card
12:35:37,385 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.segments.SpendLevel -> seg_segment_spend_level
12:35:37,400 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.querybuilding.Table -> seg_table
12:35:37,400 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.querybuilding.TableRolePermission -> seg_table_role_permission
12:35:37,416 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.querybuilding.User -> seg_user
12:35:37,416 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.querybuilding.User.partners -> seg_user_partner
12:35:37,416 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.querybuilding.User.roles -> seg_user_role
12:35:37,432 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.profiles.UPCLists -> upc_lists
12:35:37,432 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.profiles.UPCLists.expressions -> upclist_expression
12:35:37,447 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.profiles.AValue -> crit_expression_values
12:35:37,447 INFO [HbmBinder] Mapping subclass: com.shsolutions.segment.data.hi
bernate.profiles.Value -> crit_expression_values
12:35:37,447 INFO [HbmBinder] Mapping subclass: com.shsolutions.segment.data.hi
bernate.profiles.StartValue -> crit_expression_values
12:35:37,447 INFO [HbmBinder] Mapping subclass: com.shsolutions.segment.data.hi
bernate.profiles.EndValue -> crit_expression_values
12:35:37,463 INFO [HbmBinder] Mapping subclass: com.shsolutions.segment.data.hi
bernate.profiles.LValue -> crit_expression_values
12:35:37,463 INFO [LocalSessionFactoryBean] Building new Hibernate SessionFacto
ry
12:35:37,463 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.profiles.ColumnClause.ColumnClauseColumns -> crit_column_clause_column
12:35:37,463 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.querybuilding.DataSource.tables -> seg_table
12:35:37,463 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.querybuilding.DataSource.dataTypes -> seg_datasource_datatype
12:35:37,463 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.profiles.ExpressionClause.expressionGroups -> crit_expression_group
12:35:37,463 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.profiles.ExpressionGroup.expressions -> crit_expression
12:35:37,463 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.profiles.ExpressionGroup.expressionGroups -> crit_expression_group
12:35:37,463 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.profiles.InExpression.value -> crit_expression_values
12:35:37,463 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.profiles.Profile.segments -> seg_segment
12:35:37,463 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.querybuilding.Join.joinColumns -> seg_join_column
12:35:37,463 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.querybuilding.Role.tableRolePermissions -> seg_table_role_permission
12:35:37,463 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.segments.Segment.households -> seg_segment_household
12:35:37,463 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.segments.Household.card -> seg_segment_household_card
12:35:37,478 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.querybuilding.Table.rolePermissions -> seg_table_role_permission
12:35:37,478 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.querybuilding.Table.columns -> seg_column
12:35:37,478 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.querybuilding.TableRolePermission.columnRolePermissions -> seg_column_
role_permission
12:35:37,494 INFO [ConnectionProviderFactory] Initializing connection provider:
org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
12:35:39,135 INFO [SettingsFactory] RDBMS: Microsoft SQL Server, version: 9.00.
1399
12:35:39,135 INFO [SettingsFactory] JDBC driver: Microsoft SQL Server 2005 JDBC
Driver, version: 1.0.809.102
12:35:39,182 INFO [Dialect] Using dialect: org.hibernate.dialect.SQLServerDiale
ct
12:35:39,197 INFO [TransactionFactoryFactory] Transaction strategy: org.hiberna
te.transaction.JTATransactionFactory
12:35:39,619 INFO [NamingHelper] JNDI InitialContext properties:{}
12:35:39,619 INFO [TransactionManagerLookupFactory] instantiating TransactionMa
nagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
12:35:39,619 INFO [TransactionManagerLookupFactory] instantiated TransactionMan
agerLookup
12:35:39,635 INFO [SettingsFactory] Automatic flush during beforeCompletion():
enabled
12:35:39,635 INFO [SettingsFactory] Automatic session close at end of transacti
on: enabled
12:35:39,635 INFO [SettingsFactory] Scrollable result sets: enabled
12:35:39,635 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
12:35:39,635 INFO [SettingsFactory] Connection release mode: on_close
12:35:39,635 INFO [SettingsFactory] Default batch fetch size: 1
12:35:39,635 INFO [SettingsFactory] Generate SQL with comments: disabled
12:35:39,635 INFO [SettingsFactory] Order SQL updates by primary key: disabled
12:35:39,635 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.AST
QueryTranslatorFactory
12:35:39,635 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
12:35:39,635 INFO [SettingsFactory] Query language substitutions: {}
12:35:39,635 INFO [SettingsFactory] Second-level cache: disabled
12:35:39,635 INFO [SettingsFactory] Query cache: disabled
12:35:39,650 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
12:35:39,650 INFO [SettingsFactory] Structured second-level cache entries: disa
bled
12:35:39,666 INFO [SettingsFactory] Statistics: disabled
12:35:39,666 INFO [SettingsFactory] Deleted entity synthetic identifier rollbac
k: disabled
12:35:39,666 INFO [SettingsFactory] Default entity-mode: pojo
12:35:39,728 INFO [SessionFactoryImpl] building session factory
12:35:40,572 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no
JNDI name configured
12:35:40,572 INFO [NamingHelper] JNDI InitialContext properties:{}
12:35:41,135 INFO [DefaultAopProxyFactory] CGLIB2 available: proxyTargetClass f
eature enabled
12:35:42,103 INFO [ApplicationContextLoaderImpl] Bean factory [komodospr] binde
d to local JNDI.
12:35:42,103 INFO [SpringApplicationContextDeployer] Deployed Spring: file:/C:/
Program Files/jboss-4.0.4.GA/server/default/tmp/deploy/tmp25694komodo.ear-conten
ts/komodo.spring
12:35:42,166 INFO [TomcatDeployer] deploy, ctxPath=/komodo, warUrl=.../tmp/depl
oy/tmp25694komodo.ear-contents/komodo-exp.war/
12:35:43,322 WARN [Digester] [ConverterRule]{faces-config/converter} Merge(null
,java.math.BigDecimal)
12:35:43,338 WARN [Digester] [ConverterRule]{faces-config/converter} Merge(null
,java.math.BigInteger)
12:35:43,869 WARN [Digester] [NavigationRuleRule]{faces-config/navigation-rule}
Merge(/ppage.jsp)
12:35:43,885 WARN [Digester] [ValidatorRule]{faces-config/validator} Merge(Vali
dDate)
12:35:43,885 WARN [Digester] [ValidatorRule]{faces-config/validator} Merge(Date
RangeValidator)
12:35:43,885 WARN [Digester] [ValidatorRule]{faces-config/validator} Merge(ZipC
odeValidator)
12:35:44,900 INFO [ContextLoader] Root WebApplicationContext: initialization st
arted
12:35:44,916 INFO [[/komodo]] Loading Spring root WebApplicationContext
12:35:44,932 INFO [ContextLoader] Getting parent context definition: using pare
nt context key of 'komodo-context' with BeanFactoryLocator
12:35:45,150 INFO [CollectionFactory] JDK 1.4+ collections available
12:35:45,150 INFO [XmlBeanDefinitionReader] Loading XML bean definitions from U
RL [file:/C:/Program Files/jboss-4.0.4.GA/server/default/tmp/deploy/tmp25694komo
do.ear-contents/komodo-exp.war/WEB-INF/beanRefContext.xml]
12:35:45,197 INFO [ClassPathXmlApplicationContext] Bean factory for application
context [org.springframework.context.support.ClassPathXmlApplicationContext;has
hCode=9043557]: org.springframework.beans.factory.support.DefaultListableBeanFac
tory defining beans [komodo-context]; root of BeanFactory hierarchy
12:35:45,228 INFO [ClassPathXmlApplicationContext] 1 beans defined in applicati
on context [org.springframework.context.support.ClassPathXmlApplicationContext;h
ashCode=9043557]
12:35:45,244 INFO [ClassPathXmlApplicationContext] Unable to locate MessageSour
ce with name 'messageSource': using default [org.springframework.context.support
.DelegatingMessageSource at 16c6b08]
12:35:45,260 INFO [ClassPathXmlApplicationContext] Unable to locate Application
EventMulticaster with name 'applicationEventMulticaster': using default [org.spr
ingframework.context.event.SimpleApplicationEventMulticaster at e6e42e]
12:35:45,260 INFO [DefaultListableBeanFactory] Pre-instantiating singletons in
factory [org.springframework.beans.factory.support.DefaultListableBeanFactory de
fining beans [komodo-context]; root of BeanFactory hierarchy]
12:35:45,369 INFO [XmlBeanDefinitionReader] Loading XML bean definitions from U
RL [jar:file:/C:/Program Files/jboss-4.0.4.GA/server/default/tmp/deploy/tmp25694
komodo.ear-contents/komodo.spring!/META-INF/jboss-spring.xml]
12:35:45,557 INFO [ClassPathXmlApplicationContext] Bean factory for application
context [org.springframework.context.support.ClassPathXmlApplicationContext;has
hCode=13646336]: org.springframework.beans.factory.support.DefaultListableBeanFa
ctory defining beans [kmDataSource,jndiTMan,jndiUT,transactionManager,intercepto
rTemplate,sessionFactory,aggregateFunctionDao,columnDao,columnClauseDao,selectDa
o,groupByDao,orderByDao,columnRoleDao,dataSourceDao,dsDataTypeDao,expressionClau
seDao,expressionGroupDao,expressionOperandDao,expressionsDao,betweenExpDao,inExp
Dao,householdDao,hholdCardDao,partnerDao,permissionDao,profileDao,columnClauseCo
lumnDao,endValueDao,startValueDao,lValueDao,joinColumnDao,joinDao,roleDao,segmen
tDao,spendLevelDao,tableDao,tableRoleDao,userDao,upcListsDao,valueDao,dataInterf
ace,userServiceTarget,uServiceTx,userService,segmentServiceTarget,sServiceTx,seg
mentService,profileServiceTarget,pServiceTx,profileService,tableServiceTarget,tS
erviceTx,tableService,functionServiceTarget,fServiceTx,oFunctionService,criteria
ServiceTarget,cServiceTx,criteriaService,expressionServiceTarget,eServiceTx,expr
essionService,clauseServiceTarget,clServiceTx,clauseService,partnerServiceTarget
,ptServiceTx,partnerService,roleServiceTarget,rServiceTx,roleService,upcListServ
iceTarget,ulServiceTx,upcService]; root of BeanFactory hierarchy
12:35:45,557 INFO [ClassPathXmlApplicationContext] 74 beans defined in applicat
ion context [org.springframework.context.support.ClassPathXmlApplicationContext;
hashCode=13646336]
12:35:45,557 INFO [ClassPathXmlApplicationContext] Unable to locate MessageSour
ce with name 'messageSource': using default [org.springframework.context.support
.DelegatingMessageSource at 334bfe]
12:35:45,557 INFO [ClassPathXmlApplicationContext] Unable to locate Application
EventMulticaster with name 'applicationEventMulticaster': using default [org.spr
ingframework.context.event.SimpleApplicationEventMulticaster at 1c24b45]
12:35:45,557 INFO [DefaultListableBeanFactory] Pre-instantiating singletons in
factory [org.springframework.beans.factory.support.DefaultListableBeanFactory de
fining beans [kmDataSource,jndiTMan,jndiUT,transactionManager,interceptorTemplat
e,sessionFactory,aggregateFunctionDao,columnDao,columnClauseDao,selectDao,groupB
yDao,orderByDao,columnRoleDao,dataSourceDao,dsDataTypeDao,expressionClauseDao,ex
pressionGroupDao,expressionOperandDao,expressionsDao,betweenExpDao,inExpDao,hous
eholdDao,hholdCardDao,partnerDao,permissionDao,profileDao,columnClauseColumnDao,
endValueDao,startValueDao,lValueDao,joinColumnDao,joinDao,roleDao,segmentDao,spe
ndLevelDao,tableDao,tableRoleDao,userDao,upcListsDao,valueDao,dataInterface,user
ServiceTarget,uServiceTx,userService,segmentServiceTarget,sServiceTx,segmentServ
ice,profileServiceTarget,pServiceTx,profileService,tableServiceTarget,tServiceTx
,tableService,functionServiceTarget,fServiceTx,oFunctionService,criteriaServiceT
arget,cServiceTx,criteriaService,expressionServiceTarget,eServiceTx,expressionSe
rvice,clauseServiceTarget,clServiceTx,clauseService,partnerServiceTarget,ptServi
ceTx,partnerService,roleServiceTarget,rServiceTx,roleService,upcListServiceTarge
t,ulServiceTx,upcService]; root of BeanFactory hierarchy]
12:35:45,650 INFO [JtaTransactionManager] Using JTA UserTransaction: org.jboss.
tm.usertx.client.ServerVMClientUserTransaction at 132a4df
12:35:45,650 INFO [JtaTransactionManager] Using JTA TransactionManager: org.jbo
ss.tm.TxManager at 1e6385e
12:35:45,697 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.profiles.AggregateFunction -> crit_aggregate_function
12:35:45,713 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.querybuilding.Column -> seg_column
12:35:45,713 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.profiles.ColumnClause -> crit_column_clause
12:35:45,713 INFO [HbmBinder] Mapping subclass: com.shsolutions.segment.data.hi
bernate.profiles.Select -> crit_column_clause
12:35:45,713 INFO [HbmBinder] Mapping subclass: com.shsolutions.segment.data.hi
bernate.profiles.GroupBy -> crit_column_clause
12:35:45,713 INFO [HbmBinder] Mapping subclass: com.shsolutions.segment.data.hi
bernate.profiles.OrderBy -> crit_column_clause
12:35:45,728 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.querybuilding.ColumnRolePermission -> seg_column_role_permission
12:35:45,744 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.querybuilding.DataSource -> seg_datasource
12:35:45,744 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.querybuilding.DataSourceDataType -> seg_datasource_datatype
12:35:45,760 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.profiles.ExpressionClause -> crit_expression_clause
12:35:45,760 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.profiles.ExpressionGroup -> crit_expression_group
12:35:45,775 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.profiles.ExpressionOperand -> crit_operand
12:35:45,791 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.profiles.AExpression -> crit_expression
12:35:45,791 INFO [HbmBinder] Mapping subclass: com.shsolutions.segment.data.hi
bernate.profiles.Expression -> crit_expression
12:35:45,791 INFO [HbmBinder] Mapping subclass: com.shsolutions.segment.data.hi
bernate.profiles.BetweenExpression -> crit_expression
12:35:45,791 INFO [HbmBinder] Mapping subclass: com.shsolutions.segment.data.hi
bernate.profiles.InExpression -> crit_expression
12:35:45,807 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.querybuilding.Partner -> seg_partner
12:35:45,807 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.querybuilding.Partner.users -> seg_user_partner
12:35:45,807 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.querybuilding.Permission -> seg_permission
12:35:45,822 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.profiles.Profile -> crit_criteria
12:35:45,822 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.profiles.Profile.joins -> crit_join
12:35:45,838 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.profiles.ColumnClauseColumn -> crit_column_clause_column
12:35:45,853 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.querybuilding.Join -> seg_join
12:35:45,853 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.querybuilding.JoinColumn -> seg_join_column
12:35:45,869 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.querybuilding.Role -> seg_role
12:35:45,869 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.querybuilding.Role.users -> seg_user_role
12:35:45,885 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.segments.Segment -> seg_segment
12:35:45,900 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.segments.Household -> seg_segment_household
12:35:45,900 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.segments.HouseholdCard -> seg_segment_household_card
12:35:45,916 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.segments.SpendLevel -> seg_segment_spend_level
12:35:45,932 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.querybuilding.Table -> seg_table
12:35:45,932 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.querybuilding.TableRolePermission -> seg_table_role_permission
12:35:45,947 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.querybuilding.User -> seg_user
12:35:45,947 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.querybuilding.User.partners -> seg_user_partner
12:35:45,947 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.querybuilding.User.roles -> seg_user_role
12:35:45,963 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.profiles.UPCLists -> upc_lists
12:35:45,963 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.profiles.UPCLists.expressions -> upclist_expression
12:35:45,978 INFO [HbmBinder] Mapping class: com.shsolutions.segment.data.hiber
nate.profiles.AValue -> crit_expression_values
12:35:45,978 INFO [HbmBinder] Mapping subclass: com.shsolutions.segment.data.hi
bernate.profiles.Value -> crit_expression_values
12:35:45,978 INFO [HbmBinder] Mapping subclass: com.shsolutions.segment.data.hi
bernate.profiles.StartValue -> crit_expression_values
12:35:45,978 INFO [HbmBinder] Mapping subclass: com.shsolutions.segment.data.hi
bernate.profiles.EndValue -> crit_expression_values
12:35:45,978 INFO [HbmBinder] Mapping subclass: com.shsolutions.segment.data.hi
bernate.profiles.LValue -> crit_expression_values
12:35:45,978 INFO [LocalSessionFactoryBean] Building new Hibernate SessionFacto
ry
12:35:45,978 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.profiles.ColumnClause.ColumnClauseColumns -> crit_column_clause_column
12:35:45,978 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.querybuilding.DataSource.tables -> seg_table
12:35:45,978 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.querybuilding.DataSource.dataTypes -> seg_datasource_datatype
12:35:45,978 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.profiles.ExpressionClause.expressionGroups -> crit_expression_group
12:35:45,978 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.profiles.ExpressionGroup.expressions -> crit_expression
12:35:45,978 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.profiles.ExpressionGroup.expressionGroups -> crit_expression_group
12:35:45,978 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.profiles.InExpression.value -> crit_expression_values
12:35:45,978 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.profiles.Profile.segments -> seg_segment
12:35:45,978 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.querybuilding.Join.joinColumns -> seg_join_column
12:35:45,978 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.querybuilding.Role.tableRolePermissions -> seg_table_role_permission
12:35:45,978 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.segments.Segment.households -> seg_segment_household
12:35:45,978 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.segments.Household.card -> seg_segment_household_card
12:35:45,978 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.querybuilding.Table.rolePermissions -> seg_table_role_permission
12:35:45,978 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.querybuilding.Table.columns -> seg_column
12:35:45,978 INFO [HbmBinder] Mapping collection: com.shsolutions.segment.data.
hibernate.querybuilding.TableRolePermission.columnRolePermissions -> seg_column_
role_permission
12:35:45,994 INFO [ConnectionProviderFactory] Initializing connection provider:
org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
12:35:45,994 INFO [SettingsFactory] RDBMS: Microsoft SQL Server, version: 9.00.
1399
12:35:45,994 INFO [SettingsFactory] JDBC driver: Microsoft SQL Server 2005 JDBC
Driver, version: 1.0.809.102
12:35:45,994 INFO [Dialect] Using dialect: org.hibernate.dialect.SQLServerDiale
ct
12:35:45,994 INFO [TransactionFactoryFactory] Transaction strategy: org.hiberna
te.transaction.JTATransactionFactory
12:35:45,994 INFO [NamingHelper] JNDI InitialContext properties:{}
12:35:45,994 INFO [TransactionManagerLookupFactory] instantiating TransactionMa
nagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
12:35:45,994 INFO [TransactionManagerLookupFactory] instantiated TransactionMan
agerLookup
12:35:45,994 INFO [SettingsFactory] Automatic flush during beforeCompletion():
enabled
12:35:45,994 INFO [SettingsFactory] Automatic session close at end of transacti
on: enabled
12:35:45,994 INFO [SettingsFactory] Scrollable result sets: enabled
12:35:45,994 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
12:35:45,994 INFO [SettingsFactory] Connection release mode: on_close
12:35:45,994 INFO [SettingsFactory] Default batch fetch size: 1
12:35:45,994 INFO [SettingsFactory] Generate SQL with comments: disabled
12:35:45,994 INFO [SettingsFactory] Order SQL updates by primary key: disabled
12:35:45,994 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.AST
QueryTranslatorFactory
12:35:45,994 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
12:35:45,994 INFO [SettingsFactory] Query language substitutions: {}
12:35:45,994 INFO [SettingsFactory] Second-level cache: disabled
12:35:45,994 INFO [SettingsFactory] Query cache: disabled
12:35:45,994 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
12:35:45,994 INFO [SettingsFactory] Structured second-level cache entries: disa
bled
12:35:45,994 INFO [SettingsFactory] Statistics: disabled
12:35:45,994 INFO [SettingsFactory] Deleted entity synthetic identifier rollbac
k: disabled
12:35:45,994 INFO [SettingsFactory] Default entity-mode: pojo
12:35:46,010 INFO [SessionFactoryImpl] building session factory
12:35:46,994 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no
JNDI name configured
12:35:46,994 INFO [NamingHelper] JNDI InitialContext properties:{}
12:35:47,728 INFO [DefaultAopProxyFactory] CGLIB2 available: proxyTargetClass f
eature enabled
12:35:48,588 INFO [XmlBeanDefinitionReader] Loading XML bean definitions from S
ervletContext resource [/WEB-INF/komodo-servlet.xml]
12:35:48,603 INFO [XmlWebApplicationContext] Bean factory for application conte
xt [Root WebApplicationContext]: org.springframework.beans.factory.support.Defau
ltListableBeanFactory defining beans []; parent: org.springframework.beans.facto
ry.support.DefaultListableBeanFactory defining beans [kmDataSource,jndiTMan,jndi
UT,transactionManager,interceptorTemplate,sessionFactory,aggregateFunctionDao,co
lumnDao,columnClauseDao,selectDao,groupByDao,orderByDao,columnRoleDao,dataSource
Dao,dsDataTypeDao,expressionClauseDao,expressionGroupDao,expressionOperandDao,ex
pressionsDao,betweenExpDao,inExpDao,householdDao,hholdCardDao,partnerDao,permiss
ionDao,profileDao,columnClauseColumnDao,endValueDao,startValueDao,lValueDao,join
ColumnDao,joinDao,roleDao,segmentDao,spendLevelDao,tableDao,tableRoleDao,userDao
,upcListsDao,valueDao,dataInterface,userServiceTarget,uServiceTx,userService,seg
mentServiceTarget,sServiceTx,segmentService,profileServiceTarget,pServiceTx,prof
ileService,tableServiceTarget,tServiceTx,tableService,functionServiceTarget,fSer
viceTx,oFunctionService,criteriaServiceTarget,cServiceTx,criteriaService,express
ionServiceTarget,eServiceTx,expressionService,clauseServiceTarget,clServiceTx,cl
auseService,partnerServiceTarget,ptServiceTx,partnerService,roleServiceTarget,rS
erviceTx,roleService,upcListServiceTarget,ulServiceTx,upcService]; root of BeanF
actory hierarchy
12:35:48,603 INFO [XmlWebApplicationContext] No beans defined in application co
ntext [Root WebApplicationContext]
12:35:48,603 INFO [XmlWebApplicationContext] Unable to locate MessageSource wit
h name 'messageSource': using default [org.springframework.context.support.Deleg
atingMessageSource at 13cbbbf]
12:35:48,603 INFO [XmlWebApplicationContext] Unable to locate ApplicationEventM
ulticaster with name 'applicationEventMulticaster': using default [org.springfra
mework.context.event.SimpleApplicationEventMulticaster at 4a1908]
12:35:48,635 INFO [UiApplicationContextUtils] Unable to locate ThemeSource with
name 'themeSource': using default [org.springframework.ui.context.support.Resou
rceBundleThemeSource at 116f2e6]
12:35:48,635 INFO [DefaultListableBeanFactory] Pre-instantiating singletons in
factory [org.springframework.beans.factory.support.DefaultListableBeanFactory de
fining beans []; parent: org.springframework.beans.factory.support.DefaultListab
leBeanFactory defining beans [kmDataSource,jndiTMan,jndiUT,transactionManager,in
terceptorTemplate,sessionFactory,aggregateFunctionDao,columnDao,columnClauseDao,
selectDao,groupByDao,orderByDao,columnRoleDao,dataSourceDao,dsDataTypeDao,expres
sionClauseDao,expressionGroupDao,expressionOperandDao,expressionsDao,betweenExpD
ao,inExpDao,householdDao,hholdCardDao,partnerDao,permissionDao,profileDao,column
ClauseColumnDao,endValueDao,startValueDao,lValueDao,joinColumnDao,joinDao,roleDa
o,segmentDao,spendLevelDao,tableDao,tableRoleDao,userDao,upcListsDao,valueDao,da
taInterface,userServiceTarget,uServiceTx,userService,segmentServiceTarget,sServi
ceTx,segmentService,profileServiceTarget,pServiceTx,profileService,tableServiceT
arget,tServiceTx,tableService,functionServiceTarget,fServiceTx,oFunctionService,
criteriaServiceTarget,cServiceTx,criteriaService,expressionServiceTarget,eServic
eTx,expressionService,clauseServiceTarget,clServiceTx,clauseService,partnerServi
ceTarget,ptServiceTx,partnerService,roleServiceTarget,rServiceTx,roleService,upc
ListServiceTarget,ulServiceTx,upcService]; root of BeanFactory hierarchy]
12:35:48,635 INFO [ContextLoader] Using context class [org.springframework.web.
context.support.XmlWebApplicationContext] for root WebApplicationContext
12:35:48,635 INFO [ContextLoader] Root WebApplicationContext: initialization co
mpleted in 3735 ms
12:35:48,650 INFO [TilesServlet] Start Tiles initialization
12:35:48,791 INFO [TilesServlet] Try to load Tiles factory
12:35:48,838 INFO [PropertyMessageResources] Initializing, config='org.apache.s
truts.util.LocalStrings', returnNull=true
12:35:48,932 INFO [TilesServlet] Tiles Factory successfully loaded
12:35:49,010 INFO [EARDeployer] Started J2EE application: file:/C:/Program File
s/jboss-4.0.4.GA/server/default/deploy/komodo.ear
12:35:49,197 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0
-8080
12:35:49,353 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
12:35:49,385 INFO [JkMain] Jk running ID=0 time=0/94 config=null
12:35:49,385 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBos
s_4_0_4_GA date=200605151000)] Started in 1m:266ms
12:37:45,135 WARN [JtaTransactionManager] Should roll back transaction but cann
ot - no transaction available
12:37:45,135 ERROR [UserBean] Could not log in user. Internal Error.
java.lang.IllegalStateException: No Hibernate Session bound to thread, and confi
guration does not allow creation of non-transactional one here
at org.springframework.orm.hibernate3.SessionFactoryUtils.doGetSession(S
essionFactoryUtils.java:358)
any help will be appreciated,
best regards
Salvador Velasco
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973949#3973949
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973949
More information about the jboss-user
mailing list