google-code-export / red5

Automatically exported from code.google.com/p/red5
0 stars 0 forks source link

red5 1.0.2 java7 service on Windows server 2012 R2 doesn't work (findclass failed) #516

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Install service that its commandline reads "C:\Program Files 
(x86)\Red5\prunsrv.exe" //RS//REDFIVE
2. Try to run - you get error id 1
3. Download never prunsrv version from Apache, overwrite old one and then you 
get error id 4 (seems like more job gets done, but in the end it also dies.

Procrun log (when using newer version than bundled with red5) says:

[2014-07-30 21:29:38] [debug] ( prunsrv.c:1679) [ 6316] Commons Daemon procrun 
log initialized
[2014-07-30 21:29:38] [info]  ( prunsrv.c:1683) [ 6316] Commons Daemon procrun 
(1.0.15.0 64-bit) started
[2014-07-30 21:29:38] [info]  ( prunsrv.c:1596) [ 6316] Running 'REDFIVE' 
Service...
[2014-07-30 21:29:38] [debug] ( prunsrv.c:1374) [ 6760] Inside ServiceMain...
[2014-07-30 21:29:38] [debug] ( prunsrv.c:844 ) [ 6760] reportServiceStatusE: 
2, 0, 3000, 0
[2014-07-30 21:29:38] [info]  ( prunsrv.c:1127) [ 6760] Starting service...
[2014-07-30 21:29:38] [debug] ( javajni.c:222 ) [ 6760] Invalid RuntimeLib 
'C:\Program Files\Java\jre7\bin\client\jvm.dll'
[2014-07-30 21:29:38] [debug] ( javajni.c:224 ) [ 6760] Using Jre JavaHome 
'C:\Program Files\Java\jre7'
[2014-07-30 21:29:38] [debug] ( javajni.c:233 ) [ 6760] loading jvm 'C:\Program 
Files\Java\jre7\bin\server\jvm.dll'
[2014-07-30 21:29:38] [debug] ( javajni.c:704 ) [14268] Jvm Option[0] 
-Djavax.net.ssl.keyStore=c:\Program Files (x86)\Red5/conf/keystore.jmx
[2014-07-30 21:29:38] [debug] ( javajni.c:704 ) [14268] Jvm Option[1] 
-Djavax.net.ssl.keyStorePassword=password
[2014-07-30 21:29:38] [debug] ( javajni.c:704 ) [14268] Jvm Option[2] 
-Xverify:none
[2014-07-30 21:29:38] [debug] ( javajni.c:704 ) [14268] Jvm Option[3] 
-XX:+TieredCompilation
[2014-07-30 21:29:38] [debug] ( javajni.c:704 ) [14268] Jvm Option[4] 
-XX:+UseBiasedLocking
[2014-07-30 21:29:38] [debug] ( javajni.c:704 ) [14268] Jvm Option[5] 
-XX:+UseStringCache
[2014-07-30 21:29:38] [debug] ( javajni.c:704 ) [14268] Jvm Option[6] 
-XX:+UseParNewGC
[2014-07-30 21:29:38] [debug] ( javajni.c:704 ) [14268] Jvm Option[7] 
-XX:InitialCodeCacheSize=8m
[2014-07-30 21:29:38] [debug] ( javajni.c:704 ) [14268] Jvm Option[8] 
-XX:ReservedCodeCacheSize=32m
[2014-07-30 21:29:38] [debug] ( javajni.c:704 ) [14268] Jvm Option[9] 
-Dorg.terracotta.quartz.skipUpdateCheck=true
[2014-07-30 21:29:38] [debug] ( javajni.c:704 ) [14268] Jvm Option[10] 
-Dlogback.ContextSelector=org.red5.logging.LoggingContextSelector
[2014-07-30 21:29:38] [debug] ( javajni.c:704 ) [14268] Jvm Option[11] 
-Dcatalina.useNaming=true
[2014-07-30 21:29:38] [debug] ( javajni.c:704 ) [14268] Jvm Option[12] 
-Djava.security.debug=failure
[2014-07-30 21:29:38] [debug] ( javajni.c:704 ) [14268] Jvm Option[13] 
-Djava.security.manager
[2014-07-30 21:29:38] [debug] ( javajni.c:704 ) [14268] Jvm Option[14] 
-Djava.security.policy=c:\Program Files (x86)\Red5/conf/red5.policy
[2014-07-30 21:29:38] [debug] ( javajni.c:704 ) [14268] Jvm Option[15] 
-Dpython.home=lib
[2014-07-30 21:29:38] [debug] ( javajni.c:704 ) [14268] Jvm Option[16] 
-Djava.class.path=c:\Program Files 
(x86)\Red5\red5-server-bootstrap.jar;c:\Program Files (x86)\Red5\conf
[2014-07-30 21:29:38] [debug] ( javajni.c:704 ) [14268] Jvm Option[17] exit
[2014-07-30 21:29:38] [error] ( javajni.c:863 ) [14268] FindClass 
org/red5/server/Bootstrap failed
[2014-07-30 21:29:38] [debug] ( javajni.c:964 ) [14268] Java Worker thread 
finished org/red5/server/Bootstrap:main with status=3
[2014-07-30 21:29:38] [error] ( prunsrv.c:1183) [ 6760] Failed to start Java
[2014-07-30 21:29:38] [error] ( prunsrv.c:1536) [ 6760] ServiceStart returned 4
[2014-07-30 21:29:38] [debug] ( prunsrv.c:844 ) [ 6760] reportServiceStatusE: 
1, 1066, 0, 4
[2014-07-30 21:29:38] [info]  ( prunsrv.c:1598) [ 6316] Run service finished.
[2014-07-30 21:29:38] [info]  ( prunsrv.c:1764) [ 6316] Commons Daemon procrun 
finished

That's it!

Red5 folder looks like that:

2014-07-26  01:03    <DIR>          .
2014-07-26  01:03    <DIR>          ..
2014-07-25  23:00    <DIR>          conf
2014-07-25  22:59    <DIR>          doc
2014-07-25  23:54             1 344 install-service.bat
2014-07-25  22:59    <DIR>          lib
2014-04-08  05:05             1 339 license.txt
2014-07-30  21:29    <DIR>          log
2014-07-25  22:59    <DIR>          plugins
2013-03-28  23:45           104 448 prunmgr.exe
2013-03-28  13:46           103 936 prunsrv.exe
2011-08-19  00:49               168 red5-debug.bat
2013-03-21  21:35             1 383 red5-highperf.bat
2014-04-08  05:15           785 769 red5-server.jar
2014-04-08  05:15            20 585 red5-service.jar
2011-08-19  00:49               308 red5-shutdown.bat
2014-04-08  05:05             1 412 red5.bat
2014-07-25  22:59    <DIR>          temp
2014-04-08  02:05                93 uninstall-service.bat
2014-07-25  22:59            54 034 uninstall.exe
2014-07-25  23:08    <DIR>          webapps
2014-07-25  23:05    <DIR>          work

Original issue reported on code.google.com by pra...@gmail.com on 30 Jul 2014 at 6:44

GoogleCodeExporter commented 9 years ago
command line red5.bat works fine though!

Original comment by pra...@gmail.com on 30 Jul 2014 at 6:46

GoogleCodeExporter commented 9 years ago
Windows service build is not a current priority

Original comment by mondain on 9 Nov 2014 at 4:05