Link to home
Start Free TrialLog in
Avatar of jazzIIIlove
jazzIIIloveFlag for Sweden

asked on

Programatically Import a WAR file to my existing Tomcat

Hi;

I need to programatically Import a WAR file to my existing Tomcat via Java as  a simple console application.

I try to use this but it didn't really work out.

https://samindaw.wordpress.com/2010/06/14/eclipse-plugin-programatically-exportcreatebuild-war-file/

Is there a way to do this simply?
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

You do know that 'importing a war' is actually nothing more than copying the war file to the apps directory? Work on that basis
Avatar of jazzIIIlove

ASKER

and what about deploying that war file? And extracting it? Is there any fast way?

Br.
That IS deploying it. Tomcat will do any extraction that's necessary
Hi Cehj;

Thanks. I was extracting manually (right click on war and extracting with 7zip) under ROOT folder and tomcat was dealing it automatically without an issue.

So, what you say is that i shouldn't be extracting it?

Br
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial