Actually, this is backwards. Tomcat 4 has an implementation of
DaemonContext, and Tomcat 5 uses the non-daemon interface. It's totally not
important for people-that-just-want-to-get-their-app-to-run, but I just
wanted to set the record straight for any stray pedants out there :).
"Shapira, Yoav" <Yoav.Shapira@(protected)
news:9C5166762F311146951505C6790A9CF8013DF7DD@(protected)...
Howdy,
It's commons-daemon (not daemons) ;) To run it with 4.1.29 you need to
right some code. Tomcat 5 has an implementation of the DaemonContext,
you'd need to do something similar for tomcat 4. It's possible. In
fact I believe a solution with more details was discussed within the
past two months on this list: search the archives.
As an aside, since you're using 4.1.29, can you use 5.0.16 instead?
Yoav Shapira
Millennium ChemInformatics
>-----Original Message-----
>From: Marten Lehmann [mailto:lehmann@(protected)]
>Sent: Thursday, December 04, 2003 12:47 PM
>To: tomcat-user@(protected)
>Subject: anyone running tomcat-4.1.29 with commons-daemons?
>
>Hello,
>
>I'm trying to use the commons-daemons package as of 20031204.tar.gz
with
>jakarta-tomcat-4.1.29, everything should be in the right place, but
jsvc
>exits with
>
>
java.lang.NoSuchMethodException:
>org.apache.catalina.startup.BootstrapService.init([Ljava.lang.String;)
> at
java.lang.Class.getMethod1 (
Class.java:1888)
> at
java.lang.Class.getMethod (
Class.java:1056)
> at
>
org.apache.commons.daemon.support.DaemonLoader.load (
DaemonLoader.java:1
65)
>jsvc.exec error: Cannot load daemon
>jsvc.exec error: Service exit with a return value of 3
>
>commons-daemon.jar and bootstrap.jar are available at the defined
place.
>Does this release maybe only work with tomcat 5? Any help would be
great!
>
>Regards
>Marten
>
>Regards
>Marten
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>For additional commands, e-mail: tomcat-user-help@(protected)
This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged. This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else. If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender. Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)