Re: [daemon] Procrun and -javaagent

2022-08-24 Thread Mladen Turk
On 20/08/2022 20:05, Martin Gainty wrote: Apparently you can but only as a jenkinsWindowService.exe How to install Windows agents as a service? (cloudbees.com) How to

Re: [daemon]

2014-04-05 Thread Mladen Turk
On 03/25/2014 04:25 PM, Freddie wrote: Depending what your thread does. Does it require some user input, access to some resource. Yes it starts a server when started from the parameters given when I created the service. From cmd I can send it commands to check that it is running, the

Re: [daemon]

2014-03-25 Thread Mladen Turk
On 03/20/2014 04:05 PM, Van der Neut, Frederick wrote: Hi, Is this a limitation of procrun? What else could be causing the service to lock up like this? Depending what your thread does. Does it require some user input, access to some resource. On which windows version is this? Also what

Re: [daemon] Java Service stop acting differently on different machines

2013-08-19 Thread Mladen Turk
On 08/19/2013 12:53 AM, Andrew Miller wrote: Seems like the JVM is crashing, which leads Windows If the JVM crashes you should have jvm's generated crash log file. Doubt that is the reason. What you have in log file is ( javajni.c:471 ) [ 6948] Exit hook with exit code 1 This means that

Re: [daemon] Java Service stop acting differently on different machines

2013-08-19 Thread Mladen Turk
On 08/19/2013 05:11 PM, Andrew Miller wrote: (..\java_error_%p.txt) (passed in via the JvmOptions parameter when the service is installed) and we aren't seeing any logs generated. Is the %p construct handled by Procrun? Nope. Regards -- ^TM

Re: [daemon] JSVC re-exec requires execution with an absolute or relative path

2013-04-30 Thread Mladen Turk
On 04/30/2013 12:47 AM, John Boyer wrote: Hi: UPDATE: The UNIX error message is referring to the absolute path of the jsvc executable. When I invoked the executable with its absolute path it worked. I assume it's the same problem on Mac OS X. /usr/local/bin/jsvc -jvm server -debug -home

Re: [daemon] JSVC re-exec requires execution with an absolute or relative path

2013-04-28 Thread Mladen Turk
On 04/28/2013 11:05 PM, John Boyer wrote: Hello: I'm trying to run jsvc on Ubuntu Linux (10.04.4). I'm getting a re-exec path error. I've sunk a lot of hours into this. I'm beginning to think I should have used the Java Service Wrapper Community Edition instead. Anyway, can anyone help me

Re: [daemon] Stop and force-stop with jsvc

2013-04-12 Thread Mladen Turk
causing shutdown could lead to auto restart. On Tue, Apr 2, 2013 at 6:05 PM, Mladen Turk mt...@apache.org wrote: I'm using Apache Commons Daemon and jsvc to run my Java program as a daemon on GNU/Linux, using Daemon interface. I'd like to have two stop actions: - a simple stop which cancels

Re: [daemon] Stop and force-stop with jsvc

2013-04-02 Thread Mladen Turk
On 04/01/2013 01:49 PM, Olivier Lemasle wrote: Hi, I'm using Apache Commons Daemon and jsvc to run my Java program as a daemon on GNU/Linux, using Daemon interface. I'd like to have two stop actions: - a simple stop which cancels new tasks and waits for the completion of active tasks on my

Re: [daemon] Trouble with procrun commons-daemon log file

2013-03-13 Thread Mladen Turk
On 03/12/2013 07:55 PM, Etienne Dube wrote: On 12/03/2013 12:02 PM, Etienne Dube wrote: On 11/03/2013 12:59 AM, Mladen Turk wrote: Seems there was a bug in log.c. Actually we did not unlock the file before closing and according to MSDN os will unlock the file, but it can take some time. Fix

Re: [daemon] Trouble with procrun commons-daemon log file

2013-03-13 Thread Mladen Turk
On 03/12/2013 07:02 PM, Etienne Dube wrote: Great! I've seen the commit in svn, thank you for fixing it. I will try to fetch an old copy of VC++ 6 to test the fix in our environment. You can also use Visual Studio 2003. Sice it uses MSVCRT71 and the fact that Oracle uses it for building

Re: [daemon] Trouble with procrun commons-daemon log file

2013-03-11 Thread Mladen Turk
On 03/09/2013 06:58 AM, Etienne Dube wrote: Hi, When the logfile is locked in this state, trying to re-start the service fails with error 1053 (The service did not respond to the start or control request in a timely fashion.). I am seeing the prunsvr.exe process appearing in Process Explorer,

Re: [daemon] jsvc won't recognize my entry point class

2013-03-05 Thread Mladen Turk
On 03/04/2013 06:00 PM, Ian Emmons wrote: Update: I've done some digging in the jsvc source code, and it appears to be at odds with the documentation [1]. The docs indicate that I can (a) write a Java class that implements the Daemon interface, or (b) define a class that implements four

Re: [daemon] Problems with Java 7 on MacOS

2013-02-27 Thread Mladen Turk
On 02/26/2013 08:47 PM, Ian Emmons wrote: I am having trouble running commons daemon 1.0.13 on MacOS 10.8.2 with Java 7: However, with Java 1.7 this folder does not exist. Instead, jsvc should be trying to load this shared library: $JAVA_HOME/jre/lib/server/libjvm.dylib If I change

Re: commons daemon weird behaviour

2013-02-25 Thread Mladen Turk
On 02/25/2013 06:38 PM, Jan Šílený wrote: Dear mailing list, I have run into a strange behavior while using procrun to wrap my java application as a Windows service. This issue is linked to DatagramSocket, which is created and bound to local port inside the service. So, what is going on: If I

[ANN] Apache Commons Daemon 1.0.11 released

2012-11-29 Thread Mladen Turk
The Apache Commons Daemon team is pleased to announce the commons-daemon-1.0.11 release! Version 1.0.11 is bug fix release fixing various issues found in 1.0.10 release. Source and binary distributions are available for download from the Apache Commons download site:

[ANN] Apache Commons Daemon 1.0.10 released

2012-11-28 Thread Mladen Turk
The Apache Commons Daemon team is pleased to announce the commons-daemon-1.0.11 release! Version 1.0.11 is bug fix release fixing various issues found in 1.0.10 release. Source and binary distributions are available for download from the Apache Commons download site:

Re: [DAEMON] Re: prunsrv crashes when exiting

2012-10-17 Thread Mladen Turk
On 10/16/2012 11:15 AM, sebb wrote: On 16 October 2012 07:02, Majid Azimi azimi.ma...@yahoo.com wrote: Hi guys, Commons user list is shared, so the subject line must be prefixed with the component name, as I have done in this reply. I have written a simple windows service. It only creates a

Re: [daemon] procrun - windows input limit reached

2012-10-09 Thread Mladen Turk
On 10/09/2012 03:27 PM, John Marcinek wrote: ISSUE: When executing procrun.exe with a long parameter list Windows complains - The input line is too long. Does procrun.exe support a parameter file into which all the parameters can be placed? No. But you can use multiple //US// (Update

Re: [daemon] Problems with commons-daemon, The data area passed to a system call is too small.

2012-10-05 Thread Mladen Turk
On 10/01/2012 10:03 PM, Jehova Witness wrote: --Install=Server.exe ^ This must be absolute path --Startup=auto ^ --DisplayName=MyServer ^ --Description=MyServer ^ --StartMode=jvm ^ --Classpath=C:\Program Files\prod\Server-3.1.0-distribution.jar;C:\Program

Re: Commons daemon - stop the service

2012-05-31 Thread Mladen Turk
On 05/31/2012 02:37 PM, James Wang wrote: I need some insights on how procrun shuts down an application. Procrun has a parameter called “StopTimeout” which Defines the timeout in seconds that procrun waits for service to exit gracefully. What happens after the timeout period? Doe procrun shut

Re: Commons daemon - stop the service

2012-05-31 Thread Mladen Turk
On 05/31/2012 07:53 PM, James Wang wrote: Thanks for the comments. I set both start mode and stop mode to JVM. OK. What will happen when a thread needs 20 more minutes to complete its job? Well for something like that procrun is not the toolkit to use. First of all, if you need to

Re: [deamon] SystemTray

2012-04-27 Thread Mladen Turk
On 04/27/2012 11:17 AM, T Mathis wrote: Hi, I have a java program which uses the SystemTray. Now i'm starting it with commons-deamon 1.0.10 How is it possible to see the SystemTray icon on the desktop (for every user)? With older windows that's possible by using interactive service mode.

Re: Procrun fails to stop service

2012-04-23 Thread Mladen Turk
On 04/20/2012 11:29 PM, James Wang wrote: Konstantin: Thanks for your response. I am running procrun 1.0.7. 32 bit. This happened in our customer's server. I have not been able to replicate it in our own server environment. As soon as I do it, I will send you the details. I have not seen any

Re: [daemon] ftp access code as service

2012-03-08 Thread Mladen Turk
On 03/08/2012 12:25 PM, Ahsan Ikram wrote: Hi, I am trying to run a piece of java code that uses apache commons net library to connect to a folder and download some files as a service. Since you are speaking about 'folder' I presume this is on windows, right? The service is installed ok

[ANN] Apache Commons Daemon 1.0.10 released

2012-02-28 Thread Mladen Turk
The Apache Commons Daemon team is pleased to announce the commons-daemon-1.0.10 release! Version 1.0.10 is bug fix release fixing regression on Linux platforms introduced with 1.0.9 in case the user does not have libcap headers at build time and wrongly reported versions on most platforms.

[ANN] Apache Commons Daemon 1.0.9 released

2012-02-14 Thread Mladen Turk
The Apache Commons Daemon team is pleased to announce the commons-daemon-1.0.9 release! Version 1.0.9 is bug fix release fixing few minor issues. Source and binary distributions are available for download from the Apache Commons download site:

Re: [daemon] compile for use with redhat and debian

2012-01-05 Thread Mladen Turk
On 01/05/2012 05:48 PM, Phil Clay wrote: 1) Is it possible to create a single jsvc binary (that uses libcap), that works if either libcap.so.1 or libcap.so.2 is available at runtime? In theory yes by using the dlopen(libcap.so) and then dlsym all API's instead linking. It is on my TODO

[AANNOUNCE] Apache Commons Daemon 1.0.8 released

2011-11-23 Thread Mladen Turk
The Apache Commons Daemon team is pleased to announce the commons-daemon-1.0.8 release! Version 1.0.8 is both a bug fix and feature update release. Source and binary distributions are available for download from the Apache Commons download site:

Re: [Daemon] CPPFLAGS ignored on HP-UX

2011-10-21 Thread Mladen Turk
On 10/21/2011 12:46 PM, Michael-O wrote: I have found a few more deficiencies with HP-UX. Should I create a ticket for each too? If each can be fixed independently then sure. Regards -- ^TM - To unsubscribe, e-mail:

Re: [daemon] Procrun (Prunsrv) classpath wildcard not working on AMD 64

2011-09-14 Thread Mladen Turk
On 09/13/2011 10:35 PM, Cao, Li wrote: Hi TM, Do you mean the wildcard is not supported on any of the platforms (32bit, IA64 and AMD64), or just not supported on AMD64? I can see the following in the release notes in commons-daemon-1.0.7-bin-windows.zip (which contains Prunsrv.exe) *

[AANNOUNCE] Apache Commons Daemon 1.0.7 released

2011-08-12 Thread Mladen Turk
The Apache Commons Daemon team is pleased to announce the commons-daemon-1.0.7 release! Version 1.0.7 is bug fix release fixing the CVE-2011-2729 security issue. Source and binary distributions are available for download from the Apache Commons download site:

Re: Cannot find daemon loader org/apache/commons/daemon/support/DaemonLoader

2011-08-11 Thread Mladen Turk
On 08/10/2011 07:37 PM, sushil.vichare511 wrote: I try lot but don't know why this error is coming! and any one help me! I presume that excessive use of exclamation marks means that you are new to that internet thing ;) Anyhow, usually this kind of messages mean that you didn't

Re: [daemon]

2011-07-21 Thread Mladen Turk
On 07/21/2011 08:58 AM, Hans Rupp wrote: 2011/7/19 Mladen Turkmt...@apache.org Well, write an ant task and start your application via ant. This is the first thing that comes to my mind. Or write you own simple class that will exec new jvm and monitor it's exit value. Thanks again, but i'm

Re: [daemon]

2011-07-19 Thread Mladen Turk
On 07/19/2011 10:17 AM, Hans Rupp wrote: 2011/7/18 Mladen Turkmt...@apache.org Thank you, this meets my first and third requirement, but how about the second one: Application must be able to recover automatically from jvm crashes (service restarts when terminated abnormally) How can i

Re: [daemon]

2011-07-18 Thread Mladen Turk
On 07/18/2011 09:21 AM, Hans Rupp wrote: 2011/7/15 Mladen Turkmt...@apache.org There is no window if started as service. Are you referring starting the procrun from user session? Why would you wish to do that? Thanks for your answer. I log on as local system account but i'm using the

Re: [daemon]

2011-07-18 Thread Mladen Turk
On 07/18/2011 04:49 PM, Hans Rupp wrote: 2011/7/18 Mladen Turkmt...@apache.org But it would very nice, if you can give me some hints, how to do it a better way. Here is one option: Start - All Programs - Accessories - System Tools - Scheduled Tasks Click on Add Scheduled Task Click Next

Re: How to set procun log rotation on Windows?

2011-07-16 Thread Mladen Turk
On 07/16/2011 07:56 AM, viola lu wrote: Hi, user: I know there is a log rotation of jsvc on linux/Mac, but how to make log rotate on Windows via procun? Appreciate if somebody can help me about it! There is code for log rotation (on a fixed daily basis) but an option should be added to

Re: [daemon]

2011-07-15 Thread Mladen Turk
On 07/15/2011 02:19 PM, Hans Rupp wrote: i have 2 questions about procrun (i’m using win xp). 1. is it possible to run a jar-file as service, so that at service start the standard jdk6 splashscreen is showing? I always get null from getSplashScreen() when running as service, but when I start

Re: [daemon] can't find linux binaries for 1.0.6.

2011-07-12 Thread Mladen Turk
On 07/12/2011 05:15 PM, philip.schw...@thomsonreuters.com wrote: Hi all, I can't find linux binaries for 1.0.6. While http://archive.apache.org/dist/commons/daemon/binaries/1.0.5/ That's correct. We won't maintain posix binaries any more. Dependency on the system libraries makes them lucky

[AANNOUNCE] Apache Commons Daemon 1.0.6 released

2011-07-08 Thread Mladen Turk
The Apache Commons Daemon team is pleased to announce the commons-daemon-1.0.6 release! Version 1.0.6 is both a bug fix and feature update release. Source and binary distributions are available for download from the Apache Commons download site:

Re: [daemon] Cannot execute complex SQL query when run the application with procrun

2011-06-07 Thread Mladen Turk
On 06/07/2011 05:37 AM, irfan romadona wrote: prunsrv //IS//TestSvc --Install=D:\INSTALLER\commons-daemon\commons-daemon-1.0.5-bin-windows\prunsrv.exe ... --StartClass=TestSVCProcRun --StartMethod=main --StartParams=start --StopMode=jvm --StopClass=TestSVCProcRun --StopMethod=main

Re: [daemon] JSVC error Cannot find daemon loader org/apache/commons/daemon/support/DaemonLoader

2011-03-11 Thread Mladen Turk
On 03/11/2011 05:14 PM, Beryle Simmons wrote: Thanks, we are trying to compile on a solaris 10 32 bit container though, the JSVC executable builds but throws the wrong ELF CLASS ELF64 error. We haven't tried compiling with Sun Studio though, we will try compiling the normal way with Sun

Re: [runtime] Stability of memory mapped file support

2011-03-11 Thread Mladen Turk
On 03/12/2011 05:57 AM, Steve Ash wrote: Hello, I am working on something that could benefit from using large memory mapped files. I have had bad experiences with the built in support, and the lack of deterministic unmapping in the past. I am interested in the support offered in Commons

Re: [daemon] JSVC error Cannot find daemon loader org/apache/commons/daemon/support/DaemonLoader

2011-03-10 Thread Mladen Turk
On 03/10/2011 04:45 PM, Beryle Simmons wrote: Has anyone been able to compile and run JSVC on solaris 10/sparc hardware after version 1.0.1? Just wondering if it's a patch or environment issue on our servers or a code problem. Yes. Can you try recompiling the jsvc with ./configure

Re: [daemon] JSVC error Cannot find daemon loader org/apache/commons/daemon/support/DaemonLoader

2011-03-08 Thread Mladen Turk
On 03/07/2011 09:31 PM, Beryle Simmons wrote: I'm having a problem with JSVC in solaris 10. We are using it to run tomcat 5.5 and successfully compiled and ran JSVC version 1.0.1 running tomcat 5.5.29. due to security bugs in tomcat, we need to upgrade to tomcat 5.5.33. I downloaded and

Re: [daemon] The ivy resolver can't version 1.0.3, 1.0.4 or 1.0.5

2011-03-08 Thread Mladen Turk
On 03/08/2011 01:06 PM, Filipe Sousa wrote: Olá Simone, I'll follow your advice. BWT, Is there any reason for the last version (1.0.5) to not exist in maven central? Probably because no one published it. I personally couldn't care less of Maven, and I was RM for few past releases. Anyhow,

Re: [daemon] Procrun registry lookups

2011-01-14 Thread Mladen Turk
On 01/13/2011 06:49 PM, Adam Mlodzinski wrote: I suppose the 32-bit builds would have to use the 32-bit dlls, hence the 32-bit registry location, while 64-bit procrun would have to use 64-bit jvm.dll, hence the 64-bit location. Is that correct? Yes. No translation is done for detecting the

[ANNOUNCE] Commons Daemon 1.0.5 Released

2011-01-07 Thread Mladen Turk
The Commons Daemon team is pleased to announce the commons-daemon-1.0.5 release! Version 1.0.5 is primarily a bug fix release solving mostly MS Windows platform issues. Source and binary distributions are available for download from the Apache Commons download site:

Re: [daemon] Update procrun.html with 64-bit registry details

2010-12-31 Thread Mladen Turk
On 12/31/2010 04:09 AM, Adam Mlodzinski wrote: Hi there, this is my first post to the Apache Commons mailing list. I noticed today that tomcat5.exe stores details of services in a different place on 64-bit Windows compared to 32-bit Windows. They use the same 32-bit location (Wow6432Node)

Re: [procrun] How to start a java service?

2010-12-15 Thread Mladen Turk
On 12/15/2010 09:49 AM, P.N. wrote: Hello! I'm trying to start a java app as a windows service. I've installed the app using: commons-daemon\prunsrv.exe //IS//MyService --DisplayName=My Description --Install=K:\my\path\commons-daemon\prunsrv.exe

Re: [daemon] what is the service wrapper replacement for Procrun and Jsvc?

2010-12-14 Thread Mladen Turk
On 12/14/2010 12:20 AM, Trei, Roberta L wrote: I saw in the archives that Jsvc and Procrun are now deprecated. LOL, said where? On the tanukisoftware web page? Regards -- ^TM - To unsubscribe, e-mail:

Re: [daemon] Cannot find daemon loader

2010-11-18 Thread Mladen Turk
On 11/18/2010 12:09 PM, pieter.br...@gmail.com wrote: I have an 'uber' jar which contains the jars for all dependencies. On my server the following command works fine: sudo jsvc -home /usr/lib/jvm/java-6-openjdk -cp

Re: [daemon] Cannot find daemon loader

2010-11-18 Thread Mladen Turk
On 11/18/2010 02:44 PM, pieter.br...@gmail.com wrote: I browsed the fat jar and it contains this: - /org/apache/commons/daemon - /org/apache/commons/daemon/support/ The DaemonLoader.class is in the support package. The other thing (not sure if this is relevant) is that I don't have a class

[ANNOUNCE] Commons Daemon 1.0.4 Released

2010-10-25 Thread Mladen Turk
The Commons Daemon team is pleased to announce the commons-daemon-1.0.4 release! Version 1.0.4 is primarily a bug fix release with some new features added. Source and binary distributions are available for download from the Apache Commons download site:

Re: [daemon] : Procrun problem

2010-10-08 Thread Mladen Turk
On 10/07/2010 08:44 PM, Megha Bhopale wrote: Hi, I am facing one problem while registering my jar application as windows service using Procrun. I hava a main class and a TimerTask class. I am initiating TimerTask from main class as below. public class mainClass{ public static void

Re: jsvc.exec error: Service exit with return value of 122

2010-10-07 Thread Mladen Turk
On 10/06/2010 06:15 PM, Jason Britton wrote: Running tomcat 6.0.29 using jsvc on 64-bit RHEL 5.5. Tomcat was happily serving requests and then hung, checked log to find jsvc exec error below. 06/10/2010 08:24:38 16880 jsvc.exec error: Still running according to PID file

Re: jsvc thread monitoring

2010-10-05 Thread Mladen Turk
On 10/05/2010 07:20 PM, Benjamin Watine wrote: Hi I use jsvc to start a deamon on an unix plateform. The service starts and stops as expected, but if my thread crashes, the Deamon don't stops and even restart an other thread. I would like to monitor my thread, and if it crashes, the Deamon

Re: [fileupload] File Size Limit Exceeded - Any method for early detection?

2010-10-04 Thread Mladen Turk
On 10/04/2010 07:58 PM, Rob Podolski wrote: Have I miscounstrued things? Any suggestions? Would the streaming API help? I usually see things like 'Max limit xxx MB' or something on every page that allows you to do some upload. Regards -- ^TM

Re: jsvc - Cannot register native methods error

2010-09-30 Thread Mladen Turk
On 09/30/2010 06:37 AM, Jason Britton wrote: Would greatly appreciate insights into Cannot register native methods error below encountered while trying to start tomcat 6.0.29 using jsvc on 64 bit RHEL 5.5. Suggestions to fix this problem in the past have involved making sure commons-daemon.jar

Re: [daemon] Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory

2010-09-28 Thread Mladen Turk
On 09/28/2010 12:26 AM, trags wrote: Try with --StartMode=java This has been taking a long time, because the file paths that worked from the command line are not the same as when running as a service. Actually think I fixed that in the SVN trunk (see DAEMON-100) If you are hit by that bug

Re: [daemon] Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory

2010-09-28 Thread Mladen Turk
On 09/28/2010 03:59 PM, trags wrote: Thanks. I'll revisit this when 1.0.4 is released. For now, by putting the complete path into the log4j properties file, it works entirely. As promised, my audit of the System properties follows, only listing differences: property name --StartMode=jvm

Re: [daemon] Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory

2010-09-23 Thread Mladen Turk
On 09/22/2010 05:31 PM, trags wrote: 2010-09-22 09:47:43,442 DEBUG MyApp getProperty - Get Property (key=PROVIDER_URL,value=file://C:/tmp) 2010-09-22 09:47:43,458 ERROR PCM_DataConnection - DataBase Initialization Failed: javax.naming.NoInitialContextException: Cannot instantiate class:

Re: [daemon] Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory

2010-09-23 Thread Mladen Turk
On 09/23/2010 03:54 PM, trags wrote: Is there something else I should check? Try with --StartMode=java Sun does something internally inside java.exe so it might be useful to dump the properties and environment when starting from command line and from the service. Then try adding missing

Re: [daemon] Using RMI without security manager

2010-09-15 Thread Mladen Turk
On 09/14/2010 09:33 PM, Michael Hagedorn wrote: My App is using RMI to talk between daemon component and GUI. Everything runs within one machine. If I deploy daemon component with '--StartMode=jvm' App runs into exceptions by RMI class loader. It misses a security manager. But I don't want

Re: [daemon] Unable to find Java Runtime Environment

2010-09-14 Thread Mladen Turk
On 09/14/2010 10:29 AM, Michael Hagedorn wrote: --StartMode=java --JavaHome=jre ends up in [error] ServiceStart returned 5 :) I said it would be nice to *have* --JavaHome=jre Create an JIRA feature request issue (https://issues.apache.org/jira/browse/DAEMON) explaining the problems you are

Re: [daemon] Unable to find Java Runtime Environment

2010-09-13 Thread Mladen Turk
On 09/13/2010 05:13 PM, Michael Hagedorn wrote: Hello *, I'm using prunsrv with --Jvm=auto and --StartMode=Java. If I try this on a machine with an out of the box installed JRE6 (no %JAVA_HOME% is set) service startup fails with Unable to find Java Runtime Environment. If I use --JavaHome

Re: [daemon] Unable to find Java Runtime Environment

2010-09-13 Thread Mladen Turk
On 09/13/2010 05:43 PM, Michael Hagedorn wrote: Thanks for the quick answer! To pick up the java.exe by registry would be great too. I don't want to care about JAVA_HOME. If user upgrades JRE service should still work. In case of jvm.dll it will. Why not with java.exe? Indeed, why not.

Re: [Daemon] jsvc.exec error: Cannot register native methods

2010-09-01 Thread Mladen Turk
On 09/02/2010 02:18 AM, David Parks wrote: Anyone have a clue what this means? -classpath /usr/local/tomcat/bin/bootstrap.jar \ -bash-4.0# tail jsvc_err.log 01/09/2010 20:13:09 13620 jsvc.exec error: Cannot register native methods 01/09/2010 20:13:09 13619 jsvc.exec error: Service exit

[ANNOUNCE] Commons Daemon 1.0.3 Released

2010-08-03 Thread Mladen Turk
The Commons Daemon team is pleased to announce the commons-daemon-1.0.3 release! Version 1.0.3 is primarily a bug fix release with some additional features. Source and binary distributions are available for download from the Apache Commons download site:

Re: [daemon]UnsatisfiedLinkError: net exception thown through JSVC but not when natively called

2010-07-26 Thread Mladen Turk
On 07/23/2010 12:18 AM, jason.c.bu...@wellsfargo.com wrote: Hopefully the mailing list can help where I have failed after pulling my hair out for three days. Any advice will be greatly appreciated. I have an AIX 5.2 machine with daemons 1.0.2 and IBM's latest JRE 6 installed: bash-3.1#

Re: [daemon] Problems of downgrading user prevelegies.

2010-04-27 Thread Mladen Turk
On 04/27/2010 01:11 PM, Alexandr Nalbandyan wrote: Hi Following is the problem we have faced when specifying -user option in jsvc. In the following code snipped in init method definition we have tried to create file output stream. public final void init(final DaemonContext arg0) throws

Re: jsvc and profiler option -agent

2010-03-10 Thread Mladen Turk
On 03/10/2010 05:49 PM, Jorge Medina wrote: hi, I am using jsvc to start my Java application. I use Sun JDK 64-bit. I need to start my application with the (Netbeans) profiler using the option

Re: jsvc and profiler option -agent

2010-03-10 Thread Mladen Turk
On 03/10/2010 06:02 PM, Jorge Medina wrote: Can I use those options when starting the JVM through jsvc ? Yes, with version 1.0.2 you should be able to do that. Regards -- ^TM - To unsubscribe, e-mail:

Re: signals in a Daemon?

2010-03-10 Thread Mladen Turk
On 03/10/2010 08:07 PM, Denis Haskin wrote: It seems like jsvc is (as would be expected) putting in its own signal handling, and that is preventing me from being able to trap this signal and prevent my thread from exiting abruptly. Since you didn't say which version, first try with daemon

[ANNOUNCEMENT] Commons Daemon 1.0.2 released

2010-02-25 Thread Mladen Turk
The Commons Daemon team is pleased to announce the commons-daemon-1.0.2 release! Version 1.0.2 is primarily a bug fix release. Source and binary distributions are available for download from the Apache Commons download site: http://commons.apache.org/daemon/download_daemon.cgi When