Platinum Partner
java,devops,tips and tricks,server-side

Errors Starting Two Instances of Tomcat 6 on Windows Server

Today I was setting up a second tomcat instance on a single Windows machine and was not able to run two instances at the same time. The first instance started fine, but when I went to start a second instance the second server would not start.

I found the following errors in the logs from the jakarta_service_20121010.log:

[2012-10-10 14:37:15] [206 javajni.c] [error] The specified module could not be found.
[2012-10-10 14:37:15] [985 prunsrv.c] [error] Failed creating java C:\Java\jre6\bin\client\jvm.dll
[2012-10-10 14:37:15] [1280 prunsrv.c] [error] ServiceStart returned 1

At first, both services where set to use jvm mode for both Startup and Shutdown.

But the solution to allow both to work, was to set both services to Java mode for both Startup and Shutdown as seen here:

Tomcat6w.exe Service settings

Now running multiple instances runs like a charm.

 

 

Published at DZone with permission of {{ articles[0].authors[0].realName }}, DZone MVB. (source)

Opinions expressed by DZone contributors are their own.

{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}