cancel
Showing results for 
Search instead for 
Did you mean: 

can't get access after customization

chenxi
Champ in-the-making
Champ in-the-making
Hello

I made a little custom in location alfresco/extension, I just wanna extend some Content Types and related Aspects, but I cant launch alfresco after, somebody can help me ? an extract of log as below;

14:16:39,403 ERROR [[Catalina].[localhost].[/alfresco]] Exception sending contex
t initialized event to listener instance of class org.springframework.web.contex
t.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'extension.dictionaryBootstrap' defined in file [C:\Alfresco\tomcat\webap
ps\alfresco\WEB-INF\classes\alfresco\extension\abec-model-context.xml]: Invocati
on of init method failed; nested exception is org.alfresco.service.cmr.dictionar
y.DictionaryException: Could not import bootstrap model alfresco/extension/abec-
custom-Model.xml
Caused by:
org.alfresco.service.cmr.dictionary.DictionaryException: Could not import bootst
rap model alfresco/extension/abec-custom-Model.xml
        at org.alfresco.repo.dictionary.DictionaryBootstrap.bootstrap(Dictionary
Bootstrap.java:111)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1160)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1122)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1085)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:429)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:250)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:141)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:247)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:161)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:273)
        at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:346)
        at org.springframework.web.context.support.AbstractRefreshableWebApplica
tionContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
        at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:246)
        at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:184)
        at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:49)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3764)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
216)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:760)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:74
0)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)

        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)

        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714
)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:120)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:4
48)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:700
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
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.bootstrap(Dictionary
Bootstrap.java:106)
        … 42 more
Caused by: org.jibx.runtime.JiBXException: Error parsing document (line 192, col
11)
        at org.jibx.runtime.impl.UnmarshallingContext.isAt(UnmarshallingContext.
java:616)
        at org.jibx.runtime.impl.UnmarshallingContext.parseIfStartTag(Unmarshall
ingContext.java:784)
        at org.jibx.runtime.impl.UnmarshallingContext.parseElementBoolean(Unmars
hallingContext.java:1915)
        at org.alfresco.repo.dictionary.M2Property.JiBX_root_projects_repository
_source_java_org_alfresco_repo_dictionary_m2binding_unmarshal_1_0(M2Property.jav
a)
        at org.alfresco.repo.dictionary.JiBX_root_projects_repository_source_jav
a_org_alfresco_repo_dictionary_m2bindingM2Property_access.unmarshal()
        at org.alfresco.repo.dictionary.JiBX_MungeAdapter.JiBX_root_projects_rep
ository_source_java_org_alfresco_repo_dictionary_m2binding_unmarshal_1_10()
        at org.alfresco.repo.dictionary.M2Class.JiBX_root_projects_repository_so
urce_java_org_alfresco_repo_dictionary_m2binding_unmarshal_1_0(M2Class.java)
        at org.alfresco.repo.dictionary.M2Aspect.JiBX_root_projects_repository_s
ource_java_org_alfresco_repo_dictionary_m2binding_unmarshal_2_0(M2Aspect.java)
        at org.alfresco.repo.dictionary.JiBX_root_projects_repository_source_jav
a_org_alfresco_repo_dictionary_m2bindingM2Aspect_access.unmarshal()
        at org.alfresco.repo.dictionary.JiBX_MungeAdapter.JiBX_root_projects_rep
ository_source_java_org_alfresco_repo_dictionary_m2binding_unmarshal_1_5()
        at org.alfresco.repo.dictionary.M2Model.JiBX_root_projects_repository_so
urce_java_org_alfresco_repo_dictionary_m2binding_unmarshal_1_0(M2Model.java)
        at org.alfresco.repo.dictionary.JiBX_root_projects_repository_source_jav
a_org_alfresco_repo_dictionary_m2bindingM2Model_access.unmarshal()
        at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(Unmarshal
lingContext.java:2515)
        at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(Unmarsha
llingContext.java:2675)
        at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:94)
        … 43 more


when I was coustomizing the XML files,  I was confused by some many elements defined by default, so does it exist any structure file (XSD) or related guide book to help us understand the XML structure like customModel.xml ?

Thanks

Chen Xi
Beijing, China
1 REPLY 1

chenxi
Champ in-the-making
Champ in-the-making
PS: can we insert the attached files in this forum ?