Slut à tous, je voudrais tester la sdk d'alfresco....

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

Slut à tous, je voudrais tester la sdk d'alfresco....

Slut à tous, je voudrais tester la sdk d'alfresco. Quand j'importe le projet sous eclipse (avec ses exemples) il me générère un ensemble d'erreurs du genre il ne trouve pas certains .jar. Est ce que quelqu'un a pu tester cela et n'a pas eu de problèmes? Car je voudrais au finish voir dans quelle mesure étendre alfresco et je voudrais d'abord les exemples dispo dans la SDK. De même quelqu'un à pu déployer le projet parapheur électronique construit au dessus d'alfresco? Votre aide m'est précieuse et merci d'avance pour vos réactions.
4 Replies
ifr
Member II

Re: Slut à tous, je voudrais tester la sdk d'alfresco....

Salut, j'ai instaler le sdk de alfresco, je l'est importer dans eclipse, à la compilation de SDK FirstFoundationClient des erreurs qui gener comme suit:
qlq'un poura m'aider svp
merci d'avance

14:20:54,156 ERROR [transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to perform ImageMagick transformation:
Execution result:
   os:         Windows XP
   command:    imconvert "CSmiley Very HappyOCUME~1hifreneLOCALS~1TempAlfrescoImageMagickContentTransformer_init_source_14202.gif"  "CSmiley Very HappyOCUME~1hifreneLOCALS~1TempAlfrescoImageMagickContentTransformer_init_target_14203.png"
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "imconvert": CreateProcess error=2, Le fichier spécifié est introuvable
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverConnector' defined in class path resource [alfresco/core-services-context.xml]: Invocation of init method failed; nested exception is java.io.IOException: Cannot bind to URL [rmi://localhost:50500/alfresco/jmxrmi]: javax.naming.NameAlreadyBoundException: alfresco/jmxrmi [Root exception is java.rmi.AlreadyBoundException: alfresco/jmxrmi]
Caused by: java.io.IOException: Cannot bind to URL [rmi://localhost:50500/alfresco/jmxrmi]: javax.naming.NameAlreadyBoundException: alfresco/jmxrmi [Root exception is java.rmi.AlreadyBoundException: alfresco/jmxrmi]
   at javax.management.remote.rmi.RMIConnectorServer.newIOException(Unknown Source)
   at javax.management.remote.rmi.RMIConnectorServer.start(Unknown Source)
michaelh
Active Member

Re: Slut à tous, je voudrais tester la sdk d'alfresco....

Bonjour,

La réponse est donnée ici : http://forum.alfresco-fr.org/viewtopic.php?id=945
Vous avez un serveur Alfresco qui tourne, et il ne faudrait pas …
ifr
Member II

Re: Slut à tous, je voudrais tester la sdk d'alfresco....

Bonjour
effectivement j'avais d'autre processus qui tour, merci pour la réponse; mais maintenat que un seul tomcat j'ai un autre probleme comme suis:
merci d'avance pour votre réponse


16:24:05,890 ERROR [transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to perform ImageMagick transformation:
Execution result:
   os:         Windows XP
   command:    imconvert "CSmiley Very HappyOCUME~1hifreneLOCALS~1TempAlfrescoImageMagickContentTransformer_init_source_21137.gif"  "CSmiley Very HappyOCUME~1hifreneLOCALS~1TempAlfrescoImageMagickContentTransformer_init_target_21138.png"
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "imconvert": CreateProcess error=2, Le fichier spécifié est introuvable
16:24:08,359 WARN  [remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
16:24:10,484 WARN  [alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
16:24:13,187 INFO  [domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
16:24:14,046 INFO  [domain.schema.SchemaBootstrap] No changes were made to the schema.
16:24:15,828 WARN  [repo.admin.ConfigurationChecker] The Alfresco 'dir.root' property is set to a relative path './alf_data'.  'dir.root' should be overridden to point to a specific folder.
16:24:15,828 INFO  [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: .alf_data
16:24:15,875 ERROR [repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: Indexes not found for 5 stores.
16:24:15,875 INFO  [repo.admin.ConfigurationChecker] You may set 'index.recovery.mode=FULL' if you need to rebuild the indexes.
16:24:15,875 ERROR [repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: System content not found in content store.
16:24:15,875 ERROR [repo.admin.ConfigurationChecker] Ensure that the 'dir.root' property is pointing to the correct data location.
Exception in thread "main" org.alfresco.error.AlfrescoRuntimeException: Ensure that the 'dir.root' property is pointing to the correct data location.
   at org.alfresco.repo.admin.ConfigurationChecker.check(ConfigurationChecker.java:312)
   at org.alfresco.repo.admin.ConfigurationChecker.access$000(ConfigurationChecker.java:72)
   at org.alfresco.repo.admin.ConfigurationChecker$1.execute(ConfigurationChecker.java:178)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:225)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:155)
   at org.alfresco.repo.admin.ConfigurationChecker.onBootstrap(ConfigurationChecker.java:182)
   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:241)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:349)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:92)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:77)
   at org.alfresco.util.ApplicationContextHelper.getApplicationContext(ApplicationContextHelper.java:55)
   at org.alfresco.sample.FirstFoundationClient.main(FirstFoundationClient.java:69)
bmagnier
Member II

Re: Slut à tous, je voudrais tester la sdk d'alfresco....

Bonjour,

C'est un problème de synchronisation entre les 2 sources de données de l'entrepôt :
- votre base de données (Mysql d'après le log)
- le système de fichiers (répertoire alf_data)

Ces 2 sources doivent être synchronisées, ce qui n'est apparemment pas le cas : à vue de nez, je dirais que la propriété dir.root du fichier de configuration repository.properties pointe vers un répertoire alf_data vide alors que la base de données contient des informations (certainement celles de votre instance alfresco installée).

Solution :
Il faut vous assurer que les 2 sources soient cohérentes, c'est à dire configurer l'entrepôt Alfresco embarqué dans le FirstFoundationClient pour qu'il utilise le répertoire alf_data de votre alfresco (fichier custom-repository.properties dans le répertoire source/alfresco/extension de l'exemple).
Il est également possible de faire tourner l'exemple sur une base toute neuve, en configurant correctement la base de données et la propriété dir.root.

Bertrand.