cancel
Showing results for 
Search instead for 
Did you mean: 

jcr-context.xml screwes up iBATIS somehow...

alexeyg
Champ in-the-making
Champ in-the-making
I am trying to use iBATIS while also using JCR.  I also use Spring.  Spring is configured with iBATIS. 

For some reason if I include jcr-context.xml in contextConfigLocation all my iBATIS queries get messed up.  It adds "alfresco." to the Table and I get SQL exception.

so a simple query like:

<statement id="getProjectsAsMap" resultClass="java.util.HashMap">
select ID from Projects;
</statement>

throws "cannot find table alfresco.projects" SQL Exception.

If I remove jcr-context.xml from web.xml everything works (it looks for table Projects).  I'll post here if I find more info.  thanks!
1 REPLY 1

alexeyg
Champ in-the-making
Champ in-the-making
hmm looks like Spring was picking up Alfresco's dataSource Spring bean…
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.