Dear all,
I am using Tomcat 6 over JRE 1.6 on OSX. I have installed and deploy cmdbuild 2.2.1 with no problems so far. It runs ok, only I get the 'Class RequestForChange not found' error, I guess because the shark service is not yet installed. I installed cmdbuild with the Demo database.
Then I have downloaded shark-cmbuild-2.2.1. when deploying the shark.war on Tomcat6, even before configuring it, the functionality of the cmbuild gets affected. For example, I cannot access now the Administration module. It keeps showing the message 'waiting for Localhost'. After that, I cannot even reload the Tomcat6 manager. So usually what I do is to force a stop of the Tomcat, manually remove the shark.war and deployed shark, restart Tomcat6 and everything seems fine again. Cmdbuild works again and I can access the Administration module. It seems as it did not like the presence of 'shark' at all!
Anyway, I have tried again but now configuring the shark environment prior to relaunching cmdbuild, following step by step the instructions in the README file. First I stop both services (cmdbuild and shark). I left most of the settings as default, for testing purposes. Here it is how I configure it:
shark/conf/Shark.conf:
org.cmdbuild.ws.url=http://localhost:8080/cmdbuild/
org.cmdbuild.ws.username=workflow
org.cmdbuild.ws.password=changeme
Regarding that username and password, I have a cmdbuild user called 'workflow', defined already in the Demo database. I changed its password to 'changeme', from the Administration module. I am not sure if that user is the same one used in the Shark.conf. It is very confusing to me.
Then in 'cmdbuild/WEB-INF/conf/auth.conf:
auth.methods=DBAuthenticator
#serviceusers=portlet
serviceusers.privileged=workflow
#force.ws.password.digest=true
Then, in 'shark/META-INF/context.xml'
<Resource
name="sharkdb"
type="javax.sql.DataSource"
driverClassName="org.postgresql.Driver"
url="jdbc:postgresql://localhost/cmdbuild"
username="shark"
password="shark"
maxIdle="10"
maxActive="300"
maxWait="5000"
factory="org.enhydra.jndi.DataSourceFactory"/>
</Context>
Here I am not sure if the default 'shark' user created in the Postgres database has that password 'shark'. Also what does this 'name=sharkdb' refers to?? My cmdbuild postgres database is called 'cmdbuild', as I named it like that when performing the guided installation of cmdbuild 2.2.1. Should I change that to 'name=cmdbuild'. What about the password. Everything is superconfusing for me and neither the README file nor the Technical manual provide any light on this.
Anyway, I log in again into cmdbuild, and I keep getting the 'Class RequestForChange not found' error. Then I access the Administration module, and under 'Setup/Workflow':
I enable the workflow engine
Server URL : http://localhost:8080/shark
Then under 'Credentials'...more confusion! what should I put here?
username: workflow / password: changeme
or what?
Then, I get the following errors registered in the logs:
shark.log:
"at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
2014-11-20 11:46:32,075: Problem while initializing caches !!!"
cmdbuild.log:
"ERROR 2014-11-20 11:48:08 [jsonrpc ] A java.lang.OutOfMemoryError occurred calling method class org.cmdbuild.servlets.json.schema.ModClass.getAllClasses: PermGen space"
catalina.out
"Shark -> shark engine initialization is finished, it lasted 1 [s]
Shark -> Shark ready and waiting ...
pre getConnection . . . . . .
pre commit . . . . . .
++++++++++++++++++++++++++++++++++++++ init - end
Nov 20, 2014 11:46:32 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Nov 20, 2014 11:46:32 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Nov 20, 2014 11:46:32 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Nov 20, 2014 11:46:32 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Nov 20, 2014 11:46:32 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Nov 20, 2014 11:46:32 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/14 config=null
Nov 20, 2014 11:46:32 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 12160 ms
Client Type is WS
XA UserTransaction lookup name is null
Client Type is WS
XA UserTransaction lookup name is null
Client Type is WS
XA UserTransaction lookup name is null
Client Type is WS
XA UserTransaction lookup name is null"
Thank you very much for any help!