Skip to main content

jvm.dll problem with tomcat service

6 replies [Last post]
scesbron
Offline
Joined: 2004-07-26

Hi,

I am using the tomcat service utility. In this service, you can specify which mode you want to use to launch java.
In jvm mode you have to specify a jvm.dll location. I speficy %JAVA_HOME%\jre\bin\server\jvm.dll.

With jdk 5.0 everything is ok.

With mustang (beta2), this does not work until I add %JAVA_HOME%\jre\bin to windows path.

Do you have any clue on what's the problem. There is clearly a regression in my case between tiger and mustang. Do I have to fill a bug report somewhere ?

Thanx

Seb

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
srimanta_roy
Offline
Joined: 2008-07-09

Hello,
I had a similar problem with tomcat 6 using jre1.6.0.6.
I simply made another copy of bin/msvcr71.dll into client directory. Done. It work!

Hope this helps, Good Luck!
- Srimanta Roy
[Gemini Systems, NY]

alanb
Offline
Joined: 2005-08-08

You may need to elaborate more in order to diagnose this one. When you say "this does not work", do you mean it doesn't start? Is there a crash, an error message? At a guess, I wonder if the issue is a dependency on msvcr71.dll.

scesbron
Offline
Joined: 2004-07-26

Hi don't know if you know this tool but Tomcat as a service tool. This tool is made of two parts : tomcat5.exe and tomcat5w.exe. The first exe is used to install the service and to start the java program in a console. The second one is used to configure the tomcat service and launch the java program as a service.

With the later one, in the configuration panel, you have to specify which jvm to use. You can use a standard java launcher or specify a jvm.dll file.

I specify the "server\jvm.dll file. After configuring the service like this, I run tomcat5.exe to see my launch in a console. In that case, nothing happen, the program launch and stop just after. By default there is no log for that. I've just found after some investigations that the exe is not able to launch the java command.

As this tool forks fine for us before we investigate why it does not work anymore and we found that we have changed our jre.
So we try it again with jre 1.5.0_07 and it works fine with it.
After investigating more, we have seen that if we add the jre\bin folder in windows path, everything is ok. This workaround is not good for us because it needs to restart the computer to work.

I do not understand what you mean when you say "I wonder if the issue is a dependency on msvcr71.dll". Is this a new mustang dependency ? do I have to copy this dll into system32 folder ?

Thanx for you help, If you need more information / logs I can try to give them to you

Seb

scesbron
Offline
Joined: 2004-07-26

I've search and seen that msvcr71.dll is installed on my computer but not on the one where the tomcat5.exe fails. So I copy my msvc71.dll to windows\system32 but this does not solve the problem. I will investigate more.

Seb

kellyohair
Offline
Joined: 2004-09-03

Make sure the copy of msvcr71.dll has execute permissions.

-kto

scesbron
Offline
Joined: 2004-07-26

The problem is really annoying because with mustang the service won't start until we reboot the computer.

I just want to know if this is considered as a bug in mustang or if I have to tell tomcat guys that their tool have a problem with mustang