Hi,
I am facing issue in making shark application work with openmaint.
My environment:
- MS Windows 7 Professional 64Bit
- Apache Tomcat 8.5.28
- openmaint-1.1-2.4.3
- PostgeSQL server version 10
Following are the two issues I am facing:
Issue No. 1. Related to OpenMaint
I configured the application by using frontend setup wizard and loaded it with demo data. With that I am able to login but when I login I see a small prompt at right bottom corner which says:
Class RequestForChange not found
Following is the log message in cmdbuild.log
--------------------------------------------------------------------------------------------------------------
INFO 2018-02-23 14:42:48 [jsonrpc ] Calling url /utils/gettranslationobject
INFO 2018-02-23 14:42:49 [jsonrpc ] Calling url /schema/setup/getconfiguration
INFO 2018-02-23 14:42:49 [jsonrpc ] Calling url /schema/setup/getconfiguration
INFO 2018-02-23 14:42:49 [jsonrpc ] Calling url /bim/rootclassname
INFO 2018-02-23 14:42:49 [jsonrpc ] Calling url /schema/setup/getconfiguration
INFO 2018-02-23 14:42:49 [jsonrpc ] Calling url /schema/setup/getconfiguration
INFO 2018-02-23 14:42:49 [jsonrpc ] Calling url /gis/getgistreenavigation
INFO 2018-02-23 14:42:49 [jsonrpc ] Calling url /utils/listavailabletranslations
INFO 2018-02-23 14:42:49 [jsonrpc ] Calling url /schema/setup/getconfiguration
INFO 2018-02-23 14:42:49 [jsonrpc ] Calling url /schema/setup/getconfiguration
INFO 2018-02-23 14:42:49 [jsonrpc ] Calling url /schema/modsecurity/getuiconfiguration
INFO 2018-02-23 14:42:49 [jsonrpc ] Calling url /schema/setup/getconfiguration
INFO 2018-02-23 14:42:49 [jsonrpc ] Calling url /schema/modclass/getallclasses
INFO 2018-02-23 14:42:49 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:49 [jsonrpc ] Calling url /dashboard/list
INFO 2018-02-23 14:42:49 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:49 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:49 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:49 [workflow] getting all active process classes
INFO 2018-02-23 14:42:49 [workflow] getting all process classes
INFO 2018-02-23 14:42:49 [jsonrpc ] Calling url /schema/modclass/getalldomains
INFO 2018-02-23 14:42:49 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:49 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:49 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:49 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:49 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:49 [jsonrpc ] Calling url /schema/modlookup/tree
INFO 2018-02-23 14:42:49 [workflow] getting all process classes
WARN 2018-02-23 14:42:49 [cmdbuild] Cannot fetch if the process 'Activity' is startable
INFO 2018-02-23 14:42:49 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:49 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:49 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:49 [workflow] getting process class with name 'Activity'
ERROR 2018-02-23 14:42:49 [jsonrpc ] Error retrieving start activity for process
INFO 2018-02-23 14:42:49 [jsonrpc ] Calling url /widget/readall
INFO 2018-02-23 14:42:50 [jsonrpc ] Calling url /schema/modclass/readall
INFO 2018-02-23 14:42:50 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:50 [jsonrpc ] Calling url /schema/modmenu/getassignedmenu
INFO 2018-02-23 14:42:50 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:50 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:50 [jsonrpc ] Calling url /custompages/readforcurrentuser
INFO 2018-02-23 14:42:50 [jsonrpc ] Calling url /workflow/readall
INFO 2018-02-23 14:42:50 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:50 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:50 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:50 [workflow] getting all active process classes
INFO 2018-02-23 14:42:50 [workflow] getting all process classes
INFO 2018-02-23 14:42:50 [workflow] getting all process classes
WARN 2018-02-23 14:42:50 [cmdbuild] Cannot fetch if the process 'Activity' is startable
INFO 2018-02-23 14:42:50 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:50 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:50 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:50 [workflow] getting process class with name 'Activity'
INFO 2018-02-23 14:42:50 [jsonrpc ] Calling url /viewmanagement/read
ERROR 2018-02-23 14:42:50 [jsonrpc ] Error retrieving start activity for process
INFO 2018-02-23 14:42:50 [jsonrpc ] Calling url /dashboard/list
INFO 2018-02-23 14:42:50 [jsonrpc ] Calling url /management/modreport/getreporttypestree
INFO 2018-02-23 14:42:50 [jsonrpc ] Calling url /custompages/readforcurrentuser
INFO 2018-02-23 14:42:50 [jsonrpc ] Calling url /utils/generateid
INFO 2018-02-23 14:42:50 [jsonrpc ] Calling url /schema/modlookup/getlookuplist
INFO 2018-02-23 14:42:51 [jsonrpc ] Calling url /utils/generateid
INFO 2018-02-23 14:42:51 [jsonrpc ] Calling url /schema/modclass/getallclasses
INFO 2018-02-23 14:42:51 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:51 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:51 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:51 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:51 [workflow] getting all process classes
INFO 2018-02-23 14:42:51 [jsonrpc ] Calling url /schema/modclass/getallclasses
INFO 2018-02-23 14:42:51 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:51 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:51 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:51 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:51 [workflow] getting all process classes
INFO 2018-02-23 14:42:51 [workflow] getting all process classes
INFO 2018-02-23 14:42:51 [workflow] getting all process classes
WARN 2018-02-23 14:42:51 [cmdbuild] Cannot fetch if the process 'RequestForChange' is startable
INFO 2018-02-23 14:42:51 [workflow] getting all process classes
WARN 2018-02-23 14:42:51 [cmdbuild] Cannot fetch if the process 'RequestForChange' is startable
INFO 2018-02-23 14:42:51 [workflow] getting all process classes
WARN 2018-02-23 14:42:51 [cmdbuild] Cannot fetch if the process 'Activity' is startable
WARN 2018-02-23 14:42:51 [cmdbuild] Cannot fetch if the process 'Activity' is startable
INFO 2018-02-23 14:42:52 [jsonrpc ] Calling url /schema/modmenu/getassignedmenu
INFO 2018-02-23 14:42:52 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:52 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'
INFO 2018-02-23 14:42:52 [jsonrpc ] Calling url /custompages/readforcurrentuser
INFO 2018-02-23 14:42:52 [jsonrpc ] Calling url /dashboard/getchartdata
INFO 2018-02-23 14:42:52 [jsonrpc ] Calling url /dashboard/getchartdata
INFO 2018-02-23 14:42:53 [jsonrpc ] Calling url /dashboard/getchartdata
--------------------------------------------------------------------------------------------------------
Issue No. 2: Related to shark
When I try to open url: http://localhost:8080/shark/
I get following message on screen:
AXIS error
No service is available at this URL
In the log file shark.log, I get following error message:
-------------------------------------------------------------------------------------------------
2018-02-23 14:12:35,200: SharkEngineManager -> Working with 'org.enhydra.shark.caching.LRUCacheMgr' implementation of Caching API
2018-02-23 14:12:35,403: <SqlQueryExecute><SqlQueryException>(<Replicated>:ERROR: relation "shkprocessstates" does not exist
Position: 32)
2018-02-23 14:12:35,405: <SqlQueryExecute><SqlQueryException>(<Replicated>:ERROR: current transaction is aborted, commands ignored until end of transaction block)
2018-02-23 14:12:35,409: DODSPersistentManager -> persisting String variables into BLOB for sizes greater than 4000
2018-02-23 14:12:35,409: SharkEngineManager -> Working with 'org.enhydra.shark.instancepersistence.DODSSelectivePersistenceManager' implementation of InstancePersistence API
2018-02-23 14:12:35,420: DODSGlobalPersistenceManager -> persisting String data into BLOB for sizes greater than 4000
2018-02-23 14:12:35,420: SharkEngineManager -> Working with 'org.enhydra.shark.globalpersistence.DODSGlobalPersistenceManager' implementation of GlobalPersistence API
2018-02-23 14:12:36,906: SharkEngineManager -> Working with 'org.cmdbuild.workflow.CMDBuildEventAuditManager' implementation of EventAudit API
2018-02-23 14:12:36,949: SharkEngineManager -> Working with 'org.enhydra.shark.repositorypersistence.DODSRepositoryPersistenceManager' implementation of RepositoryPersistence API
2018-02-23 14:12:36,953: SharkEngineManager -> Working with 'org.enhydra.shark.scripting.StandardScriptingManager' implementation of Scripting API
2018-02-23 14:12:36,953: SharkEngineManager -> Working without Security API implementation - SecurityManager is not specified.
2018-02-23 14:12:37,068: StandardToolAgentManager -> Working with 'org.enhydra.shark.appmappersistence.DODSApplicationMappingAdmin' implementation of ApplicationMapPersistence API
2018-02-23 14:12:37,068: SharkEngineManager -> Working with 'org.enhydra.shark.toolagent.StandardToolAgentManager' implementation of ToolAgentManager API
2018-02-23 14:12:37,068: SharkEngineManager -> Working without wfEngineInteroperability API implementation - WfEngineInteroperability implementation is not specified.
2018-02-23 14:12:37,089: SharkUtilities -> synchronizing XPDL cache
2018-02-23 14:12:37,101: <SqlQueryExecute><SqlQueryException>(<Replicated>:ERROR: current transaction is aborted, commands ignored until end of transaction block)
2018-02-23 14:12:37,101: Problem while initializing caches !!!
2018-02-23 14:22:50,710: SharkEngineManager -> Working with 'org.enhydra.shark.CallbackUtil' implementation of core CallbackUtilities API
2018-02-23 14:22:50,710: SharkEngineManager -> Working with 'org.enhydra.shark.SharkObjectFactoryExt' implementation of core SharkObjectFactory API
2018-02-23 14:22:50,710: SharkEngineManager -> Working with 'org.enhydra.shark.StandardToolActivityHandler' implementation of core ToolAgentManager API
2018-02-23 14:22:50,710: SharkEngineManager -> Working with 'org.enhydra.shark.logging.StandardLoggingManager' implementation of Logging API
2018-02-23 14:22:51,069: StandardAssignmentManager -> Working with 'org.enhydra.shark.usergroup.DODSUserGroupManagerAdmin' implementation of UserGroup API
2018-02-23 14:22:51,400: StandardAssignmentManager -> Working with 'org.enhydra.shark.partmappersistence.DODSParticipantMappingAdmin' implementation of ParticipantMapping API
2018-02-23 14:22:51,400: SharkEngineManager -> Working with 'org.enhydra.shark.assignment.StandardAssignmentManager' implementation of Assignment API
2018-02-23 14:22:51,407: Process Cache configured - max. size is 100
2018-02-23 14:22:51,408: Resource Cache configured - max. size is 100
2018-02-23 14:22:51,408: SharkEngineManager -> Working with 'org.enhydra.shark.caching.LRUCacheMgr' implementation of Caching API
2018-02-23 14:22:51,584: <SqlQueryExecute><SqlQueryException>(<Replicated>:ERROR: relation "shkprocessstates" does not exist
Position: 32)
2018-02-23 14:22:51,585: <SqlQueryExecute><SqlQueryException>(<Replicated>:ERROR: current transaction is aborted, commands ignored until end of transaction block)
2018-02-23 14:22:51,589: DODSPersistentManager -> persisting String variables into BLOB for sizes greater than 4000
2018-02-23 14:22:51,589: SharkEngineManager -> Working with 'org.enhydra.shark.instancepersistence.DODSSelectivePersistenceManager' implementation of InstancePersistence API
2018-02-23 14:22:51,598: DODSGlobalPersistenceManager -> persisting String data into BLOB for sizes greater than 4000
2018-02-23 14:22:51,598: SharkEngineManager -> Working with 'org.enhydra.shark.globalpersistence.DODSGlobalPersistenceManager' implementation of GlobalPersistence API
2018-02-23 14:22:53,042: SharkEngineManager -> Working with 'org.cmdbuild.workflow.CMDBuildEventAuditManager' implementation of EventAudit API
2018-02-23 14:22:53,090: SharkEngineManager -> Working with 'org.enhydra.shark.repositorypersistence.DODSRepositoryPersistenceManager' implementation of RepositoryPersistence API
2018-02-23 14:22:53,097: SharkEngineManager -> Working with 'org.enhydra.shark.scripting.StandardScriptingManager' implementation of Scripting API
2018-02-23 14:22:53,097: SharkEngineManager -> Working without Security API implementation - SecurityManager is not specified.
2018-02-23 14:22:53,224: StandardToolAgentManager -> Working with 'org.enhydra.shark.appmappersistence.DODSApplicationMappingAdmin' implementation of ApplicationMapPersistence API
2018-02-23 14:22:53,224: SharkEngineManager -> Working with 'org.enhydra.shark.toolagent.StandardToolAgentManager' implementation of ToolAgentManager API
2018-02-23 14:22:53,224: SharkEngineManager -> Working without wfEngineInteroperability API implementation - WfEngineInteroperability implementation is not specified.
2018-02-23 14:22:53,247: SharkUtilities -> synchronizing XPDL cache
2018-02-23 14:22:53,259: <SqlQueryExecute><SqlQueryException>(<Replicated>:ERROR: current transaction is aborted, commands ignored until end of transaction block)
2018-02-23 14:22:53,260: Problem while initializing caches !!!
2018-02-23 14:28:15,752: <SqlQueryExecute><SqlQueryException>(<Replicated>:ERROR: relation "shkresourcestable" does not exist
Position: 33)
2018-02-23 14:28:15,871: <SqlQueryExecute><SqlQueryException>(<Replicated>:ERROR: relation "shkresourcestable" does not exist
Position: 33)
2018-02-23 14:28:15,909: <SqlQueryExecute><SqlQueryException>(<Replicated>:ERROR: relation "shkresourcestable" does not exist
Position: 33)
2018-02-23 14:28:15,931: <SqlQueryExecute><SqlQueryException>(<Replicated>:ERROR: relation "shkresourcestable" does not exist
Position: 33)
2018-02-23 14:28:15,947: <SqlQueryExecute><SqlQueryException>(<Replicated>:ERROR: relation "shkresourcestable" does not exist
Position: 33)
-----------------------------------------------------------------------------------------------------------------------------------
How can I get rid of this issue and how can I know that shark has been configured properly. The credentials to login into openmaint is admin/admin in my computer. I have set following details in shark configuration files. Are these configurations correct?
Shark.conf:
# CMDBuild connection settings
org.cmdbuild.ws.url=http://localhost:8080/opemmaint/
org.cmdbuild.ws.username=admin
org.cmdbuild.ws.password=admin
context.xml:
I have set following configuration.
<Context>
<Resource
auth="Container"
name="UserTransaction"
type="javax.transaction.UserTransaction"
jotm.timeout="180"
factory="org.objectweb.jotm.UserTransactionFactory"/>
<Resource
name="sharkdb"
type="javax.sql.DataSource"
driverClassName="org.postgresql.Driver"
url="jdbc:postgresql://localhost/openmaint_1_1_demo"
username="postgres"
password="postgres"
maxIdle="10"
maxActive="300"
maxWait="5000"
factory="org.enhydra.jndi.DataSourceFactory"/>
</Context>
Thanks
Devanshu