Trouble starting Tomcat

Hi,
Ihave been searching the net to find some solutions but none was found.
I am trying to start up my jakarta-tomcat-4.1.30 but its giving me this error....
How do I make the tomcat start??
Your help will be highly appreciated.
Regards,
Sharique
D:\TOMCAT\BIN>startup
Using CATALINA_BASE: D:\Tomcat
Using CATALINA_HOME: D:\Tomcat
Using CATALINA_TMPDIR: D:\Tomcat\temp
Using JAVA_HOME: d:\jdk1.4
Exception during startup processing
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:30)
at sun.reflect.InflatableMethodAccessorImpl.invoke(InflatableMethodAcces
sorImpl.java:48)
at java.lang.reflect.Method.invoke(Method.java:306)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Caused by: java.lang.NoSuchMethodError: java.util.logging.Logger.logp(Ljava/util
/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
at org.apache.commons.logging.impl.Jdk14Logger.log(Jdk14Logger.java:126)
at org.apache.commons.logging.impl.Jdk14Logger.info(Jdk14Logger.java:193
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:189)
at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.
java:1229)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:579)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:2246)
at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
... 5 more

java.lang.NoSuchMethodError: java.util.logging.Logger.logp(Ljava/util
/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
at org.apache.commons.logging.impl.Jdk14Logger.log(Jdk14Logger.java:126)
this sees to be your classpath or jdk version problem. try to update your jdk to jdk1.4.2 and pay attention to the log4j version.

Similar Messages

  • Trouble in Starting Tomcat server

    Hi,
    I installed Eclipse & Tomcat. I started Tomcat using Eclipse. In console it showed as
    Jun 24, 2006 4:55:09 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Starting service Tomcat-Standalone
    Apache Tomcat/4.1.31
    Jun 24, 2006 4:55:11 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    Jun 24, 2006 4:55:11 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    Jun 24, 2006 4:55:12 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true
    Jun 24, 2006 4:55:14 PM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    Jun 24, 2006 4:55:15 PM org.apache.jk.common.ChannelSocket init
    INFO: JK2: ajp13 listening on /0.0.0.0:8009
    Jun 24, 2006 4:55:15 PM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/100 config=C:\Program Files\Apache Group\Tomcat 4.1\conf\jk2.properties
    Error compiling file: C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\/index_jsp.java [javac] Compiling 1 source file
    But When gave this link in URL: http://localhost:8080
    I got an error as follows:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Compiling 1 source file.
    Then I tried from command promt to start Tomcat:
    I checked environment variable JAVA_HOME, the Value is "C:\j2sdk1.4.2_11\bin;". Also PATH:;C:\j2sdk1.4.2_11\bin;
    But Igot an error as follows
    C:\Program Files\Apache Group\Tomcat 4.1\bin>startup
    The JAVA_HOME environment variable is not defined correctly
    This environment variable is needed to run this program
    NB: JAVA_HOME should point to a JDK not a JRE
    Using CATALINA_BASE: ..
    Using CATALINA_HOME: ..
    Using CATALINA_TMPDIR: ..\temp
    Using JAVA_HOME: C:\j2sdk1.4.2_11\bin;
    The system cannot find the file -Dsun.io.useCanonCaches=false.
    C:\Program Files\Apache Group\Tomcat 4.1\bin>
    Can any one guide me, to correct this error.
    Thanks in advance.

    did you edit the catalina.bat file in Tomcat?
    It requires that you do so...I don't think by default it will have your JDK that resides on your machine.
    I've edited various versions of Tomcat and the catalina.bat, server.xml and web.xml files before, and usually I've just about always had to add a line (SET JAVA_HOME) and then the variable %JAVA_HOME% will read it.

  • 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.

  • 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

  • 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.

  • 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.

  • Trouble starting up when cold

    I bought my power mac about 5 years ago. Last year I started having trouble starting up when the machine was cold. I put a heater on the unit for about 30 minutes in the morning and then it would start up ok. Through the summer and once the weather got warmer there was no problem.
    Now with the start of fall and cold nights, I seem to be having the same problem.
    I am concerned that the system drive has five years of usage and am thinking of swapping it out. Any other thoughts???

    Clone it weekly or twice a month.
    Rotate and replace recycle drives
    Backup your data even more - daily and weekly sets
    In 5 yrs drives have more than doubled in performance, and other than in last month the price per GB (and MB/sec) has dropped.
    SSDs are now pppular system boot drives, 10K drives have improved, 2TB $150-200 for media data and backup
    Clone your system twice and if it has trouble swap it out and test/zero the drive.
    Last year? you don't run on a bad tire or a system having trouble except to pull the drive/tire and put on spare.
    There are procedures for repairing a sytem and drives, and then you get into "Why" and troubleshooting causes if necessary.

  • 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

  • Start Tomcat 5.5 with Security Manager

    Recently, i have installed Tomcat version 5.5.8 but i have problem to start tomcat with a Securiy manager.
    For Tomcat version 4.xx we could start Tomcat with SecurityManager by using the "-security" option at "%CATALINA_HOME%\bin\startup.bat" after configured the catalina.policy file.
    But i couldn't do so at Tomcat 5.5.8. Any idea? Many Thanks.

    Start it yourself with
    java -Dcatalina.home=$CATALINA_HOME -Djava.security.manager -Djava.security.policy=="your.policy" -cp your.classpath org.apache.catalina.startup.Bootstrap
    Cheers,
    Arnaud

  • 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

  • Starting Tomcat in WinXP

    I m facing a problem starting tomcat server in winxp.every time i run startup from the command window,it gives the message "windows cannot find 'c:\sun\appserver\bin\java'.I have set the following environment variables:
    CATALINA_HOME=C:\tomcat
    TOMCAT_HOME=C:\tomcat
    CLASSPATH=c:\Sun\AppServer\lib\j2ee.jar
    JAVA_HOME=C:\Sun\AppServer
    Path=c:\Sun\AppServer\bin
    I have installed tomcat in c:\tomcat.Whats the thing i m doing wrong.
    Pls reply asap.Thanx in advance.

    Get rid of that CLASSPATH environment variable for one thing. You don't need it, and Tomcat ignores it.
    Open a command shell and type "java -version". Make sure that the version that comes back is the one you think you should have.
    If the OS can't find the java.exe, it means you've got a PATH problem.
    Your PATH in WinXP should have a lot more than that in it. Where exactly did you set these values? Using the Control Panel, or in the command shell itself? I have mine set with the Control Panel. - MOD

  • Can't start Tomcat after installing Bea WorkShop for JSP

    Hi,
    I have been using Eclipse SDK Version: 3.1.2 Build id: M20060118-1600 and Web Tools Project 1.0.2 and Tomcat 5.0 and Tomcat 5.5 for about 2 months with no problems. But now I Can't start Tomcat after installing Bea WorkShop for JSP plug-in. I get "Server Tomcat v5.0 @ localhost failed to start". Any help would be greatly appreciated.

    I installed BEA Workshop for JSP Version: 3.1.0
    Build id: 536. I only wanted to install the plug-in to my existng Eclipse 3.1 / WTP application. The only option that I saw was to download the entire FullWorkshopFreeInstall-536.zip, which is 192,496 KB. During the installation, there is a screen that you can specify to only install the plug-in - and I selected that option. Today, I chose to uninstall the BEA Workshop for JSP and then I was again able to start Tomcat server. I then did a complete install of BEA Workshop for JSP into a totally separate location. My original Eclipse installation still works fine, but my Workshop for JSP Version (which is now a completely new installation) has the same problem with Tomcat that I reported with the plug-in. I am using j2sdk1.4.2_08 and have tried both Tomcat 5.0 and Tomcat 5.5. I have the same problem with both Windows XP Home Edition and Windows XP Professional.
    Thanks for your assistance.
    Ron

  • Can't start Tomcat after installing it

    In my laptop, I installed Tomcat and it installed fine, but, when I try to start Tomcat, it doesn't do anything.

    I get the following error message when I do Catalina run under tomcat's bin directory:
    C:\jakarta-tomcat-5.0.12>catalina run
    'catalina' is not recognized as an internal or external command,
    operable program or batch file.
    C:\jakarta-tomcat-5.0.12>cd bin
    C:\jakarta-tomcat-5.0.12\bin>catalina run
    Using CATALINA_BASE: C:\jakarta-tomcat-5.0.12
    Using CATALINA_HOME: C:\jakarta-tomcat-5.0.12\
    Using CATALINA_TMPDIR: C:\jakarta-tomcat-5.0.12\temp
    Using JAVA_HOME: C:\j2sdk1.4.1_02
    Usage: java [-options] class [args...]
    (to execute a class)
    or java -jar [-options] jarfile [args...]
    (to execute a jar file)
    where options include:
    -client to select the "client" VM
    -server to select the "server" VM
    -hotspot is a synonym for the "client" VM [deprecated]
    The default VM is client.
    -cp -classpath <directories and zip/jar files separated by ;>
    set search path for application classes and resources
    -D<name>=<value>
    set a system property
    -verbose[:class|gc|jni]
    enable verbose output
    -version print product version and exit
    -showversion print product version and continue
    -? -help print this help message
    -X print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
    enable assertions
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
    disable assertions
    -esa | -enablesystemassertions
    enable system assertions
    -dsa | -disablesystemassertions
    disable system assertions
    C:\jakarta-tomcat-5.0.12\bin>

Maybe you are looking for

  • Free goods in intercompany billing

    Hi, I customize free goods functionality in SAP and all seems to be all right. A sales order makes a delivery with the two itens and after that the invoice have two itens one of then with condition TANN. Everything is perfect... But may question is:

  • Opening Stock and Closing Stock

    Hi,   I have one requirement to get a opening stock and closing stock of all materials,  based on the plant date and mat type. Could u tell me the flow of tables one by one Its is possible to get the opening stock and closing stock of all materials.

  • Deleting data from text files

    Hi there, I am having a real battle trying to delete data from a text file I am using. There seems to be this giant cloud with Java, where there is no real easy way to delete text from a file?? I have a JFrame with two textfields on it where you ente

  • Mozilla firefox 25.0 tab opens with error on URL res://ieframe.dll/unknownprotocol.htm#chrome-extension://kcnhkahnjcbndmmehfkdnkjomaanaooo/widget.html any idea?

    Mozilla firefox 25.0 tab opens with error on URL res://ieframe.dll/unknownprotocol.htm#chrome-extension://kcnhkahnjcbndmmehfkdnkjomaanaooo/widget.html any idea? I believe this is a google voice extension but I do not have chrome installed on my PC Wi

  • Any way to hide the Option CLASS in the sales order line

    Any way to hide the Option CLASSes in the sales order line ? Not thru personalization .and also is there a way to explode the model automatically when we open the sales order form and line details ,rather than going to Tool--Show details everytime