On Wed, Sep 12, 2018 at 3:23 AM Mummidising, Muddukrishna (TR Technology & Ops) <[email protected]> wrote: > > Hi JCR Team, > > I am looking for help with two issues. So please can anyone provide solution > with high priority > > Sometimes my application getting below error and our web application not > able to open, So once I restart my tomcat only issue getting resolved. I > attached error details. > > Error creating bean with name 'scopedTarget.jcrRepository' defined in > ServletContext resource [/WEB-INF/fs3repository-Context.xml]: Instantiation > of bean failed; nested exception is > org.springframework.beans.factory.BeanDefinitionStoreException: Factory > method [public javax.jcr.Repository > com.fl.fs3.common.RepositoryFactoryFacade.getRepository(com.fl.fs3.FS3Site)] > threw exception; nested exception is java.lang.RuntimeException: > javax.jcr.RepositoryException: Cannot instantiate persistence manager > org.apache.jackrabbit.core.persistence.db.DerbyPersistenceManager: Database > '/flocal/apps/projects/apache-2080/firmsites/repository/d/dnrbzpc/workspaces/default/db' > not found.: Database > '/flocal/apps/projects/apache-2080/firmsites/repository/d/dnrbzpc/workspaces/default/db' > not found.
Did you check if the derby database file you're using was removed for any reasons? For example, does the custom repository implementation in your env, which is based on Jackrabbit, does something to remove it at some moment? The last error log seems to suggest that the derby db file isn't found at the moment. > > I trying to search and replace partial string muddu from full word > 'muddukrishna. But below query not able to get the result, please can anyone > help me to resolve the issue with and without case sensitive. > > String query = siteRepoPath + > "/content/element(*,fsp:wigContainer)[jcr:contains(@prop:contentTemplate, > '%muddu%')]"; I don't think jcr:contains is supposed to work with '%...%' as it's designed for full text searches based on the analyzed terms. > > I tried jcr:like also with different combinations *muddu* but no luck. > Thanks. jcr:like might work, regardless of its performance. Did you also try with jcr:like(@prop:..., 'foo%'), having only a right-hand %? Woonsan > > > > Even I tried to raise issue from JCR jira > https://issues.apache.org/jira/browse/JCR-4356 , But they told contact > jackrabbit-users mailing to get it resolve. Please help us to resolve. > Thanks. > > > > Thanks, > > Krishna MM > >
