CMDBuild Forum

Alfresco, Shark, and CMDBuild 2.1.5 Install

I have installed CMDBuild demo database (named cmdbuild) on Postgres SQL 9.3 with the shark schema. I have changed the context.xml file to contain the database name and I have installed the 'shark' user on the database.

I have changed the shark.conf file to contain the updated username/password from the user created within the administration console.

# CMDBuild connection settings
org.cmdbuild.ws.url=http://localhost:8280/cmdbuild/
org.cmdbuild.ws.username=workflow
org.cmdbuild.ws.password=admin

I have changed the shark client to the proper ports for my Tomcat instance. (Port 8281)

#WfEngineInteroperabilityManagerClassName=org.enhydra.shark.interoperability.WfXMLInteroperabilityImpl
#Interoperability.Host=localhost
#Interoperability.Port=8280
#Interoperability.ObserverPath=/axis/services/asapObserverBinding
#Interoperability.IgnoreTerminateAndAbortRemoteExceptions=false

#Interoperability.Auth.1=http://localhost:8281/sharkWebClient/wfxmlFactoryBinding,admin,enhydra
#Interoperability.Auth.2=http://localhost:8281/sharkWebClient/wfxmlInstanceBinding,admin,enhydra
#Interoperability.Auth.3=http://localhost:8281/sharkWebClient/asapObserverBinding,admin,enhydra

I have updated the shark.xml file with the database name.

In the SETUP tab on the Admin console I have enabled Workflow Engine on http://localhost:8280/shark

What are the credentials that should be entered in this area? When I browse to the service location of shark, I get no webservice from the URL.

The shark workflow engine in Tomcat 6 shows that shark is running but I get PermGen space errors in Tomcat. I have modified the catalina files to allocate more space.

Together Workflow Server 4.4-1

SharkEngineManager -> Shark engine is being initialized ...
Shark -> shark engine initialization is finished, it lasted 3 [s]
Shark -> Shark ready and waiting ...
        pre getConnection . . . . . .
        pre commit . . . . . .
++++++++++++++++++++++++++++++++++++++ init - end
Dec 16, 2013 2:42:59 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8280
Dec 16, 2013 2:42:59 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8209
Dec 16, 2013 2:42:59 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 16229 ms
Dec 17, 2013 9:23:03 AM org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler process
SEVERE: Error reading request, ignored
java.lang.OutOfMemoryError: PermGen space
Dec 17, 2013 9:23:08 AM org.apache.coyote.http11.Http11AprProcessor process
SEVERE: Error processing request
java.lang.OutOfMemoryError: PermGen space

I have installed Alfresco on Port 8380 and I have created the AlfrescoCategory and Home Space. Alfresco is installed on C:\Alfresco. What are the paths that need to be updated in the SETUP Admin Module to connect to the Alfresco API? I get the ERROR STARTING SESSION. I am able to use Alfresco independently from CMDBuild but the integration with CMDBuild is not working.

 

Hi,
I don't understand if you get the PermGen Space also after you updated tomcat settings.
This is an example of how you could configure the tomcat CATALINA_OPTS="-Dfile.encoding=UTF-8 -Xms512m -Xmx2048m -XX:MaxPermSize=512M -server"
Moreover: shark hasn't a gui interface installed, so you cannot login in shark.
 
About Alfresco: the path are the names of the space you created. For example we usually create the space "cmdbuild" and so the path would be "/Alfresco/User Homes/cmdbuild" for ftp and "/app:company_home/app:user_homes/cm:cmdbuild" for webservices. You could try to use ftp directly to find the right path.
 
If you still have problem after this answer could you try uploading the entire log files?
Thanks.
 

I believe I still have a problem with Shark. After installing the demo database, I am trying to initate the Request for Change workflow from the data console and I receive this error. Error: java.lang.IndexOutOfBoundsException: position (0) must be less than the number of elements that remained (0)and upon loading the application, I get the error: Class RequestForChange non found.

If I try to upload the RequestForChange.xlpd - this is when I get the memory exceptions. I just changed my CATALINA_OPTS to mirror your suggestion.

With Alfresco, I still get the Error: org.alfresco.webservice.util.WebServiceException: Error starting session.
All of the configurations for Alfresco are within the Admin Setup and have been configured. Any other ideas?

Hi
I have a problem in installation and FTP Alfresco
My server details:
Ubuntu Linux
Tomcat7
postgresql 9
cmdbuild 2.1.6


I installed the server version alfresco-community-4.2.
But the following error is displayed when uploading:

 

 

Call: services/json/attachments/getattachmentscontext
------------------------------------------------------
Error: org.alfresco.webservice.util.WebServiceException: Error starting session.
	at org.alfresco.webservice.util.AuthenticationUtils.startSession(AuthenticationUtils.java:88)
Please Help
Very Important

 

 

Previously Loren wrote:

With Alfresco, I still get the Error: org.alfresco.webservice.util.WebServiceException: Error starting session.
All of the configurations for Alfresco are within the Admin Setup and have been configured. Any other ideas?

 

CMDBuild uses Alfresco Community 3.4 versione -
Please refer to CMDBuild Technical Manual (page n.9).   http://www.cmdbuild.org/en/documentazione/manuali/technical-manual
 
CMDBuild team