cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Aspect

cnerger
Champ in-the-making
Champ in-the-making
hello everybody,
in a firts time , i would like to apologize about my english who start to become rusty  Smiley Surprisedops:
We use alfresco as GEID for us and our clients, but we need to extend alfresco to manage metadata.

I would like to add custom metadata by using aspect ( easier to maintain than content ?)
We used Alfresco 3.4d on :
Server version: Apache Tomcat/6.0.26
Server built:   March 9 2010 1805
Server number:  6.0.26.0
OS Name:        Linux
OS Version:     2.6.32-5-amd64
Architecture:   amd64
JVM Version:    1.6.0_18-b07
JVM Vendor:     Sun Microsystems Inc.

on Debian Squeeze system.

I create a aspect file pdfModel.xml in $alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/model:
<?xml version="1.0" encoding="UTF-8"?>
<model name="mm:pdfmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
   <description>Mouna Example custom Model</description>
   <author>Mouna</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/system/1.0" prefix="sys"/>
      <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>    
   </imports>
   <namespaces>
      <namespace uri="pdf.new.model" prefix="mm"/>
   </namespaces>
    <aspects>
      <aspect name="mm:nc">
         <title>national citer</title>
         <properties>
            <property name="mm:immat">
               <type>d:text</type>
            </property>
          </properties>
      </aspect>     
   </aspects>
</model>

and the context file pdf-model-context.xml in the same dir:
<?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="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">
            <list>
                <value>alfresco/extension/pdfModel.xml</value>
            </list>
        </property>
    </bean>    
</beans>

and i add this to my web-client-config-custom.xml and make it "active" :

 <config evaluator="string-compare" condition="Action Wizards">
      <aspects>
         <aspect name="mm:mounable"/>
      </aspects>
   </config>

   <config evaluator="aspect-name" condition="mm:mounable">
      <property-sheet>
         <show-property name="mm:Speed"/>
      </property-sheet>
   </config>

and there the log file , but it look good  😕
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/Alfresco/system/java/jre/lib/amd64/server:/opt/Alfresco/system/java/jre/lib/amd64:/opt/Alfresco/system/java/jre/../lib/amd64:/opt/Alfresco/system/common/lib::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
31-May-2011 12:09:23 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
31-May-2011 12:09:23 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8443
31-May-2011 12:09:23 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1393 ms
31-May-2011 12:09:23 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
31-May-2011 12:09:23 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.26
31-May-2011 12:09:23 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
31-May-2011 12:09:23 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor alfresco.xml
31-May-2011 12:09:24 org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
12:09:28,866  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]
12:09:28,868  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]
12:09:28,868  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [/opt/Alfresco/system/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/org_alfresco_module_dod5015/alfresco-global.properties]
12:09:28,868  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [/opt/Alfresco/system/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/tests/alfresco-global.properties]
12:09:28,869  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [/opt/Alfresco/system/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/test/alfresco-global.properties]
12:09:28,869  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [/opt/Alfresco/system/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/org_alfresco_module_wcmquickstart/alfresco-global.properties]
12:09:28,869  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from URL [file:/opt/Alfresco/system/tomcat/shared/classes/alfresco-global.properties]
12:09:28,922  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
12:09:29,050  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
12:09:29,085  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
12:09:29,108  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/module/org.alfresco.module.vti/context/vti.properties]
12:09:29,109  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from URL [file:/opt/Alfresco/system/tomcat/shared/classes/alfresco/extension/custom-vti.properties]
12:09:40,940  WARN  [springframework.beans.GenericTypeAwarePropertyDescriptor] Invalid JavaBean property 'serviceBeans' being accessed! Ambiguous write methods found next to actually used [public void org.apache.cxf.jaxrs.JAXRSServerFactoryBean.setServiceBeans(java.util.List)]: [public void org.apache.cxf.jaxrs.JAXRSServerFactoryBean.setServiceBeans(java.lang.Object[])]
12:09:41,496  INFO  [extensions.webscripts.TemplateProcessorRegistry] Registered template processor Repository Template Processor for extension ftl
12:09:41,498  INFO  [extensions.webscripts.ScriptProcessorRegistry] Registered script processor Repository Script Processor for extension js
12:09:44,394  INFO  [domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
12:09:44,629  INFO  [domain.schema.SchemaBootstrap] No changes were made to the schema.
12:09:44,674  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
12:09:44,684  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
12:09:44,685  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
12:09:44,685  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
12:09:44,685  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/module/org.alfresco.module.vti/context/vti.properties]
12:09:44,685  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from URL [file:/opt/Alfresco/system/tomcat/shared/classes/alfresco/extension/custom-vti.properties]
12:09:44,732  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
12:09:45,938  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'thirdparty' subsystem, ID: [thirdparty, default]
12:09:45,971  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
12:09:45,972  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
12:09:46,012  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
12:09:46,013  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/module/org.alfresco.module.vti/context/vti.properties]
12:09:46,013  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from URL [file:/opt/Alfresco/system/tomcat/shared/classes/alfresco/extension/custom-vti.properties]
12:09:46,825  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'thirdparty' subsystem, ID: [thirdparty, default] complete
12:09:46,826  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'OOoDirect' subsystem, ID: [OOoDirect, default]
12:09:46,840  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
12:09:46,841  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
12:09:46,841  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
12:09:46,841  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/module/org.alfresco.module.vti/context/vti.properties]
12:09:46,841  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from URL [file:/opt/Alfresco/system/tomcat/shared/classes/alfresco/extension/custom-vti.properties]
12:09:47,328  WARN  [alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established.
12:09:47,348  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'OOoDirect' subsystem, ID: [OOoDirect, default] complete
12:09:49,440  INFO  [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /opt/Alfresco/system/alf_data
12:09:49,660  INFO  [admin.patch.PatchExecuter] Checking for patches to apply …
12:09:50,457  INFO  [admin.patch.PatchExecuter] No patches were required.
12:09:50,474 User:System INFO  [repo.module.ModuleServiceImpl] Found 4 module(s).
12:09:50,547 User:System INFO  [repo.module.ModuleServiceImpl] Starting module 'org_alfresco_module_wcmquickstart' version 1.0.
12:09:50,596 User:System INFO  [repo.module.ModuleServiceImpl] Starting module 'org_alfresco_module_dod5015' version 1.0.
12:09:50,663 User:System INFO  [repo.module.ModuleServiceImpl] Starting module 'org.alfresco.module.vti' version 1.2.
12:09:50,704 User:System INFO  [repo.module.ModuleServiceImpl] Starting module 'org.alfresco.module.quickr' version 1.0.
12:09:50,725  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'fileServers' subsystem, ID: [fileServers, default]
12:09:50,745  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
12:09:50,745  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
12:09:50,746  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
12:09:50,746  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/module/org.alfresco.module.vti/context/vti.properties]
12:09:50,747  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from URL [file:/opt/Alfresco/system/tomcat/shared/classes/alfresco/extension/custom-vti.properties]
12:09:50,978  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
12:09:51,183  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
12:09:51,184  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
12:09:51,184  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
12:09:51,184  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/module/org.alfresco.module.vti/context/vti.properties]
12:09:51,184  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from URL [file:/opt/Alfresco/system/tomcat/shared/classes/alfresco/extension/custom-vti.properties]
12:09:51,280  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1] complete
12:09:56,299  ERROR [org.alfresco.fileserver] Failed to get local domain/workgroup name, using default of WORKGROUP
12:09:56,299  ERROR [org.alfresco.fileserver] (This may be due to firewall settings or incorrect <broadcast> setting)
12:09:56,451  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'fileServers' subsystem, ID: [fileServers, default] complete
12:09:56,451  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'imap' subsystem, ID: [imap, default]
12:09:56,465  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
12:09:56,466  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
12:09:56,466  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
12:09:56,466  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/module/org.alfresco.module.vti/context/vti.properties]
12:09:56,466  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from URL [file:/opt/Alfresco/system/tomcat/shared/classes/alfresco/extension/custom-vti.properties]
12:09:56,527  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'imap' subsystem, ID: [imap, default] complete
12:09:56,527  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'email' subsystem, ID: [email, outbound]
12:09:56,541  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
12:09:56,541  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
12:09:56,542  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
12:09:56,542  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/module/org.alfresco.module.vti/context/vti.properties]
12:09:56,542  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from URL [file:/opt/Alfresco/system/tomcat/shared/classes/alfresco/extension/custom-vti.properties]
12:09:56,588  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'email' subsystem, ID: [email, outbound] complete
12:09:56,588  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'email' subsystem, ID: [email, inbound]
12:09:56,602  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
12:09:56,603  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
12:09:56,603  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
12:09:56,603  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/module/org.alfresco.module.vti/context/vti.properties]
12:09:56,603  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from URL [file:/opt/Alfresco/system/tomcat/shared/classes/alfresco/extension/custom-vti.properties]
12:09:56,640  WARN  [springframework.beans.GenericTypeAwarePropertyDescriptor] Invalid JavaBean property 'blockedSenders' being accessed! Ambiguous write methods found next to actually used [public void org.alfresco.email.server.EmailServer.setBlockedSenders(java.util.List)]: [public void org.alfresco.email.server.EmailServer.setBlockedSenders(java.lang.String)]
12:09:56,640  WARN  [springframework.beans.GenericTypeAwarePropertyDescriptor] Invalid JavaBean property 'allowedSenders' being accessed! Ambiguous write methods found next to actually used [public void org.alfresco.email.server.EmailServer.setAllowedSenders(java.util.List)]: [public void org.alfresco.email.server.EmailServer.setAllowedSenders(java.lang.String)]
12:09:56,660  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'email' subsystem, ID: [email, inbound] complete
12:09:56,660  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'googledocs' subsystem, ID: [googledocs, default]
12:09:56,685  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
12:09:56,686  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
12:09:56,686  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
12:09:56,687  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/module/org.alfresco.module.vti/context/vti.properties]
12:09:56,687  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from URL [file:/opt/Alfresco/system/tomcat/shared/classes/alfresco/extension/custom-vti.properties]
12:09:56,933  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'googledocs' subsystem, ID: [googledocs, default] complete
12:09:56,941  INFO  [repo.usage.UserUsageTrackingComponent] Enabled - calculate missing user usages …
12:09:56,960  INFO  [repo.usage.UserUsageTrackingComponent] Found 0 users to recalculate
12:09:56,960  INFO  [repo.usage.UserUsageTrackingComponent] … calculated missing usages for 0 users
12:09:56,960  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'Synchronization' subsystem, ID: [Synchronization, default]
12:09:56,993  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
12:09:56,994  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
12:09:56,994  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
12:09:56,994  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/module/org.alfresco.module.vti/context/vti.properties]
12:09:56,994  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from URL [file:/opt/Alfresco/system/tomcat/shared/classes/alfresco/extension/custom-vti.properties]
12:09:57,083  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'Synchronization' subsystem, ID: [Synchronization, default] complete
12:09:57,172  INFO  [service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_18-b07; maximum heap size 2730.688MB
12:09:57,172  INFO  [service.descriptor.DescriptorService] Alfresco started (Community): Current version 3.4.0 (d 3370) schema 4113 - Originally installed version 3.4.0 (d 3370) schema 4113
12:09:57,173  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'Replication' subsystem, ID: [Replication, default]
12:09:57,184  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
12:09:57,185  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
12:09:57,185  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
12:09:57,185  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/module/org.alfresco.module.vti/context/vti.properties]
12:09:57,185  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from URL [file:/opt/Alfresco/system/tomcat/shared/classes/alfresco/extension/custom-vti.properties]
12:09:57,196  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'Replication' subsystem, ID: [Replication, default] complete
12:10:00,313  INFO  [alfresco.util.OpenOfficeConnectionTester] The OpenOffice connection was re-established.
12:10:01,519  INFO  [module.vti.VtiServer] Vti server started successfully on port: 7070
12:10:14,025 UserSmiley Frustratedystem INFO  [extensions.webscripts.DeclarativeRegistry] Registered 449 Web Scripts (+0 failed), 700 URLs
12:10:14,026 UserSmiley Frustratedystem INFO  [extensions.webscripts.DeclarativeRegistry] Registered 2 Package Description Documents (+0 failed)
12:10:14,026 UserSmiley Frustratedystem INFO  [extensions.webscripts.DeclarativeRegistry] Registered 1 Schema Description Documents (+0 failed)
12:10:14,028 UserSmiley Frustratedystem INFO  [extensions.webscripts.AbstractRuntimeContainer] Initialised Repository Web Script Container (in 7981.704ms)
12:10:14,035  INFO  [extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
12:10:14,037  INFO  [extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
12:10:14,153  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'wcm_deployment_receiver' subsystem, ID: [wcm_deployment_receiver, default]
12:10:14,167  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
12:10:14,167  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
12:10:14,167  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
12:10:14,167  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/module/org.alfresco.module.vti/context/vti.properties]
12:10:14,168  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from URL [file:/opt/Alfresco/system/tomcat/shared/classes/alfresco/extension/custom-vti.properties]
12:10:14,214  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'wcm_deployment_receiver' subsystem, ID: [wcm_deployment_receiver, default] complete
31-May-2011 12:10:14 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
31-May-2011 12:10:14 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive share.war
12:10:19,122  INFO  [extensions.webscripts.DeclarativeRegistry] Registered 309 Web Scripts (+0 failed), 319 URLs
12:10:19,124  INFO  [extensions.webscripts.DeclarativeRegistry] Registered 8 Package Description Documents (+0 failed)
12:10:19,329  INFO  [extensions.webscripts.DeclarativeRegistry] Registered 0 Schema Description Documents (+0 failed)
12:10:19,501  INFO  [extensions.webscripts.AbstractRuntimeContainer] Initialised Spring Surf Container Web Script Container (in 1654.8538ms)
12:10:19,531  INFO  [extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
12:10:19,589  INFO  [extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
12:10:19,683  INFO  [extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
12:10:19,687  INFO  [extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
12:10:19,787  INFO  [extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
12:10:19,791  INFO  [extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
31-May-2011 12:10:20 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive wcmqs.war
WARN : org.apache.myfaces.shared_impl.util.LocaleUtils - Locale name in faces-config.xml null or empty, setting locale to default locale : en_GB
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.lang.String) throws java.net.URISyntaxException]: [public void org.alfresco.wcm.client.impl.WebScriptCallerImpl.setBaseUrl(java.net.URI)]
31-May-2011 12:10:22 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive awe.war
31-May-2011 12:10:24 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
31-May-2011 12:10:25 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
31-May-2011 12:10:25 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8443
31-May-2011 12:10:25 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
31-May-2011 12:10:25 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/17  config=null
31-May-2011 12:10:25 org.apache.catalina.startup.Catalina start
INFO: Server startup in 61581 ms


But i cant't see my custom aspect in share, it make me a bit crazy , … just a little bit   :twisted: 
If someone can help me and drive me on good way ,thank you in advance

Cedric
2 REPLIES 2

matjazmuhic
Champ on-the-rise
Champ on-the-rise
For share you have to set aspect to be visible.
Edit this file: tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml

You have to edit it like this (if this evaluator exists just add aspect to visible aspects):


<alfresco-config>

<config evaluator="string-compare" condition="DocumentLibrary">

  <aspects>
   <visible>
    <aspect name="mm:nc"/>
   </visible>

   <addable>
   </addable>

   <removable>
   </removable>
  </aspects>

  <types>
  </types>

</config>





</alfresco-config>

Hope it helps…  :wink:

cnerger
Champ in-the-making
Champ in-the-making
Thanx for your answer (y)
Sure it help me !! I can see my aspect , so it's a good things , but … ( every times something goes wrong  :mrgreen: )
but when i apply my aspect , nothing change , and if i came back in Aspect , my aspect was not selected.

I hadn't any message in catalina.out, so i don't post the log.

Did you have any other idea ??

Thanks
Best Regards
Cédric