1

Is it possible to distribute Tomcat by Java Web Start and run it from there?

My application shall run within its own Tomcat server on the machine it is deployed on. Can I package Tomcat and the client application into one Java Web Start archive and run the Tomcat server and the client once the user has downloaded the Java Web Start archive?

tobiasbayer
  • 10,269
  • 4
  • 46
  • 64

2 Answers2

2

You cannot run a full blown Tomcat as it expects a certain layout in the filesystem and scripts and more.

You can however run an embedded web server in an application where you control it completely. I have done that with Jetty. You might find Howto embed Tomcat 6? interesting.

Community
  • 1
  • 1
Thorbjørn Ravn Andersen
  • 73,784
  • 33
  • 194
  • 347
1

This might be possible if you signed all the jars correctly. But, it seems like this is quite a heavyweight solution. Have you considered doing this with Jetty?

Gary
  • 6,357
  • 5
  • 30
  • 36