Deploy a jar in tomcat

java, tomcat

Solution

No, it's not. You have to create a web app that includes your jar and a servlet (as a bare minimum).

Have a look at this http://docs.oracle.com/javaee/6/tutorial/doc/bnafd.html

Problem

It is possible deploy a simple jar in tomcat and it run that??? A simple example,is just execute main and print a hello world :P

Original source