The configuration data from the server does not obey the Terracotta schema

36 views
Skip to first unread message

Android Developers

unread,
Jul 30, 2019, 4:47:14 AM7/30/19
to terracotta-oss
  1. Version :4.3.6
  2. Config file is attached
  3. JDK :1.8  OS : macOS Mojave.
I'm new to terracotta and ehcache. I have implemented the ehcache in our project and now implementing the terracotta server to handle the ehcache cluster.

I'm running the terracotta server on my system but when running the tomcat server which have ehcache and I'm getting the following error:

Exception encountered during context initialization - cancelling refresh attempt

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.transport.servlet.ServletTransportFactory' defined in class path resource [META-INF/cxf/cxf-servlet.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (2) are:

PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'bus' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ehcache' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Unable to load class net.sf.ehcache.terracotta.ExpressEnterpriseTerracottaClusteredInstanceFactory. Initial cause was java.lang.RuntimeException: com.tc.config.schema.setup.ConfigurationSetupException: 

*******************************************************************************

The configuration data in the base configuration from server at 'localhost:9510' does not obey the Terracotta schema:

  [0]: Line 7, column 5: Attribute not allowed (no wildcards allowed): secure in element servers

  [1]: Line 8, column 9: Expected element 'server' instead of 'mirror-group' here in element servers

  [2]: Line 29, column 9: Expected element 'server' instead of 'garbage-collection' here in element servers

  [3]: Line 34, column 9: Expected element 'server' instead of 'restartable' here in element servers

  [4]: Line 35, column 9: Expected element 'server' instead of 'client-reconnect-window' here in element servers


*******************************************************************************


PropertyAccessException 2: org.springframework.beans.MethodInvocationException: Property 'transportIds' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ehcache' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Unable to load class net.sf.ehcache.terracotta.ExpressEnterpriseTerracottaClusteredInstanceFactory. Initial cause was java.lang.RuntimeException: com.tc.config.schema.setup.ConfigurationSetupException: 

*******************************************************************************

The configuration data in the base configuration from server at 'localhost:9510' does not obey the Terracotta schema:

  [0]: Line 7, column 5: Attribute not allowed (no wildcards allowed): secure in element servers

  [1]: Line 8, column 9: Expected element 'server' instead of 'mirror-group' here in element servers

  [2]: Line 29, column 9: Expected element 'server' instead of 'garbage-collection' here in element servers

  [3]: Line 34, column 9: Expected element 'server' instead of 'restartable' here in element servers

  [4]: Line 35, column 9: Expected element 'server' instead of 'client-reconnect-window' here in element servers


*******************************************************************************


at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1514)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1222)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)

at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)

at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)

at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)

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(FutureTask.java:266)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:748)

Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (2) are



Can any one please help me with this as above mentioned elements are not in the config file.

tc-config.xml
Reply all
Reply to author
Forward
0 new messages