Tomcat as service - (depend on service)

hi there!
we run tomcat as service like other services.
the tomcat depends on an oracle service. if we shutdown the server, the oracle should start first, and when the oracle is ready, then the tomcat should start. the problem is, that the oracle begins starting before the tomcat runs, but the starting of the tomcat is much faster than the starting of the oracle, so that the tomcat can't read data out of the oracle. we worked with the "depends on service", but this looks only, that they "begin" to start in the right order...
well now my question: how can i configure the service, that the tomcat starts only then, when the oracle has finished the starting.
thx
herwig

I assume this answer is a little bit outdated, anyway...
You may tune the windows services with an own priority in order to set the priority lower for the service to start after the one with higher priority.
As second chance you may also set the second service to try to startup 'n' times before failure, assuming that in the meanwhile the first service should start up. After 'n' unsuccesful tries you may also start a script to force the first service to start and then start the second one.
But try the first tip.
Ciao.

Similar Messages

  • Tomcat as service : install path with spaces

    I'm trying to install tomcat as service
    but when I choose an install path with spaces
    I mean smthing like "c:\program files\tomcat"
    it doesn't work
    I tried to modify the wrapper.properties file
    with "" but it doesn't work
    I even set the parameter wrapper.cmd_line with
    a command line that works when launched for CMD
    but the service doesn't start
    any idea????

    I found it ! (hope it helps)
    wrapper.properties that works with spaces in the name
    of the java directory and the tomcat directory
    # $Header: /home/cvs/jakarta-tomcat/src/etc/Attic/wrapper.properties,v 1.2.2.1 2000/10/16 01:59:22 larryi Exp $
    # $Revision: 1.2.2.1 $
    # $Date: 2000/10/16 01:59:22 $
    # jk_service.properties - a bootstrup file for the Tomcat NT service.
    # This file provides jk_nt_service with the needed information to
    # start tomcat at a different process.
    # As a general note, the characters $( and ) are used internally to define
    # macros. Do not use them!!!
    # Whenever you see a set of lines such as:
    # x=value
    # y=$(x)\something
    # the final value for y will be value\something
    # Normaly all you will need to modify is the first two properties, i.e.
    # wrapper.tomcat_home and wrapper.java_home. Most of the configuration
    # is derived from these two.
    # wrapper.tomcat_home should point to the location where you
    # installed tomcat. This is where you have your conf, webapps and lib
    # directories.
    wrapper.tomcat_home=C:\Program Files\tomcat-3.2.1
    # wrapper.java_home should point to your Java installation. Normally
    # you should have a bin and lib directories beneath it.
    wrapper.java_home=C:\Program Files\JavaSoft\JRE\1.3
    #------ ADVANCED MODE ------------------------------------------------
    # Make sure that you read the how-to before making too many changes.
    # Defining where the service is going to put the standard
    # output of Tomcat. This is where System.out.println and
    # System.err.println goes to.
    wrapper.stdout=$(wrapper.tomcat_home)\logs\jvm.stdout
    wrapper.stderr=$(wrapper.tomcat_home)\logs\jvm.stderr
    # Additions to the path. put here directories where you store DLLs for
    # native methods etc.
    wrapper.ld_path=d:\
    wrapper.ld_path=c:\
    # Defining the classpath. All the rows that belongs to the class_path
    # property are concatenated to create the classpath for Tomcat.
    # If you have additional locations that you would like to add to the
    # claspath you should add a new wrapper.class_path=<location> line.
    wrapper.class_path="$(wrapper.tomcat_home)\classes"
    wrapper.class_path="$(wrapper.tomcat_home)\lib\jaxp.jar"
    wrapper.class_path="$(wrapper.tomcat_home)\lib\parser.jar"
    wrapper.class_path="$(wrapper.tomcat_home)\lib\webserver.jar"
    wrapper.class_path="$(wrapper.tomcat_home)\lib\servlet.jar"
    wrapper.class_path="$(wrapper.tomcat_home)\lib\jasper.jar"
    # This is where Javac is located in JDK1.2.x
    wrapper.class_path="$(wrapper.java_home)\lib\tools.jar"
    # and a tribute to JDK1.1.x
    wrapper.class_path="$(wrapper.java_home)\lib\classes.zip"
    # This is the Java interpreter used for running Tomcat
    wrapper.javabin=$(wrapper.java_home)\bin\java.exe
    # This is Tomcat's startup class (the class that contains Tomcat's
    # starting point.
    wrapper.startup_class=org.apache.tomcat.startup.Tomcat
    # This is the location where tomcat's server.xml configuration file
    # is located.
    wrapper.server_xml=$(wrapper.tomcat_home)\conf\server.xml
    # The NT service uses AJP12/AJP13 to shutdown Tomcat. The
    # wrapper.shutdown_port tells the service the identity of the port that
    # is used by AJP12/AJP13.
    wrapper.shutdown_port=8007
    # Can either be ajp12 or ajp13 depending on your configuration.
    # Default value is ajp12
    wrapper.shutdown_protocol=ajp12
    # This is the command line that is used to start Tomcat. You can add extra
    # parameters to it but you can not remove anything.
    wrapper.cmd_line="$(wrapper.javabin)" -classpath $(wrapper.class_path) $(wrapper.startup_class) -config "$(wrapper.server_xml)" -home "$(wrapper.tomcat_home)"

  • Jvm 1.5.0_06 crashing while used in tomcat as service

    ANyone ever seen this one.
    JVM crashes while used by tomcat as service. The crash occurs randomly. In this case while writing an index for lucene. Lucene is used within our jackrabbit application. This crash caused the index en thus the data in jackrabbit to become corrupt. All content of repository was therefor useless.
    Tomcat 5.5.17 is installed on a windows 2003 server.
    Does anyone know the cause of this crash. See hs_errpidx.og file below
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6da727b6, pid=1132, tid=1160
    # Java VM: Java HotSpot(TM) Server VM (1.5.0_06-b05 mixed mode)
    # Problematic frame:
    # V [jvm.dll+0x1f27b6]
    --------------- T H R E A D ---------------
    Current thread (0x26b175d8): JavaThread "CompilerThread0" daemon [_thread_in_native, id=1160]
    siginfo: ExceptionCode=0xc0000005, reading address 0x00000000
    Registers:
    EAX=0x272bf5c4, EBX=0x26dcf1b0, ECX=0x00000000, EDX=0x6db74d28
    ESP=0x26dcf15c, EBP=0x272c1424, ESI=0x272c0d1c, EDI=0x272c0cd8
    EIP=0x6da727b6, EFLAGS=0x00010246
    Top of Stack: (sp=0x26dcf15c)
    0x26dcf15c: 272c0cd8 272c0d1c 6da728bd 272bf5a4
    0x26dcf16c: 272c1424 26dcf1b0 272c1488 00000000
    0x26dcf17c: 272c1424 26dcf280 6da72adf 272c0d1c
    0x26dcf18c: 272c1424 26dcf1b0 26dcf280 272c1424
    0x26dcf19c: 272be300 272c1424 26dcf280 00000000
    0x26dcf1ac: 278b0794 00000000 00000002 276942e0
    0x26dcf1bc: 00000000 6dac5e2f 26dcf280 00000001
    0x26dcf1cc: 0000002e 26dcf3c0 272c1424 6dac5cc7
    Instructions: (pc=0x6da727b6)
    0x6da727a6: 83 78 0c 03 0f 85 87 00 00 00 8b 40 04 8b 48 08
    0x6da727b6: 8b 11 ff 52 28 85 c0 74 78 8b 40 04 8b 08 8b 11
    Stack: [0x26d90000,0x26dd0000), sp=0x26dcf15c, free space=252k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [jvm.dll+0x1f27b6]
    Current CompileTask:
    opto:2085 org.apache.lucene.index.IndexReader$1.doBody()Ljava/lang/Object; (99 bytes)
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x27f95fb8 JavaThread "IndexMerger" daemon [_thread_blocked, id=2588]
    0x2737c618 JavaThread "ObservationManager" daemon [_thread_blocked, id=2584]
    0x279fc6c8 JavaThread "IndexMerger" daemon [_thread_blocked, id=192]
    0x27c40a70 JavaThread "ObservationManager" daemon [_thread_blocked, id=1796]
    0x27c40bf8 JavaThread "File Reaper" daemon [_thread_blocked, id=548]
    0x29488c20 JavaThread "IndexMerger" daemon [_thread_blocked, id=2288]
    0x28b8a008 JavaThread "ObservationManager" daemon [_thread_blocked, id=2268]
    0x27ee5e28 JavaThread "TP-Monitor" daemon [_thread_blocked, id=1392]
    0x29427008 JavaThread "TP-Processor4" daemon [_thread_in_native, id=1208]
    0x27641e50 JavaThread "TP-Processor3" daemon [_thread_blocked, id=1320]
    0x27749e08 JavaThread "TP-Processor2" daemon [_thread_blocked, id=2020]
    0x277de008 JavaThread "TP-Processor1" daemon [_thread_blocked, id=1916]
    0x270005e0 JavaThread "http-8080-Monitor" [_thread_blocked, id=1808]
    0x26bff010 JavaThread "http-8080-Processor25" daemon [_thread_in_native, id=1100]
    0x276345a0 JavaThread "http-8080-Processor24" daemon [_thread_blocked, id=1840]
    0x28e82820 JavaThread "http-8080-Processor23" daemon [_thread_blocked, id=1136]
    0x26bb5848 JavaThread "http-8080-Processor22" daemon [_thread_blocked, id=1452]
    0x26f000c0 JavaThread "http-8080-Processor21" daemon [_thread_blocked, id=1460]
    0x26bb4820 JavaThread "http-8080-Processor20" daemon [_thread_blocked, id=1456]
    0x29617648 JavaThread "http-8080-Processor19" daemon [_thread_blocked, id=296]
    0x28af65d0 JavaThread "http-8080-Processor18" daemon [_thread_blocked, id=300]
    0x291b4790 JavaThread "http-8080-Processor17" daemon [_thread_blocked, id=1660]
    0x28b1a7f0 JavaThread "http-8080-Processor16" daemon [_thread_blocked, id=1340]
    0x28b1a5c8 JavaThread "http-8080-Processor15" daemon [_thread_blocked, id=1076]
    0x276ca838 JavaThread "http-8080-Processor14" daemon [_thread_blocked, id=1332]
    0x291bd6b8 JavaThread "http-8080-Processor13" daemon [_thread_blocked, id=1008]
    0x29657630 JavaThread "http-8080-Processor12" daemon [_thread_blocked, id=1028]
    0x29657408 JavaThread "http-8080-Processor11" daemon [_thread_blocked, id=1764]
    0x290197a8 JavaThread "http-8080-Processor10" daemon [_thread_blocked, id=580]
    0x279d2d50 JavaThread "http-8080-Processor9" daemon [_thread_blocked, id=304]
    0x27557600 JavaThread "http-8080-Processor8" daemon [_thread_blocked, id=204]
    0x27150d60 JavaThread "http-8080-Processor7" daemon [_thread_blocked, id=212]
    0x27150a00 JavaThread "http-8080-Processor6" daemon [_thread_blocked, id=232]
    0x27150740 JavaThread "http-8080-Processor5" daemon [_thread_blocked, id=1980]
    0x29869be8 JavaThread "http-8080-Processor4" daemon [_thread_blocked, id=2004]
    0x29869a60 JavaThread "http-8080-Processor3" daemon [_thread_blocked, id=2044]
    0x298698d8 JavaThread "http-8080-Processor2" daemon [_thread_blocked, id=1992]
    0x290a5ab0 JavaThread "http-8080-Processor1" daemon [_thread_blocked, id=1988]
    0x2926b408 JavaThread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon [_thread_blocked, id=1924]
    0x290741e8 JavaThread "RMI TCP Accept-2099" daemon [_thread_in_native, id=1020]
    0x29063df0 JavaThread "GC Daemon" daemon [_thread_blocked, id=1752]
    0x29488228 JavaThread "RMI Reaper" [_thread_blocked, id=1220]
    0x2912dc50 JavaThread "Timer-2" daemon [_thread_blocked, id=692]
    0x274ce768 JavaThread "RMI TCP Accept-0" daemon [_thread_in_native, id=928]
    0x2796ce48 JavaThread "IndexMerger" daemon [_thread_blocked, id=520]
    0x27181e58 JavaThread "Timer-1" daemon [_thread_blocked, id=504]
    0x27546e48 JavaThread "Timer-0" daemon [_thread_blocked, id=484]
    0x274cc618 JavaThread "ObservationManager" daemon [_thread_blocked, id=444]
    0x27469a38 JavaThread "derby.rawStoreDaemon" daemon [_thread_blocked, id=188]
    0x2720ab98 JavaThread "derby.antiGC" daemon [_thread_blocked, id=1432]
    0x26b452d0 JavaThread "Thread-1" [_thread_in_native, id=2016]
    0x26b19750 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=1928]
    0x26b183a8 JavaThread "CompilerThread1" daemon [_thread_blocked, id=1828]
    =>0x26b175d8 JavaThread "CompilerThread0" daemon [_thread_in_native, id=1160]
    0x26b166a0 JavaThread "AdapterThread" daemon [_thread_blocked, id=1296]
    0x0082f730 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1164]
    0x0082ce90 JavaThread "Finalizer" daemon [_thread_blocked, id=1692]
    0x0082c1f0 JavaThread "Reference Handler" daemon [_thread_blocked, id=460]
    0x003c5a50 JavaThread "main" [_thread_in_native, id=1468]
    Other Threads:
    0x0082a050 VMThread [id=1276]
    0x26b1aa68 WatcherThread [id=2012]
    VM state:at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
    [0x003c5170/0x0000013c] Threads_lock - owner thread: 0x0082a050
    [0x003c52f0/0x00000178] Heap_lock - owner thread: 0x26bb5848
    Heap
    PSYoungGen total 47936K, used 32542K [0x22f50000, 0x26830000, 0x26830000)
    eden space 38016K, 65% used [0x22f50000,0x2477cbd8,0x25470000)
    from space 9920K, 78% used [0x25e70000,0x2660adc0,0x26820000)
    to space 10112K, 10% used [0x25470000,0x255840c0,0x25e50000)
    PSOldGen total 76800K, used 59040K [0x06830000, 0x0b330000, 0x22f50000)
    object space 76800K, 76% used [0x06830000,0x0a1d8068,0x0b330000)
    PSPermGen total 30080K, used 29859K [0x02830000, 0x04590000, 0x06830000)
    object space 30080K, 99% used [0x02830000,0x04558e70,0x04590000)
    Dynamic libraries:
    0x00400000 - 0x0041b000      C:\Programme\PLM\tomcat\bin\tomcat5.exe
    0x7c920000 - 0x7c9e6000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c915000      C:\WINDOWS\system32\kernel32.dll
    0x77e20000 - 0x77eb3000      C:\WINDOWS\system32\USER32.dll
    0x77bd0000 - 0x77c18000      C:\WINDOWS\system32\GDI32.dll
    0x77f30000 - 0x77fdc000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77c20000 - 0x77cbf000      C:\WINDOWS\system32\RPCRT4.dll
    0x77ec0000 - 0x77f12000      C:\WINDOWS\system32\SHLWAPI.dll
    0x77b70000 - 0x77bca000      C:\WINDOWS\system32\msvcrt.dll
    0x7c9f0000 - 0x7d1fd000      C:\WINDOWS\system32\SHELL32.dll
    0x77340000 - 0x77443000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.3790.1830_x-ww_7AE38CCF\comctl32.dll
    0x6d880000 - 0x6dc31000      C:\Programme\PLM\jdk\jre\bin\server\jvm.dll
    0x76990000 - 0x769be000      C:\WINDOWS\system32\WINMM.dll
    0x6d2f0000 - 0x6d2f8000      C:\Programme\PLM\jdk\jre\bin\hpi.dll
    0x76a60000 - 0x76a6b000      C:\WINDOWS\system32\PSAPI.DLL
    0x76e40000 - 0x76e53000      C:\WINDOWS\system32\Secur32.dll
    0x6d6b0000 - 0x6d6bc000      C:\Programme\PLM\jdk\jre\bin\verify.dll
    0x6d370000 - 0x6d38d000      C:\Programme\PLM\jdk\jre\bin\java.dll
    0x6d6d0000 - 0x6d6df000      C:\Programme\PLM\jdk\jre\bin\zip.dll
    0x6d530000 - 0x6d543000      C:\Programme\PLM\jdk\jre\bin\net.dll
    0x71a10000 - 0x71a27000      C:\WINDOWS\system32\WS2_32.dll
    0x71a00000 - 0x71a08000      C:\WINDOWS\system32\WS2HELP.dll
    0x71930000 - 0x71972000      C:\WINDOWS\system32\mswsock.dll
    0x27b20000 - 0x27b7a000      C:\WINDOWS\system32\hnetcfg.dll
    0x718f0000 - 0x718f8000      C:\WINDOWS\System32\wshtcpip.dll
    0x6d550000 - 0x6d559000      C:\Programme\PLM\jdk\jre\bin\nio.dll
    0x68000000 - 0x6802f000      C:\WINDOWS\system32\rsaenh.dll
    0x76dc0000 - 0x76dea000      C:\WINDOWS\system32\DNSAPI.dll
    0x76e60000 - 0x76e67000      C:\WINDOWS\System32\winrnr.dll
    0x76e00000 - 0x76e2f000      C:\WINDOWS\system32\WLDAP32.dll
    0x76e70000 - 0x76e75000      C:\WINDOWS\system32\rasadhlp.dll
    VM Arguments:
    jvm_args: -Dcatalina.base=C:\Programme\PLM\tomcat -Dcatalina.home=C:\Programme\PLM\tomcat -Djava.endorsed.dirs=C:\Programme\PLM\tomcat\common\endorsed -Xmx512M vfprintf
    java_command: <unknown>
    Launcher Type: generic
    Environment Variables:
    PATH=C:\oracle\ora92\jre\1.4.2\bin\client;C:\oracle\ora92\jre\1.4.2\bin;C:\oracle\ora92\bin;C:\Programme\Oracle\jre\1.3.1\bin;C:\Programme\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 3, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows Server 2003 family Build 3790 Service Pack 1
    CPU:total 2 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht
    Memory: 4k page, physical 2097151k(2097151k free), swap 4194303k(4194303k free)
    vm_info: Java HotSpot(TM) Server VM (1.5.0_06-b05) for windows-x86, built on Nov 10 2005 10:53:00 by "java_re" with MS VC++ 6.0

    This is a known incompatiblitly. See #5 in http://java.sun.com/j2se/1.5.0/compatibility.html

  • Tomcat 5 service won't start under w2k

    Has anyone else had trouble getting the Tomcat 5 service to start under Windows 2000 or Windows XP? I have tried installing the service using the installer .exe and also manually by downloading the zip file and using the service.bat file in the bin directory. I can install the service, but when I attempt to start it I receive the following message:
    Could not start the Apache Tomcat service on Local Computer.
    Error 1053: The service did not respond to the start or control request in a timely fashion.
    I have set the JAVA_HOME and CATALINA_HOME environment variables properly. I can start and stop Tomcat just fine by using startup.bat and shutdown.bat. If I can start Tomcat by using startup.bat, what is stopping me from starting it as a service? I must be missing some configuration setting or something...
    I am having the same problem on 3 different computers, 2 w2k machines and 1 XP Pro machine. I have tried both Tomcat 5.0.18 and 5.0.19, same result on both.
    Any help would be appreciated!

    run regedit in command line,add the key:
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
    "CurrentVersion"="1.4"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.4]
    "JavaHome"="C:\\Program Files\\Java\\j2re1.4.1_01"
    "MicroVersion"="1"
    "RuntimeLib"="C:\\Program Files\\Java\\j2re1.4.1_01\\bin\\client\\jvm.dll"

  • Tomcat  as service

    we want to start tomcat 4.x as service. we had no problems with jdk 1.3, but wi^th 1.4 it does'nt work. the service runs with jnt.
    there is no error or something. can anybody tell me, if there is something different with jdk14 to run the tomcat as service.
    thx
    herwig

    thats the problem. we did not get any error or exception. the strange thing is, that the konfig. is the same as with jdk1.3, but it doesn't work with 1.4.

  • Jenkins not deploying on Tomcat; SSH Service not starting

    So I've had a couple of problems happening. My first problem is that even though sshd.service and sshd.socket are enabled with systemctl, it does not automatically start. There are no errors reported in journalctl, it just does not start. When issuing systemctl status sshd.service and systemctl status sshd.socket, there is nothing to report. Once I manually start them, there are no errors reported, and everything works as expected.
    sshd.socket
    [Unit]
    Conflicts=sshd.service
    Wants=sshdgenkeys.service
    [Socket]
    ListenStream=22
    Accept=yes
    [Install]
    WantedBy=sockets.target
    sshd.service
    [Unit]
    Description=OpenSSH Daemon
    Wants=sshdgenkeys.service
    After=sshdgenkeys.service
    After=network.target
    [Service]
    ExecStart=/usr/bin/sshd -D
    ExecReload=/bin/kill -HUP $MAINPID
    KillMode=process
    Restart=always
    [Install]
    WantedBy=multi-user.target
    # This service file runs an SSH daemon that forks for each incoming connection.
    # If you prefer to spawn on-demand daemons, use sshd.socket and [email protected].
    The second problem is my tomcat service. It won't start the Jenkins. I've linked the jenkins.war file to the webapps folder. When I start tomcat using systemctl start tomcat8, this is the output of journalctl -xn
    -- Logs begin at Sat 2014-08-30 06:46:59 PDT, end at Sun 2014-09-14 15:45:38 PDT. --
    Sep 14 15:45:15 localhost jsvc.exec[1344]: Sep 14, 2014 3:45:15 PM org.apache.coyote.AbstractProtocol stop
    INFO: Stopping ProtocolHandler ["http-nio-8080"]
    Sep 14 15:45:16 localhost jsvc.exec[1344]: Sep 14, 2014 3:45:16 PM org.apache.coyote.AbstractProtocol stop
    INFO: Stopping ProtocolHandler ["ajp-nio-8009"]
    Sep 14 15:45:16 localhost jsvc.exec[1344]: Sep 14, 2014 3:45:16 PM org.apache.coyote.AbstractProtocol destroy
    INFO: Destroying ProtocolHandler ["http-nio-8080"]
    Sep 14 15:45:16 localhost jsvc.exec[1344]: Sep 14, 2014 3:45:16 PM org.apache.coyote.AbstractProtocol destroy
    INFO: Destroying ProtocolHandler ["ajp-nio-8009"]
    Sep 14 15:45:27 localhost systemd[1]: [/usr/lib/systemd/system/systemd-journal-upload.service:20] Unknown lvalue 'After' in section 'Install'
    Sep 14 15:45:38 localhost systemd[1]: Failed to reset devices.list on /system.slice: Invalid argument
    Sep 14 15:45:38 localhost jsvc[28476]: Cannot locate Java Home
    Sep 14 15:45:38 localhost systemd[1]: tomcat8.service: control process exited, code=exited status=1
    Sep 14 15:45:38 localhost systemd[1]: Failed to start Tomcat 8 servlet container.
    -- Subject: Unit tomcat8.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- Unit tomcat8.service has failed.
    -- The result is failed.
    Sep 14 15:45:38 localhost systemd[1]: Unit tomcat8.service entered failed state.
    Here is the tomcat8.service file before my changes, as suggested here
    [Unit]
    Description=Tomcat 8 servlet container
    After=network.target
    [Service]
    Type=forking
    PIDFile=/var/run/tomcat8.pid
    Environment=CATALINA_PID=/var/run/tomcat8.pid
    Environment=TOMCAT_JAVA_HOME=/usr/lib/jvm/java-7-openjdk
    Environment=CATALINA_HOME=/usr/share/tomcat8
    Environment=CATALINA_BASE=/usr/share/tomcat8
    Environment=CATALINA_OPTS=
    ExecStart=/usr/bin/jsvc \
    -Dcatalina.home=${CATALINA_HOME} \
    -Dcatalina.base=${CATALINA_BASE} \
    -Djava.io.tmpdir=/var/tmp/tomcat8/temp \
    -cp /usr/share/java/commons-daemon.jar:/usr/share/java/eclipse-ecj.jar:${CATALINA_HOME}/bin/bootstrap.jar:${CATALINA_HOME}/bin/tomcat-juli.jar \
    -user tomcat8 \
    -java-home ${TOMCAT_JAVA_HOME} \
    -pidfile /var/run/tomcat8.pid \
    -errfile SYSLOG \
    -outfile SYSLOG \
    $CATALINA_OPTS \
    org.apache.catalina.startup.Bootstrap
    ExecStop=/usr/bin/jsvc \
    -pidfile /var/run/tomcat8.pid \
    -stop \
    org.apache.catalina.startup.Bootstrap
    [Install]
    WantedBy=multi-user.target
    And after
    [Unit]
    Description=Tomcat 8 servlet container
    After=network.target
    [Service]
    Type=forking
    PIDFile=/var/run/tomcat8.pid
    Environment=CATALINA_PID=/var/run/tomcat8.pid
    Environment=TOMCAT_JAVA_HOME=/usr/lib/jvm/java-7-openjdk
    Environment=CATALINA_HOME=/usr/share/tomcat8
    Environment=CATALINA_BASE=/usr/share/tomcat8
    Environment=CATALINA_OPTS=-DJENKINS_HOME=/usr/share/java/jenkins
    ExecStart=/usr/bin/jsvc \
    -Dcatalina.home=${CATALINA_HOME} \
    -Dcatalina.base=${CATALINA_BASE} \
    -Djava.io.tmpdir=/var/tmp/tomcat8/temp \
    -cp /usr/share/java/commons-daemon.jar:/usr/share/java/eclipse-ecj.jar:${CATALINA_HOME}/bin/bootstrap.jar:${CATALINA_HOME}/bin/tomcat-juli.jar \
    -user tomcat8 \
    -java-home ${TOMCAT_JAVA_HOME} \
    -pidfile /var/run/tomcat8.pid \
    -errfile SYSLOG \
    -outfile SYSLOG \
    $CATALINA_OPTS \
    org.apache.catalina.startup.Bootstrap
    ExecStop=/usr/bin/jsvc \
    -pidfile /var/run/tomcat8.pid \
    -stop \
    org.apache.catalina.startup.Bootstrap
    [Install]
    WantedBy=multi-user.target
    EDIT:
    The SSHD problem is fixed. I read more closely at the sshd.socket config, and it clearly states it conflicts with sshd.service. I disabled service and everything works fine. But I am still having trouble getting Jenkins to work with Tomcat.
    Last edited by ZMoore (2014-09-15 00:33:18)

    Thank you, but the problem is a little different from that. These are
    exploded web apps outside the applications dir. I deployed them
    through the console initially; on the other servers, when WL restarts,
    the apps are deployed back to their targets just fine. It's only this
    box that loses sense of the targets on WL restart.
    We're on 6.1, so a few people have suggested upgrading to 6.1 sp4 --
    they've said they've seen this problem, and the sp corrects it.
    That said, this is a production box and upgrading it is a hassle. I'll
    get started on scheduling that, but if anyone has any ideas in the
    meantime, I'd greatly appreciate it. If not, thanks anyway. :)
    Rob
    "Deepak Vohra" <[email protected]> wrote in message news:<3eebae8e$[email protected]>...
    WLServer should start in development mode for a application
    in the applications dir to deploy.
    STARTMODE=false
    [email protected] (Rob Young) wrote:
    On one of our production servers (just one), when I restart weblogic,
    my web applications are not deploying; I have to deploy them manually.
    This is bad, obviously, because the server won't restore properly
    after a restart.
    After a while, I get target="box,box,box,box" that represents the
    multiple times I've deployed that application to the target "box".
    From config.xml:
    <Application Deployed="true" Name="revx" Path="F:\revx">
    <WebAppComponent Name="revx"
    Targets="giocm,giocm,giocm,giocm,giocm,giocm,giocm"
    URI="revx"/>
    </Application>
    The operating system is Windows 2000 5.00.2195 ... everything was
    working fine until I re-installed the Windows service this weekend.
    I've checked permissions on the folder, on the file, and who the
    service is running as. I've manually edited config.xml to remove the
    duplicate target entries.
    I've seen some other posts from people who have also experienced
    applications not deploying on WL restart, but I don't see any
    resolutions.
    Rob

  • Starting Tomcat as Service

    Hi,
    How can I start Tomcat as a service in control Panel. I have windows XP Home . The only purpose to start the Tomcat as a service is to create file "catlina.out" log file for my application. Is there any other way to have the log of my application. .
    Thanks

    Here is how to create a web application log in tomcat
    http://localhost:8080/tomcat-docs/config/logger.html

  • Wsdp tomcat as service

    Hallo everybody,
    i am using the java wsdp with integrated tomcat server. How can i install that server as a service on my (windows) machine? Are there any documents? Any help appreciated.
    Regards,
    ak

    I assume this answer is a little bit outdated, anyway...
    You may tune the windows services with an own priority in order to set the priority lower for the service to start after the one with higher priority.
    As second chance you may also set the second service to try to startup 'n' times before failure, assuming that in the meanwhile the first service should start up. After 'n' unsuccesful tries you may also start a script to force the first service to start and then start the second one.
    But try the first tip.
    Ciao.

  • TOMCAT As Service didn't start!

    Hello everybody!
    I install Tomcat3.3.1 rc1 on my win2k adv server, I would like to start it as a service but it didn't work.
    i customize the file wrapper.properties
    wrapper.tomcat_home=C:\Program Files\jakarta-tomcat-3.3.1
    and
    wrapper.java_home=C:\Program Files\Java\j2re1.4.0
    After this i copy the file jk_nt_service.exe in the folder
    C:\Program Files\jakarta-tomcat-3.3.1\conf\jk
    At the end i execute the command
    jk_nt_service -i tomcat wrapper.properties
    net start tomcat
    jk_nt_service -s tomcat
    but it didn't work, can anybody help me ?
    thks 123jumper123

    Hi,
    Check your log files in the tomcat_home/logs directory. They should be able to help you debug the problem.

  • Start tomcat as service under W2K/XP

    Hi,
    how can I make tomcat to be started as service under W2K/XP??
    tried to write a batchfile, but thats shi*
    service would be more convenient
    :)

    Doesn't work like explained
    c:\jakarta-tomcat-4.0.4\bin\tomcat.exe is there
    now I open cmd
    c:\jakarta-tomcat-4.0.4\bin\-install tomcat
    but gives thesame like
    c:\jakarta-tomcat-4.0.4\bin\tomcat.exe /?

  • Tomcat 5 services-config xml configuration problem

    I bought a webhosting that contains among other options  a tomcat 5 server .
    I tried to make a simple blazeds application . on a tomcat that runs on my computer works. On the hosting it does not.
    I have acces only to public-html folder from the server. So there is a web-inf folder and an met-inf folder.
    Please advice me how to configure the xml-s from my project to be able to access. The error that i get in the flex project is that the endpoint cannot be found.

    i am posting the Car.xml which i created in
    /conf/catalina/localhost directory in Tomcat 5.5.7
    ?xml version='1.0' encoding='utf-8'?>
    <Context path ="/Car" docBase="C:\Program
    Files\Apache Software Foundation\Tomcat
    5.5\webapps\Car" debug="0" />Rather than have you working directory under webapps, you can have it elsewhere in your system and refer to it using the docBase attribute. For example, say you have your work directory in d:\work\car,
    then
    <?xml version='1.0' encoding='utf-8'?>
    <Context  path ="/Car" docBase="d:/work/car"  />would suffice.
    cheers,
    ram.

  • Tomcat startup VS service

    Hi
    I am using Struts1.2.2 and tomcat5.0.0.28 and windows xp.
    I tried to open notepad,when i click jsp link using following code
    Runtime.getRuntime().exec(�notepad.exe�);
    Its work for me, If start tomcat thru %TOMCAT-HOME%\bin\startup command.
    But its not working for me if i Start Tomcat as service.
    Plaese help me in this regrads.
    Thanks in advance.
    Isma

    Just to note that this will open Notepad on the server where the java code is running.
    However it won't open notepad on the client machine.
    Try clicking the link from a remote machine and see what happens ;-)
    Cheers,
    evnafets

  • Tomcat 5.5 service won't start with jmxremote.authenticate=true

    The Tomcat5 service (5.5.17) starts fine on XP if I set com.sun.management.jmxremote.authenticate=false in the Tomcat5W.exe (gui for setting properties of the service). However, when I set authenticate=true (or omit it), I get the error:
    "Could not start the Apache Tomcat Tomcat5 service on Local Computer. Error 1067: The process terminated unexpectedly." I have created a jmx.remote.password file from the jmx.remote.password.template. I left it in the default location in %JRE_HOME%\lib\management. I also set the file properties so that I am the only user on the security tab, and I have full control. Any ideas?

    Does using Tomcate5W.exe require uninstalling and then re-installing the service to take affect?
    I had a similar issue recently, but had the requirement that I could not uninstall and re-install the service. So I had to use the Tomcat5 service updater via command line. The main problem I ran into was getting the security set properly on the password file. Also, I did not use the default location for the files, but put them in the tomcat directory. Here's a summary of what I did
    1.     Stop the service.
    2.     run the command �service.bat remove� from the tomcat bin directory.
    3.     add the following java options to service.bat
    -Dcom.sun.management.jmxremote
    -Dcom.sun.management.jmxremote.port=1092
    -Dcom.sun.management.jmxremote.ssl=false
    -Dcom.sun.management.jmxremote.authenticate=true
    -Dcom.sun.management.jmxremote.password.file=c:\tomcat\Tomcat 5.5\conf\jmxremote.password
    -Dcom.sun.management.jmxremote.access.file=c:\tomcat\Tomcat 5.5\conf\jmxremote.access
    4.     Fllow the instructions to secure the password file: http://java.sun.com/j2se/1.5.0/docs/guide/management/security-windows.html
    5.     start the service
    I was not able to remove the service, so I actually did this:
    The following will update the windows service named Tomcat5 and add the jvm options to enable jmx remote monitoring with password authentication. Replace Tomcat5 with your service name, and also, you can change the listen port to your desired port.
    C:\>tomcat5 //US//Tomcat5 --JvmOptions="-Dcom.sun.management.jmxremote;-Dcom.sun.management.jmxremote.port=1092;-Dcom.sun.management.jmxremote.ssl=false;-Dcom.sun.management.jmxremote.authenticate=true;-Dcom.sun.management.jmxremote.password.file=c:\tomcat\Tomcat 5.5\conf\jmxremote.password;-Dcom.sun.management.jmxremote.access.file=c:\tomcat\Tomcat 5.5\conf\jmxremote.access"
    Lastly, I followed exactly these steps to secure the password file (which it seems you did).
    http://java.sun.com/j2se/1.5.0/docs/guide/management/security-windows.html
    - Alper

  • Runtime.exec executed with startup.bat,not executed by service with tomcat

    Using tomcat:
    I startup tomcat ,Start my application through web,and my application called
    Runtime.getRuntime().exec(cmd) successfully.
    But I install a service of tomcat,start service, the same application can't call
    Runtime.getRuntime().exec(cmd) ok.
    who knows this problem?
    thanks.
    auth

    Have you found a solution to this problem?
    I have the exact same issue. Any help would be greatly appreciated.

  • How can i use oracle coherence with JPA/ejb  in web service?

    Hi
    I want to make web service using JPA which calls oracle XE via oracle coherence? i want to use JAX-ws? i searched and found you can make and deployed it using web logic but is there any other way i can make it and deployed in tomcat. i want to use oracle coherence + Oracle XE + JAX-WS? if it possible how can i other wise what are other ways i can do it?
    please any one does know it reply please it helps me lot to get.
    Thanks in advance,
    Edited by: 913837 on Feb 22, 2012 3:51 PM

    If you want data cached in Coherence to find it's way into an Oracle database for persistence, then look at the "CacheStore" section of the Coherence Developer Guide. This also works the other way round too, in that you can get data read into a Coherence cache via a database read. Again, look in the Coherence Developer Guide.
    If you want you applications "entry point" into a piece of code to be a web-service, then Tomcat+CXF will work just fine. Once you are in the service, just use the Coherence API to put the data in a cache.
    But also look at the HTTP access offered in later versions of Coherence in the form of REST. This may save you the Tomcat+CXF install, depending upon your needs. See the Coherence Client Guide.
    Still, what exactly are you trying to achieve here? It's not clear from your post why a web service using JPA for persistence needs to go via Coherence at all. More info needed.
    Cheers,
    Steve

Maybe you are looking for

  • Macbook pro hardrive, this may not be important, but i am new to macbooks

    hi guys. sorry to be a pain again, as said in the title i am very new to macbooks (apple computers in general). what i noticed, i have been watching tutorials on the apple site. I noticed that in all of them they have the hard drive icon in the top r

  • Not able to login with operator(user id) in datamover

    After db setup and running tools rel and other scripts i am trying to login to data mover using PS/PS or any other op id...I am getting "Invalid user and password logon denied" error... Ran grant and checked config manager also but of no use does any

  • Question Isolation level on performance

    If I have a question for report, and this report is not really realtime necessary(for example, munites delay is fine). in order to improve performance for report, allow query to get dirty data even there is a transaction lock on on table. So if chang

  • Calling java script function in portal

    Hi, I want all the users (anonymous & logged in) of my portal application to have drag and drop facility to my portlets. I couldn't see DVT enabled property in my workspace as mentioned in http://edocs.bea.com/wlp/docs102/portals/develop_portals.html

  • A dude can't watch my flash movie

    I have the following files: reklame.html reklame.swf AC_RunActiveContent.js The dude are downloading them from http://www.kasperhviid.dk/stuff/reklame.zip However, the dude gets a "The page requires AC_RunActiveContent.js" error. I'm using WinXP, the