Problemi modello knowledgebase documentazione di alfresco.

cancel
Showing results for 
Search instead for 
Did you mean: 
need
Member II

Problemi modello knowledgebase documentazione di alfresco.

Buongiorno a tutti,

mi sono letto la documentazione http://docs.alfresco.com/3.4 e ho provato a customizzare share per aggiungere pagine personalizzate e preset seguendo passo passo la documentazione dalla sezione Customizing and extending Alfresco Share.

Ho provato a eseguire share ma non mi arriva alla maschera di log-in e guardando non trova il bundle con il nome alfresco.messages.webscript diachiarati nel file custom-slingshot-application-context.xml come indicato nella documentazione.

E' sbagliato il valore nel tag value? Come posso risolvere il mio problema? Grazie a tutti per i suggerimenti.

Ho incollato il codice del file xml e l'errore che mi da tomcat.

Grazie a tutti per la pazienza.


<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>
  
<bean id="webscripts.resources"     
         class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
      <property name="resourceBundles">
         <list>
            <value>alfresco.messages.webscripts</value>
            <value>alfresco.messages.slingshot</value>
            <value>alfresco.web-extension.messages.kbsite</value>
         </list>
      </property>
</bean>

</beans>


16:12:56,674  INFO  [extensions.webscripts.AbstractRuntimeContainer] Initialised Spring Surf Container Web Script Container (in 61.0058ms)
16:12:56,674  ERROR [web.context.ContextLoader] Context initialization failed
java.util.MissingResourceException: Can't find bundle for base name alfresco.messages.webscripts, locale it_IT
   at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521)
   at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260)
   at java.util.ResourceBundle.getBundle(ResourceBundle.java:787)
   at org.springframework.extensions.surf.util.I18NUtil.getLocaleProperties(I18NUtil.java:445)
   at org.springframework.extensions.surf.util.I18NUtil.getMessage(I18NUtil.java:329)
   at org.springframework.extensions.surf.util.I18NUtil.getMessage(I18NUtil.java:359)
   at org.springframework.extensions.surf.util.I18NUtil.getMessage(I18NUtil.java:346)
   at org.springframework.extensions.surf.exception.PlatformRuntimeException.resolveMessage(PlatformRuntimeException.java:126)
   at org.springframework.extensions.surf.exception.PlatformRuntimeException.<init>(PlatformRuntimeException.java:77)
   at org.springframework.extensions.webscripts.WebScriptException.<init>(WebScriptException.java:43)
   at org.springframework.extensions.webscripts.JaxRSUriIndex.registerUri(JaxRSUriIndex.java:141)
   at org.springframework.extensions.webscripts.DeclarativeRegistry.initWebScripts(DeclarativeRegistry.java:474)
   at org.springframework.extensions.webscripts.DeclarativeRegistry.reset(DeclarativeRegistry.java:178)
   at org.springframework.extensions.webscripts.AbstractRuntimeContainer.reset(AbstractRuntimeContainer.java:242)
   at org.springframework.extensions.webscripts.PresentationContainer.reset(PresentationContainer.java:113)
   at org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.reset(LocalWebScriptRuntimeContainer.java:114)
   at org.springframework.extensions.webscripts.AbstractRuntimeContainer.onApplicationEvent(AbstractRuntimeContainer.java:263)
   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.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:192)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
   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)
WARN : org.apache.myfaces.shared_impl.util.LocaleUtils - Locale name in faces-config.xml null or empty, setting locale to default locale : it_IT
WARN : org.springframework.beans.GenericTypeAwarePropertyDescriptor - Invalid JavaBean property 'baseUrl' being accessed! Ambiguous write methods found next to actually used [public void org.alfresco.wcm.client.impl.WebScriptCallerImpl.setBaseUrl(java.net.URI)]: [public void org.alfresco.wcm.client.impl.WebScriptCallerImpl.setBaseUrl(java.lang.String) throws java.net.URISyntaxException]
WARN : org.springframework.extensions.webscripts.DeclarativeRegistry - Unable to register script classpath:alfresco/web-extension/site-webscripts/org/alfresco/components/knowledgebase/knowledgebase.get.desc.xml due to error: 06280000 Web Script document org/alfresco/components/knowledgebase/knowledgebase.get.desc.xml is attempting to define the url '/components/dashlets/knowledgebase:GET' already defined by org/alfresco/components/dashlet/knowledgebase.get.desc.xml
1 Reply
openpj
Moderator
Moderator

Re: Problemi modello knowledgebase documentazione di alfresco.

Quando aggiungi nuove label in Alfresco ti devi sempre ricordare di aggiungerle sia all'interno del file di default (in lingua inglese), sia all'interno del file di properties relativo al locale che stai utilizzando, in questo caso l'errore è sul locale it_IT.