Yup. There are a couple of ways this can happen in tomcat. If you have for instance your webapp in tomcat's webapps directory named magnolia-bundled-webapp-3.5.2 and then put a context xml file in tomcat's conf/Catalina/localhost named authorTest.xml. In this case it'll be started once under the context path /magnolia-bundled-webapp-3.5.2 and a second time under context path /authorTest. Similarly if you put a <Context ... > </Context> element in your server xml file with a path attribute different than the folder name in the webapps directory, it'll be started twice.

I would drop the context definitions in server.xml and conf/Catalina/localhost if you have any for magnolia and rename the folder in webapps from magnolia-bundled-webapps-3.5.2 to what ever you want the context path to be. That guarantees there is only one instance of magnolia being started. If you really need to be able to deploy magnolia without renaming the folder, deploy it outside tomcat's webapps folder and then place a context xml file in tomcat's conf/Catalina/localhost folder with a proper path and docBase attribute. This also guarantees magnolia is only started once.

--David

Charles Johnson wrote:
Have a look at this: it seems that Magnolia is being started twice...

http://www.cehjohnson.btinternet.co.uk/misc/catalina.out

Charles

David Smith wrote:
Can you provide a complete log from the time tomcat is started until the errors show up? Update the URL you provided in your original post if you like. Also do you have any context.xml files in conf/Catalalina/localhost or server.xml for this magnolia instance?

--David

Charles Johnson wrote:
Well thanks David, but I can assure you that I only installed one Magnolia ;-) There *was* Jackrabbit (which worked fine) but I got rid of it to prevent confusion.

Oh and once I accessed the repository from a Java app, but then that was some time back


Charles

David Smith wrote:
Ok ... deeper look at the log suggests you have two Magnolia instances attempting to access the same repository. Maybe you've inadvertently attempted to map the same webapp to two separate contexts which would create this sort of double launch.


--David


Charles Johnson wrote:
Thanks David.

I suspect that Magnolia is trying to create the lock file more than once, since I delete the lock file and then restart Tomcat. No change. Plain Jackrabbit doesn't seem to have any problems.

Charles

David Smith wrote:
.lock file errors typically show up when tomcat is shutdown badly because of a JVM crash, server crash, or tomcat was forcefully closed w/ a kill command. If the last successful run of tomcat died badly, just delete the .lock files and start tomcat. Things will come back to life normally.

--David

Charles Johnson wrote:
I'm using Debian Etch, Tomcat 6 and magnolia-bundled-webapp-3.5.4

I can't start the app since there seems to be an issue with a lock file in the repository directory. I googled on the error string, and although it seems to be a known issue, I couldn't see a clear solution. How can I correct this?

Please see the server log file at http://www.cehjohnson.btinternet.co.uk/misc/catalina.out

Charles

----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------



----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------



----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------



----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

Reply via email to