On 08/02/2010 21:59, John McKaine wrote:

Hello everyone.

The problem is fairly simple, but I just do not know what was happening.

On Tomcat server I have  virtual host and my application like this
(server.xml):

Which version of Tomcat, OS, JVM etc?  Exact versions do matter.

     <Engine Name="Catalina" defaultHost="www.workinua.com.ua">

It's probably an editing error, but at one Host should match the defaultHost.

       <Host Name="www.mysite.com" appBase="webapps" autoDeploy="false">
             <Alias>  Workinua.com.ua</ Alias>
             <Context Path="" docBase="MyApp" debug="0" />

Case matters, "path" not "Path".

Defining a docBase which is inside the appBase of the Host, while stating a different path, will cause double deployment.

Defining Context in server.xml is strongly discouraged in recent versions of Tomcat.

The default application should be called "ROOT".

If you are using Tomcat 5.5 or 6.0, define the Context in a file in your application like so:

  tomcat/webapps/ROOT/META-INF/context.xml
  tomcat/webapps/ROOT/WEB-INF/web.xml


p


       </ Host>

    </ Engine>


   After starting the server Tomcat, the context of my application is
initialized twice, I see it on logs.
>
At the forums encountered such a problem - advise to put autoDeploy =
"false", but it did not help.
I have tried all cases, but never got only one context initialized.
I would appreciate any ideas.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to