tuankhac / share-extras

Automatically exported from code.google.com/p/share-extras
0 stars 0 forks source link

Sample Data Lists - Context initialization failed #53

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Build share-sample-datalists.jar from source
2. Deploy it to tomcat/shared/lib
3. Restart Alfresco

What is the expected output? What do you see instead?
The data list works fine, but an error is displayed at tomcat startup.

What version of the add-on are you using? Please provide version of the 
downloaded package, or Subversion revision number.
Subversion revision number: 157

What version of Alfresco are you using? On what application server?
Alfresco Community 3.4.d.
Tomcat 6.
Linux CentOS x64.

Please provide any additional information below.
ERROR: org.springframework.web.servlet.DispatcherServlet - Context 
initialization failed
org.springframework.extensions.config.ConfigException: 10040000 Unable to 
locate evaluator implementation for 'model-type' for 
org.springframework.extensions.config.ConfigSectionImpl@1898bff 
(evaluator=model-type condition=dlexample:book replace=false)
        at org.springframework.extensions.config.BaseConfigService.processSection(BaseConfigService.java:457)
        at org.springframework.extensions.config.BaseConfigService.getConfig(BaseConfigService.java:223)
        at org.springframework.extensions.config.BaseConfigService.getConfig(BaseConfigService.java:165)
        at org.springframework.extensions.webscripts.connector.ConnectorService.onApplicationEvent(ConnectorService.java:106)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:294)
        at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:858)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:419)
        at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:443)
        at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:459)
        at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:340)
        at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:307)
        at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
        at javax.servlet.GenericServlet.init(GenericServlet.java:212)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:519)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
04-nov-2011 10:52:56 org.apache.catalina.startup.HostConfig deployDirectory

Original issue reported on code.google.com by anb...@gmail.com on 4 Nov 2011 at 9:59

GoogleCodeExporter commented 8 years ago
This error is normally caused by the Web Quick Start WAR file, which does not 
recognise the 'model-type' config evaluator used to define the datalist forms.

Please could you try moving the JAR file from shared/lib into your 
webapps/share/WEB-INF/lib folder to see if this helps?

Original comment by will.abson on 11 Nov 2011 at 5:26

GoogleCodeExporter commented 8 years ago
Thanks Will, I've moved the JAR file to webapps/share/WEB-INF/lib and now the 
error is gone.

Original comment by anb...@gmail.com on 14 Nov 2011 at 4:28

GoogleCodeExporter commented 8 years ago
Thanks, added to Known Issues on 
http://code.google.com/p/share-extras/wiki/DataLists

Original comment by will.abson on 22 Nov 2011 at 12:37