CMDBuild Forum

Errors in shark

I am installing openmaint with cmdbuild version 2.5.1 and shark version 2.5.1 using Windows Server 2008 R2, tomcat 8.5.32, postgreSQL 9.3 with the demo.backup.

After the deployment and starting the tomcat, there are errors in the shark.log

Shark.log:

2019-04-10 10:43:55,984: SharkEngineManager -> Working with 'org.enhydra.shark.CallbackUtil' implementation of core CallbackUtilities API

2019-04-10 10:43:55,984: SharkEngineManager -> Working with 'org.enhydra.shark.SharkObjectFactoryExt' implementation of core SharkObjectFactory API

2019-04-10 10:43:55,984: SharkEngineManager -> Working with 'org.enhydra.shark.StandardToolActivityHandler' implementation of core ToolAgentManager API

2019-04-10 10:43:55,984: SharkEngineManager -> Working with 'org.enhydra.shark.logging.StandardLoggingManager' implementation of Logging API

2019-04-10 10:43:57,076: SharkEngineManager -> Can't work - Problems while configuring AssignmentManager!

java.lang.Error: Failed to make Standard Connection Allocator : com.lutris.appserver.server.sql.standard.StandardConnectionAllocator: null

at com.lutris.appserver.server.sql.standard.StandardLogicalDatabase.loadConnectionAllocator(Unknown Source)

at com.lutris.appserver.server.sql.standard.StandardLogicalDatabase.initConf(Unknown Source)

at com.lutris.appserver.server.sql.standard.StandardLogicalDatabase.init(Unknown Source)

at com.lutris.appserver.server.sql.standard.StandardLogicalDatabase.<init>(Unknown Source)

at com.lutris.appserver.server.sql.StandardDatabaseManager.loadLogicalDatabase(Unknown Source)

at com.lutris.appserver.server.sql.StandardDatabaseManager.<init>(Unknown Source)

at org.enhydra.shark.utilities.dods.DODSUtilities.init(Unknown Source)

at org.enhydra.shark.utilities.dods.DODSUtilities.init(Unknown Source)

at org.enhydra.shark.usergroup.DODSUserGroupManagerAdmin.configureInternal(Unknown Source)

at org.enhydra.shark.usergroup.DODSUserGroupManagerAdmin.configure(Unknown Source)

at org.enhydra.shark.assignment.StandardAssignmentManager.configure(Unknown Source)

at org.enhydra.shark.SharkEngineManager.init(Unknown Source)

at org.enhydra.shark.SharkEngineManager.init(Unknown Source)

at org.enhydra.shark.SharkEngineManager.configure(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.enhydra.shark.Shark._conf(Unknown Source)

at org.enhydra.shark.Shark.configure(Unknown Source)

at org.enhydra.shark.servlet.SharkInitServlet.init(SharkInitServlet.java:121)

at javax.servlet.GenericServlet.init(GenericServlet.java:158)

at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1144)

at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)

at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:983)

at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4978)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5290)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)

at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1140)

at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)

at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

at java.util.concurrent.FutureTask.run(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

 
And when I access into the openmaint web application, no configuration form can be viewed and no further work can be done. 
 
cmdbuild log:
INFO  2019-04-10 11:21:27 [jsonrpc ] Calling url /utils/gettranslationobject
WARN  2019-04-10 11:21:27 [jsonrpc ] Method not found for URL /utils/gettranslationobject
 
 
My database name is openmaint with user ID = postgre, PW = postgre.
 
I changed the url in Shark.conf only:
# CMDBuild connection settings
org.cmdbuild.ws.url=http://localhost:8081/openmaint/
org.cmdbuild.ws.username=workflow
org.cmdbuild.ws.password=changeme
org.cmdbuild.ws.referencetype.legacy=false
org.cmdbuild.ws.token.enable=true
 
context xml:
<Resource
name="openmaint"
type="javax.sql.DataSource"
driverClassName="org.postgresql.Driver"
url="jdbc:postgresql://localhost/openmaint"
username="postgre"
password="postgre"
maxIdle="10"
maxActive="300"
maxWait="5000"
factory="org.enhydra.jndi.DataSourceFactory"/>
 
Please help. Thanks!