I am trying to deploy my war using tomcat (implement in java) before running my functional test. Initially I implemented Jetty Server in java and I successfully exposed the URI and I could execute my test. But I want to deploy my war to test it and not just expose the URI,I can obviously use jetty plugin and cargo in my pom file, but I want to use tomcat to do so. I thoroughly searched online, I found sample code on deploying war using tomcat implementation in java [1], so that I can start tomcat, deploy my war and then run my functional test. But it is not clearly explained. Can I refer to any good documentation online which will help me with deploying my war using tomcat?

[1] http://www.programcreek.com/java-api-examples/index.php?api=org.apache.catalina.startup.Tomcat


Question: ASA: How to connect server with a external IP address already assigned?
Answer: I am not sure if this will work for you - but I have a cloud spam filter that can talk to my internal exchange server so it seems like a similar situation.

I have an incoming access rule that permits the source 24.172.x.132 to talk to the destination x.x.x.x (outside ip of your server) for the service smtp.

Then I have a static NAT rule on the outside interface for the source 192.x.x.x (inside ip of your server) for service smtp with the address x.x.x.x (outside ip of your server)

example:

access rule:

outside: 
source;24.172.x.132
destination;server-outside-ip 
service;smtp 
action; permit

NAT Rule:

type;static
no destination
source;server-inside-ip
service;smtp
interface;outside