You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ole Ersoy <ol...@gmail.com> on 2007/08/22 19:28:07 UTC

jsvc.exec error: Cannot find daemon loader

Hi,

I'm trying to run tomcat with jsvc.  I did all the things in the manual, and now I'm trying to run it with:

./bin/jsvc -cp ./bin/bootstrap.jar \
        -outfile ./logs/catalina.out -errfile ./logs/catalina.err \
        org.apache.catalina.startup.Bootstrap

And I get this in catalina.err:

22/08/2007 12:17:31 6772 jsvc.exec error: Cannot find daemon loader org/apache/commons/daemon/support/DaemonLoader
22/08/2007 12:17:31 6771 jsvc.exec error: Service exit with a return value of 1

Any ideas how to fix this?

Thanks,
- Ole



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: jsvc.exec error: Cannot find daemon loader

Posted by Ole Ersoy <ol...@gmail.com>.
I think I have this reasonably well isolated.  On Fedora if I:

chmod 750 bootstrap.jar 

I get the error:
31/08/2007 01:05:25 14411 jsvc.exec error: Cannot find daemon loader org/apache/commons/daemon/support/DaemonLoader
31/08/2007 01:05:25 14410 jsvc.exec error: Service exit with a return value of 1

But if I do this instead:
chmod 755 bootstrap.jar 

It works fine.  Strange that bootstrap.jar has to be world readable and executable in order for java to find the daemon loader.  The same case applies to setting permissions for other files, although I have not isolated the exact cases yet.  Right now I'm just leaving the permissions as 644 and 755, rather than 640 and 750, although I'd prefer the latter.

Cheers,
- Ole







Ole Ersoy wrote:
> Hi Markus,
> 
> Thank you for the suggestion.  I tried that as well, but I still get the 
> same message.  I think there is something funky going on with Fedora, as 
> described here:
> 
> http://i-hacker.blogspot.com/2007/01/cannot-find-daemon-loader-issue-with.html 
> 
> 
> I also tried what they did, but still no love.  I'll keep trying with 
> more and more parameters. 
> Cheers,
> - Ole
> 
> 
> 
> Markus Schönhaber wrote:
>> Ole Ersoy schrieb:
>>
>>> I'm trying to run tomcat with jsvc.  I did all the things in the 
>>> manual, and now I'm trying to run it with:
>>>
>>> ./bin/jsvc -cp ./bin/bootstrap.jar \
>>>         -outfile ./logs/catalina.out -errfile ./logs/catalina.err \
>>>         org.apache.catalina.startup.Bootstrap
>>>
>>> And I get this in catalina.err:
>>>
>>> 22/08/2007 12:17:31 6772 jsvc.exec error: Cannot find daemon loader 
>>> org/apache/commons/daemon/support/DaemonLoader
>>> 22/08/2007 12:17:31 6771 jsvc.exec error: Service exit with a return 
>>> value of 1
>>>
>>> Any ideas how to fix this?
>>
>> Add commons-daemon.jar to the classpath:
>>
>> ./bin/jsvc -cp ./bin/commons-daemon.jar:./bin/bootstrap.jar \
>>         -outfile ./logs/catalina.out -errfile ./logs/catalina.err \
>>         org.apache.catalina.startup.Bootstrap
>>
>> Regards
>>   mks
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
> 

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: jsvc.exec error: Cannot find daemon loader

Posted by Ole Ersoy <ol...@gmail.com>.
Hi Markus,

Thank you for the suggestion.  I tried that as well, but I still get the same message.  I think there is something funky going on with Fedora, as described here:

http://i-hacker.blogspot.com/2007/01/cannot-find-daemon-loader-issue-with.html

I also tried what they did, but still no love.  I'll keep trying with more and more parameters.  

Cheers,
- Ole



Markus Schönhaber wrote:
> Ole Ersoy schrieb:
> 
>> I'm trying to run tomcat with jsvc.  I did all the things in the manual, and now I'm trying to run it with:
>>
>> ./bin/jsvc -cp ./bin/bootstrap.jar \
>>         -outfile ./logs/catalina.out -errfile ./logs/catalina.err \
>>         org.apache.catalina.startup.Bootstrap
>>
>> And I get this in catalina.err:
>>
>> 22/08/2007 12:17:31 6772 jsvc.exec error: Cannot find daemon loader org/apache/commons/daemon/support/DaemonLoader
>> 22/08/2007 12:17:31 6771 jsvc.exec error: Service exit with a return value of 1
>>
>> Any ideas how to fix this?
> 
> Add commons-daemon.jar to the classpath:
> 
> ./bin/jsvc -cp ./bin/commons-daemon.jar:./bin/bootstrap.jar \
>         -outfile ./logs/catalina.out -errfile ./logs/catalina.err \
>         org.apache.catalina.startup.Bootstrap
> 
> Regards
>   mks
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: jsvc.exec error: Cannot find daemon loader

Posted by Markus Schönhaber <ma...@schoenhaber.de>.
Ole Ersoy schrieb:

> I'm trying to run tomcat with jsvc.  I did all the things in the manual, and now I'm trying to run it with:
> 
> ./bin/jsvc -cp ./bin/bootstrap.jar \
>         -outfile ./logs/catalina.out -errfile ./logs/catalina.err \
>         org.apache.catalina.startup.Bootstrap
> 
> And I get this in catalina.err:
> 
> 22/08/2007 12:17:31 6772 jsvc.exec error: Cannot find daemon loader org/apache/commons/daemon/support/DaemonLoader
> 22/08/2007 12:17:31 6771 jsvc.exec error: Service exit with a return value of 1
> 
> Any ideas how to fix this?

Add commons-daemon.jar to the classpath:

./bin/jsvc -cp ./bin/commons-daemon.jar:./bin/bootstrap.jar \
        -outfile ./logs/catalina.out -errfile ./logs/catalina.err \
        org.apache.catalina.startup.Bootstrap

Regards
  mks

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org