• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

War file for deploying

 
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Marshal
Posts: 5559
326
IntelliJ IDE Python Java Linux
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 401
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

















 
Ranch Hand
Posts: 378
2
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
a quick example:

https://www.tutorialspoint.com/ant/ant_deploying_applications.htm

 
Tim Cooke
Marshal
Posts: 5559
326
IntelliJ IDE Python Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 401
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 401
  • Likes 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Just let me do the talking. Ahem ... so ... you see ... we have this tiny ad...
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic