We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

How to package a jar and deploy to tomcat server?

techques
techques asked
on
Medium Priority
1,426 Views
Last Modified: 2013-11-24
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?

Comment
Watch Question

you do not package it as a JAR.. in needs to be packaged as a WAR.. Eclipse has an option for it.

Author

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?



yes you can just place the *.war file in webapps..
Tomcat will expand it automatically

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
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
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.