In last post we create in Netbeans WebApp application(jsp website). But if you want to run this application in tomcat without use Netbeans IDE, do these things describing below.
First open Netbeans IDE and right click on project name and choose Clear and Build.
So delete from webapps WebApp.war file and from D:\tomcat8\conf\Catalina\localhost WebApp.xml file – configuration file of WebApp application.
Run tomcat 8 from console as before,
open browser and type in it address:
The server ask You for user and password, so write in it user as tomcat and password as tomcat. These atat are configured in tomcat-users.xml file in conf tomcat folder.
You see list of all applications and tools.
Click on WebApp link to your application. The application will be display.
So if you copy war file from Netbeans and paste it into webapps folder, in tomcat will be creating in D:\tomcat8\conf\Catalina\localhost configuration file: WebApp.xml,
but if you browse war file from Manager App in tomcat and deploy this application, in webapps folder in tomcat will be unpacked war archive as webapp catalogue.