On 04/12/2011 11:43 AM, Amit k wrote:
Hi,

Tomcat documentation says that if tomcat is installed as service, it doesn't
show up the console. But in my case this doesn't hold true. Again if the
console is required for std out/err, then redirecting them to file etc wont
help to display the console?

Really is there not any way out?


Nope. As soon you say: "Allow service to interact with desktop"
the window will be shown. Hey you said you won't that.

Services are console applications, and usually need a Console.
Our reason is because JVM uses stderr/stdout which only
work when the process has active console.
Earlier versions of Commons Daemon didn't allocate that
so lot of startup/shudown info was lost (no Console :)

But I already said all of that.

You have few choices:
1) Create a proper GUI<->Service interaction by using IPC
2) Use javaw.exe to run your Tomcat in user session and
   forget about services.
3) Modify Daemon code and comment out the AllocConsole
   API call, loosing Tomcat console messages.
4) Convince Microsoft to ditch the UAC

IMHO anything but 1) is a complete waste of time.
Since Microsoft says you should use IPC to interact with
services from desktop well:
When in Rome, do as Romans do.

Or just use Linux and forget everything about GUI,
desktops, services, Session0, etc ...


Regards
--
^TM

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to