Reputation: 499
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
Upvotes: 4
Views: 20302
Reputation: 1851
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
Upvotes: 5
Reputation: 160191
No.
Tomcat is a web app container, you need to deploy a web app.
Upvotes: 4