Hi Christoph,

(Christoph Bütler) wrote:
Dear list

I have several magnolia 2.1 installations running on the same linux box. One tomcat (5.5.9) with two magnolias (public, author). On this everything works fine.

With magnolia 2.1.3 an the same setup, the public repository is loaded two times -> existing .lock-files

In tomcat/conf/context.xml I have this line:

<Context path="" docBase="magnoliaPublic" />

If I delete this line, then the startup works fine - no .lock-file problems. But the I cant reacht the magnoliaPublic without /magnoliaPublic at the end of the url.

You probably have a magnoliaPublic.war or upacked magnoliaPublic directory 
under your webapps.
Tomcat starts the magnolia webapp for every context, that is once for the 
configured root context and once for the autogenerated magnoliaPublic context.

The most common way to get around this is just renaming magnoliaPublic to ROOT 
and remove the line from context.xml

Another way is to move the magnoliaPublic directory to a folder outside of 
webapps and refernces that in a Context entry.

As the Tomcat docs discourage setting up contexts directly inside the global 
context.xml, what I usally do is create context configuration in the config 
directory of the Tomcat vhost the app is running on for every webapp. In the 
simplest cas this means put your magnolia Public anywhere outside of webapps 
and create a  file ROOT.xml inside of {catalina.home}/conf/Catalina/localhost 
with a single line
<Context docBase="{path.to.magnoliaPublic}"/>

See the setup of the tomcat manager application for an example and the tomcat 
docs for thorough explanation on how to set up applications and map them to 
context, virtual hosts, etc.

Apache and tomcat are coummincating via JkMount.

Any hints?


HTH,

-markus

Thanks
Christoph

----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to