CMDBuild Forum

CMDBuil con Shark

Non so italiano, quindi sto utilizzando Google Translate. 


Sto cercando di integrare CMDBuild e lo Shark. Nel file META-INF/context.xml 
 
senza problemi, è uguale al manuale. Ma il shark.conf file del file che ha il pacchetto che era disponibile per il download è diversa da quella manuale. 

Shar.conf il pacchetto che è stato scaricato: 

#============================================================================= 
SHARK # webapp proprietà 
#------------------------------------------------- ---------------------------- 
DatabaseManager.ConfigurationDir shark_webapp = $ {} / conf / Dods 

#============================================================================= 
SHARK # CMDBuild proprietà 
#------------------------------------------------- ---------------------------- 
CMDBuild.Groovy.Repository = $ {} squalo-webapp / script 
CMDBuild.WS.EndPoint IPServer = http:// $ {}: $ {ServerPort} / $ {} cmdbuild_webapp / servizi / soap / privato 
CMDBuild.EndPoint IPServer = http:// $ {}: $ {ServerPort} / $ {} cmdbuild_webapp / squalo / 
CMDBuild.WS.MaxConn = 20 


Nel manuale mostra solo i parametri: 


DatabaseManager.ConfigurationDir shark_webapp_path = $ {} / conf / Dods 
CMDBuild.WS.ConfigPath shark_webapp_path = $ {} / conf / axisrepository 
CMDBuild.WS.EndPoint IPServer = http:// $ {}: $ {ServerPort} / $ {} cmdbuild_webapp / servizi / soap / Webservices 
CMDBuild.WS.ExtSync.EndPoint IPServer = http:// $ {}: $ {ServerPort} / $ {} cmdbuild_webapp / servizi / soap / ExternalSync 
CMDBuild.EndPoint IPServer = http:// $ {}: $ {ServerPort} / $ {} cmdbuild_webapp / squalo / 


In ogni caso, quali sono i valori che deve cambiare al fine di integrare con il CMDBuild Shark. 

Hallo Abdoral,

 

In the recent versions of CMDBuild (it could be after release 1.2, but I'm not sure) some changes have been made about the shark webservices used by it.

May be you are referencing to a not up-to-date manual.

Anyway, here you are a snippet of my shark.conf file (I'm using CMDBuld 1.3.0.1 on linux ubuntu, CMDBuild webapps is on a first tomcat instance on port 8380, while shark is on a second instance of tomcat on port 8280)

In the file some rows are commented-out because replaced by the new ones. A comment before each row explain the changes.

 

Of course you have to replace the path I have (/srv/apache-tomca...) with yours.

 

#=============================================================================
# SHARK webapp properties
#-----------------------------------------------------------------------------
DatabaseManager.ConfigurationDir=/srv/apache-tomcat-6.0.20-shark/webapps/shark/conf/dods


#=============================================================================
# SHARK CMDBuild properties
#-----------------------------------------------------------------------------
CMDBuild.Groovy.Repository=/srv/apache-tomcat-6.0.20-shark/webapps/shark/script


#OLD Webservice used in the previous versions, replaced by "Private" ws
#CMDBuild.WS.EndPoint=http://localhost:8380/cmdbuild/services/soap/Webservices

#NEW(Private instead of Webservices)
CMDBuild.WS.EndPoint=http://localhost:8380/cmdbuild/services/soap/Private

CMDBuild.EndPoint=http://localhost:8380/cmdbuild/shark/

#OLD : NOT USED IN THE NEW VERSION OF CMDBUILD
#CMDBuild.WS.ConfigPath=/srv/apache-tomcat-6.0.20-shark/webapps/shark/conf/axisrepository
#CMDBuild.WS.ExtSync.EndPoint=http://localhost:8380/cmdbuild/services/soap/ExternalSync

CMDBuild.WS.MaxConn=340

 

 

best regards,

 

Alessandro Grillini

 

 

 

Previously Abdoral wrote:

Non so italiano, quindi sto utilizzando Google Translate. 


Sto cercando di integrare CMDBuild e lo Shark. Nel file META-INF/context.xml 
 
senza problemi, è uguale al manuale. Ma il shark.conf file del file che ha il pacchetto che era disponibile per il download è diversa da quella manuale. 

Shar.conf il pacchetto che è stato scaricato: 

#============================================================================= 
SHARK # webapp proprietà 
#------------------------------------------------- ---------------------------- 
DatabaseManager.ConfigurationDir shark_webapp = $ {} / conf / Dods 

#============================================================================= 
SHARK # CMDBuild proprietà 
#------------------------------------------------- ---------------------------- 
CMDBuild.Groovy.Repository = $ {} squalo-webapp / script 
CMDBuild.WS.EndPoint IPServer = http:// $ {}: $ {ServerPort} / $ {} cmdbuild_webapp / servizi / soap / privato 
CMDBuild.EndPoint IPServer = http:// $ {}: $ {ServerPort} / $ {} cmdbuild_webapp / squalo / 
CMDBuild.WS.MaxConn = 20 


Nel manuale mostra solo i parametri: 


DatabaseManager.ConfigurationDir shark_webapp_path = $ {} / conf / Dods 
CMDBuild.WS.ConfigPath shark_webapp_path = $ {} / conf / axisrepository 
CMDBuild.WS.EndPoint IPServer = http:// $ {}: $ {ServerPort} / $ {} cmdbuild_webapp / servizi / soap / Webservices 
CMDBuild.WS.ExtSync.EndPoint IPServer = http:// $ {}: $ {ServerPort} / $ {} cmdbuild_webapp / servizi / soap / ExternalSync 
CMDBuild.EndPoint IPServer = http:// $ {}: $ {ServerPort} / $ {} cmdbuild_webapp / squalo / 


In ogni caso, quali sono i valori che deve cambiare al fine di integrare con il CMDBuild Shark. 

 

Thanks, I try to do that.

 

 

Previously Alessandro wrote:

Hallo Abdoral,

 

In the recent versions of CMDBuild (it could be after release 1.2, but I'm not sure) some changes have been made about the shark webservices used by it.

May be you are referencing to a not up-to-date manual.

Anyway, here you are a snippet of my shark.conf file (I'm using CMDBuld 1.3.0.1 on linux ubuntu, CMDBuild webapps is on a first tomcat instance on port 8380, while shark is on a second instance of tomcat on port 8280)

In the file some rows are commented-out because replaced by the new ones. A comment before each row explain the changes.

 

Of course you have to replace the path I have (/srv/apache-tomca...) with yours.

 

#=============================================================================
# SHARK webapp properties
#-----------------------------------------------------------------------------
DatabaseManager.ConfigurationDir=/srv/apache-tomcat-6.0.20-shark/webapps/shark/conf/dods


#=============================================================================
# SHARK CMDBuild properties
#-----------------------------------------------------------------------------
CMDBuild.Groovy.Repository=/srv/apache-tomcat-6.0.20-shark/webapps/shark/script


#OLD Webservice used in the previous versions, replaced by "Private" ws
#CMDBuild.WS.EndPoint=http://localhost:8380/cmdbuild/services/soap/Webservices

#NEW(Private instead of Webservices)
CMDBuild.WS.EndPoint=http://localhost:8380/cmdbuild/services/soap/Private

CMDBuild.EndPoint=http://localhost:8380/cmdbuild/shark/

#OLD : NOT USED IN THE NEW VERSION OF CMDBUILD
#CMDBuild.WS.ConfigPath=/srv/apache-tomcat-6.0.20-shark/webapps/shark/conf/axisrepository
#CMDBuild.WS.ExtSync.EndPoint=http://localhost:8380/cmdbuild/services/soap/ExternalSync

CMDBuild.WS.MaxConn=340

 

 

best regards,

 

Alessandro Grillini

 

 

 

Previously Abdoral wrote:

Non so italiano, quindi sto utilizzando Google Translate. 


Sto cercando di integrare CMDBuild e lo Shark. Nel file META-INF/context.xml 
 
senza problemi, è uguale al manuale. Ma il shark.conf file del file che ha il pacchetto che era disponibile per il download è diversa da quella manuale. 

Shar.conf il pacchetto che è stato scaricato: 

#============================================================================= 
SHARK # webapp proprietà 
#------------------------------------------------- ---------------------------- 
DatabaseManager.ConfigurationDir shark_webapp = $ {} / conf / Dods 

#============================================================================= 
SHARK # CMDBuild proprietà 
#------------------------------------------------- ---------------------------- 
CMDBuild.Groovy.Repository = $ {} squalo-webapp / script 
CMDBuild.WS.EndPoint IPServer = http:// $ {}: $ {ServerPort} / $ {} cmdbuild_webapp / servizi / soap / privato 
CMDBuild.EndPoint IPServer = http:// $ {}: $ {ServerPort} / $ {} cmdbuild_webapp / squalo / 
CMDBuild.WS.MaxConn = 20 


Nel manuale mostra solo i parametri: 


DatabaseManager.ConfigurationDir shark_webapp_path = $ {} / conf / Dods 
CMDBuild.WS.ConfigPath shark_webapp_path = $ {} / conf / axisrepository 
CMDBuild.WS.EndPoint IPServer = http:// $ {}: $ {ServerPort} / $ {} cmdbuild_webapp / servizi / soap / Webservices 
CMDBuild.WS.ExtSync.EndPoint IPServer = http:// $ {}: $ {ServerPort} / $ {} cmdbuild_webapp / servizi / soap / ExternalSync 
CMDBuild.EndPoint IPServer = http:// $ {}: $ {ServerPort} / $ {} cmdbuild_webapp / squalo / 


In ogni caso, quali sono i valori che deve cambiare al fine di integrare con il CMDBuild Shark. 

 

 

Ciao a tutti,

riesumo questo post, in quanto anche io ho lo stesso errore, nonostante la configurazione di Shark.conf sia come consigliato.

Non mi è chiara solo una cosa, io ho scaricato l'archivio di shark, lo scompattato, ho apportato le modifiche al .conf ed ho caricato la cartella (scompattata) sulla seconda instanza di tomcat. E' corretto??

Previously Alessandro wrote:

Hallo Abdoral,

 

In the recent versions of CMDBuild (it could be after release 1.2, but I'm not sure) some changes have been made about the shark webservices used by it.

May be you are referencing to a not up-to-date manual.

Anyway, here you are a snippet of my shark.conf file (I'm using CMDBuld 1.3.0.1 on linux ubuntu, CMDBuild webapps is on a first tomcat instance on port 8380, while shark is on a second instance of tomcat on port 8280)

In the file some rows are commented-out because replaced by the new ones. A comment before each row explain the changes.

 

Of course you have to replace the path I have (/srv/apache-tomca...) with yours.

 

#=============================================================================
# SHARK webapp properties
#-----------------------------------------------------------------------------
DatabaseManager.ConfigurationDir=/srv/apache-tomcat-6.0.20-shark/webapps/shark/conf/dods


#=============================================================================
# SHARK CMDBuild properties
#-----------------------------------------------------------------------------
CMDBuild.Groovy.Repository=/srv/apache-tomcat-6.0.20-shark/webapps/shark/script


#OLD Webservice used in the previous versions, replaced by "Private" ws
#CMDBuild.WS.EndPoint=http://localhost:8380/cmdbuild/services/soap/Webservices

#NEW(Private instead of Webservices)
CMDBuild.WS.EndPoint=http://localhost:8380/cmdbuild/services/soap/Private

CMDBuild.EndPoint=http://localhost:8380/cmdbuild/shark/

#OLD : NOT USED IN THE NEW VERSION OF CMDBUILD
#CMDBuild.WS.ConfigPath=/srv/apache-tomcat-6.0.20-shark/webapps/shark/conf/axisrepository
#CMDBuild.WS.ExtSync.EndPoint=http://localhost:8380/cmdbuild/services/soap/ExternalSync

CMDBuild.WS.MaxConn=340

 

 

best regards,

 

Alessandro Grillini

 

 

 

Previously Abdoral wrote:

Non so italiano, quindi sto utilizzando Google Translate. 


Sto cercando di integrare CMDBuild e lo Shark. Nel file META-INF/context.xml 
 
senza problemi, è uguale al manuale. Ma il shark.conf file del file che ha il pacchetto che era disponibile per il download è diversa da quella manuale. 

Shar.conf il pacchetto che è stato scaricato: 

#============================================================================= 
SHARK # webapp proprietà 
#------------------------------------------------- ---------------------------- 
DatabaseManager.ConfigurationDir shark_webapp = $ {} / conf / Dods 

#============================================================================= 
SHARK # CMDBuild proprietà 
#------------------------------------------------- ---------------------------- 
CMDBuild.Groovy.Repository = $ {} squalo-webapp / script 
CMDBuild.WS.EndPoint IPServer = http:// $ {}: $ {ServerPort} / $ {} cmdbuild_webapp / servizi / soap / privato 
CMDBuild.EndPoint IPServer = http:// $ {}: $ {ServerPort} / $ {} cmdbuild_webapp / squalo / 
CMDBuild.WS.MaxConn = 20 


Nel manuale mostra solo i parametri: 


DatabaseManager.ConfigurationDir shark_webapp_path = $ {} / conf / Dods 
CMDBuild.WS.ConfigPath shark_webapp_path = $ {} / conf / axisrepository 
CMDBuild.WS.EndPoint IPServer = http:// $ {}: $ {ServerPort} / $ {} cmdbuild_webapp / servizi / soap / Webservices 
CMDBuild.WS.ExtSync.EndPoint IPServer = http:// $ {}: $ {ServerPort} / $ {} cmdbuild_webapp / servizi / soap / ExternalSync 
CMDBuild.EndPoint IPServer = http:// $ {}: $ {ServerPort} / $ {} cmdbuild_webapp / squalo / 


In ogni caso, quali sono i valori che deve cambiare al fine di integrare con il CMDBuild Shark. 

 

 

I made this "tutorial" but when I set in CMDBuild setup occur this exception:

 

 


 
 
 
 
 
 
 
 
 
 
Details
org.cmdbuild.exception.CMDBWorkflowException: WF_WAPI_CONNECTION_ERROR
	at org.cmdbuild.exception.CMDBWorkflowException$WorkflowExceptionType.createException(CMDBWorkflowException.java:54)
	at org.cmdbuild.workflow.WorkflowCache.create(WorkflowCache.java:46)
	at org.cmdbuild.workflow.WorkflowCache.getInstance(WorkflowCache.java:35)
	at org.cmdbuild.elements.ProcessTypeImpl.getPackageVersions(ProcessTypeImpl.java:125)
	at org.cmdbuild.servlets.json.schema.ModWorkflow.xpdlInfo(ModWorkflow.java:135)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at org.cmdbuild.servlets.JSONDispatcher.dispatch(JSONDispatcher.java:89)
	at org.cmdbuild.servlets.JSONDispatcher.doPost(JSONDispatcher.java:51)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.cmdbuild.filters.AuthFilter.doFilter(AuthFilter.java:54)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:244)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.cmdbuild.filters.PatchManagerFilter.doFilter(PatchManagerFilter.java:28)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:244)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.cmdbuild.filters.ConfCheckFilter.doFilter(ConfCheckFilter.java:31)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:244)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.cmdbuild.filters.TranslationFilter.doFilter(TranslationFilter.java:37)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:244)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:383)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:166)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:288)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:679)