cancel
Showing results for 
Search instead for 
Did you mean: 

deploy - Error querying database

swa1
Champ in-the-making
Champ in-the-making
Hi,

when deploying I get the follow error:

[deploy-bar] SCHWERWIEGEND: Error while closing command context
[deploy-bar] org.apache.ibatis.exceptions.PersistenceException:
[deploy-bar] ### Error querying database.  Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for selectDbSchemaVersion
[deploy-bar] ### The error may exist in org/activiti/db/ibatis/variable.mapping.xml
[deploy-bar] ### Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for selectDbSchemaVersion

Anybody an idea what could be the reason for that?

Thanks
Steffen
12 REPLIES 12

bartas
Champ in-the-making
Champ in-the-making
I think that You should enforce a strict dependency on org.apache.ibatis packages (e.g. org.apache.ibatis.transaction;version="3.0.1") because activiti doesn't work for me with 3.0.4 and 3.0.5 packages. Moreover if You download mybatis-3.0.1 You will see that manifest is empty (manifest in 3.0.4 and 3.0.5 looks ok), so to use this package in OSGI environment I had to export the sources through my own bundle (org.apache.ibatis.*;-split-package:=merge-last).

ryan1
Champ in-the-making
Champ in-the-making
Hello Bartas,
Could you share your mybatis-3.0.4 which you already merge (a.k.a running well with activiti 5.3).
I have same problem with mybatis-3.0.4 with exception :
Mapped Statements collection does not contain value for selectProperty


Thanks,
Ryan

jbarrez
Star Contributor
Star Contributor
Is this in OSGI environment?

If so, what steps should be taken to fix it (osgi-noob here)