Back Forum Reply New

org.springframework.beans.factory.BeanCreationExce ption

Hi ,
When i upload my application on tomcat5.5, i get the following error message:

Caused by:
org..beans.factory.BeanCreationExce  ption: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB
-INF/applicationContext-hibernate.xml]: Invocation of init method failed; nested exception is java.lang.InternalError: java.lang.reflect.Invocat
ionTargetException
Caused by:
java.lang.InternalError: java.lang.reflect.InvocationTargetException       at java.lang.Class.copyMethods(Class.java:2404)       at java.lang.Class.lookupCachedMethods(Class.java:242  5)       at java.lang.Class.getDeclaredMethods(Class.java:660)       at org.hibernate.property.BasicPropertyAccessor.sette  rMethod(BasicPropertyAccessor.java:254)       at org.hibernate.property.BasicPropertyAccessor.getSe  tterOrNull(BasicPropertyAccessor.java:230)

I have checked all jars related to spring and hibernate.

Part of my applicationContext-hibernate.xml looks like this :
lt;!-- enable the configuration of transactional behavior based on annotations --gt;   lt;tx:annotation-driven transaction-manager=quot;transactionManagerquot;/gt;

lt;bean id=quot;transactionManagerquot; class=quot;org..orm.hibernate3.Hibernat  eTransactionManagerquot;gt;
lt;property name=quot;sessionFactoryquot;gt;
lt;ref local=quot;sessionFactoryquot; /gt;
lt;/propertygt;
lt;/beangt;

lt;bean id=quot;dataSourcequot; class=quot;org..jndi.JndiObjectFactoryB  eanquot;gt;
lt;property name=quot;jndiNamequot; value=quot;java:/comp/env/jdbc/mtrackquot; /gt;
lt;/beangt;

lt;bean id=quot;sessionFactoryquot; class=quot;org..orm.hibernate3.LocalSes  sionFactoryBeanquot;gt;
lt;property name=quot;dataSourcequot;gt;
lt;ref bean=quot;dataSourcequot;/gt;
lt;/propertygt;
lt;property name=quot;hibernatePropertiesquot;gt;
lt;propsgt;
lt;prop key=quot;hibernate.dialectquot;gt;
org.hibernate.dialect.DB2Dialect
lt;/propgt;
lt;prop key=quot;hibernate.show_sqlquot;gt;truelt;/propgt;
lt;prop key=quot;hibernate.max_fetch_depthquot;gt;2lt;/propgt;
lt;/propsgt;
lt;/propertygt;
lt;property name=quot;mappingResourcesquot;gt;
lt;listgt;
lt;valuegt;hibernate/mapping/AppUser.hbm.xmllt;/valuegt;
lt;valuegt;hibernate/mapping/ChartingGuide.hbm.xmllt;/valuegt;
lt;valuegt;hibernate/mapping/ChartingGuideTypeCode.hbm.xmllt;/valuegt;
lt;valuegt;hibernate/mapping/CptPanelCode.hbm.xmllt;/valuegt;
lt;valuegt;hibernate/mapping/Encounter.hbm.xmllt;/valuegt;
lt;valuegt;hibernate/mapping/EncounterTypeCode.hbm.xmllt;/valuegtart of my web.xml :

lt;web-appgt;
lt;context-paramgt; lt;param-namegt;contextConfigLocationlt;/param-namegt;  lt;param-valuegt;
/WEB-INF/aop-logging.xml
/WEB-INF/applicationContext.xml
/WEB-INF/applicationContext-dao.xml
/WEB-INF/applicationContext-dwr.xml
/WEB-INF/applicationContext-hibernate.xml
/WEB-INF/applicationContext-schedule.xml
lt;/param-valuegt;  lt;/context-paramgt;
lt;filtergt;
lt;filter-namegt;HibernateFilterlt;/filter-namegt;
lt;filter-classgt;otrack.med.hibernate.HibernateSessionRequest  Filterlt;/filter-classgt;
lt;/filtergt;
lt;filtergt;
lt;filter-namegt;RequestFilterlt;/filter-namegt;
lt;filter-classgt;otrack.med.RequestFilterlt;/filter-classgt;
lt;/filtergt;

lt;filter-mappinggt;       lt;filter-namegt;RequestFilterlt;/filter-namegt;       lt;ucl-patterngt;/*lt;/ucl-patterngt;   lt;/filter-mappinggt;

lt;filter-mappinggt;
lt;filter-namegt;HibernateFilterlt;/filter-namegt;
lt;servlet-namegt;actionlt;/servlet-namegt;
lt;/filter-mappinggt;
lt;filtergt;
lt;filter-namegt;AppUserFilterlt;/filter-namegt;
lt;filter-classgt;us.sc.state.doc.appsecurity.AppUserFilterlt;/filter-classgt;
lt;/filtergt;
lt;filter-mappinggt;
lt;filter-namegt;AppUserFilterlt;/filter-namegt;
lt;ucl-patterngt;/*lt;/ucl-patterngt;
lt;/filter-mappinggt;

lt;servletgt; lt;servlet-namegt;SpringContextServletlt;/servlet-namegt; lt;servlet-classgt;org..web.context.ContextLoade  rServletlt;/servlet-classgt;   lt;load-on-startupgt;1lt;/load-on-startupgt;
lt;/servletgt;
  
Any help will be appreciated.
¥
Back Forum Reply New