16:01:20,187 ERROR [web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'extension.dictionaryBootstrap' defined in file [C:\Alfresco\tomcat\share
d\classes\alfresco\extension\offreModel-context.xml]: Invocation of init method
failed; nested exception is org.alfresco.service.cmr.dictionary.DictionaryException: Could not import bootstrap model alfresco/extension/offreModel.xml
Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: Could not import bootstrap model alfresco/extension/offreModel.xml
at org.alfresco.repo.dictionary.DictionaryBootstrap.initDictionary(DictionaryBootstrap.java:147)
at org.alfresco.repo.dictionary.DictionaryBootstrap.bootstrap(DictionaryBootstrap.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1240)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1205)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
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:525)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719
)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
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:5
16)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: Failed to pa
rse model
at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:99)
at org.alfresco.repo.dictionary.DictionaryBootstrap.initDictionary(Dicti
onaryBootstrap.java:142)
… 42 more
Caused by: org.jibx.runtime.JiBXException: No unmarshaller for element "model" (
line 2, col 78)
at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(Unmarshal
lingContext.java:2512)
at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(Unmarsha
llingContext.java:2675)
at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:94)
… 43 more
11 juin 2009 16:01:20 org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart
11 juin 2009 16:01:20 org.apache.catalina.core.StandardContext start
GRAVE: Erreur de d´+¢marrage du contexte [/alfresco] suite aux erreurs pr´+¢c´+¢
dentes
<?xml version="1.0" encoding="UTF-8"?>
<model name="ca:offre" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>modele projet</description>
<author>Slipknotik</author>
<version>1.0</version>
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
</imports>
<namespaces>
<namespace name="ca.new.model" prefix="ca"/>
</namespaces>
<constraints>
<constraint name="ca:list" type="LIST">
<parameter name="alowedValues">
<list>
<value>Formation</value>
<value>Developpement</value>
<value>Maintenance</value>
</list>
</parameter>
</constraint>
</constraints>
<types>
<type name="ca:offre">
<title>offre</title>
<parent>cm:content</parent>
<properties>
<property name="ca:num offre">
<type>d:int</type>
</property>
<property name="ca:date remise">
<type>d:date</type>
</property>
<property name="ca:service">
<type>d:text</type>
<constraints>
<constraint ref="ca:list"/>
</constraints>
</property>
</properties>
</type>
</types>
</model>
<alfresco-config>
<!– Example of adding languages to the list in the login page –>
<config evaluator="string-compare" condition="Languages" replace="true">
<languages>
<language locale="fr_FR">Francais</language>
</languages>
</config>
<!– Permettre la specialisation du type –>
<config evaluator="string-compare" condition="Action Wizards">
<specialise-types>
<type name="ca:offre"/>
</specialise-types>
</config>
<config evaluator="string-compare" condition="Content Wizards">
<content-types>
<type name="ca:offre"/>
</content-types>
</config>
<config evaluator="node-type" condition="ca:offre">
<property-sheet>
<show-property name="ca:num offre"/>
<show-property name="ca:date remise"/>
<show-property name="ca:service"/>
</property-sheet>
</config>
<!– Configuration de la recherche avancee –>
<config evaluator="string-compare" condition="Advanced Search">
<advanced-search>
<content-types>
<type name="ca:offre"/>
</content-types>
<custom-properties>
<meta-data type="ca:offre" property="ca:offre"/>
<meta-data type="ca:offre" proprety="ca:date remise"/>
<meta-data type="ca:offre" proprety="ca:service"/>
</custom-properties>
</advanced-search>
</config>
</alfresco-config>
et finalement le fichier offreModele-context.xml
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– Registration of new models –>
<bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/offreModel.xml</value>
</list>
</property>
</bean>
</beans>
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.