AnsweredAssumed Answered

Problem with audit model on launch

Question asked by cloisel on Jun 29, 2010
Latest reply on Jul 9, 2010 by robertmarkbram
Hi everyone,

I have the following issue:

I'm using Java(TM) SE Runtime Environment (build 1.6.0_20-b02) on ubuntu and runnning Alfresco 3.2r2 (plus Share). When I run Alfresco for the first time, alfresco.war is deploying ok.
I'm using S-IDE Labs to build custom modules and integrate them to my alfresco instance. My modules have nothing to deal with the audit system. Also, I disabled audit in /alfresco
/WEB-INF/classes/alfresco/repository.properties with :


audit.enabled=false
audit.useNewConfig=false

On the second launch, I have the following error:


29 juin 2010 16:45:00 org.apache.coyote.http11.Http11Protocol init
INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
29 juin 2010 16:45:00 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 423 ms
29 juin 2010 16:45:00 org.apache.catalina.core.StandardService start
INFO: D�marrage du service Catalina
29 juin 2010 16:45:00 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
29 juin 2010 16:45:03 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.
16:45:08,300  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]
16:45:08,302  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]
16:45:08,302  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from URL [file:/home/christophe/alfresco32r2/tomcat/shared/classes/alfresco-global.properties]
16:45:08,402  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
16:45:26,591  INFO  [domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
16:45:27,255  INFO  [domain.schema.SchemaBootstrap] No changes were made to the schema.
16:45:27,553  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
16:45:27,563  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
16:45:27,567  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
16:45:30,112 User:System INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'thirdparty' subsystem, ID: [thirdparty, default]
16:45:30,125 User:System INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
16:45:30,203 User:System ERROR [transform.magick.AbstractImageMagickContentTransformerWorker] ImageMagickContentTransformerWorker not available: 05290000 Failed to perform ImageMagick transformation:
Execution result:
   os:         Linux
   command:    [./ImageMagick/bin/convert, /home/christophe/alfresco32r2/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_init_source_2098889747991900200.gif[0], /home/christophe/alfresco32r2/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_init_target_5286656465253742657.png]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "./ImageMagick/bin/convert": java.io.IOException: error=2, No such file or directory
16:45:30,254 User:System ERROR [content.transform.RuntimeExecutableContentTransformerWorker] Failed to start a runtime executable content transformer:
Execution result:
   os:         Linux
   command:    [./bin/pdf2swf, -V]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "./bin/pdf2swf": java.io.IOException: error=2, No such file or directory
16:45:30,509 User:System WARN  [alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established.
16:45:30,510 User:System INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'thirdparty' subsystem, ID: [thirdparty, default] complete
16:45:31,150  INFO  [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /home/christophe/alfresco32r2/tomcat/alf_data
16:45:31,396  INFO  [admin.patch.PatchExecuter] Checking for patches to apply …
16:45:31,690  INFO  [admin.patch.PatchExecuter] No patches were required.
16:45:31,698 User:System INFO  [repo.module.ModuleServiceImpl] Found 6 module(s).
16:45:31,819 User:System INFO  [repo.module.ModuleServiceImpl] Starting module 'SIDE_alfresco_ifremer_imap' version 1.0.0.
16:45:31,878 User:System INFO  [repo.module.ModuleServiceImpl] Starting module 'SIDE_WorkflowExtension_IfremerSimple_Process' version 1.0.
16:45:31,925 User:System INFO  [repo.module.ModuleServiceImpl] Starting module 'SIDE_alfresco_site_group' version 1.0.0.
16:45:31,974 User:System INFO  [repo.module.ModuleServiceImpl] Starting module 'SIDE_xforms' version 1.0.54.
16:45:32,024 User:System INFO  [repo.module.ModuleServiceImpl] Starting module 'SIDE_WorkflowExtension_ifremer_Process' version 1.0.
16:45:32,074 User:System INFO  [repo.module.ModuleServiceImpl] Starting module 'SIDE_pdfGenerator' version 1.0.32.
16:45:32,559  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'fileServers' subsystem, ID: [fileServers, default]
16:45:32,582  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
16:45:32,802  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
16:45:32,815  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
16:45:32,897  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1] complete
16:45:37,915  ERROR [org.alfresco.fileserver] Failed to get local domain/workgroup name, using default of WORKGROUP
16:45:37,915  ERROR [org.alfresco.fileserver] (This may be due to firewall settings or incorrect <broadcast> setting)
16:45:37,946  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'fileServers' subsystem, ID: [fileServers, default] complete
16:45:37,946  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'imap' subsystem, ID: [imap, default]
16:45:37,946  ERROR [org.alfresco.fileserver] [SMB] Server error : org.alfresco.jlan.server.config.InvalidConfigurationException: Error initializing TCP-IP SMB session handler, Permission denied
16:45:37,948  ERROR [org.alfresco.fileserver] org.alfresco.jlan.server.config.InvalidConfigurationException: Error initializing TCP-IP SMB session handler, Permission denied
16:45:37,948  ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.nio.NIOCifsConnectionsHandler.initializeHandler(NIOCifsConnectionsHandler.java:265)
16:45:37,948  ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.SMBServer.run(SMBServer.java:478)
16:45:37,949  ERROR [org.alfresco.fileserver]    at java.lang.Thread.run(Thread.java:619)
16:45:37,953  ERROR [org.alfresco.fileserver] [FTP] FTP Socket error : java.net.BindException: Permission denied
16:45:37,953  ERROR [org.alfresco.fileserver] java.net.BindException: Permission denied
16:45:37,953  ERROR [org.alfresco.fileserver]    at java.net.PlainSocketImpl.socketBind(Native Method)
16:45:37,953  ERROR [org.alfresco.fileserver]    at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
16:45:37,953  ERROR [org.alfresco.fileserver]    at java.net.ServerSocket.bind(ServerSocket.java:319)
16:45:37,953  ERROR [org.alfresco.fileserver]    at java.net.ServerSocket.<init>(ServerSocket.java:185)
16:45:37,953  ERROR [org.alfresco.fileserver]    at java.net.ServerSocket.<init>(ServerSocket.java:141)
16:45:37,965  ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.ftp.FTPServer.run(FTPServer.java:561)
16:45:37,965  ERROR [org.alfresco.fileserver]    at java.lang.Thread.run(Thread.java:619)
16:45:37,964  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
16:45:38,056  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'imap' subsystem, ID: [imap, default] complete
16:45:38,062  INFO  [repo.usage.UserUsageTrackingComponent] Enabled - calculate missing user usages …
16:45:38,084  INFO  [repo.usage.UserUsageTrackingComponent] Found 0 users to recalculate
16:45:38,084  INFO  [repo.usage.UserUsageTrackingComponent] … calculated missing usages for 0 users
16:45:38,084  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'Synchronization' subsystem, ID: [Synchronization, default]
16:45:38,105  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
16:45:38,236  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'Synchronization' subsystem, ID: [Synchronization, default] complete
16:45:38,366  ERROR [web.context.ContextLoader] Context initialization failed
org.alfresco.repo.audit.model.AuditModelException: 05290002 Failed to load audit model: file:/home/christophe/alfresco32r2/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/audit/alfresco-audit-repository.xml
   at org.alfresco.repo.audit.model.AuditModelRegistry$1.execute(AuditModelRegistry.java:258)
   at org.alfresco.repo.audit.model.AuditModelRegistry$1.execute(AuditModelRegistry.java:238)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:327)
   at org.alfresco.repo.audit.model.AuditModelRegistry.loadAuditModels(AuditModelRegistry.java:276)
   at org.alfresco.repo.audit.AuditBootstrap$1.execute(AuditBootstrap.java:64)
   at org.alfresco.repo.audit.AuditBootstrap$1.execute(AuditBootstrap.java:62)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:327)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:253)
   at org.alfresco.repo.audit.AuditBootstrap.onBootstrap(AuditBootstrap.java:68)
   at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:62)
   at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:77)
   at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:75)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:246)
   at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:617)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:355)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:189)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
   at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:69)
   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.deployDescriptor(HostConfig.java:627)
   at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
   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(LifecycleSupport.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:516)
   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(DelegatingMethodAccessorImpl.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.error.AlfrescoRuntimeException: 05290001 Failed to load Alfresco Audit Schema from classpath:alfresco/audit/alfresco-audit-3.2.xsd
   at org.alfresco.repo.audit.model.AuditModelRegistry.unmarshallModel(AuditModelRegistry.java:385)
   at org.alfresco.repo.audit.model.AuditModelRegistry.unmarshallModel(AuditModelRegistry.java:344)
   at org.alfresco.repo.audit.model.AuditModelRegistry$1.execute(AuditModelRegistry.java:246)
   … 43 more
Caused by: java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
   at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown Source)
   at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:594)
   at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:626)
   at org.alfresco.repo.audit.model.AuditModelRegistry.unmarshallModel(AuditModelRegistry.java:363)
   … 45 more
29 juin 2010 16:45:38 org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart
29 juin 2010 16:45:38 org.apache.catalina.core.StandardContext start
GRAVE: Erreur de d�marrage du contexte [/alfresco] suite aux erreurs pr�c�dentes

And the above mentioned files are still in my alfresco webapp.

Can someone point me to an already related and answered post (not the one for windows as there is no answer for this problem) or give me help for this error?
Thanks in advance.



CLoisel

Outcomes