Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

War file for deploying

 
Ranch Hand
Posts: 376
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI
Through ant usage I created  a war file When i click this  war file Java ServerTool command appears
.Now  my problem is how to use this tool to get
my war file deployed.
Thanks
As
CRMK
 
Sheriff
Posts: 4885
317
IntelliJ IDE Python Java Linux
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A WAR file is a Web Application Resource so you'll need a Servlet Container to deploy it into. Something like Apache Tomcat.
 
Comal Rajagopalaratnam Muthukumar
Ranch Hand
Posts: 376
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Cooke wrote:A WAR file is a Web Application Resource so you'll need a Servlet Container to deploy it into. Something like Apache Tomcat.


Hi
Thanks .The war file was stripped down to check the availabity of the  required items as suggested by you
through  the java traditonal method as shown   below (round about way perhaps)and confirm
your suggestion
ie to say the war contains a servlet.jar  and  web.xml
Now with  these two irems the task is to  know how to put the web into the servlet-container that  
might be available in the servler.jar  (Without Tomcat)
What coomands to use so that my fully fledged war may be successfully deployed
Also what if servlet.jar does not contain  this.
Thanks
AS
CRMK

















 
Tim Cooke
Sheriff
Posts: 4885
317
IntelliJ IDE Python Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Comal Rajagopalaratnam Muthukumar wrote:The war file was stripped down to check the availabity of the  required items as suggested by you


I suggested what now? I don't think you understood me because that was not what I was getting at at all.

Apache Tomcat is a separate application consisting of a web server and the facility to take a WAR file and deploy it as a Web application. The WAR does not contain Tomcat, or any other web server.

The website for Apache Tomcat has all the documentation and tutorials you'll need to know how to deploy your WAR with Tomcat.
 
Comal Rajagopalaratnam Muthukumar
Ranch Hand
Posts: 376
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Cooke wrote:

Comal Rajagopalaratnam Muthukumar wrote:The war file was stripped down to check the availabity of the  required items as suggested by you


I suggested what now? I don't think you understood me because that was not what I was getting at at all.

Apache Tomcat is a separate application consisting of a web server and the facility to take a WAR file and deploy it as a Web application. The WAR does not contain Tomcat, or any other web server.

The website for Apache Tomcat has all the documentation and tutorials you'll need to know how to deploy your WAR with Tomcat.




Hi
Thanks.
Tomcat is not helpfull as I tried the build file
But on some alteratoions
The build file is ablr to show success through echo message only
Any suggestion please to use tomcat successfuuly
As
CRMK


   




 
Sheriff
Posts: 7108
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You still have a fundamental misunderstanding for what is need to launch a war file.

Tomcat (or any other container server) must be configured and executed on its own.  You don't put Tomcat in a war file, you deploy a war file to Tomcat.

Start by reading the documentation here: http://tomcat.apache.org/tomcat-8.5-doc/index.html

Read at least the Introduction, Setup, and First Web Application sections.
 
Comal Rajagopalaratnam Muthukumar
Ranch Hand
Posts: 376
  • Likes 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Knute Snortum wrote:You still have a fundamental misunderstanding for what is need to launch a war file.

Tomcat (or any other container server) must be configured and executed on its own.  You don't put Tomcat in a war file, you deploy a war file to Tomcat.

Start by reading the documentation here: http://tomcat.apache.org/tomcat-8.5-doc/index.html

Read at least the Introduction, Setup, and First Web Application sections.



Hi

Your valuable suggestion at the crucial time enabled me to re do of the whole lot of the tomcat operation
and the output was also a success.The web that was deployed  by tomcat is enclosed (screenploto)
customtags.png

Thanks
As
CRMK


customtags.png
[Thumbnail for customtags.png]
please forward it to Knute Snortum.Thanks
 
Destroy anything that stands in your way. Except this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic