cancel
Showing results for 
Search instead for 
Did you mean: 

Problema creazione ed deploy nuovo modulo

mparrella
Champ in-the-making
Champ in-the-making
Salve amici.
Ho provato ad estendere una funzionalità di alfresco creando un nuovo modulo seguendo il <a href="http://wiki.alfresco.com/wiki/Data_Dictionary_Guide#Step_by_Step_Model_Definition">wiki</a>
quindi ho creato il mio <B>custom-module.xml</B> inserito sotto il percorso shared\classes\alfresco\extension\model
e
<B>custom-module-context.xml</B> in shared\classes\alfresco\extension
<b>core-services-context.xml</b> in shared\classes\
<b>custom-slingshot-application-context.xml</b> in shared\classes\alfresco\web-extension

in fase di restart del server, in catalina.out mi compare il seguente stackTrace


2014-03-19 16:22:49,379  INFO  [extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor freemarker for extension ftl
2014-03-19 16:22:49,385  INFO  [extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor javascript for extension js
2014-03-19 16:22:49,386  INFO  [extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor freemarker for extension ftl
2014-03-19 16:22:49,387  INFO  [extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor javascript for extension js
2014-03-19 16:22:52,322  INFO  [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 367 Web Scripts (+0 failed), 381 URLs
2014-03-19 16:22:52,322  INFO  [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 8 Package Description Documents (+0 failed)
2014-03-19 16:22:52,322  INFO  [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 0 Schema Description Documents (+0 failed)
2014-03-19 16:22:52,454  INFO  [extensions.webscripts.AbstractRuntimeContainer] [localhost-startStop-1] Initialised Spring Surf Container Web Script Container (in 3062.0962ms)
2014-03-19 16:22:52,457  INFO  [extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor freemarker for extension ftl
2014-03-19 16:22:52,458  INFO  [extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor javascript for extension js
2014-03-19 16:23:00,202  ERROR [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-3] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 02190001 GetModelsDiff return status is 401
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1059)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1897)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1227)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:513)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
2014-03-19 16:23:00,202  ERROR [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-1] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 02190000 GetModelsDiff return status is 401
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1059)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1897)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1227)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:513)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
2014-03-19 16:23:15,040  ERROR [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-3] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 02190002 GetModelsDiff return status is 401
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1059)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1897)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1227)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:513)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
2014-03-19 16:23:15,043  ERROR [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-2] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 02190003 GetModelsDiff return status is 401
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1059)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1897)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1227)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:513)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
2014-03-19 16:23:30,042  ERROR [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-3] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 02190004 GetModelsDiff return status is 401
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1059)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1897)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1227)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:513)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
2014-03-19 16:23:30,048  ERROR [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-2] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 02190005 GetModelsDiff return status is 401
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1059)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1897)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1227)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:513)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
2014-03-19 16:23:45,036  ERROR [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-2] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 02190006 GetModelsDiff return status is 401
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1059)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1897)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1227)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:513)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
2014-03-19 16:23:45,037  ERROR [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-3] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 02190007 GetModelsDiff return status is 401
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1059)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1897)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1227)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:513)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
2014-03-19 16:24:00,039  ERROR [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-1] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 02190008 GetModelsDiff return status is 401
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1059)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1897)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1227)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:513)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
2014-03-19 16:24:00,039  ERROR [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-2] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 02190009 GetModelsDiff return status is 401
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1059)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1897)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1227)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:513)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
2014-03-19 16:24:15,027  ERROR [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-3] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 02190010 GetModelsDiff return status is 401
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1059)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1897)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1227)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:513)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
2014-03-19 16:24:15,027  ERROR [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-1] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 02190011 GetModelsDiff return status is 401
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1059)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1897)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1227)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:513)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
2014-03-19 16:24:30,035  ERROR [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-3] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 02190012 GetModelsDiff return status is 401
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1059)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1897)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1227)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:513)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
2014-03-19 16:24:30,035  ERROR [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-1] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 02190013 GetModelsDiff return status is 401
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1059)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1897)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1227)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:513)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
2014-03-19 16:24:45,035  ERROR [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-3] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 02190014 GetModelsDiff return status is 401
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1059)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1897)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1227)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:513)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
2014-03-19 16:24:45,035  ERROR [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-1] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 02190015 GetModelsDiff return status is 401
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1059)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1897)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1227)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:513)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
2014-03-19 16:25:00,099  ERROR [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-2] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 02190016 GetModelsDiff return status is 401
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1059)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1897)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1227)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:513)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
2014-03-19 16:25:00,100  ERROR [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-3] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 02190017 GetModelsDiff return status is 401
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1059)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1897)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1227)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:513)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)



durante una prima installazione, ho risolto questo problema cancellando e ricreando lo schema "Alfresco" sotto MySql.
Essendo già avanti con la configurazione ed utilizzo della piattaforma non vorrei cancellare il db.
Inoltre ho anche provato a svuotare la temp di tomcat e cancellare gli indici di Solr.
come solr indexing ho impostato lucene

### Solr indexing ###
index.subsystem.name=lucene


Credo sia un problema legato all'ambiente e non al nuovo modulo ( vari errori di formalizzazoine del modulo si sono già presentati ed ho risolto )

se avete bisogno di maggiori dettagli dite pure.

Grazie in anticipo
2 REPLIES 2

mparrella
Champ in-the-making
Champ in-the-making
effettivamente non era un problema riguardante la creazione del modulo, ma si era inchiodato Alfresco.
Ho cancellato la Temp di tomcat,
ho cancellato il contenuto dei file sotto le directory
Alfresco\alf_data\solr\archive\SpacesStore
Alfresco\alf_data\solr\workspace\SpacesStore

modificato il file alfresco-global.properties

index.recovery.mode=FULL
#index.recovery.mode=AUTO

dopo aver fatto questa operazione commentate l'istruzione che termina con FULL e decommentate quella che termina con AUTO

nel file 'core-services-context.xml ho aggiunto solo l'istruzione
<!– Custom Model–>
<value>alfresco/extension/model/data-module.xml</value>

All’interno del tag
<bean id="dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="resourceBundles">
        <property name="models">
            <list>
            …….

in fine ho fatto un paio di giri sulla sedia, qualche calcio al case, riavviato tomcat …
ha funzionato.
Saluti a tutti

Ciao,

secondo me sono stati determinanti il "paio di giri sulla sedia" e "qualche calcio al case" Smiley Very Happy

Scherzi a parte… non mi quadra solo perchè usi il file "core-service-model.xml" in shared/classes.
Da quello che capisco stai mettendo in esso lo stesso contenuto di custom-model-context.xml… o c'è un'altro motivo?