[ 
https://issues.apache.org/jira/browse/DAEMON-279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13595096#comment-13595096
 ] 

Ales Dolecek commented on DAEMON-279:
-------------------------------------

Looks like the problem is in Java version used. When used with this JRE:

C:\Java\jre6\bin>java.exe -version
java version "1.6.0_35"
Java(TM) SE Runtime Environment (build 1.6.0_35-b10)
Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01, mixed mode)

I get:

[2013-03-06 21:42:47] [info]  [12536] Commons Daemon procrun (1.0.13.0 64-bit) 
started
[2013-03-06 21:42:47] [info]  [12536] Running 'am' Service...
[2013-03-06 21:42:47] [info]  [ 9356] Starting service...
[2013-03-06 21:42:47] [error] [ 9356] The specified module could not be found.
[2013-03-06 21:42:47] [error] [ 9356] Failed creating java 
C:\Java\jre6\bin\java.dll
[2013-03-06 21:42:47] [error] [ 9356] The specified module could not be found.
[2013-03-06 21:42:47] [error] [ 9356] ServiceStart returned 1
[2013-03-06 21:42:47] [error] [ 9356] The specified module could not be found.
[2013-03-06 21:42:47] [info]  [12536] Run service finished.
[2013-03-06 21:42:47] [info]  [12536] Commons Daemon procrun finished


When used with thi JDK:

I:\am\jdk\jre\bin>java -version
java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b05)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03, mixed mode)

I get:

[2013-03-06 21:48:26] [info]  [ 6908] Commons Daemon procrun (1.0.13.0 64-bit) 
started
[2013-03-06 21:48:26] [info]  [ 6908] Running 'am' Service...
[2013-03-06 21:48:26] [info]  [13192] Starting service...
[2013-03-06 21:48:28] [info]  [13192] Service started in 1820 ms.

We have not installed the first java - it was installed by our customer. Second 
java (JDK) is copied from my computer - eg. not installed by installer.

Aleš
                
> MSVCR should be ditributed with procrun
> ---------------------------------------
>
>                 Key: DAEMON-279
>                 URL: https://issues.apache.org/jira/browse/DAEMON-279
>             Project: Commons Daemon
>          Issue Type: Improvement
>          Components: Procrun
>    Affects Versions: 1.0.13
>            Reporter: Ales Dolecek
>            Priority: Minor
>              Labels: build
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Windows OS does not by default include MSVCR library. And it is not system 
> library and Miscrosoft does not provide it as "standalone" instalation. 
> According to Microsoft knowledgebas it is responsibility of the application 
> authors to distribute the DLL with their product: 
> http://support.microsoft.com/kb/326922/en
> The binary distribution of procrun shall therefore include this file. While 
> many systems already include this somewhere on PATH it is not required. And 
> users often download the DLL from various sites in Internet which leads to 
> security risks.
> If the omission of the DLL is deliberate then you shall document it along 
> with some trusted source where the users might get the library.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to