apache - Tomcat 7 locks the jackrabbit repository -
Hi, I am trying to get my stock through JNDI.
When I try, I get the following message to connect:
"Repository home C: \ apache-tomcat-7.0.53-windows- X64 \ apache-tomcat-7.0.53 \ bin \ myrepo> appears to be in use by a file named. Lock is already locked by the current process. "
This code is a Running on a web application, which is positioned on the same tomecat.
Initial Reference Reference = New Initial Context (); Reference Environment = (Reference) Reference. Lookup ("java: comp / env"); Storehouse = (Repository) environment. Lookup ("jcr / repository");
Tomcat "MyPro" is locking when it starts and does not release it until I close it. Why is this happening?
IPA-ap ache-Tomcat-7.0.53-Windows X64 is running on Windows 7, using JacobBit-WebEp-2.6.5.
Edit on May 10: I have now tried to edit the server. XML NR reference for my badge.
server.xml:
& lt; GlobalNaming Resources & gt; & Lt ;! - Editable user database which can also be used to authenticate users through user database - & gt; & Lt; Resource Name = "UserDatabase" auth = "Container" type = "org.apache.catalina.UserDatabase" Description = "User database that can be updated and saved" factory = "org.apache.catalina.users.MemoryUserDatabaseFactory" pathname = "Conf / tomcat-users.xml" /> & Lt; Resource configFilePath = "C: \ apache-tomcat-7.0.53-windows-x64 \ apache-tomcat-7.0.53 \ bin \ myrepo \ repository.xml" factory = "org.apache.jackrabbit.core.jndi.BindableRepositoryFactory" Name = "jcr / globalRepository" repHomeDir = "C: \ apache-tomcat-7.0.53-windows-x64 \ apache-tomcat-7.0.53 \ bin \ myrepo" type = "javax.jcr.Repository" auth = "container "/> & Lt; / GlobalNamingResources & gt;
context.xml
& lt; Resource Link Name = "jcr / repository" global = "jcr / globalRepository" type = "javax.jcr.Repository" />
The error is still the same.
Inside a repository folder. Lock file. Delete that file.
Comments
Post a Comment