Starting Tomcat at boot

Hi,
Config : Linux, Tomcat, I'm looking for 2 elements :
- How to start automatically Tomcat at boot ?
- How to check periodically that Tomcat is running and, if not, start it ?
Thank for all help.

How did you install it? RPM for RedHad usually come with a startup script that is installed in /etc/init.d.
If not, take a look at where your scripts are, and take one similar to your needs as a template.

Similar Messages

  • How to start tomcat at boot on 10.8

    I have been trying for days to get Tomcat to start on system boot. I have it working fine as an launch daemon when I log on, but I want it to start when the system starts.  I have installed the plist to start tomcat in /System/Library, changed the ownership to root:wheel, ensured that the script it runs is accessible and workable, but no luck.  Where am I going wrong.

    I have been trying for days to get Tomcat to start on system boot. I have it working fine as an launch daemon when I log on, but I want it to start when the system starts.  I have installed the plist to start tomcat in /System/Library, changed the ownership to root:wheel, ensured that the script it runs is accessible and workable, but no luck.  Where am I going wrong.

  • Error while starting Tomcat

    Hi,
    This may be a very basic question on tomcat server:
    What is the difference between creating a server (through the server View provided in eclipse) and using the three icons (at the top, just below the main menu) to start tomcat? I am new to Tomcat and am developing a web appln on tomcat.
    Another question that i have is,
    1. To which folder is my application deployed in Tomcat? For.e.g in Jboss the application as a war file can be fond in Jboss/server/default(or all)/deploy.
    2. In Jboss i have an option to publish the project, if i start Tomcat by the 3 icon buttons provided at the top, how can i ensure that my latest code is published to the tomcat server.
    3. What is this Tomcat manager screen for? How can i make use of this?
    Apart from these, i am getting a few exceptions when i start tomcat (both by the 3 buttons and by creating a server in the server view), here is the list (from the console);
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'service-name': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Le Nom service-name n'est pas li� � ce Contexte
    Caused by: javax.naming.NameNotFoundException: Le Nom service-name n'est pas li� � ce Contexte
         at org.apache.naming.NamingContext.lookup(NamingContext.java:768)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:138)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:779)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:138)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:779)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:151)
         at org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:124)
         at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:86)
         at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:122)
         at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:147)
         at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:90)
         at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:101)
         at org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:164)
         at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:151)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)
         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)
         at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
         at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:308)
         at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:252)
         at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:221)
         at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:115)
         at javax.servlet.GenericServlet.init(GenericServlet.java:211)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
    2007-11-22 13:59:16 StandardContext[/directory-prod]La servlet /directory-prod a g�n�r� une exception "load()"
    javax.servlet.ServletException: "Servlet.init()" pour la servlet ws a g�n�r� une exception
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1071)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
         at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
         at org.apache.catalina.core.StandardService.start(StandardService.java:480)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
         at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
         at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
    ----- Root Cause -----
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'service-name': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Le Nom service-name n'est pas li� � ce Contexte
    Caused by: javax.naming.NameNotFoundException: Le Nom service-name n'est pas li� � ce Contexte
         at org.apache.naming.NamingContext.lookup(NamingContext.java:768)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:138)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:779)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:138)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:779)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:151)
         at org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:124)
         at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:86)
         at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:122)
         at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:147)
         at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:90)
         at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:101)
         at org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:164)
         at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:151)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)
         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)
         at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
         at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:308)
         at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:252)
         at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:221)
         at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:115)
         at javax.servlet.GenericServlet.init(GenericServlet.java:211)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)

    Hi.
    In order to run a web project, you have first to create a server in eclipse. Normally, this is done only the first time: you don't have to do it for every project and/or run.
    To run your project in aserver, you hava to select the project in the package explorer, pick the middle-button :(green circle, play without overlays), and select Run As -> Run on server.
    There, you should select a server if you already configured one or create a new one.
    Now, I think that the error you're getting has nothing to do with JSF. It's more likely a Spring configuration error. You may have declared a JNDI DataSource for example named "service-name" in applicationContext.xml but not in your Container (Tomcat, JBoss, etc.).
    Regards.

  • Dhcpcd does not start automatically on boot

    Hi everyone,
    I have just installed Arch (64 bit) and am running on a dynamic, wired connection.
    I followed the Beginners' Guide and enabled the dhcpcd service during the installation so that it would start automatically on boot.
    systemctl enable [email protected]
    However, I currently must issue the command "dhcpcd" each boot before the internet starts to work.
    Does anyone know how I can automate this process or if I need to further configure my network connection?
    Thank you in advance.
    Last edited by Ipozya (2012-11-15 11:29:05)

    foppe wrote:
    Check the output from
    # systemctl status [email protected]
    to debug the issue you're experiencing.
    % sudo systemctl status [email protected]
    [email protected] - dhcpcd on eth0
    Loaded: loaded (/usr/lib/systemd/system/[email protected]; enabled)
    Active: failed (Result: exit-code) since Tue, 2012-11-15 20:38:16 GMT; 27 sec ago
    Process: 244 ExecStart=/sbin/dhcpcd -A -q -w %I (code=exited, status=1/FAILURE)
    CGroup: name=systemd:/system/[email protected]/eth0
    Nov 15 20:37:47 arch dhcpcd[244]: eth0: sending IPv6 Router Solicitation
    Nov 15 20:37:47 arch dhcpcd[244]: eth0: sendmsg: Cannot assign requested address
    Nov 15 20:37:47 arch dhcpcd[244]: eth0: broadcasting for a lease
    Nov 15 20:37:51 arch dhcpcd[244]: eth0: sending IPv6 Router Solicitation
    Nov 15 20:37:55 arch dhcpcd[244]: eth0: sending IPv6 Router Solicitation
    Nov 15 20:37:59 arch dhcpcd[244]: eth0: sending IPv6 Router Solicitation
    Nov 15 20:37:59 arch dhcpcd[244]: eth0: no IPv6 Routers available
    Nov 15 20:38:16 arch dhcpcd[244]: timed out
    Nov 15 20:38:16 arch systemd[1]: Failed to start dhcpcd on eth0.
    Nov 15 20:38:16 arch systemd[1]: Unit [email protected] entered failed state
    Dhclient did not work automatically on boot either.
    Others seem to have experienced similar issues but I don't see any real solutions in any of these posts, despite being marked as solved. For example, adding "-t 120" to the dhcpcd start line in /usr/lib/systemd/system/[email protected] did not work for me.
    I also tried the following but it did not work either and I had to issue "dhcpcd" before internet started working.
    Install and configure wired and wireless networking
    # pacman -S netcfg ifplugd
    # cd /etc/network.d
    # ln -s examples/ethernet-dhcp .
    Make sure the WIRED_INTERFACE and WIRELESS_INTERFACE lines is uncommented
    # nano /etc/conf.d/netcfg
    # systemctl enable net-auto-wired.service
    # pacman -S wireless_tools wpa_supplicant wpa_actiond dialog
    # systemctl enable net-auto-wireless.service
    https://bbs.archlinux.org/viewtopic.php?pid=1176656
    https://bbs.archlinux.org/viewtopic.php?pid=1189587
    https://bbs.archlinux.org/viewtopic.php?pid=1180192
    Last edited by Ipozya (2012-11-15 21:08:03)

  • Problem with starting Tomcat in debug Mode, Win XP

    Hi,
    if i go to cmd and C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin
    and write: catalina jpda start, it says
    C:\Documents and Settings\bartek>cd C:\Program Files\Apache Software Founda
    C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin>catalina jpda start
    Using CATALINA_BASE: C:\Program Files\Apache Software Foundation\Tomcat 5
    Using CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 5
    Using CATALINA_TMPDIR: C:\Program Files\Apache Software Foundation\Tomcat 5
    Using JAVA_HOME: C:\j2sdk1.4.2_09
    C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin>
    And it finishes.... Server is off
    If i write: catalina start , new Tomcat window opens and the server starts
    This is my catalina.bat
    @echo off
    if "%OS%" == "Windows_NT" setlocal
    rem ---------------------------------------------------------------------------
    rem Start/Stop Script for the CATALINA Server
    rem
    rem Environment Variable Prequisites
    rem
    rem   CATALINA_HOME   May point at your Catalina "build" directory.
    rem
    rem   CATALINA_BASE   (Optional) Base directory for resolving dynamic portions
    rem                   of a Catalina installation.  If not present, resolves to
    rem                   the same directory that CATALINA_HOME points to.
    rem
    rem   CATALINA_OPTS   (Optional) Java runtime options used when the "start",
    rem                   "stop", or "run" command is executed.
    rem
    rem   CATALINA_TMPDIR (Optional) Directory path location of temporary directory
    rem                   the JVM should use (java.io.tmpdir).  Defaults to
    rem                   %CATALINA_BASE%\temp.
    rem
    rem   JAVA_HOME       Must point at your Java Development Kit installation.
    rem
    rem   JAVA_OPTS       (Optional) Java runtime options used when the "start",
    rem                   "stop", or "run" command is executed.
    rem
    rem   JSSE_HOME       (Optional) May point at your Java Secure Sockets Extension
    rem                   (JSSE) installation, whose JAR files will be added to the
    rem                   system class path used to start Tomcat.
    rem
    rem   JPDA_TRANSPORT  (Optional) JPDA transport used when the "jpda start"
    rem                   command is executed. The default is "dt_shmem".
    rem
    rem   JPDA_ADDRESS    (Optional) Java runtime options used when the "jpda start"
    rem                   command is executed. The default is "jdbconn".
    rem
    rem $Id: catalina.bat,v 1.9.2.1 2004/08/21 15:49:47 yoavs Exp $
    rem ---------------------------------------------------------------------------
    rem Guess CATALINA_HOME if not defined
    set CURRENT_DIR=%cd%
    if not "%CATALINA_HOME%" == "" goto gotHome
    set CATALINA_HOME=%CURRENT_DIR%
    if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
    cd ..
    set CATALINA_HOME=%cd%
    cd %CURRENT_DIR%
    :gotHome
    if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
    echo The CATALINA_HOME environment variable is not defined correctly
    echo This environment variable is needed to run this program
    goto end
    :okHome
    rem Get standard environment variables
    if exist "%CATALINA_HOME%\bin\setenv.bat" call "%CATALINA_HOME%\bin\setenv.bat"
    rem Get standard Java environment variables
    if exist "%CATALINA_HOME%\bin\setclasspath.bat" goto okSetclasspath
    echo Cannot find %CATALINA_HOME%\bin\setclasspath.bat
    echo This file is needed to run this program
    goto end
    :okSetclasspath
    set BASEDIR=%CATALINA_HOME%
    call "%CATALINA_HOME%\bin\setclasspath.bat"
    rem Add on extra jar files to CLASSPATH
    if "%JSSE_HOME%" == "" goto noJsse
    set CLASSPATH=%CLASSPATH%;%JSSE_HOME%\lib\jcert.jar;%JSSE_HOME%\lib\jnet.jar;%JSSE_HOME%\lib\jsse.jar
    :noJsse
    set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar
    if not "%CATALINA_BASE%" == "" goto gotBase
    set CATALINA_BASE=%CATALINA_HOME%
    :gotBase
    if not "%CATALINA_TMPDIR%" == "" goto gotTmpdir
    set CATALINA_TMPDIR=%CATALINA_BASE%\temp
    :gotTmpdir
    rem ----- Execute The Requested Command ---------------------------------------
    echo Using CATALINA_BASE:   %CATALINA_BASE%
    echo Using CATALINA_HOME:   %CATALINA_HOME%
    echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR%
    echo Using JAVA_HOME:       %JAVA_HOME%
    set _EXECJAVA=%_RUNJAVA%
    set MAINCLASS=org.apache.catalina.startup.Bootstrap
    set ACTION=start
    set SECURITY_POLICY_FILE=
    set DEBUG_OPTS=
    set JPDA=
    if not ""%1"" == ""jpda"" goto noJpda
    set JPDA=jpda
    if not "%JPDA_TRANSPORT%" == "" goto gotJpdaTransport
    set JPDA_TRANSPORT=dt_socked
    :gotJpdaTransport
    if not "%JPDA_ADDRESS%" == "" goto gotJpdaAddress
    set JPDA_ADDRESS=8000
    :gotJpdaAddress
    shift
    :noJpda
    if ""%1"" == ""debug"" goto doDebug
    if ""%1"" == ""run"" goto doRun
    if ""%1"" == ""start"" goto doStart
    if ""%1"" == ""stop"" goto doStop
    if ""%1"" == ""version"" goto doVersion
    echo Usage:  catalina ( commands ... )
    echo commands:
    echo   debug             Start Catalina in a debugger
    echo   debug -security   Debug Catalina with a security manager
    echo   jpda start        Start Catalina under JPDA debugger
    echo   run               Start Catalina in the current window
    echo   run -security     Start in the current window with security manager
    echo   start             Start Catalina in a separate window
    echo   start -security   Start in a separate window with security manager
    echo   stop              Stop Catalina
    echo   version           What version of tomcat are you running?
    goto end
    :doDebug
    shift
    set _EXECJAVA=%_RUNJDB%
    set DEBUG_OPTS=-sourcepath "%CATALINA_HOME%\..\..\jakarta-tomcat-catalina\catalina\src\share"
    if not ""%1"" == ""-security"" goto execCmd
    shift
    echo Using Security Manager
    set SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy
    goto execCmd
    :doRun
    shift
    if not ""%1"" == ""-security"" goto execCmd
    shift
    echo Using Security Manager
    set SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy
    goto execCmd
    :doStart
    shift
    if not "%OS%" == "Windows_NT" goto noTitle
    set _EXECJAVA=start "Tomcat" %_RUNJAVA%
    goto gotTitle
    :noTitle
    set _EXECJAVA=start %_RUNJAVA%
    :gotTitle
    if not ""%1"" == ""-security"" goto execCmd
    shift
    echo Using Security Manager
    set SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy
    goto execCmd
    :doStop
    shift
    set ACTION=stop
    goto execCmd
    :doVersion
    %_EXECJAVA% -classpath "%CATALINA_HOME%\server\lib\catalina.jar" org.apache.catalina.util.ServerInfo
    goto end
    :execCmd
    rem Get remaining unshifted command line arguments and save them in the
    set CMD_LINE_ARGS=
    :setArgs
    if ""%1""=="""" goto doneSetArgs
    set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
    shift
    goto setArgs
    :doneSetArgs
    rem Execute Java with the applicable properties
    if not "%JPDA%" == "" goto doJpda
    if not "%SECURITY_POLICY_FILE%" == "" goto doSecurity
    %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
    goto end
    :doSecurity
    %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Djava.security.manager -Djava.security.policy=="%SECURITY_POLICY_FILE%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
    goto end
    :doJpda
    if not "%SECURITY_POLICY_FILE%" == "" goto doSecurityJpda
    %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% -Xdebug -Xrunjdwp:transport=%JPDA_TRANSPORT%,address=%JPDA_ADDRESS%,server=y,suspend=n %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
    goto end
    :doSecurityJpda
    %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% -Xrunjdwp:transport=%JPDA_TRANSPORT%,address=%JPDA_ADDRESS%,server=y,suspend=n %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Djava.security.manager -Djava.security.policy=="%SECURITY_POLICY_FILE%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
    goto end
    :end

    paths with spaces in them are a problem. surround them with quotes and see if that helps.
    why does the Java /bin appear twice?
    why don't you use the JAVA_HOME variable that you set? don't repeat yourself.
    %

  • Starting tomcat 3.3 - win nt 4.0

    Iam Starting Tomcat 3.3 in command prompt
    "tomcat start".
    A new window opens with tomcat running
    Now I type "tomcat stop"
    The New window closes and tomcat stops
    once again I type "tomcat start".
    Now the new window opens , but tomcat does not start. Its throwing the following execption
    ThreadPool: Caught exception executing org.apache.tomcat.util.net.TcpWorkerThrea
    d@1b9f5390, terminating thread
    java.lang.LinkageError: Class java/util/Locale violates loader constraints
    at org.apache.tomcat.modules.server.HttpResponse.init(Http10Interceptor.
    java:430)
    at org.apache.tomcat.core.ContextManager.initRequest(ContextManager.java
    :816)
    at org.apache.tomcat.modules.server.Http10Interceptor.init(Http10Interce
    ptor.java:145)
    at org.apache.tomcat.util.net.TcpWorkerThread.getInitData(PoolTcpEndpoin
    t.java:452)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
    ool.java, Compiled Code)
    at java.lang.Thread.run(Thread.java:479)
    can anyone solve this

    I had the same problem reported to me. The error appeared when trying to debug a web application in JBuilder and was caused by trying to use debug features with JDK 1.2.2 without JPDA being available. Either change to use a later JDK (JPDA Is included from 1.3 on) or download JPDA from Sun and install it to clear the problem.

  • Problem in ant script (starting tomcat)...

    Hi,
    in my ant script (build.xml) I have some targets to start/stop tomcat:
        <!-- ================================ -->
        <!-- start/stop tomcat servlet engine -->
        <!-- ================================ -->
        <!-- check whether server is already running -->
        <target name="-started">
            <condition property="server.started">
                <and>
                    <socket port="${tomcat.port}" server="${tomcat.server}"/>
                </and>
            </condition>
        </target>
        <!-- start tomcat -->
        <target name="start" depends="-started" description="start tomcat server"
            unless="server.started">
            <echo message="Starting tomcat servlet engine..."/>
                <java classname="org.apache.catalina.startup.Bootstrap" fork="yes">
                <jvmarg value="-Djava.endorsed.dirs=${catalina.dir}/common/endorsed"/>
                <jvmarg value="-Dcatalina.base=${catalina.dir}"/>
                <jvmarg value="-Dcatalina.home=${catalina.dir}"/>
                <jvmarg value="-Djava.io.tmpdir=${catalina.dir}/temp"/>
                <arg value="start"/>
                <classpath>
                    <pathelement location="${java.home}/../lib/tools.jar"/>
                    <pathelement location="${catalina.dir}/bin/bootstrap.jar"/>
                </classpath>
            </java>
        </target>
        <!-- check whether server is still running -->
        <target name="-stopped">
            <condition property="server.stopped">
                <and>
                    <socket port="${tomcat.port}" server="${tomcat.server}"/>
                    <not>
                        <isset property="server.started"/>
                    </not>
                </and>
            </condition>
        </target>
        <!-- stop tomcat -->
        <target name="stop" depends="-stopped" description="stop tomcat server"
            if="server.stopped">
            <echo message="Stopping tomcat servlet engine..."/>
            <java classname="org.apache.catalina.startup.Bootstrap" fork="yes">
                <jvmarg value="-Djava.endorsed.dirs=${catalina.dir}/common/endorsed"/>
                <jvmarg value="-Dcatalina.base=${catalina.dir}"/>
                <jvmarg value="-Dcatalina.home=${catalina.dir}"/>
                <jvmarg value="-Djava.io.tmpdir=${catalina.dir}/temp"/>
                <arg value="stop"/>
                <classpath>
                    <pathelement location="${java.home}/../lib/tools.jar"/>
                    <pathelement location="${catalina.dir}/bin/bootstrap.jar"/>
                </classpath>
            </java>
        </target>The problem I have is, when using another target which depends on the tomcat start target, for example my list target:
        <target name="list" depends="start" description="list installed web applications">
            <list url="${url}" username="${username}"
                password="${password}"/>
        </target>When executing the list target, tomcat starts up correctly but the list target is not executed.
    Any help would be greatly appreciated.
    Best regards
    - Stephan

    No, I don't think that's the problem.
    In my opinion, the problem has something to do with
    fork="yes"in the start target.
    But how can I tell ant to first execute another target (the target that starts tomcat) and then execute for example the list target (which lists all the installed web apps)? When using the depends attribute it doesn't work:
    <target name="list" depends="start">
        <list url=.../>
    </target>When executing the list target, tomcat starts automatically (start target) but the list target is not executed after that :-(
    Any ideas?
    Best regards
    - Stephan

  • Btsync not starting correctly at boot

    Hi all,
    I have installed Btsync with the help of this nice guide:
    https://wiki.archlinux.org/index.php/BitTorrent_Sync
    Running this on the RaspberryPi.
    And it starts when I boot but it does not show any logs (systemctl status btsync@username)  and the GUI does not work until I do a
    systemctl restart btsync@username
    What shall I do?
    Regards
    Kristofer

    Service file:   [email protected]
    [Unit]
    Description=Bittorent Sync service for %i
    After=network.target
    [Service]
    User=%i
    ExecStart=/usr/bin/btsync --config %h/.config/btsync/btsync.conf --nodaemon
    Restart=on-abort
    [Install]
    WantedBy=multi-user.target
    After a reboot when the btsync does not work:
    systemctl status btsync@xx
    [email protected] - Bittorent Sync service for xx
    Loaded: loaded (/usr/lib/systemd/system/[email protected]; enabled)
    Active: active (running) since Thu 1970-01-01 01:00:23 CET; 44 years 0 months ago
    Main PID: 143 (btsync)
    CGroup: /system.slice/system-btsync.slice/[email protected]
    `-143 /usr/bin/btsync --config /home/xx/.config/btsync/btsync.c...

  • Can't Start Tomcat 5 as a Service

    Can't Start Tomcat 5 as a Service on XP, when I do
    tomcat5\bin\net start tomcat5
    I get "NET" is not recognized as an internal or external command
    where's that net command coming from? java or XP
    thanks

    You are trying to start the program called tomcat\bin\net which does not exist. The net command belongs to Windows. Just issuing "net start tomcat" or "net start tomcat5" should work from any directory.
    Or just go through the Control Panel->Administrative Tools->Services dialog to start and stop Tomcat as a service.

  • I bought windows 7 download online and started setting up boot camp but it says to insert the windows 7 disk so how do i do this?

    i bought windows 7 download online and started setting up boot camp but it says to insert the windows 7 disk so how do i do this?
    plz help me

    Hi Jaimie,
    To install Windows via Boot Camp you will need to have a copy of Windows on a physical dvd disc.
    If your purchase provides you with an ".ISO" file then you can simply burn this to a DVD and then follow the standard Boot Camp installation instructions.
    Boot Camp instructions: http://manuals.info.apple.com/en_US/boot_camp_install-setup_10.7.pdf
    If you get stuck, just let me know the website you purchased Windows 7 from and I might be able to help you out.
    Cheers

  • Macbook upgrade to Lion.. how do i minimize what applications start up from boot ?

    how do i minimize what applications start up from boot (start-up) ??
    excel, word, safari and mail are all opening
    takes too long

    Disable Resume...
    How To Disable Lion's 'Resume' Feature - MacRumors.com
    And if you restart your Mac from the Apple menu > Restart
    Deselect:   Reopen windows when logging back in

  • How do I start service at boot?

    Hello,
      I am relatively new to arch, so I have played with it since .3 on and off but never as a server.  Right now I can start mysql, httpd and exim just fine, but they don't seem to be starting up at boot time.  How do I fix this?
    Thanks,
    mrjohnston

    Hi mrjohnston,
    You have to add an entry for each daemon in the DAEMONS array in the file /etc/rc.conf.  If you add "exim" (for example) to the DAEMONS line, the file /etc/rc.d/exim will be executed, and that should get it started at bootup.
    Cheers.

  • Eclipse 3.0 can't start Tomcat 5.0...

    Hi,
    I've installed Tomcat 5.0, Eclipse 3.0 and Sysdeo-Plugin ( com.sysdeo.eclipse.tomcat_3.0.0).
    After opening Eclipse I've tried to start Tomcat within Eclipse.
    I got the following error-message:
    java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
    Next a pop-up-alert was displayed with the following content:
    Java Virtual Machine Launcher: Could not find the main class. Program will exit.
    After trying to start Tomcat agin, errLog showed the following 2 errors:
    1.
    Message: Start Tomcat...
    Exception Stack Trace: An exception stack trace could not be found.
    Session Data:
    eclipse.buildId=M200409161125
    java.version=1.4.2_01
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
    2.
    Message: Stop Tomcat...
    Exception Stack Trace: An exception stack trace could not be found.
    Session Data:
    eclipse.buildId=M200409161125
    java.version=1.4.2_01
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
    After closing Eclipse, the error-message (Java Virtual Machine Launcher: Could not find the main class. Program will exit.) was shown, again...
    Do you have any idea, in order to fix the bug...?
    bye
    Chris

    Now I've installed Tomcat 5.5.7 and set CATALINA_HOME and PATH.
    The ErrorLogs by starting and stopping Tomcat were still displayed.
    By starting Tomcat 5.5.7 wihin Eclipse 3.0.1., the Console shows this:
    13.02.2005 14:33:07 org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    13.02.2005 14:33:07 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1201 ms
    13.02.2005 14:33:08 org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    13.02.2005 14:33:08 org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.7
    13.02.2005 14:33:08 org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    13.02.2005 14:33:10 org.apache.catalina.startup.ContextConfig applicationWebConfig
    INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Lomb]
    13.02.2005 14:33:11 org.apache.catalina.loader.WebappClassLoader validateJarFile
    INFO: validateJarFile(C:\Tomcat_5_5_7\webapps\ZT\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    13.02.2005 14:33:11 org.apache.catalina.startup.ContextConfig applicationWebConfig
    INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ZT]
    13.02.2005 14:33:11 org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    13.02.2005 14:33:11 org.apache.jk.common.ChannelSocket init
    INFO: JK2: ajp13 listening on /0.0.0.0:8009
    13.02.2005 14:33:12 org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/120  config=null
    13.02.2005 14:33:12 org.apache.catalina.storeconfig.StoreLoader load
    INFO: Find registry server-registry.xml at classpath resource
    13.02.2005 14:33:12 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 4517 msSome INFO's look strange:
    INFO: validateJarFile(C:\Tomcat_5_5_7\webapps\ZT\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offendingor
    INFO: Missing application web.xml, using defaults onlyor
    INFO: XML validation disabledDo you know, what's the reason for it?
    bye
    Chris

  • OSX 10.6 .8 -- Firefox automatically starts when I boot up (MacBook Pro Intel). It is not in the Startup Items in System Preferences, and automatic startup is not checked in Firefox Options. Don't know where else to look.

    How do I keep Firefox automatically starts when I boot up (OSX 10.6 .8 -- MacBook Pro Intel). It is not in the Startup Items in System Preferences, and automatic startup is not checked in Firefox Options.

    Hi fullrun-
    Once Firefox is open, you should be able to open the Right click context menu on the icon. From there you select 'Options' and then de-select 'Open at Login'. Hope that helps.

  • Oracle 11g XE listener does not start automatically during boot

    Hi,
    This happened to me recently I just wanted to share it with you.
    For development I was running Standard Edition, at some point I decided to run also XE on the same server for another reasons. Everything was working fine, except that after restart of the server, the XE listener is not starting automatically. Debugging the startup script I found that this happens because of a bug in the code, which assumes that XE listener is running if it finds the word LISTENER within the processes list. I didn't found any obligation in the docs for running XE without any other databases on the same host.
    In file /etc/init.d/oracle-xe, at line 556 the code is failing:
    1     + status='oracle 2889 1 0 May13 ? 00:00:05 /oracle/ora112se/bin/tnslsnr LISTENER -inherit'
    2     + '[' 'oracle 2889 1 0 May13 ? 00:00:05 /oracle/ora112se/bin/tnslsnr LISTENER -inherit' == '' ']'
    As you can see I have another listener(the one for SE) running and because of the XE startup script found the keyword LISTENER it’s supposing that the XE LISTENER is already running.
    To fix this simply change line 556 from:
    1     status=`ps -ef | grep tns | grep oracle`
    To:
    1     status=`ps -ef | grep tns | grep oracle | grep xe`
    Now XE listener is started automatically during boot.
    Sve
    Blog: http://sve.to
    Twitter: sgyurov

    I though the same thing, but XE LISTENER is running on localhost and port 1522. On the other hand XE have local_listener explicitly set to the very same connection descriptor. Even XE installation was second on this server.
    I've could change that yes, but the startup script doesn't seemed to have this mind.
    Regards,
    Sve

Maybe you are looking for

  • Multiple devices with multiple users on one itunes account

    How do I get my daughters iTouch on my same itunes account so we can share apps/music but so that I don't see her imessages?  Also - I don't want her messages coming across with my name.  Thanks!

  • Where Is the Airplay Icon (for audio) on my iPhone 4?  - And Other Issues

    For the most part I'm pretty pleased with iOSv4.2 for both my iPads and iPhones. Folders, multitasking, all great improvements. But perhaps the most exciting new feature is "Airplay" from my iPad and, I wish, from my iPhone as well. To bad it's gimpy

  • Problem with keyfigure in Bex

    Hi all, i have two charactristics location and product in the rows and keyfigures,stock on hand ,inventory carrying costs in the rows.In the coulmns i have calweek.For stock on hand keyfigure i had applied the cumulative property so that it shows the

  • Can't Paste Artwork in iTunes

    Ever since I upgraded a month-and-a-half ago (both iTunes and Mavericks), I cannot paste artwork into iTunes files (movies/TV/Music).  Everything else works fine, but once I copy a picture into the file it simply doesn't "take".  If you reopen the fi

  • Regarding inner join

    I am not getting how to inner join two tables(any two internal tables). please give one example.