Deploy war file tomcat 5.5




















In talking about deployment of web applications, the concept of a Context is required to be understood. A Context is what Tomcat calls a web application. In order to configure a Context within Tomcat a Context Descriptor is required. In earlier versions of Tomcat the content of a Context Descriptor configuration was often stored within Tomcat's primary configuration file server. Context Descriptors not only help Tomcat to know how to configure Contexts but other tools such as the Tomcat Manager and TDC often use these Context Descriptors to perform their roles properly.

If a Context Descriptor is not provided for a Context, Tomcat configures the Context using default values. If you are not interested in using the Tomcat Manager, or TCD, then you'll need to deploy your web applications statically to Tomcat, followed by a Tomcat startup. The location you deploy web applications to for this type of deployment is called the appBase which is specified per Host.

You either copy a so-called exploded web application , i. WAR file. The following deployment sequence will occur on Tomcat startup in that case:. Note again that for each deployed web application, a Context Descriptor will be created unless one exists already. If the Host autoDeploy attribute is "true", the Host will attempt to deploy and update web applications dynamically, as needed, for example if a new.

WAR is dropped into the appBase. For this to work, the Host needs to have background processing enabled which is the default configuration. Note that web application reloading can also be configured in the loader, in which case loaded classes will be tracked for changes.

The Tomcat Manager is covered in its own manual page. Finally, deployment of web application may be achieved using the Tomcat Client Deployer.

This is a package which can be used to validate, compile, compress to. WAR, and deploy web applications to production or development Tomcat servers. It should be noted that this feature uses the Tomcat Manager and as such the target Tomcat server should be running.

Apache Ant is a scripted build tool. The TCD comes pre-packaged with a build script to use. Active 8 years, 8 months ago. Viewed 4k times. JoshDM 4, 7 7 gold badges 43 43 silver badges 71 71 bronze badges. Raghuram Raghuram 79 1 1 gold badge 2 2 silver badges 9 9 bronze badges. Add a comment. Active Oldest Votes. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. If you see the Tomcat's home page, then you have succesfully configured the tomcat server setup.

Click on the buildcentral link in the updated table to access the application from your browser. PS: if you have any errors after the 10 step, you can see the log file for the runtime errors that are associated to your war file.

Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Ask Question. Asked 8 years, 10 months ago. Active 8 years, 8 months ago. Viewed 4k times. Improve this question.



0コメント

  • 1000 / 1000