This discussion is archived
3 Replies Latest reply: Oct 12, 2011 3:30 AM by 892886 RSS

Messaging pattern and hibernate L2 cache configuration

892886 Newbie
Currently Being Moderated
Hello all,

I need messaging pattern and hibernate L2 cache configuration for our web application. Our application uses Spring 3.0.5 and Hibernate 3.6.5
I put tangosol-coherence-override.xml on classpath which is

<?xml version="1.0" encoding="UTF-8"?>
<coherence
     xmlns="http://xmlns.oracle.com/coherence/coherence-operational-config"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-operational-config http://xmlns.oracle.com/coherence/coherence-operational-config/1.0/coherence-operational-config.xsd">

     <configurable-cache-factory-config>
          <class-name>com.oracle.coherence.environment.extensible.ExtensibleEnvironment</class-name>
          <init-params>
               <init-param>
                    <param-type>java.lang.String</param-type>
                    <param-value>coherence-messagingpattern-cache-config.xml</param-value>
               </init-param>
          </init-params>
     </configurable-cache-factory-config>
</coherence>

when I try to run application, I hit an error :

2011-10-06 18:02:45.748/72.575 Oracle Coherence 3.7.0.2 <Info> (thread=main, member=n/a): Loaded operational configuration from "jar:file:/home/omer/.m2/repository/com/oracle/coherence/3.7.0.2/coherence-3.7.0.2.jar!/tangosol-coherence.xml"
2011-10-06 18:02:45.978/72.805 Oracle Coherence 3.7.0.2 <Info> (thread=main, member=n/a): Loaded operational overrides from "jar:file:/home/omer/.m2/repository/com/oracle/coherence/3.7.0.2/coherence-3.7.0.2.jar!/tangosol-coherence-override-dev.xml"
2011-10-06 18:02:46.277/73.104 Oracle Coherence 3.7.0.2 <Info> (thread=main, member=n/a): Loaded operational overrides from "file:/home/omer/Documents/workspace-sts-2.7.2.RELEASE/kangurum4/kweb/target/classes/tangosol-coherence-override.xml"
2011-10-06 18:02:46.279/73.106 Oracle Coherence 3.7.0.2 <D5> (thread=main, member=n/a): Optional configuration override "/custom-mbeans.xml" is not specified

Oracle Coherence Version 3.7.0.2 Build 25173
Grid Edition: Development mode
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

2011-10-06 18:02:48.298/75.125 Oracle Coherence GE 3.7.0.2 <Warning> (thread=main, member=n/a): UnicastUdpSocket failed to set receive buffer size to 16 packets (1023KB); actual size is 12%, 2 packets (127KB). Consult your OS documentation regarding increasing the maximum socket buffer size. Proceeding with the actual value may cause sub-optimal performance.
2011-10-06 18:02:48.298/75.125 Oracle Coherence GE 3.7.0.2 <Warning> (thread=main, member=n/a): PreferredUnicastUdpSocket failed to set receive buffer size to 1444 packets (1.99MB); actual size is 6%, 90 packets (127KB). Consult your OS documentation regarding increasing the maximum socket buffer size. Proceeding with the actual value may cause sub-optimal performance.
2011-10-06 18:02:48.298/75.125 Oracle Coherence GE 3.7.0.2 <D4> (thread=main, member=n/a): TCMP bound to /172.30.3.19:8088 using SystemSocketProvider
2011-10-06 18:02:48.299/75.126 Oracle Coherence GE 3.7.0.2 <Warning> (thread=main, member=n/a): MulticastUdpSocket failed to set receive buffer size to 16 packets (1023KB); actual size is 12%, 2 packets (127KB). Consult your OS documentation regarding increasing the maximum socket buffer size. Proceeding with the actual value may cause sub-optimal performance.
2011-10-06 18:02:51.733/78.560 Oracle Coherence GE 3.7.0.2 <Info> (thread=Cluster, member=n/a): Created a new cluster "cluster:0x96AB" with Member(Id=1, Timestamp=2011-10-06 18:02:48.3, Address=172.30.3.19:8088, MachineId=45331, Location=process:19810, Role=CodehausClassworldsLauncher, Edition=Grid Edition, Mode=Development, CpuCount=2, SocketCount=1) UID=0xAC1E031300000132D9C216ECB1131F98
2011-10-06 18:02:51.740/78.567 Oracle Coherence GE 3.7.0.2 <Info> (thread=main, member=n/a): Started cluster Name=cluster:0x96AB

Group{Address=224.3.7.0, Port=37000, TTL=4}

MasterMemberSet
(
ThisMember=Member(Id=1, Timestamp=2011-10-06 18:02:48.3, Address=172.30.3.19:8088, MachineId=45331, Location=process:19810, Role=CodehausClassworldsLauncher)
OldestMember=Member(Id=1, Timestamp=2011-10-06 18:02:48.3, Address=172.30.3.19:8088, MachineId=45331, Location=process:19810, Role=CodehausClassworldsLauncher)
ActualMemberSet=MemberSet(Size=1, BitSetCount=2
Member(Id=1, Timestamp=2011-10-06 18:02:48.3, Address=172.30.3.19:8088, MachineId=45331, Location=process:19810, Role=CodehausClassworldsLauncher)
)
RecycleMillis=1200000
RecycleSet=MemberSet(Size=0, BitSetCount=0
)
)

TcpRing{Connections=[]}
IpMonitor{AddressListSize=0}

2011-10-06 18:02:51.848/78.675 Oracle Coherence GE 3.7.0.2 <D5> (thread=Invocation:Management, member=1): Service Management joined the cluster with senior service member 1
2011-10-06 18:02:51,921 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] ? - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@44d03877: defining beans [sbuController,jsmessagesController,whoDidThisStuffController,mainController,mainKangurumController,applicationConfigController,velocityConfig,jsonTestController,bannerFormController,bannerListController,addRecommendedProductController,displayShoppingCartsController,processShoppingCartsController,campaignsController,crossPromotionsController,customProductsListController,giftDiscountsController,mainMigroskopDiscountsController,migrosClubDiscountsController,migroskopDiscountsController,migroskopHeadLightsController,notificationController,customerSegmentProcessController,addSubCategoryController,customerServiceLoginController,comparisonController,comparisonKangurumController,customerOpinionFormKangurumController,adviceProductModelListingController,applicationController,applicationCustomerProductCommentFormController,applicationCustomerServiceFormController,applicationMessageFormController,browseCategoryListController,browseShopsListController,customerOpinionFormController,deliveryCityListXmlController,deliveryLocationSelectionController,fastPurchaseController,migroskopCategoryListingController,productCommentFormController,productDetailController,productDetailKangurumController,productListXmlController,psiDiscountProcessController,shopProductModelListingController,suggestProductFormController,tabProductModelListingController,browseShopCatalogController,productModelListingController,addToBasketResultController,jobRequestController,jobRequestFormController,newsletterController,termsAndPrivacyController,sbuCategoryContentsController,sbuContentDetailController,sbuContentsController,staticPageController,airCustomerAdviceController,dwrCustomerAdviceController,companyController,complaintSuggestionFormController,customerAlertsController,dataMigrationController,customerEasyCheckoutDefinitionFormController,customerMyAccountController,customerNoteController,customerRegistration2FormController,customerRegistrationFormController,customerRegistrationOneColumnFormController,customerRegistrationOneColumnFormValidator,customerServiceFormController,favoritesController,feedbackFormController,generateMCCNoController,loginController,loginRegistrationOneColumnController,logoutController,mcDonaldsController,migrosClubCardListController,moneyCardController,regionalCapacitiesController,sendPasswordFormController,donationController,donationProductListingController,dwrUtils,dwrBasketController,dwrComparisonController,dwrContentController,dwrController,dwrFavoriteController,dwrProductDetailController,bulkMailFeedbackController,bulkMailSendController,emailSendController,unsubcribeFromEmailingListController,facebookAccountTabController,facebookContentTabsController,facebookControlTabsController,facebookLoginController,facebookMigroskopTabController,facebookProductAdviceTabController,checkoutFlowDecisionController,orderPeriodicPaymentFormController,digitalSignatureController,displayOpenOrdersController,orderChangeAddressController,orderCancelController,orderCompletionController,orderContractController,orderHistoryController,orderPeriodicCancelFormController,orderPeriodicController,orderPeriodicFormController,orderPeriodicTimeFormController,orderReturnRequestFormController,ordersOptionController,orderSurveyController,orderSurveyFormController,productHistoryController,threeDSController,completeReservationController,reservationsController,quickSearchController,searchController,searchInShopController,searchResultsController,displayShoppingCartsResolver,processShoppingCartsResolver,customerSignOnInterceptor,customerSignOnRegisterInterceptor,customerNotificationInterceptor,requestTimingInterceptor,tilesConfigurer,viewResolver,localeResolver,localeChangeInterceptor,themeResolver,themeChangeInterceptor,deliveryLocationSelectionInterceptor,kangurumExceptionResolver,migrosCrmWsHelper,mobilImzaUtil,dSmartNotificationProvider,mcDonaldsUtil,invalidEmailMatchingPattern,productModelIndexingManager,productSalesInfoIndexingManager,loginRegistrationOneColumnFormValidator,checkoutFlowHelper,checkoutFlowMigrosHelper,checkoutFlowClickandPayHelper,checkoutFlowKangurumHelper,checkoutFlowDuyHelper,checkoutFlowStoreDeliveryHelper,checkoutFlowKurbanHelper,checkoutFlowPatchHelper,checkoutFlowDonationHelper,checkoutFlowValidator,categorySummaryBottom,deliveryDistrictNotificationPreparer,browseShopCatalogPreparer,greetingsPreparer,tabsPreparer,headPreparer,footerPreparer,browseCatalogPreparer,contentTabPreparer,browseShopCatalogTopPreparer,contentLinksPreparer,notificationsPreparer,debugInfoPreparer,rightColumnNotificationsPreparer,breadCrumbPreparer,breadCrumbShopCategoryPreparer,contractedCompainesPreparer,displayBasketsPreparer,shopSelectionPreparer,lastVisitedProductsPreparer,topSellerPreparer,basketProposalPreparer,customerAdviceTilesPreparer,statusBarPreparer,refreshProductAdviser,chekoutController,customerRegistrationValidator,customerRegistrationHelper,helloWorldController,localizedPageDisplay,userManager,userDAOImpl,UserDutyProcessJob,storeUser,campaignManager,campaignDAOImpl,shopOrdersTotalCondFormValidator,deliveryTimeCondFormValidator,dayOfWeekCondFormValidator,notificationFormValidator,notificationConditionSetValidator,segmentFormValidator,basketPropertyConItemFormValidator,productListOrdersTotalCondFormValidator,basketTotalCondFormValidator,customerPropertyConFormValidator,productOrdersTotalCondFormValidator,notificationDefineValidator,shopCategoryOrdersTotalCondFormValidator,orderShopTotalCondFormValidator,orderTotalCondFormValidator,queryFormValidator,productModelCrossFormValidator,productBasketsTotalCondFormValidator,ordersTotalCondFormValidator,productListBasketsTotalCondFormValidator,dateCondFormValidator,eventCondFormValidator,basketPropertyConFormValidator,customerMTSegmentConFormValidator,timeCondFormValidator,basketShopTotalCondFormValidator,notificationConditionValidator,customerSegmentConFormValidator,campaignFormValidator,customerPropertyConItemFormValidator,basketShopCategoryTotalCondFormValidator,productHasStockConFormValidator,notificationManager,sendSMSNotificationProvider,dummyNotificationProvider,giftChequeNotificationProvider,migrosCRMNotificationProvider,scheduledHomeDeliveryCapacityEventQueueListener,DeliveryTimeAddJob,shippingDAOImpl,shippingRuleFormValidator,deliveryActionFormValidator,cargoCompanyFormValidator,deliveryDistrictFormValidator,shippingServicesFormValidator,deliveryCapacityChangeFormValidator,deliveryAlternativeStoreFormValidator,deliveryOfficeFormValidator,onTheDoorPaymentFormValidator,deliveryTimeFormValidator,deliveryManager,emptyDeliveryServiceImpl,kurbanDeliveryServiceImpl,scheduledHomeDeliveryService,cargoDeliveryServiceImpl,simpleShopDeliveryServiceImpl,shippingManager,shipmentService,applicationConfigDAOImpl,applicationConfigManager,CancelOrderReportEmailJob,orderEventQueueListener,stockEventQueueListener,OrderPeriodProcessJob,ProcessMigrosOrdersJob,orderDAOImpl,migrosPersonnelFormValidator,orderPeriodicFormValidator,orderReturnRequestFormValidator,orderPeriodicPaymentFormValidator,preparingOrderFormValidator,orderPeriodicTimeFormValidator,checkoutValidator,orderSurveyFormValidator,orderPeriodicOnlineFormValidator,deliveryInProgressFormValidator,orderCancelFormValidator,orderFormValidator,orderManager,CaptureAllDeliveryInProgressOrdersJob,externalOrderEventQueueListener,ProcessPromenaOrdersJob,orderContractVelocityController,CaptureAllRelevantOrdersJob,SendEmailNotSuppliedWeeklyProductJob,conversionService,SendEmailNotSuppliedProductJob,UndeliveredOrdersReporterJob,ivrOrderProcessAddJob,scheduledSentAutonetOrdersJob,orderCreationService,CaptureAllPaymentJob,salesEventQueueListener,discountDAO,triggerFormValidator,targetFormValidator,discountEditCollectionFormValidator,discountFormValidator,discountAddCollectionValidator,DiscountPsiRefresherJob,discountManager,donationManager,donationDAOImpl,donationInstitutionProductFormValidator,donationFormValidator,donationInstituteFormValidator,paymentManager,paymentDAOImpl,bankTransactionService,valorDateFormValidator,paymentMethodFormValidator,migrosPersonnelManager,CRMPaymentsRollbackJob,creditCardInfoService,MigrosPersonnelPaymentReporterJob,applicationProperties,accountingDAOImpl,accountingManager,accountingEventQueueListener,reservationDAO,reservationManager,giftChequeDefinitionFormValidator,LatestIndexSwitcherJob,indexingThread,productSearchFormValidator,psiStoreBasedIndexingThread,psiIndexingThread,indexingJob,searchManager,fastPurchaseSearchManager,psiIndexingJob,bulkEmailDAOImpl,bulkEmailFormValidator,emailManager,BulkEmailSendingJob,basketDAO,lineItemDAOImpl,basketAdviceFormValidator,basketAdviceGroupFormValidator,basketManager,customerManager,customerDAO,addressDAOImpl,cityFormValidator,complaintSuggestionFormValidator,customerRegistrationFormValidator,loginFormValidator,customerEasyCheckoutDefinitionFormValidator,complaintSuggestionAdminFormValidator,customerFormValidator,addressFormValidator,kangurumPaymentCardFormValidator,districtFormValidator,customerRegistration2FormValidator,feedbackFormValidator,sendPasswordValidator,countryFormValidator,CustomerKocPersonnelCheckJob,addressManager,customerEasyCheckoutDefinitionController,customerService,CustomerAlertsEmailAndSmsJob,dummyController,jsMessagesController,ShopTopSellersCaptureJob,contentDAOImpl,jobRequestFormValidator,newsletterFormValidator,newsFormValidator,topNavigatorPreparer,SBUSubjectsPreparer,topNavigatorKangurumPreparer,newsPreparer,ContentLoadingJob,contentManager,productAdviceManager,mainPageEightProduct,productAdviceDAOImpl,productAdvice,tamimDAOImpl,tamimSorguFormValidator,tamimQueueSender,tamimManagerImp,CustomerOrderSummaryJob,catalogDAO,appProductFormValidator,shopFormValidator,propertyFormValidator,suggestProductFormValidator,customerOpinionFormValidator,productPacketFormValidator,shopCategoryFormValidator,applicationMessageFormValidator,contentTabFormValidator,multipleImageCategoryUpdateFormValidator,brandFormValidator,storeFormValidator,productCommentFormValidator,shopContentLinkFormValidator,productModelPropertyFormValidator,categoryFormValidator,productGroupFormValidator,productSalesInfoFormValidator,FileProductUpdatesJob,CatalogImporterJob,fileProductUpdatesSokJob,shopCatalogMapPreparer,productModelListingJsonController,saltAndPaperFastPurchaseController,ProductVatProblemJob,AllNewProductsCaptureJob,stockUpdateServiceImpl,productUpdateServiceImpl,vendorService,gluingPriceService,AllActiveDiscountsCaptureJob,catalogManager,LastPurchasedProductJob,currencyManager,currencyRateLoader,currencyDAOImpl,CurrencyRateUpdateJob,coherenceMessageMonitor,eventLoggerDAOImpl,alertEmailEventQueueListener,eventLogListController,checkSystemProcessesController,eventLogger,eventHelperOld,eventHelper,eventManagerImpl,bannerDAOImpl,bannerFormValidator,bannerManager,mainPageFreeBoxPreparer,mainPageSliderPreparer,mainPageCarouselPreparer,banner,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0,org.springframework.web.servlet.view.BeanNameViewResolver#0,tilesViewResolver,jspViewResolver,productModelListingMigrosJson,multipartResolver,controllerHandlerAdapter,openSessionInViewInterceptor,customerSessionInterceptor,modelAndViewDecisionInterceptor,minimumAmountSatisfactionInterceptor,parameterDumper,org.springframework.security.web.PortMapperImpl#0,org.springframework.security.web.context.HttpSessionSecurityContextRepository#0,org.springframework.security.web.authentication.session.SessionFixationProtectionStrategy#0,org.springframework.security.authentication.ProviderManager#0,org.springframework.security.web.access.channel.ChannelDecisionManagerImpl#0,org.springframework.security.access.vote.AffirmativeBased#0,org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0,org.springframework.security.web.access.DefaultWebInvocationPrivilegeEvaluator#0,org.springframework.security.authentication.AnonymousAuthenticationProvider#0,org.springframework.security.web.savedrequest.HttpSessionRequestCache#0,org.springframework.security.web.authentication.www.BasicAuthenticationEntryPoint#0,org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0,org.springframework.security.config.http.UserDetailsServiceInjectionBeanPostProcessor#0,org.springframework.security.filterChainProxy,org.springframework.security.authenticationManager,anonymousAuthenticationProvider,urlMapping,fullUrlMapping,urlMappingsSignOnRegisterRequired,urlMappingsSignOnRequired,urlMappingsSignOnRequiredForCheckout,urlMappingsUserProcesses,urlMappingsCustomerInSessionRequired,urlMappingsCustomerInSessionRequiredWithoutCustomerNotificationInterceptor,urlMappingDeliveryLocationSelectionAndSignOnRequired,urlMappingDeliveryLocationSelectionRequired,urlMappingDeliveryLocationSelectionRequiredWithoutCustomerNotificationInterceptor,urlMappingsNoInterceptor,flowController,simple-checkout,simple-registration,flowExecutor,securityFlowExecutionListener,flowRegistry,org.springframework.webflow.expression.spel.WebFlowSpringELExpressionParser#0,flowBuilderServices,viewFactoryCreator,checkoutFormAction,easyCheckoutFormAction,customerRegistrationOneColumnFormAction,dataSourceTarget,dataSource,commonHbSessionInterceptor,commonTransactionManager,commonTxHbAdvice,org.springframework.aop.config.internalAutoProxyCreator,ptManagerMethods,ptPerfMethods,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#1,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#2,performanceMonitorInterceptor,appProperties,scheduledHomeDeliveryServiceImpl,deliveryDestinationCityConditionImpl,orderTotalConditionImpl,migrosOrderConditionImpl,vipCustomerConditionImpl,kocPersonnelConditionImpl,externalShippingFreeConditionImpl,adminUserConditionImpl,orderDateConditionImpl,mccListConditionImpl,customerListConditionImpl,deliverToCustomerServicesResultImpl,deliverToWarehouseServiceResultImpl,customerChargedPriceResultImpl,warehouseResultImpl,migrosBankTransactionService,kangurumBankTransactionService,migrosExternalPaymentManager,kangurumExternalPaymentManager,javaMailSender,sessionFactory,transactionManager,oracleLobHandler,nativeJdbcExtractor,propertyConfigurer,messageSource,asynchTaskExecutor,applicationEventMulticaster,productAdviceTen,productAdviceMainPageEightProductTop,productAdviceMainPageEightProductBottom,productAdvicePlaceHolderMailRight1,productAdvicePlaceHolderMigrosMailRight1,productAdvicePlaceHolderMailRight2,productAdvicePlaceHolderMigrosMailRight2,productAdvicePlaceHolderMailLeft1,productAdvicePlaceHolderMigrosMailLeft1,productAdvicePlaceHolderMailLeft2,productAdvicePlaceHolderMigrosMailLeft2,productAdvicePlaceHolderMail,productAdvicePlaceHolderMigrosMail,productAdvicePlaceHolderRightTop,productAdvicePlaceHolderRightTop1,productAdvicePlaceHolderRightTop2,productAdvicePlaceHolderLeftBottom1,productAdvicePlaceHolderLeftBottom2,productAdvicePlaceHolderRightTopAfterBasket,productAdviceContentProductAdvice1,productAdviceContentProductAdvice2,productAdviceContentProductAdvice3,productAdviceContentProductAdvice4,productAdviceContentProductAdvice5,productAdviceContentProductAdvice6,productAdvicePlaceHolderSearchTopAdvice,productAdvicePlaceHolderSearchBottomAdvice,productAdvicePlaceHolderSearchResultTopAdvice,productAdvicePlaceHolderSearchResultBottomAdvice,productAdvicePlaceHolderShoppingCartsAdvice,productAdvicePlaceHolderOrderHistoryAdvice,productAdvicePlaceHolderListAdvice1,productAdvicePlaceHolderListAdvice2,productAdvicePlaceHolderListAdvice3,productAdvicePlaceHolderListAdvice4,productAdvicePlaceHolderSuccessfulOrderCompletionAdvice,productAdvicePlaceHolderDeliveryPaymentAdvice,productAdvicePlaceHolderCreditCardPaymentAdvice,productAdvicePlaceHolderExternalAdvice,productAdvicePlaceHolderPdf,productAdvicePlaceHolderFacebook,dummyProductAdviser,headLightProductAdviser,randomProductAdviser,segmentReleatedProductAdviser,orderReleatedProductAdviser,discountMccProductAdviser,discountedProductAdviser,overAllSaledProductAdviser,lastPurchasedProductAdviser,addWithThisProductAdviser,bannerPlaceHolderMainPageCarousel,bannerPlaceHolderMainPageSlider,bannerPlaceHolderLeftTopBanner,bannerPlaceHolderLeftBottomBanner,bannerPlaceHolderLeftOneBanner,bannerPlaceHolderLeftTwoBanner,bannerPlaceHolderLeftThreeBanner,bannerPlaceHolderLeftFourBanner,bannerPlaceHolderLeftFiveBanner,bannerPlaceHolderLeftSixBanner,bannerPlaceHolderLeftOneDonationBanner,bannerPlaceHolderLeftTwoDonationBanner,bannerPlaceHolderLeftThreeDonationBanner,bannerPlaceHolderLeftFourDonationBanner,bannerPlaceHolderRightTopBanner,bannerPlaceHolderRightMiddleBanner,bannerPlaceHolderRightBottomBanner,bannerPlaceHolderMainTopLeftBanner,bannerPlaceHolderMainBottomBanner,bannerPlaceHolderMainConent1,bannerPlaceHolderMainConent2,bannerPlaceHolderMainConent3,bannerPlaceHolderMainConentWeekly1,bannerPlaceHolderMainConentWeekly2,bannerPlaceHolderMainConentWeekly3,bannerPlaceHolderDeliverySelection,bannerPlaceHolderMigrosDeliverySelection,bannerPlaceHolderFavoriteCategoryList,bannerPlaceHolderFavoriteList,bannerPlaceHolderMigrosProductListingTop,bannerPlaceHolderMigrosProductListingBottom,bannerPlaceHolderFastPurchaseMain,bannerPlaceHolderFastPurchaseResult,bannerPlaceHolderMailTopSelection,bannerPlaceHolderMigrosMailTopSelection,bannerPlaceHolderMailBottomSelection,bannerPlaceHolderMigrosMailBottomSelection,bannerPlaceHolderMailLeftSelection,bannerPlaceHolderMigrosMailLeftSelection,bannerPlaceHolderMailRightSelection,bannerPlaceHolderMigrosMailRightSelection,bannerPlaceHolderSearchTopBanner,bannerPlaceHolderSearchBottomBanner,bannerPlaceHolderSearchResultTopBanner,bannerPlaceHolderSearchResultBottomBanner,bannerPlaceHolderShoppingCartsBanner,bannerPlaceHolderOrderHistoryBanner,bannerPlaceHolderOrderHistoryTopBanner,bannerPlaceHolderOrderHistoryListTopBanner,bannerPlaceHolderOrderHistoryListButtomBanner,bannerPlaceHolderSuccessfulOrderCompletionBanner,bannerPlaceHolderDeliveryPaymentBanner,bannerPlaceHolderCreditCardPaymentBanner,bannerPlaceHolderExternalBanner,dynamicParameterTextBanner]; root of factory hierarchy
Oct 6, 2011 6:02:51 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sbuController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.inomera.sm.discount.DiscountManager com.inomera.sm.controller.HomeController.discountManager; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'discountManager': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.inomera.sm.discount.dao.DiscountDAO com.inomera.sm.discount.DiscountManagerImpl.discountDAO; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'discountDAO': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.inomera.sm.common.dao.BaseDaoImpl.init(org.hibernate.SessionFactory); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [WEB-INF/spring/kweb-hb.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException


Has anyone can help me to solve my configuration issue ?

Thanks,

Omer Guclu
  • 1. Re: Messaging pattern and hibernate L2 cache configuration
    892886 Newbie
    Currently Being Moderated
    any comment on Messaging pattern + Spring + Hibernate L2 cache ??????
  • 2. Re: Messaging pattern and hibernate L2 cache configuration
    RenévanWijk Oracle ACE
    Currently Being Moderated
    "Error creating bean with name 'sessionFactory' defined in ServletContext resource [WEB-INF/spring/kweb-hb.xml]"

    How is your session factory configured?

    An example
    ...
        <bean id="hibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate">
            <property name="sessionFactory" ref="sessionFactory"/>
        </bean>
        <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
            <property name="dataSource" ref="dataSource"/>
            <property name="mappingResources">
                <list>
                    <value>datamodel/entities/Bestelling.hbm.xml</value>
                    <value>datamodel/entities/Klant.hbm.xml</value>
                </list>
            </property>
            <property name="hibernateProperties">
                <props>
                    <prop key="hibernate.c3p0.min_size">${connectionpool.minimum.size}</prop>
                    <prop key="hibernate.c3p0.max_size">${connectionpool.maximum.size}</prop>
                    <prop key="hibernate.c3p0.timeout">${connectionpool.timeout}</prop>
                    <prop key="hibernate.c3p0.max_statements">${connectionpool.maximum.statements}</prop>
                    <prop key="hibernate.c3p0.idle_test_period">${connectionpool.idle.period}</prop>
                    <prop key="hibernate.cache.provider_class">${cache.provider_class}</prop>
                    <prop key="hibernate.cache.use_second_level_cache">${cache.use_second_level_cache}</prop>
                    <prop key="hibernate.cache.use_query_cache">${cache.use_query_cache}</prop>
                    <prop key="hibernate.dialect">${hibernate.dialect}</prop>
                    <prop key="hibernate.current_session_context_class">${hibernate.current_session_context_class}</prop>
                    <prop key="hibernate.show_sql">${hibernate.show_sql}</prop>
                    <prop key="hibernate.format_sql">${hibernate.format_sql}</prop>
                </props>
            </property>
            <property name="entityCacheStrategies">
                <props>
                    <prop key="datamodel.entities.Klant">transactional</prop>
                    <prop key="datamodel.entities.Bestelling">transactional</prop>
                </props>
            </property>
            <property name="collectionCacheStrategies">
                <props>
                    <prop key="datamodel.entities.Klant.bestellingen">transactional</prop>
                </props>
            </property>
        </bean>
    ...
    in which the properties are as follows:
    jdbc.driverClassName=oracle.jdbc.OracleDriver
    jdbc.url=jdbc:oracle:thin:@hostname:1521:SID
    jdbc.username=username
    jdbc.password=password
    
    connectionpool.minimum.size=5
    connectionpool.maximum.size=20
    connectionpool.timeout=300
    connectionpool.maximum.statements=50
    connectionpool.idle.period=3000
    
    # JVM option: -Dtangosol.coherence.hibernate.cacheconfig=hibernate-cache-config.xml
    cache.provider_class=com.tangosol.coherence.hibernate.CoherenceCacheProvider
    cache.use_second_level_cache=true
    cache.use_query_cache=false
    
    hibernate.dialect=org.hibernate.dialect.Oracle10gDialect
    hibernate.current_session_context_class=thread
    hibernate.show_sql=false
    hibernate.format_sql=false
  • 3. Re: Messaging pattern and hibernate L2 cache configuration
    892886 Newbie
    Currently Being Moderated
    Hello René ,

    Thank you for your comment. Our hibernate.properties file is as fallows

    <pre class="jive-pre">
    hibernate.dialect=org.hibernate.dialect.Oracle10gDialect
    hibernate.show_sql=false
    hibernate.format_sql=false
    hibernate.generate_statistics=false
    hibernate.jdbc.batch_size=50
    hibernate.max_fetch_depth=3
    hibernate.cache.use_query_cache=false
    hibernate.cache.use_second_level_cache=true
    hibernate.cache.provider_class=com.tangosol.coherence.hibernate.CoherenceCacheProvider
    hibernate.connection.release_mode=on_close
    hibernate.hbm2ddl.auto=false
    hibernate.query.startup_check=false
    </pre>

    and spring hibernate beans are like this :
    <pre class="jive-pre">
         &lt;bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"&gt;
              &lt;property name="dataSource" ref="dataSource"/&gt;
              &lt;property name="mappingResources"&gt;
                   &lt;value&gt;
                        &frasl;com&frasl;inomera&frasl;sm&frasl;order&frasl;model&frasl;Order.hbm.xml,
                        &frasl;com&frasl;inomera&frasl;sm&frasl;discount&frasl;model&frasl;Discount.hbm.xml,
                        &frasl;com&frasl;inomera&frasl;sm&frasl;customer&frasl;model&frasl;Address.hbm.xml,
                        &frasl;com&frasl;inomera&frasl;sm&frasl;customer&frasl;model&frasl;Customer.hbm.xml,
                        &frasl;com&frasl;inomera&frasl;sm&frasl;catalog&frasl;model&frasl;Product.hbm.xml,
                   &lt;/value&gt;
              &lt;/property&gt;
              &lt;property name="lobHandler" ref="oracleLobHandler"/&gt;
              &lt;property name="hibernateProperties"&gt;
                   &lt;value&gt;classpath:hibernate.properties&lt;/value&gt;
              &lt;/property&gt;
         &lt;/bean&gt;
         
         &lt;!-- Transaction manager for a single Hibernate SessionFactory (alternative to JTA) --&gt;
         &lt;bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"&gt;
              &lt;property name="sessionFactory"&gt;&lt;ref local="sessionFactory"/&gt;&lt;/property&gt;
         &lt;/bean&gt;
    </pre>     

    Could you tell me which is wrong my configuration

    Thanks,

    Omer

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points