Anyone familiar with the Java Service Wrapper?

I'm getting errors when trying to use the Java Service Wrapper. My wrapper.conf file looks like this:
# Wrapper License Properties (Ignored by Community Edition)
# Include file problems can be debugged by removing the first '#'
#  from the following line:
##include.debug
#include ../conf/wrapper-license.conf
#include ../conf/wrapper-license-%WRAPPER_HOST_NAME%.conf
# Wrapper Java Properties
# Java Application
wrapper.java.command=%JAVA_HOME%\bin\java.exe
# Tell the Wrapper to log the full generated Java command line.
wrapper.java.command.loglevel=INFO
# Java Main class.  This class must implement the WrapperListener interface
#  or guarantee that the WrapperManager class is initialized.  Helper
#  classes are provided to do this for you.  See the Integration section
#  of the documentation for details.
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
# Java Classpath (include wrapper.jar)  Add class path elements as
#  needed starting from 1
wrapper.java.classpath.1=C:\dbbackup\lib\wrapper.jar
wrapper.java.classpath.2=%JAVA_HOME%\lib\tools.jar
wrapper.java.classpath.3=C:\dbbackup\apps\JavaApplication110.jar
# Java Library Path (location of Wrapper.DLL or libwrapper.so)
wrapper.java.library.path.1=C:\dbbackup\lib
# Java Bits.  On applicable platforms, tells the JVM to run in 32 or 64-bit mode.
wrapper.java.additional.auto_bits=TRUE
# Java Additional Parameters
#wrapper.java.additional.1=
# Initial Java Heap Size (in MB)
#wrapper.java.initmemory=3
# Maximum Java Heap Size (in MB)
#wrapper.java.maxmemory=64
# Application parameters.  Add parameters as needed starting from 1
wrapper.app.parameter.1=JavaApplication110.Main
# Wrapper Logging Properties
# Enables Debug output from the Wrapper.
# wrapper.debug=TRUE
# Format of output for the console.  (See docs for formats)
wrapper.console.format=PM
# Log Level for console output.  (See docs for log levels)
wrapper.console.loglevel=INFO
# Log file to use for wrapper output logging.
wrapper.logfile=../logs/wrapper.log
# Format of output for the log file.  (See docs for formats)
wrapper.logfile.format=LPTM
# Log Level for log file output.  (See docs for log levels)
wrapper.logfile.loglevel=INFO
# Maximum size that the log file will be allowed to grow to before
#  the log is rolled. Size is specified in bytes.  The default value
#  of 0, disables log rolling.  May abbreviate with the 'k' (kb) or
#  'm' (mb) suffix.  For example: 10m = 10 megabytes.
wrapper.logfile.maxsize=0
# Maximum number of rolled log files which will be allowed before old
#  files are deleted.  The default value of 0 implies no limit.
wrapper.logfile.maxfiles=0
# Log Level for sys/event log output.  (See docs for log levels)
wrapper.syslog.loglevel=NONE
# Wrapper General Properties
# Allow for the use of non-contiguous numbered properties
wrapper.ignore_sequence_gaps=TRUE
# Title to use when running as a console
wrapper.console.title=Test Wrapper Sample Application
# Wrapper Windows NT/2000/XP Service Properties
# WARNING - Do not modify any of these properties when an application
#  using this configuration file has been installed as a service.
#  Please uninstall the service before modifying this section.  The
#  service can then be reinstalled.
# Name of the service
wrapper.name=dbbackup
# Display name of the service
wrapper.displayname=dbbackup
# Description of the service
wrapper.description=Test Wrapper Sample Application Description
# Service dependencies.  Add dependencies as needed starting from 1
wrapper.ntservice.dependency.1=
# Mode in which the service is installed.  AUTO_START, DELAY_START or DEMAND_START
wrapper.ntservice.starttype=AUTO_START
# Allow the service to interact with the desktop.
wrapper.ntservice.interactive=false
STATUS | wrapper  | 2010/04/05 19:56:22 |
STATUS | wrapper  | 2010/04/05 19:56:22 | Launching a JVM...
INFO   | wrapper  | 2010/04/05 19:56:22 | command: "C:\Program Files\Java\jdk1.5.0_11\bin\java.exe" -Djava.library.path="C:\dbbackup\lib" -classpath "C:\dbbackup\lib\wrapper.jar;C:\Program Files\Java\jdk1.5.0_11\lib\tools.jar;C:\dbbackup\apps\JavaApplication110.jar" -Dwrapper.key="uDobXEdkbmmNM22u" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=584 -Dwrapper.version="3.4.0" -Dwrapper.native_library="wrapper" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp
INFO   | jvm 1    | 2010/04/05 19:56:23 | WrapperManager: Initializing...
INFO   | jvm 1    | 2010/04/05 19:56:23 |
INFO   | jvm 1    | 2010/04/05 19:56:23 | WrapperSimpleApp Usage:
INFO   | jvm 1    | 2010/04/05 19:56:23 |   java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class} [app_arguments]
INFO   | jvm 1    | 2010/04/05 19:56:23 |
INFO   | jvm 1    | 2010/04/05 19:56:23 | Where:
INFO   | jvm 1    | 2010/04/05 19:56:23 |   app_class:      The fully qualified class name of the application to run.
INFO   | jvm 1    | 2010/04/05 19:56:23 |   app_arguments:  The arguments that would normally be passed to the
INFO   | jvm 1    | 2010/04/05 19:56:23 |                   application.
ERROR  | wrapper  | 2010/04/05 19:56:24 | JVM exited while loading the application.
STATUS | wrapper  | 2010/04/05 19:56:28 | CTRL-C trapped.  Shutting down.
STATUS | wrapper  | 2010/04/05 19:56:28 | <-- Wrapper Stopped

I got it to work. Still not sure what I was doing wrong. I just copied a wrapper config I had for launching JBoss and implemented it into my application.
wrapper.java.command=%JAVA_HOME%/bin/java
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
wrapper.java.classpath.1=C:/dbbackup/lib/wrapper.jar
wrapper.java.classpath.2=%JAVA_HOME%/lib/tools.jar
wrapper.java.classpath.3=C:/dbbackup/bin/JavaApplication110.jar
wrapper.java.library.path.1=C:/dbbackup/lib
# these are the JAVA_OPTS
wrapper.java.additional.1=-Dprogram.name=%PROGNAME%
wrapper.java.additional.2=-server
wrapper.java.additional.3=-Xms128m
wrapper.java.additional.4=-Xmx512m
wrapper.java.additional.5=-Dsun.rmi.dgc.client.gcInterval=3600000
wrapper.java.additional.6=-Dsun.rmi.dgc.server.gcInterval=3600000
wrapper.app.parameter.1=javaapplication110.Main
wrapper.logfile=C:/dbbackup/logs/wrapper.log
wrapper.ntservice.name=DBbackup
wrapper.ntservice.displayname=DBbackup
wrapper.ntservice.description=Starts and stops
wrapper.ntservice.starttype=AUTO_START

Similar Messages

  • Anyone familiar with "The Standby Wizard for Oracle "

    Is anyone familiar with "The Standby Wizard for Oracle " by Relational Database Consultants, Inc?
    It is a GUI app that supposedly simplifies and automates the creation, maintenance, and switchback functions necessary to implement Oracle's standby database paradigm for high-availability.
    I have a very small IT shop and simplification with data protection is important to me.
    I'd like to read anyones thoughts if you have such.

    Hi
    I never used this tool. However it is important that you have the right infrastructure, too. A standby database wrong implemented is useless. You can try to call a consult in near you to implement the dataguard.
    Does Relational Database Consultants has a documentation about the product?
    Bye, Aron

  • Can anyone help with the java applet issue

    Hello everyone,
    This is my first thread in this forum,
    I need a little help with the form developer...
    I have oracle 9i db , 9i form developer
    I don't want to run the form i created as a java applet
    HOW IS THAT DONE i.e NOT IN THE INTERNET EXPLORER?????????
    ***IF ITS POSSIBLE

    Hello,
    I don't want to run the form i created as a java applet
    No chance, because the Web Forms client is an applet and cannot be anything else.
    Francois

  • Anyone Familiar with The Application Called "Famous", an Oracle Based...

    Need assistance on weak points of the Famous application based on Oracle used for farming. Industry specific against Bus 1.
    Thanks!

    I got it to work. Still not sure what I was doing wrong. I just copied a wrapper config I had for launching JBoss and implemented it into my application.
    wrapper.java.command=%JAVA_HOME%/bin/java
    wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
    wrapper.java.classpath.1=C:/dbbackup/lib/wrapper.jar
    wrapper.java.classpath.2=%JAVA_HOME%/lib/tools.jar
    wrapper.java.classpath.3=C:/dbbackup/bin/JavaApplication110.jar
    wrapper.java.library.path.1=C:/dbbackup/lib
    # these are the JAVA_OPTS
    wrapper.java.additional.1=-Dprogram.name=%PROGNAME%
    wrapper.java.additional.2=-server
    wrapper.java.additional.3=-Xms128m
    wrapper.java.additional.4=-Xmx512m
    wrapper.java.additional.5=-Dsun.rmi.dgc.client.gcInterval=3600000
    wrapper.java.additional.6=-Dsun.rmi.dgc.server.gcInterval=3600000
    wrapper.app.parameter.1=javaapplication110.Main
    wrapper.logfile=C:/dbbackup/logs/wrapper.log
    wrapper.ntservice.name=DBbackup
    wrapper.ntservice.displayname=DBbackup
    wrapper.ntservice.description=Starts and stops
    wrapper.ntservice.starttype=AUTO_START

  • Anyone familiar with the C language????

    hey guys
    well ill give it a try. see if anyone here can help me. i need to input an integer and then convert it to a binary representation. size of the integer is 16 bits. can anyone help??? eg:
    user input : 27
    program output: 0000000000011011
    would appreciate if anyone could help
    cheers
    milos

    How about:
        public String getBits (int i) {
            String bits = "";
            for (int b = 0; b < 16; b ++, i >>= 1)
                bits = (((i & 1) == 1) ? '1' : '0') + bits;
            return bits;
        };You said you only need 16 bits, and that way should keep the bits in the right order, too (most significant on left).
    In C/C++, a fast way to do that would be:
        char *getBits (unsigned int i, char *buf) {
            char *b = buf + 16;
            *b = 0;
            for (int j = 0; j < 16; j ++, i >>= 1)
                *(--b) = ((i & 1) + '0');
            return buf;
        };Doesn't matter if int is unsigned or not (except from the standpoint of you preventing the programmer from accidently passing a negative number), since your only getting the low 16 bits, and arithmetic right shifts won't affect this anyway. Didn't test that, hopefully it works. Yeah, sure its unsafe, but only if buf isn't at least 17 bytes.
    Jason

  • Anyone familiar with the Mybook external hard drive?

    I'm looking into buying an external hard drive, primarily to house my media: photos, music, shorts, etc. A friend of mine recommended Western Digital's Mybook, especially since I don't need much space (their 80 or 120 gig models sound ideal). I was just wondering if anyone here has used one. Thanks.
    AT

    This is usually a bad idea since solaris makes links in /dev that point to configured devices. A failsafe boot will probably work though. If you really wanted to reconfigure the drive to work on another machine, follow this:
    http://www.riddleware.com/solx86/SCSI_change.html
    I don't think any of this really has changed...

  • Rmid and Java Service Wrapper

    I attempted to run RMID by specifying the 'main' class to Java Service Wrapper but ran into trouble with permissions. Even a security policy granting all permissions wasn't sufficient.
    Has anyone succeeding in running RMID this way? Or any other way of running it properly as a Windows service (SRVANY doesn't count as it doesn't shutdown RMID cleanly).
    When asked to shutdown the service, SRVANY abruptly terminates RMID. This means that any 'child' JVM's remain rather than being shutdown. In addition, on Vista, it often results in an IPv6 port 1098 persisting and blocking a subsequent attempt to restart the service.

    mthornton wrote:
    The problem was Java permissions not operating system permissions. I tested it under my own account.
    Have you succeeded in getting rmid running under Java Service Wrapper?I have many apps in production using the Java Service Wrapper but none with rmid, sorry.
    You said that you have adjusted the Java permissions.
    Did you follow the advice in the FAQ ?
    http://wrapper.tanukisoftware.org/doc/english/faq.html#5

  • Java Service Wrapper

    Dear all,
    How could I turn the following java application into a service running under Linux and make it started automatically when the system is restarted using Java Service Wrapper?
    The instructions on the Java Service Wrapper website is too complex for me to follow. The application below just write the current time to a file every 5 seconds.
    If possible, please give me some step by step instruction about how to configure, install and verify the results.
    Thanks
    Yu
    package timertest;
    import java.util.Timer;
    public class Main {
        Timer timer;  
        public Main(int seconds) {
            timer = new Timer();
            //timer.schedule(new ReminderTask(),seconds * 1000, seconds * 1000);
            ReminderTask task = new ReminderTask();
            timer.scheduleAtFixedRate(task,seconds * 1000, seconds * 1000);
        public static void main(String[] args) {
            System.out.println("About to schedule task.");
            new Main(5);       
            System.out.println("Task scheduled.");
    package timertest;
    import java.util.TimerTask;
    import java.util.Date;
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    import java.lang.Thread;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import java.io.*;
    public class ReminderTask extends TimerTask {
        public synchronized void run() {
            DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
            try {
                // Create file
                FileWriter fstream = new FileWriter("out.txt");
                BufferedWriter out = new BufferedWriter(fstream);
                out.write(dateFormat.format(new Date()));
                //Close the output stream
                out.close();
            } catch (Exception e) {//Catch exception if any
                System.err.println("Error: " + e.getMessage());
    }

    I suggest you read how to create a startup script in Linux. It doesn't matter that you program is written in java.
    [http://www.google.co.uk/search?q=linux+startup+scripts]

  • In logic Pro, when I open up an audio track and load an audio file, there is no sound. I will finally get a sound out of one of the audio tracks after opening at least 5 of them alternately. Is anyone familiar with this kind of bug? It's really frustratin

    In logic Pro, when I open up an audio track or software track and load an audio file/loop or software file loop, there is no sound. I will finally get a sound out of one of the audio or software tracks after opening at least 5 of them alternately. Is anyone familiar with this kind of bug? It's really frustrating as this takes much time to complete work.
    os x, Mac OS X (10.6)

    I'm not sure I follow your words Fuzzynormal. You've helped by offering the insight that my issue in Logic Pro 9 is not a bug but a feature. But fell short of enlightenment by being a judge of character and of how one should interact in this forum. You insinuate that I haven't tried to solve the issue on my own when in fact I have. These forums are always my last resort. You further suggest that I am complaining. This is not a complaint. It is a genuine issue that I cannot figure out. Then you think that Brazeca is holding my hand and being a nice guy. Brazeca is helping people like me who might not be as adept at using Logic Pro as probably you are.This community forum was established to raise questions, answers and dicussion to help Apple's customers better undertand their operating systems and related issues. You are doing a disservice by not contributing positively and by trying to make this forum what you want it to be. You may have all the time in the world to try figuring out stuff but we are not all like you. We all have different schedules and different levels of understanding. And that is what this forum is for - to help people move forward. If you can't contribute positively then keep silent. And by the way, you say to "read the words that are printed down to explain to you how that works" what words are you talking about? Why don't you be of some help instead of trying to own this forum. 

  • Java Service Wrapper service is not being listed in the list of services

    I wrote a sample program which uses Java Service Wrapper. But it's not being listed as a Service in the list of Windows' Services. Any ideas why?
    Thanks.

    Hi Amar,
    need your help. i am facing the same issue.
    how did you resolved it . please let us know.
    Thanks,
    Santosh

  • Has anyone else had problems with the latest system updates to Mac OS X v10.6.8 with the java virus patch?

    After installing the latest updates to Snow Leopard the system hangs up and will not open properly.  This is the update to Java, etc after the virus was discovered.  I have done the updates on four different systems with the same result. 

    No problems with the Java update here, although I have Java disabled. Might try reapplying the Java standalone while in Safe Boot (Shift at startup chime), if you did it from Software Update.
    http://support.apple.com/kb/DL1516

  • HT201415 After a months of stable work my new IPad suddenly denies to find cell network under any circumstances.Please advice if anyone familiar with that problem?

    After a months of stable work my new IPad suddenly denies to find cell network under any circumstances.Please advice if anyone familiar with that problem?

    It sounds like there are a couple things going on here.  First check if you have a successful install of SQL Server, then we'll figure out the connection issues.
    Can you launch SQL Server Configuration Manager and check for SQL Server (MSSQLSERVER) if default instance or SQL Server (other name) if you've configured your instance as a named instance.  Once you find this, make sure the service is started. 
    If not started, try to start it and see if it throws an error.  If you get an error, post the error message your hitting.  If the service starts, you can then launch SSMS and try to connect.  If you have a default instance, you can use the machine
    name in the connection dialog.  Ex:  "COWBOYS" where Cowboys is the machine name.  However, if you named the SQL Server instance during install, you'll need to connect using the machine\instance format.  Ex:  COWBOYS\Romo (where Romo
    is the instance name you set during install).
    You can also look at the summary.txt file in the SQL Server setup error logs to see what happened on the most recent install.  Past install history is archived in the log folder if you need to dig those up to help troubleshoot, but the most
    recent one may help get to the bottom of it if there is an issue with setup detecting a prior instance that needs to be repaired.
    Thanks,
    Sam Lester (MSFT)
    http://blogs.msdn.com/b/samlester
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
    "Mark as Answer" and
    "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.

  • Anyone familiar with forms and snippets

    anyone familiar with forms and snippets in IWEB?

    An easier way?
    Sir, anything beyond iWeb requires effort.
    Find a form creator, such as wufoo, and display the form in a html snippet with an <iframe>. In the end it's the same, whether you create the form from scratch yourself or use a service :
    http://wufoo.com/
    My webhoster provides a formcreator :
    http://one-docs.com/tools/formmailgen/
    The code is very basic, so one has to dress it up a bit. See if your provider offers a similar service.

  • JNI  --  Windows Service (Java Service Wrapper)  --  Winamp

    Hi!
    I'm developing an application to control Winamp player and this application is supposed to run as a Windows Service (via Java Service Wrapper). Winamp is
    handled via JNI (c library dll).
    The thing is:
    When I start the application as a service, my application tries to control Winamp (eg play, pause) but it doesn't work. I can see (prints) that my application is working but all the calls of the dll that interacts with Winamp don't answer. Instead, when I stop the service, I can see finaly all the prints (I introduced in the dll play, pause functions).
    Can anybody give a hand? It seems that the JNI is not working properly (in my humble opinion).
    Thanks for your attention.
    Best Regards
    Nuno

    In my java application:
    System.out.println("Before play!");
    play( ); //Native method...
    System.out.println("After play!");
    sleep(10*1000);
    System.out.println("Before pause!");
    pause ( ); //Native method...
    System.out.println("After pause!");
    In c file (dll lib):
    JNIEXPORT void JNICALL Java_WinampController_play
    (JNIEnv *env, jobject obj) {
              printf("-> cpp - Play \n");
    initWinampHandle();
    if (hwnd_winamp != NULL) {
    SendMessageA(hwnd_winamp, WM_COMMAND, WA_PLAY,
    WA_NOTHING);
              printf("<- cpp - Play \n");
    JNIEXPORT void JNICALL Java_WinampController_pause
    (JNIEnv *env, jobject obj) {
              printf("-> cpp - Pause \n");
    initWinampHandle();
    if (hwnd_winamp != NULL) {
    SendMessageA(hwnd_winamp, WM_COMMAND, WA_PAUSE,
    WA_NOTHING);
              printf("<- cpp - Pause \n");
    Result... (log file)
    Before play!
    After play!
    Before pause!
    After pause!
    And only after I stop the service, the cpp printf appear... :(
    -> cpp - Play
    <- cpp - Play
    -> cpp - Pause
    <- cpp - Pause
    Thanks

  • Problem in filling datagrid with a java service

    Hi i have a java service that returns an arrayList of TypeTicketVO ,in the side   of java when i tested my service it returns the correct result in the console but in the side of flex data grid is always empty and not filled with data (in fact this code recuperate 2 data field filled by the user and call the java service when the buttun is clicked
    this is my mxml :
    [Bindable]
                                  var startDate:Date;
                                  [Bindable]
                                  var endDate:Date;
      [Bindable]
                                  private var  FinalResult:ArrayCollection = new ArrayCollection();
    public function getTicketByStatus(evt:ResultEvent):void
    FinalResult= evt.result as ArrayCollection;
    protected function buttnSta_clickHandler(event:MouseEvent):void
    startDate=StartDateField.selectedDate;
    endDate=EndDateField.selectedDate;
    CountTicketsByStatusResult.addEventListener(ResultEvent.RESULT,getTicketByStatus);
    CountTicketsByStatusResult.token = ticketServiceImpl.CountTicketsByStatus(startDate,endDate);
    <mx:DataGrid id="dg" x="306" y="91" width="354" height="208" dataProvider="{FinalResult}">
    help please

    Hi.
    You can add extra path information by using the -extrapath option in your
    installNTservice.cmd script.
    Regards,
    Michael
    martin wang wrote:
    When I installed a weblogic server as a windows service using installNTservice.cmd,
    I found that the system path was not appended to the java.library.path. Here is
    the detail:
    step 1: went to ...\config\mydomain, run installNTservice.cmd, and the weblogic
    server "myServer" was installed as a NT service.
    step 2: went to Control Panel -> administrative tools -> services and started
    up the service "myserver".
    step 3: went to ...\config\mydomain\logs, open Weblogic.log and found that:
    java.library.path = C:\bea\wlserver6.0\bin;.;C:\WINNT\System32;C:\WINNT
    usually java.library.path should be the above paths plus the system path(which
    can be changed in control panel -> system ->advanced -> environment variables
    Does any one know why?--
    Michael Young
    Developer Relations Engineer
    BEA Support

Maybe you are looking for