Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1368
  • Last Modified:

How to package a jar and deploy to tomcat server?

Hi

I build up a web project with class, xml and jsp files in MyEclipse 6. How can I package it as a jar and deploy to remote tomcat web server?

0
techques
Asked:
techques
  • 2
1 Solution
 
KuldeepchaturvediCommented:
you do not package it as a JAR.. in needs to be packaged as a WAR.. Eclipse has an option for it.
0
 
techquesAuthor Commented:
I select File > Export to export a war file.

How should I configure web.xml and server.xml under tomcat conf?

Do I just place *.war file under webapps folder?



0
 
KuldeepchaturvediCommented:
yes you can just place the *.war file in webapps..
Tomcat will expand it automatically
0
 
javaexpertoCommented:
You can use the command jar to package a jar file. A war file is the same thing that a jar file just change .jar for .war.

If you want to deploy it to remote Tomcat server you need to contact to your administrator to know if you can use war files and where to put them.

Good luck
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now