participate


HotSpot Internals - Can't register Tomcat as Windows service on some computers, under Java6
<<   Back to Forum  |   Give us Feedback
This topic has 52 replies on 4 pages.    1 | 2 | 3 | 4 | Next »
irek_m
Posts:3
Registered: 1/4/07
Can't register Tomcat as Windows service on some computers, under Java6   
Jan 4, 2007 3:23 AM

 
When I use Java 1.6.0:
Tomcat started using startup.bat works fine.
When started using tomcat5.exe does nothing, and exits.
When registered as a Windows service, and started using:

net start tomcat5

There is a meaningless error message on the console, but in
jakarta_service.log I find:

[2006-12-21 16:59:48] [173 javajni.c] [error] Can't create the specified
module.
[2006-12-21 16:59:48] [764 prunsrv.c] [error] Failed creating java
D:\Programs\Java\jdk1.6.0\jre\bin\server\jvm.dll
[2006-12-21 16:59:48] [982 prunsrv.c] [error] ServiceStart returned 1

This problem occurs on Tomcat 5.0.28, and Tomcat 6.

When I use Java 1.5.0 everything works fine.
What's more strange: This problem occurs on Celeron 3000. On other computers with Intel Core 2 Duo E6300 or Pentium 4 3000 everything works fine. All the computers have the same OS (Windows XP SP2). Is this a problem with Tomcat or Java?

How to solve this problem?
 
marcjordant
Posts:12
Registered: 8/1/00
Re: Can't register Tomcat as Windows service on some computers, under Java6   
Jan 19, 2007 2:17 AM (reply 1 of 52)  (In reply to original post )

 
I have the same problem using JavaService with jdk1.6 on a Windows 2000.
It works well with 1.5 but when I install the service with 1.6 the service cannot start and I have the same error than you.
Do you find something that can resolve the problem?
 
neverever
Posts:37
Registered: 10/22/97
Re: Can't register Tomcat as Windows service on some computers, under Java6   
Jan 19, 2007 2:21 PM (reply 2 of 52)  (In reply to #1 )

 
I've seen other reports of these kinds of failure and I think it's a tomcat configuration problem. Check out the tomcat mailing lists or google for tomcat and that error message.

tom
 
homer400
Posts:5
Registered: 11/3/00
Re: Can't register Tomcat as Windows service on some computers, under Java6   
Feb 6, 2007 10:04 AM (reply 3 of 52)  (In reply to #2 )

 
I have the same problem as well. I have looked at the code in javajni.c that is part of the error message. It looks like Tomcat's service code starts Java through JNI, which I had no idea. Anyway my guess is the JDK6 JNI libraries probably have a different set of parameters or some kind of different requirements in order to get a JVM instance running. The odd thing is that there are reports of people running JDK6 Tomcat in Windows as a Service. Confused. Anyway I have to get my Maven proximity server back up so back to 5 for me.
 
irek_m
Posts:3
Registered: 1/4/07
Re: Can't register Tomcat as Windows service on some computers, under Java6   
Feb 12, 2007 5:46 AM (reply 4 of 52)  (In reply to original post )

 
After a few months I've found solution of this problem:
When I run tomcat5.exe under Sysinternals File Monitor, I see that Tomcat can't find msvcr71.dll. Some computers have it, and some not. When I copy this file to <windows>/system32 directory, everything works well.
Probably some part of JRE 1.6 uses this DLL, but it isn't included in JRE installation package.
 
Naveed3434
Posts:1
Registered: 2/28/07
Re: Can't register Tomcat as Windows service on some computers, under Java6   
Feb 28, 2007 10:18 AM (reply 5 of 52)  (In reply to #4 )

 
Thanks irek_m!

Had the same problem, moved msvcr71.dll to a system path directory and it started working right away.
 
toeside
Posts:1
Registered: 3/12/07
Re: Can't register Tomcat as Windows service on some computers, under Java6   
Mar 12, 2007 8:18 PM (reply 6 of 52)  (In reply to #4 )

 
I had exactly the same issue with starting Tomcat 6 as a service under Win2K Pro and Java 1.6.0 (JDK and JRE)

The messages showing in the jakarta_service_yyyymmdd.log file were:

[174 javajni.c] [error] The specified module could not be found.
[947 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre1.6.0\bin\client\jvm.dll
[1202 prunsrv.c] [error] ServiceStart returned 1

Per your post, copying msvcr71.dll to the <windows>/system32 directory solved the problem right away.
 
pucherico
Posts:9
Registered: 1/4/99
Re: Can't register Tomcat as Windows service on some computers, under Java6   
Mar 31, 2007 5:44 AM (reply 7 of 52)  (In reply to original post )

 
It's happended the same to me. But it works out as soon as I reboot the system. I haven't copied any dll's file. Just reboot your system and tomcat should run without any trouble!
 
Bessie
Posts:1
Registered: 5/6/07
Re: Can't register Tomcat as Windows service on some computers, under Java6   
May 6, 2007 11:11 AM (reply 8 of 52)  (In reply to #7 )

 
Thanks a MILLION to irek_m!!! Restart did not work for me, but the missing msvcr71.dll file was the key!!! Thanks again!!!
 
mimi_tan1985
Posts:77
Registered: 8/4/05
Re: Can't register Tomcat as Windows service on some computers, under Java6   
May 7, 2007 9:24 PM (reply 9 of 52)  (In reply to #8 )

 
Yah, thanks a lot too to irek_m, I'm having this problem and msvcr71.dll really solve it (I wonder why -.-)
 
rhastings1
Posts:8
Registered: 12/8/06
Re: Can't register Tomcat as Windows service on some computers, under Java6   
May 10, 2007 6:30 PM (reply 10 of 52)  (In reply to #9 )

 
I copied msvcr71.dll to Tomcat 5.5\bin and it worked. Thanks.
 
tscahill
Posts:1
Registered: 5/15/07
Re: Can't register Tomcat as Windows service on some computers, under Java6   
May 15, 2007 6:57 AM (reply 11 of 52)  (In reply to original post )

 
I recently installed Java Runtime Version 1.6.0(build 1.6.0_01-b06) on my Windows XP Pro SP2 1GB RAM 1.5 GHZ IBM ThinkPad Laptop.

When attempting to run the Cisco ASDM Launcher v1.4(9) that originally ran successfully under the Java Runtime Version 1.5.0_11.

asdm-launcher.config
##Copyright (c) 2004-2006 by Cisco Systems, Inc.
mainclass com.cisco.launcher.Launcher
addpath lzma.jar
addpath jploader.jar
addpath asdm-launcher.jar
addbootpath .
vmparam -Xmx256m

I experienced a similar error to what was being posted on this forum except that I ran into the error launching an application on a desktop.

The messages:

This application failed to start because MSVCR71.dll was not found. Re-installing the application may fix this issue.
Followed by the message:
Unable to load "C:\Program Files\Java\jre1.6.0_01\bin\client\jvm.dll"

I copied the msvcr71.dll from c:\program files\java\jre1.6.0_01\bin
to my c:\winnt\system32 as posted in this forum.

After copying the file I relaunched the application and it worked flawlessly.
I am able to run the application Cisco ASDM Launcher again as I was able to do before installing the latest version of Java 6.0 Runtime
Hope this helps others experiencing similar issues with Java Runtime 6.0,msvcr71.dll, and jvm.dll errors.
 
wangzhengjiang
Posts:2
Registered: 10/1/01
Re: Can't register Tomcat as Windows service on some computers, under Java6   
Jun 14, 2007 1:50 AM (reply 12 of 52)  (In reply to original post )

 
I have same problem,
after I add 'C:\Program Files\Java\jre1.6.0_01\bin' on environment variable 'Path', solved the problem.
 
yesudas
Posts:2
Registered: 7/3/07
Re: Can't register Tomcat as Windows service on some computers, under Java6   
Jul 3, 2007 9:55 PM (reply 13 of 52)  (In reply to #4 )

 
Thank you very much irek_m...
How did you identified this problem?
Its great job..
 
Rockdrala
Posts:5
Registered: 7/3/07
Re: Can't register Tomcat as Windows service on some computers, under Java6   
Jul 4, 2007 10:33 AM (reply 14 of 52)  (In reply to #13 )

 
THis thread is Genius. Just wondering why hasnt Sun Microsystems repsonded on where to manually fix this file path? they lazy?
 
This topic has 52 replies on 4 pages.    1 | 2 | 3 | 4 | Next »
Back to Forum
 
Read the Developer Forums Code of Conduct

Click to email this message Email this Topic

Edit this Topic
  
 
 
Forums Statistics
    Users Online : 17
  • Guests : 121

About Sun forums
  • Sun Forums is a large collection of user generated discussions. It is here to help you ask questions, find answers, and participate in discussions.

    Check out our guide on Getting started with Sun Forums for a full walkthrough of how to best leverage the benefits of this community.

Powered by Jive Forums