• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Configuring Ehcache with Mybatis in springMVC application.

 
Ranch Hand
Posts: 337
Scala Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

I am trying to configure Ehcache with Mybatis in my spring application.

I have configured it in UserDeviceApp.xml as follows:

<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE sqlMap
PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN"
"http://ibatis.apache.org/dtd/sql-map-2.dtd">;

<sqlMap>
<typeAlias alias="MYEHCACHE" type="org.mybatis.caches.ehcache.EhcacheCache"/>

<cacheModel id="cache-user" type="MYEHCACHE" readOnly="true">
<flushInterval hours="24"></flushInterval>
</cacheModel>

<resultMap id="result"
class="com.pankanis.gateway.valueobjects.UserDeviceApp">
<result property="userId" column="user_id" />
<result property="deviceId" column="device_id" />
<result property="appId" column="app_id" />
<result property="notifyToken" column="notifytoken" />
<result property="lastUsed" column="lastused" />
<result property="lastSessionId" column="lastsessionid" />
</resultMap>


<insert id="insertUserDeviceApp" parameterClass="com.pankanis.gateway.valueobjects.UserDeviceApp">
INSERT
INTO user_device_app
(user_id,device_id,app_id,notifytoken,lastused,lastsessionid)
VALUES
(#userId#,#deviceId#,#appId#,#notifyToken#,#lastUsed:TIMESTAMP#,#lastSessionId#)
</insert>

<update id="updateUserDeviceApp" parameterClass="com.pankanis.gateway.valueobjects.UserDeviceApp">
update
user_device_app
SET
notifytoken=CASE
WHEN notifytoken = #notifyToken# and
user_id != #userId# and device_id
!= #deviceId# and app_id != #appId#
THEN NULL
when user_id = #userId#
and device_id = #deviceId# and app_id
= #appId#
then #notifyToken#
else
notifytoken END,
lastused= CASE
when
user_id = #userId# and device_id =
#deviceId# and app_id = #appId#
then
CURRENT_TIMESTAMP
END
</update>

<select id="getToken" parameterClass="map" resultMap="result" cacheModel="cache-user">
Select *
from user_device_app
where user_id = #userId# and app_id = #appId#
</select>

<delete id="deleteUserDeviceApp" parameterClass="map">
delete from
user_device_app
where user_id = #userId# and device_id = #deviceId# and
app_id = #appId#
</delete>

<select id="getUserDeviceByuserIdAppIdDeviceId" parameterClass="map" resultMap="result" cacheModel="cache-user">
SELECT * FROM user_device_app where user_id = #userId# and device_id =
#deviceId# and app_id = #appId#
</select>

</sqlMap>


and added the jar file called "mybatis-ehcache-1.0.1.jar" in my classpath.

also added:

<settings cacheModelsEnabled="true" useStatementNamespaces="true"/>

in sql-map-config.xml.

I know that, it takes default configuration if I don't write Ehcache.xml , So I did not have one.. I will use default configuration.

Now, when I start tomcat server, it shows me the following exception..

I am adding the stacktrace here, it is as follows:

Jul 02, 2014 7:19:01 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin; C:\Windows\Sun\Java\bin; C:\Windows\system32; C:\Windows; C:\Windows\system32; C:\Windows; C:\Windows\System32\Wbem; C:\Windows\System32\WindowsPowerShell\v1.0\; C:\Program Files\TortoiseSVN\bin; C:\php5.5; C:\Program Files\MySQL\MySQL Server 5.5\bin; C:\Program Files\Microsoft\Web Platform Installer\; C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\; C:\Program Files\Microsoft SQL Server\100\Tools\Binn\; C:\Program Files\Microsoft SQL Server\100\DTS\Binn\; C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\; C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\; C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\; C:\Microsoft SQL Server Migration Assistant for MySQL\bin\;.
Jul 02, 2014 7:19:01 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:mgw' did not find a matching property.
Jul 02, 2014 7:19:01 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jul 02, 2014 7:19:01 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jul 02, 2014 7:19:01 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 451 ms
Jul 02, 2014 7:19:01 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jul 02, 2014 7:19:01 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.34
Jul 02, 2014 7:19:03 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
Jul 02, 2014 7:19:03 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
Jul 02, 2014 7:19:03 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
Jul 02, 2014 7:19:03 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
Jul 02, 2014 7:19:03 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
Jul 02, 2014 7:19:03 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
Jul 02, 2014 7:19:03 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
Jul 02, 2014 7:19:03 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
Jul 02, 2014 7:19:03 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
Jul 02, 2014 7:19:03 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
Jul 02, 2014 7:19:03 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
Jul 02, 2014 7:19:03 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
Jul 02, 2014 7:19:03 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
Jul 02, 2014 7:19:03 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
Jul 02, 2014 7:19:03 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
Jul 02, 2014 7:19:03 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
log4j: Parsing for [root] with value=[INFO,DEBUG,CONSOLE,logf2,logf3].
log4j:ERROR Could not find value for key log4j.appender.DEBUG
log4j:ERROR Could not instantiate appender named "DEBUG".
log4j: Level token is [INFO].
log4j: Category root set to INFO
log4j: Parsing appender named "DEBUG".
log4j: Parsing appender named "CONSOLE".
log4j: Parsing layout options for "CONSOLE".
log4j: Setting property [conversionPattern] to [%d [%t] %-5p %c - %m%n].
log4j: End of parsing for "CONSOLE".
log4j: Setting property [encoding] to [UTF-8].
log4j: Parsed "CONSOLE" options.
log4j: Parsing appender named "logf2".
log4j: Parsing layout options for "logf2".
log4j: Setting property [conversionPattern] to [%d [%t] %-5p %c - %m%n].
log4j: End of parsing for "logf2".
log4j: Setting property [datePattern] to ['.'yyyy-MM-dd].
log4j: Setting property [append] to [true].
log4j: Setting property [encoding] to [UTF-8].
log4j: Setting property [threshold] to [DEBUG].
log4j: Setting property [file] to [D:/MGW-ServerLogs/Logs/debug/mgwsql.log].
log4j: setFile called: D:/MGW-ServerLogs/Logs/debug/mgwsql.log, true
log4j: setFile ended
log4j: Appender [logf2] to be rolled at midnight.
log4j: Parsed "logf2" options.
log4j: Parsing appender named "logf3".
log4j: Parsing layout options for "logf3".
log4j: Setting property [conversionPattern] to [%d [%t] %-5p %c - %m%n].
log4j: End of parsing for "logf3".
log4j: Setting property [append] to [true].
log4j: Setting property [file] to [D:/MGW-ServerLogs/Logs/error/mgw_error.log].
log4j: Setting property [encoding] to [UTF-8].
log4j: Setting property [datePattern] to ['.'yyyy-MM-dd].
log4j: Setting property [threshold] to [WARN].
log4j: setFile called: D:/MGW-ServerLogs/Logs/error/mgw_error.log, true
log4j: setFile ended
log4j: Appender [logf3] to be rolled at midnight.
log4j: Parsed "logf3" options.
log4j: Parsing for [com.irst] with value=[DEBUG,logf].
log4j: Level token is [DEBUG].
log4j: Category com.irst set to DEBUG
log4j: Parsing appender named "logf".
log4j: Parsing layout options for "logf".
log4j: Setting property [conversionPattern] to [%d [%t] %-5p %c - %m%n].
log4j: End of parsing for "logf".
log4j: Setting property [datePattern] to ['.'yyyy-MM-dd].
log4j: Setting property [file] to [D:/MGW-ServerLogs/Logs/info/mgw_debug.log].
log4j: Setting property [threshold] to [DEBUG].
log4j: Setting property [append] to [true].
log4j: Setting property [encoding] to [UTF-8].
log4j: setFile called: D:/MGW-ServerLogs/Logs/info/mgw_debug.log, true
log4j: setFile ended
log4j: Appender [logf] to be rolled at midnight.
log4j: Parsed "logf" options.
log4j: Handling log4j.additivity.com.irst=[null]
log4j: Parsing for [java.sql.Connection] with value=[DEBUG].
log4j: Level token is [DEBUG].
log4j: Category java.sql.Connection set to DEBUG
log4j: Handling log4j.additivity.java.sql.Connection=[null]
log4j: Parsing for [java.sql.PreparedStatement] with value=[DEBUG].
log4j: Level token is [DEBUG].
log4j: Category java.sql.PreparedStatement set to DEBUG
log4j: Handling log4j.additivity.java.sql.PreparedStatement=[null]
log4j: Parsing for [com.pankanis.gateway.service.DeviceNotificationService] with value=[OFF].
log4j: Level token is [OFF].
log4j: Category com.pankanis.gateway.service.DeviceNotificationService set to OFF
log4j: Handling log4j.additivity.com.pankanis.gateway.service.DeviceNotificationService=[null]
log4j: Parsing for [com.ibatis.sqlmap.engine.impl.SqlMapClientDelegate] with value=[DEBUG].
log4j: Level token is [DEBUG].
log4j: Category com.ibatis.sqlmap.engine.impl.SqlMapClientDelegate set to DEBUG
log4j: Handling log4j.additivity.com.ibatis.sqlmap.engine.impl.SqlMapClientDelegate=[null]
log4j: Parsing for [com.pankanis.gateway.apple.push] with value=[INFO, DEBUG, CONSOLE, logf2, logf3].
log4j: Level token is [INFO].
log4j: Category com.pankanis.gateway.apple.push set to INFO
log4j: Parsing appender named "DEBUG".
log4j:ERROR Could not find value for key log4j.appender.DEBUG
log4j:ERROR Could not instantiate appender named "DEBUG".
log4j: Parsing appender named "CONSOLE".
log4j: Appender "CONSOLE" was already parsed.
log4j: Parsing appender named "logf2".
log4j: Appender "logf2" was already parsed.
log4j: Parsing appender named "logf3".
log4j: Appender "logf3" was already parsed.
log4j: Handling log4j.additivity.com.pankanis.gateway.apple.push=[null]
log4j: Parsing for [com.ibatis] with value=[DEBUG].
log4j: Level token is [DEBUG].
log4j: Category com.ibatis set to DEBUG
log4j: Handling log4j.additivity.com.ibatis=[null]
log4j: Parsing for [java.sql] with value=[DEBUG].
log4j: Level token is [DEBUG].
log4j: Category java.sql set to DEBUG
log4j: Handling log4j.additivity.java.sql=[null]
log4j: Parsing for [com.pankanis.gateway.apple.push.ApplePushNotificationService] with value=[OFF].
log4j: Level token is [OFF].
log4j: Category com.pankanis.gateway.apple.push.ApplePushNotificationService set to OFF
log4j: Handling log4j.additivity.com.pankanis.gateway.apple.push.ApplePushNotificationService=[null]
log4j: Parsing for [com.gateway] with value=[DEBUG,logf].
log4j: Level token is [DEBUG].
log4j: Category com.gateway set to DEBUG
log4j: Parsing appender named "logf".
log4j: Appender "logf" was already parsed.
log4j: Handling log4j.additivity.com.gateway=[null]
log4j: Parsing for [com.pankanis.gateway.service] with value=[INFO, DEBUG, CONSOLE, logf2, logf3].
log4j: Level token is [INFO].
log4j: Category com.pankanis.gateway.service set to INFO
log4j: Parsing appender named "DEBUG".
log4j:ERROR Could not find value for key log4j.appender.DEBUG
log4j:ERROR Could not instantiate appender named "DEBUG".
log4j: Parsing appender named "CONSOLE".
log4j: Appender "CONSOLE" was already parsed.
log4j: Parsing appender named "logf2".
log4j: Appender "logf2" was already parsed.
log4j: Parsing appender named "logf3".
log4j: Appender "logf3" was already parsed.
log4j: Handling log4j.additivity.com.pankanis.gateway.service=[null]
log4j: Parsing for [com.pankanis] with value=[DEBUG,logf].
log4j: Level token is [DEBUG].
log4j: Category com.pankanis set to DEBUG
log4j: Parsing appender named "logf".
log4j: Appender "logf" was already parsed.
log4j: Handling log4j.additivity.com.pankanis=[null]
log4j: Parsing for [java.sql.ResultSet] with value=[DEBUG].
log4j: Level token is [DEBUG].
log4j: Category java.sql.ResultSet set to DEBUG
log4j: Handling log4j.additivity.java.sql.ResultSet=[null]
log4j: Parsing for [java.sql.Statement] with value=[DEBUG].
log4j: Level token is [DEBUG].
log4j: Category java.sql.Statement set to DEBUG
log4j: Handling log4j.additivity.java.sql.Statement=[null]
log4j: Parsing for [com.ibatis.common.jdbc.ScriptRunner] with value=[DEBUG].
log4j: Level token is [DEBUG].
log4j: Category com.ibatis.common.jdbc.ScriptRunner set to DEBUG
log4j: Handling log4j.additivity.com.ibatis.common.jdbc.ScriptRunner=[null]
log4j: Parsing for [com.ibatis.common.jdbc.SimpleDataSource] with value=[DEBUG].
log4j: Level token is [DEBUG].
log4j: Category com.ibatis.common.jdbc.SimpleDataSource set to DEBUG
log4j: Handling log4j.additivity.com.ibatis.common.jdbc.SimpleDataSource=[null]
log4j: Finished configuring.
2014-07-02 19:19:07,137 [localhost-startStop-1] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@5cb9c2b4: defining beans [monitoringAdvisor, org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator#0, springDataSourceBeanPostProcessor, org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0, org.springframework.format.support.FormattingConversionServiceFactoryBean#0, org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0, org.springframework.web.servlet.handler.MappedInterceptor#0, org.springframework.web.servlet.view.ContentNegotiatingViewResolver#0, org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#1, jacksonObjectMapper, jacksonSerializationConfig, org.springframework.beans.factory.config.MethodInvokingFactoryBean#0, org.springframework.beans.factory.config.MethodInvokingFactoryBean#1, org.springframework.beans.factory.config.MethodInvokingFactoryBean#2, loadEntityInfoList, loadMasterEntity, gatewaySchedulerManager, schedulerAuditImpl, sechedulerAuditDAOImpl, syncScheduler, syncInboxScheduler, deleteEntityBatch, activityQuoteCleanupScheduler, activityAndQuoteCleanupRowHandler, schedulerController, schedulerContainer, zipSQliteService, irstEntitySyncQryServ, syncQueryService, syncQueryWSClient, irstEntitySyncUpdateServ, syncUpdateService, syncUpdateWSClient, AccountQryByPostionService, AccountQryByPostionJaxWs, AccountQryByPostionClient, AccountQryByPostionBean, AccountDetailService, AccountDetailJaxWs, AccountDetailClient, ContactQryByAccountService, ContactQryByAccountJaxWs, ContactQryByAccountClient, ContactUpsertService, ContactUpsertJaxWs, ContactUpsertClient, ContactQryByAccountBean, ContactDetailService, ContactDetailJaxWs, ContactDetailClient, AddressQryByAccountService, AddressQryByAccountJaxWs, AddressQryByAccountClient, AddressQryByOptyService, AddressQryByOptyJaxWs, AddressQryByOptyClient, OpportunityAddressController, AddressUpsertService, AddressUpsertJaxWs, AddressUpsertClient, AddressQryByAccountBean, loginqueryservice, loginservice, AddressDetailService, AddressDetailJaxWs, AddressDetailClient, ActivityQryByAccountService, ActivityQryByAccountJaxWs, ActivityQryByAccountClient, ActivityQryByAccountBean, ActivityDetailService, ActivityDetailJaxWs, ActivityDetailClient, DataServiceClient, datastoreService, userdatastoreService, syncMobilizeSchedulerServiceImpl, mobilizeuserService, irstloginbean, forceInboxRefreshbean, InboxQryBean, InboxQueryService, InboxQueryJaxWs, InboxQueryClient, InboxUpdateService, InboxUpdateJaxWs, InboxUpdateClient, QuoteUpdateService, QuoteUpdateJaxWs, QuoteUpdateClient, QuoteQueryBean, IndustryQryBean, IndustryQueryService, IndustryQueryJaxWs, IndustryQueryClient, ZipQryBean, ZipQueryService, ZipQueryJaxWs, ZipQueryClient, OptyPlayersQueryService, OptyPlayersQueryJaxWs, OptyPlayersQueryClient, OptyPlayersQueryBean, opportunityPlayersDetailService, opportunityPlayersDetailJaxWs, opportunityPlayersDetailClient, OptyActivityQueryService, OptyActivityQueryJaxWs, OptyActivityQueryClient, OptyActivityQueryBean, AccountQuotesQueryService, AccountQuotesQueryJaxWs, AccountQuotesQueryClient, AccountQuotesQueryBean, AccountQuotesDetailsService, AccountQuotesDetailsJaxWs, AccountQuotesDetailsClient, AccountQuoteItemsQueryService, AccountQuoteItemsQueryJaxWs, AccountQuoteItemsQueryClient, AccountQuoteItemsQueryBean, AccountQuoteItemsDetailsService, AccountQuoteItemsDetailsJaxWs, AccountQuoteItemsDetailsClient, opportunityQryService, opportunityQryJaxWs, opportunityQryClient, allOpportunityQueryService, allOpportunityDetailJaxWs, allOpportunityDetailClient, opportunityDetailService, opportunityDetailJaxWs, opportunityDetailClient, AccountOptyByPostionService, AccountOptyByPostionJaxWs, AccountOptyByPostionClient, AccOppByPositionBean, OpportunityUpsertService, OpportunityUpsertJaxWs, OpportunityUpsertClient, opportunityQryBean, activityUpdateService, activityUpdateJaxWs, activityUpdateClient, lovQryService, lovQryJaxWs, lovQryClient, LovQueryBean, accountUpsertService, accountUpsertJaxWs, accountUpsertClient, accountUpsertBean, inboxUpsertService, inboxUpsertJaxWs, inboxUpsertClient, inboxUpsertBean, OptyQuotesQueryService, OptyQuotesQueryJaxWs, OptyQuotesQueryClient, OptyQuotesListService, OptyQuotesListJaxWs, OptyQuotesListClient, OptyQuotesQueryBean, ProductPreferenceDetailsService, ProductPreferenceDetailsJaxWs, ProductPreferenceDetailsClient, AccountAgreementService, AccountAgreementServiceJaxWs, AccountAgreementServiceClient, AccountAgreementBean, AccountAgreementDetailService, AccountAgreementDetailJaxWs, AccountAgreementDetailClient, AgreementItemsService, AgreementItemsJaxWs, AgreementItemsClient, AgreementItemsBean, AgreementItemsDetailService, AgreementItemsDetailJaxWs, AgreementItemsDetailClient, AllAccountQueryService, AllAccountQueryJaxWs, AllAccountClient, ProductExternalDetailsService, ProductExternalDetailsJaxWs, ProductExternalDetailsClient, ProductInternalDetailsService, ProductInternalDetailsJaxWs, ProductInternalDetailsClient, ProductPreferenceQueryService, ProductPreferenceQueryJaxWs, ProductPreferenceQueryClient, ProductPreferenceUpsertService, ProductPreferenceUpsertJaxWs, ProductPreferenceUpsertClient, ProductsBean, SalesStageQueryService, SalesStageQueryJaxWs, SalesStageQueryClient, SalesStageBean, syncJmsDestination_for_entitysyncsimulator, syncJmsDestination, devicelogService, jmsSyncMessageService, syncMessageSender, syncMessageSender_for_entitysyncsimulator, syncMessageListenerContainer, ZipCodeController, entityRefreshController, demobilizeUserController, industrySyncWSClient, lovSyncJaxWs, lovSyncWSClient, masterDataSyncController, irstDodgeAccountService, accountActQryServiceJaxWs, dodgeAccountQryWSClient, irstDodgeAddressService, addressdodgeQryServiceJaxWs, dodgeAddressQryWSClient, irstDodgeOptyService, optydodgeQryServiceJaxWs, dodgeOptyQryWSClient, dodgeListController, ppportunityPlayerRoleController, syncDodgeSchedulerServiceImpl, masterSyncSchedulerServiceImpl, EntitySyncSimulatorServiceImpl, EntitySyncSimulatorController, EmpEntitySyncSrvService, EmpEntitySyncSrvJaxWs, EmpEntitySyncSrvClient, EmployeeEntityUpdateServ, EmployeeEntitySyncUpdateServiceJaxWs, EmployeeEntitySyncUpdateWSClient, EmpEntitySyncSrvController, IrstSubscriptionController, ServiceRequestlistService, ServiceRequestListServiceJaxWs, ServiceRequestListServiceWSClient, ServiceRequestQueryDetailService, ServiceRequestDetailServiceJaxWs, ServiceRequestDetailServiceWSClient, ServiceRequestServiceController, JmsConnectionFactory, JmsConnectionFactory_for_entitysyncsimulator, jmsTemplate_for_entitysyncsimulator, jmsTemplate, JmsDestination, JmsDestinationTopic, topicPublisher, topicReceiver, jmsMessageService, MessageListenerContainer, MessageListenerContainerForTopic, MessageSender, 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, MainMessageListener, IntermediateMessageListener, ChildMessageListener, SubChildMessageListener, MainMessageSender, IntermediateMessageSender, ChildMessageSender, SubChildMessageSender, jmsMainTemplate, JmsMainQueueDestination, JmsIntermediateQueueDestination, JmsChildQueueDestination, JmsSubChildQueueDestination, JmsMainConnectionFactory, mainQueueRedeliveryPolicy, pankajTestSendingMessageController, org.springframework.jms.listener.DefaultMessageListenerContainer#0, org.springframework.jms.listener.DefaultMessageListenerContainer#1, org.springframework.jms.listener.DefaultMessageListenerContainer#2, org.springframework.jms.listener.DefaultMessageListenerContainer#3, userDeviceAppController, applicationProperties, org.springframework.aop.config.internalAutoProxyCreator, org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0, org.springframework.transaction.interceptor.TransactionInterceptor#0, org.springframework.transaction.config.internalTransactionAdvisor, transactionManager, dataSource, sqlMapClient, userDao, usrService, user, deviceDao, deviceService, device, userDeviceDao, userDeviceService, userSessionDao, userSessionService, loginbean, devicelogDao, devicelog, userentityDAO, userentityService, userentitydeviceDAO, userentitydeviceService, entityDao, entityService, entityAssociationDao, entityAssociationService, mobilelog, entity, sync, alService, ddService, BaseRestContext, BaseRestController, pageDao, pageService, groupDao, groupService, groupUserDao, groupUserService, groupAppDao, groupAppService, group, appDao, appService, application, sysDao, systService, syscache, params, log4jInitialization, notificationDao, userDeviceAppDao, userDeviceAppService, notifyService, googleCloudMessagingService, apns, gcmservice, notificationmgw, sysblobDao, sysblobService, sysblob, groupentityDao, groupentityService, triggerAfterXLogEvents, fileServiceImpl, anonymousFileServiceController, secureFileServiceController, sendNotificationController, propertyController, propInjectorService, rsaHelper, rsaDecryptionServiceController, subscriptionEntityDAO, SubscriptionEntityService]; root of factory hierarchy
2014-07-02 19:19:07,146 [localhost-startStop-1] ERROR org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schedulerController' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/irst_rest_siebel.jar!/pankanis/gateway/IRSTWebServiceApplicationContext.xml]: Cannot resolve reference to bean 'BaseRestContext' while setting bean property 'restContext'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'BaseRestContext' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Cannot resolve reference to bean 'usrService' while setting bean property 'authService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'usrService' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Cannot resolve reference to bean 'userDao' while setting bean property '_userDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Cannot resolve reference to bean 'sqlMapClient' while setting bean property 'sqlMapClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: ServletContext resource [/WEB-INF/mysql/mgw-sqlmap-config.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/cacheModel/end()'. Cause: java.lang.RuntimeException: Error setting Cache Controller Class. Cause: java.lang.InstantiationException: org.mybatis.caches.ehcache.EhcacheCache
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:574)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schedulerController' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/irst_rest_siebel.jar!/pankanis/gateway/IRSTWebServiceApplicationContext.xml]: Cannot resolve reference to bean 'BaseRestContext' while setting bean property 'restContext'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'BaseRestContext' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Cannot resolve reference to bean 'usrService' while setting bean property 'authService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'usrService' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Cannot resolve reference to bean 'userDao' while setting bean property '_userDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Cannot resolve reference to bean 'sqlMapClient' while setting bean property 'sqlMapClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: ServletContext resource [/WEB-INF/mysql/mgw-sqlmap-config.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/cacheModel/end()'. Cause: java.lang.RuntimeException: Error setting Cache Controller Class. Cause: java.lang.InstantiationException: org.mybatis.caches.ehcache.EhcacheCache
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075)
at org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler(AbstractUrlHandlerMapping.java:383)
at org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler(AbstractUrlHandlerMapping.java:362)
at org.springframework.web.servlet.handler.AbstractDetectingUrlHandlerMapping.detectHandlers(AbstractDetectingUrlHandlerMapping.java:82)
at org.springframework.web.servlet.handler.AbstractDetectingUrlHandlerMapping.initApplicationContext(AbstractDetectingUrlHandlerMapping.java:58)
at org.springframework.context.support.ApplicationObjectSupport.initApplicationContext(ApplicationObjectSupport.java:119)
at org.springframework.web.context.support.WebApplicationObjectSupport.initApplicationContext(WebApplicationObjectSupport.java:72)
at org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:73)
at org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:106)
at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:85)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1405)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
... 20 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'BaseRestContext' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Cannot resolve reference to bean 'usrService' while setting bean property 'authService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'usrService' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Cannot resolve reference to bean 'userDao' while setting bean property '_userDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Cannot resolve reference to bean 'sqlMapClient' while setting bean property 'sqlMapClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: ServletContext resource [/WEB-INF/mysql/mgw-sqlmap-config.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/cacheModel/end()'. Cause: java.lang.RuntimeException: Error setting Cache Controller Class. Cause: java.lang.InstantiationException: org.mybatis.caches.ehcache.EhcacheCache
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 42 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'usrService' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Cannot resolve reference to bean 'userDao' while setting bean property '_userDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Cannot resolve reference to bean 'sqlMapClient' while setting bean property 'sqlMapClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: ServletContext resource [/WEB-INF/mysql/mgw-sqlmap-config.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/cacheModel/end()'. Cause: java.lang.RuntimeException: Error setting Cache Controller Class. Cause: java.lang.InstantiationException: org.mybatis.caches.ehcache.EhcacheCache
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 52 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Cannot resolve reference to bean 'sqlMapClient' while setting bean property 'sqlMapClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: ServletContext resource [/WEB-INF/mysql/mgw-sqlmap-config.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/cacheModel/end()'. Cause: java.lang.RuntimeException: Error setting Cache Controller Class. Cause: java.lang.InstantiationException: org.mybatis.caches.ehcache.EhcacheCache
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 62 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: ServletContext resource [/WEB-INF/mysql/mgw-sqlmap-config.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/cacheModel/end()'. Cause: java.lang.RuntimeException: Error setting Cache Controller Class. Cause: java.lang.InstantiationException: org.mybatis.caches.ehcache.EhcacheCache
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 72 more
Caused by: org.springframework.core.NestedIOException: Failed to parse config resource: ServletContext resource [/WEB-INF/mysql/mgw-sqlmap-config.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/cacheModel/end()'. Cause: java.lang.RuntimeException: Error setting Cache Controller Class. Cause: java.lang.InstantiationException: org.mybatis.caches.ehcache.EhcacheCache
at org.springframework.orm.ibatis.SqlMapClientFactoryBean.buildSqlMapClient(SqlMapClientFactoryBean.java:341)
at org.springframework.orm.ibatis.SqlMapClientFactoryBean.afterPropertiesSet(SqlMapClientFactoryBean.java:291)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)
... 79 more
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/cacheModel/end()'. Cause: java.lang.RuntimeException: Error setting Cache Controller Class. Cause: java.lang.InstantiationException: org.mybatis.caches.ehcache.EhcacheCache
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:62)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:106)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:95)
at org.springframework.orm.ibatis.SqlMapClientFactoryBean.buildSqlMapClient(SqlMapClientFactoryBean.java:338)
... 82 more
Caused by: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/cacheModel/end()'. Cause: java.lang.RuntimeException: Error setting Cache Controller Class. Cause: java.lang.InstantiationException: org.mybatis.caches.ehcache.EhcacheCache
at com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:123)
at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:84)
at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:102)
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:72)
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:60)
... 85 more
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/cacheModel/end()'. Cause: java.lang.RuntimeException: Error setting Cache Controller Class. Cause: java.lang.InstantiationException: org.mybatis.caches.ehcache.EhcacheCache
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:62)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapParser.parse(SqlMapParser.java:55)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser$11.process(SqlMapConfigParser.java:394)
at com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:121)
... 89 more
Caused by: java.lang.RuntimeException: Error parsing XPath '/sqlMap/cacheModel/end()'. Cause: java.lang.RuntimeException: Error setting Cache Controller Class. Cause: java.lang.InstantiationException: org.mybatis.caches.ehcache.EhcacheCache
at com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:123)
at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:105)
at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:102)
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:72)
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:60)
... 92 more
Caused by: java.lang.RuntimeException: Error setting Cache Controller Class. Cause: java.lang.InstantiationException: org.mybatis.caches.ehcache.EhcacheCache
at com.ibatis.sqlmap.engine.builder.xml.SqlMapParser$6.process(SqlMapParser.java:149)
at com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:121)
... 96 more
Caused by: java.lang.InstantiationException: org.mybatis.caches.ehcache.EhcacheCache
at java.lang.Class.newInstance(Unknown Source)
at com.ibatis.common.resources.Resources.instantiate(Resources.java:294)
at com.ibatis.sqlmap.engine.cache.CacheModel.setControllerClassName(CacheModel.java:156)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapParser$6.process(SqlMapParser.java:147)
... 97 more
Jul 02, 2014 7:19:07 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 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schedulerController' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/irst_rest_siebel.jar!/pankanis/gateway/IRSTWebServiceApplicationContext.xml]: Cannot resolve reference to bean 'BaseRestContext' while setting bean property 'restContext'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'BaseRestContext' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Cannot resolve reference to bean 'usrService' while setting bean property 'authService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'usrService' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Cannot resolve reference to bean 'userDao' while setting bean property '_userDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Cannot resolve reference to bean 'sqlMapClient' while setting bean property 'sqlMapClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: ServletContext resource [/WEB-INF/mysql/mgw-sqlmap-config.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/cacheModel/end()'. Cause: java.lang.RuntimeException: Error setting Cache Controller Class. Cause: java.lang.InstantiationException: org.mybatis.caches.ehcache.EhcacheCache
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:574)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schedulerController' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/irst_rest_siebel.jar!/pankanis/gateway/IRSTWebServiceApplicationContext.xml]: Cannot resolve reference to bean 'BaseRestContext' while setting bean property 'restContext'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'BaseRestContext' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Cannot resolve reference to bean 'usrService' while setting bean property 'authService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'usrService' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Cannot resolve reference to bean 'userDao' while setting bean property '_userDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Cannot resolve reference to bean 'sqlMapClient' while setting bean property 'sqlMapClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: ServletContext resource [/WEB-INF/mysql/mgw-sqlmap-config.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/cacheModel/end()'. Cause: java.lang.RuntimeException: Error setting Cache Controller Class. Cause: java.lang.InstantiationException: org.mybatis.caches.ehcache.EhcacheCache
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075)
at org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler(AbstractUrlHandlerMapping.java:383)
at org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler(AbstractUrlHandlerMapping.java:362)
at org.springframework.web.servlet.handler.AbstractDetectingUrlHandlerMapping.detectHandlers(AbstractDetectingUrlHandlerMapping.java:82)
at org.springframework.web.servlet.handler.AbstractDetectingUrlHandlerMapping.initApplicationContext(AbstractDetectingUrlHandlerMapping.java:58)
at org.springframework.context.support.ApplicationObjectSupport.initApplicationContext(ApplicationObjectSupport.java:119)
at org.springframework.web.context.support.WebApplicationObjectSupport.initApplicationContext(WebApplicationObjectSupport.java:72)
at org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:73)
at org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:106)
at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:85)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1405)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
... 20 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'BaseRestContext' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Cannot resolve reference to bean 'usrService' while setting bean property 'authService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'usrService' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Cannot resolve reference to bean 'userDao' while setting bean property '_userDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Cannot resolve reference to bean 'sqlMapClient' while setting bean property 'sqlMapClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: ServletContext resource [/WEB-INF/mysql/mgw-sqlmap-config.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/cacheModel/end()'. Cause: java.lang.RuntimeException: Error setting Cache Controller Class. Cause: java.lang.InstantiationException: org.mybatis.caches.ehcache.EhcacheCache
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 42 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'usrService' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Cannot resolve reference to bean 'userDao' while setting bean property '_userDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Cannot resolve reference to bean 'sqlMapClient' while setting bean property 'sqlMapClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: ServletContext resource [/WEB-INF/mysql/mgw-sqlmap-config.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/cacheModel/end()'. Cause: java.lang.RuntimeException: Error setting Cache Controller Class. Cause: java.lang.InstantiationException: org.mybatis.caches.ehcache.EhcacheCache
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 52 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Cannot resolve reference to bean 'sqlMapClient' while setting bean property 'sqlMapClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: ServletContext resource [/WEB-INF/mysql/mgw-sqlmap-config.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/cacheModel/end()'. Cause: java.lang.RuntimeException: Error setting Cache Controller Class. Cause: java.lang.InstantiationException: org.mybatis.caches.ehcache.EhcacheCache
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 62 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in URL [jar:file:/D:/Pankaj_Workspace/IRST_TRUNK_PANKANIS_GATEWAY_NEW/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mgw/WEB-INF/lib/mgw.core.jar!/pankanis/gateway/mgwdataApplicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: ServletContext resource [/WEB-INF/mysql/mgw-sqlmap-config.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/cacheModel/end()'. Cause: java.lang.RuntimeException: Error setting Cache Controller Class. Cause: java.lang.InstantiationException: org.mybatis.caches.ehcache.EhcacheCache
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 72 more
Caused by: org.springframework.core.NestedIOException: Failed to parse config resource: ServletContext resource [/WEB-INF/mysql/mgw-sqlmap-config.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/cacheModel/end()'. Cause: java.lang.RuntimeException: Error setting Cache Controller Class. Cause: java.lang.InstantiationException: org.mybatis.caches.ehcache.EhcacheCache
at org.springframework.orm.ibatis.SqlMapClientFactoryBean.buildSqlMapClient(SqlMapClientFactoryBean.java:341)
at org.springframework.orm.ibatis.SqlMapClientFactoryBean.afterPropertiesSet(SqlMapClientFactoryBean.java:291)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)
... 79 more
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/cacheModel/end()'. Cause: java.lang.RuntimeException: Error setting Cache Controller Class. Cause: java.lang.InstantiationException: org.mybatis.caches.ehcache.EhcacheCache
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:62)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:106)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:95)
at org.springframework.orm.ibatis.SqlMapClientFactoryBean.buildSqlMapClient(SqlMapClientFactoryBean.java:338)
... 82 more
Caused by: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/cacheModel/end()'. Cause: java.lang.RuntimeException: Error setting Cache Controller Class. Cause: java.lang.InstantiationException: org.mybatis.caches.ehcache.EhcacheCache
at com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:123)
at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:84)
at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:102)
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:72)
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:60)
... 85 more
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/cacheModel/end()'. Cause: java.lang.RuntimeException: Error setting Cache Controller Class. Cause: java.lang.InstantiationException: org.mybatis.caches.ehcache.EhcacheCache
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:62)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapParser.parse(SqlMapParser.java:55)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser$11.process(SqlMapConfigParser.java:394)
at com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:121)
... 89 more
Caused by: java.lang.RuntimeException: Error parsing XPath '/sqlMap/cacheModel/end()'. Cause: java.lang.RuntimeException: Error setting Cache Controller Class. Cause: java.lang.InstantiationException: org.mybatis.caches.ehcache.EhcacheCache
at com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:123)
at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:105)
at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:102)
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:72)
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:60)
... 92 more
Caused by: java.lang.RuntimeException: Error setting Cache Controller Class. Cause: java.lang.InstantiationException: org.mybatis.caches.ehcache.EhcacheCache
at com.ibatis.sqlmap.engine.builder.xml.SqlMapParser$6.process(SqlMapParser.java:149)
at com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:121)
... 96 more
Caused by: java.lang.InstantiationException: org.mybatis.caches.ehcache.EhcacheCache
at java.lang.Class.newInstance(Unknown Source)
at com.ibatis.common.resources.Resources.instantiate(Resources.java:294)
at com.ibatis.sqlmap.engine.cache.CacheModel.setControllerClassName(CacheModel.java:156)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapParser$6.process(SqlMapParser.java:147)
... 97 more

Jul 02, 2014 7:19:07 PM org.apache.catalina.core.ApplicationContext log
INFO: Set web app root system property: 'webapp.root.one' = [D:\Pankaj_Workspace\IRST_TRUNK_PANKANIS_GATEWAY_NEW\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\mgw\]
Jul 02, 2014 7:19:07 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Jul 02, 2014 7:19:07 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/mgw] startup failed due to previous errors
Jul 02, 2014 7:19:07 PM org.apache.catalina.core.ApplicationContext log
INFO: Shutting down log4j
Jul 02, 2014 7:19:07 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Jul 02, 2014 7:19:07 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/mgw] appears to have started a thread named [FileWatchdog] but has failed to stop it. This is very likely to create a memory leak.
Jul 02, 2014 7:19:07 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/mgw] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@56a7c88d]) and a value of type [java.util.WeakHashMap] (value [{class javax.xml.bind.annotation.W3CDomHandler=java.lang.ref.WeakReference@6ba40da0}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Jul 02, 2014 7:19:07 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jul 02, 2014 7:19:07 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jul 02, 2014 7:19:07 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5900 ms

Why is the InstantiationException thrown here?

Please help me for the same.

Regards,
-Pankaj
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic