aspose file tools*
The moose likes Tomcat and the fly likes Problem in starting Tomcat. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problem in starting Tomcat." Watch "Problem in starting Tomcat." New topic
Author

Problem in starting Tomcat.

Sat Nar
Ranch Hand

Joined: Oct 22, 2004
Posts: 83
Hi,
i have installed tomcat and while starting the server, iam facing some problem.When i start my server by executing the command startup.bat, a new window pops up and it gets closed automatically.

Below are my environment variables.

CATALINA_HOME = D:\tomcat\tomcat
CLASS_PATH = D:\jdk1.3\lib\tools.jar
JAVA_HOME = D:\jdk1.3\
Path = D:\jdk1.3\bin
TOMCAT_HOME = D:\tomcat\tomcat

Below is the log which gets generated.


D:\tomcat\tomcat\bin>startup.bat

D:\tomcat\tomcat\bin>#@echo off
'#@echo' is not recognized as an internal or external command,
operable program or batch file.

D:\tomcat\tomcat\bin>if "Windows_NT" == "Windows_NT" setlocal

D:\tomcat\tomcat\bin>rem -------------------------------------------------------
--------------------

D:\tomcat\tomcat\bin>rem Start script for the CATALINA Server

D:\tomcat\tomcat\bin>rem

D:\tomcat\tomcat\bin>rem $Id: startup.bat,v 1.4 2002/01/15 02:55:38 patrickl Exp
$

D:\tomcat\tomcat\bin>rem -------------------------------------------------------
--------------------

D:\tomcat\tomcat\bin>rem Guess CATALINA_HOME if not defined

D:\tomcat\tomcat\bin>if not "" == "" goto gotHome

D:\tomcat\tomcat\bin>set CATALINA_HOME=.

D:\tomcat\tomcat\bin>if exist ".\bin\catalina.bat" goto okHome

D:\tomcat\tomcat\bin>set CATALINA_HOME=..

D:\tomcat\tomcat\bin>if exist "..\bin\catalina.bat" goto okHome

D:\tomcat\tomcat\bin>set EXECUTABLE=..\bin\catalina.bat

D:\tomcat\tomcat\bin>rem Check that target executable exists

D:\tomcat\tomcat\bin>if exist "..\bin\catalina.bat" goto okExec

D:\tomcat\tomcat\bin>rem Get remaining unshifted command line arguments and save
them in the

D:\tomcat\tomcat\bin>set CMD_LINE_ARGS=

D:\tomcat\tomcat\bin>if """" == """" goto doneSetArgs

D:\tomcat\tomcat\bin>call "..\bin\catalina.bat" start
Using CATALINA_BASE: ..
Using CATALINA_HOME: ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME: D:\jdk1.3\
D:\tomcat\tomcat\bin>

Kindly help me out.

Regards,
Sathya
[ December 09, 2005: Message edited by: Bear Bibeault ]
Arvind Sampath
Ranch Hand

Joined: May 11, 2005
Posts: 144
Even I faced the similar issue when the same issue when i first installed tomcat. My admin installed tomcat for me from his login. When i reported this issue to him, he gave me some access priviliges and the problem was resolved. But am not sure what he did



Arvind
[ December 09, 2005: Message edited by: Arvind Sampath ]
Raghu Shree
Ranch Hand

Joined: Mar 18, 2005
Posts: 143
Hi,
To sortout the problem using debug method in Tomcat. follow the below steps

1. Goto comamnd prompt
2. enter catalina debug
3. After receiving the prompt > enter run
4. Now tomcat is start without any problems. if it is have some problem to start it display the error message in dos prompt window.


Raghu J<br />SCJP 1.4<br /> <br />The Wind and waters are always<br />on the side of the ablest navigators.<br /><a href="http://groups.yahoo.com/group/scjp_share" target="_blank" rel="nofollow">SCJP Group</a><br /><a href="http://groups.yahoo.com/group/JavaBeat_SCWCD" target="_blank" rel="nofollow">SCWCD Group</a>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61434
    
  67

Moved to the Tomcat forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
S Suresh
Greenhorn

Joined: Jun 15, 2005
Posts: 7
hi

CATALINA_HOME=c:\Tomcat
JAVA_HOME=c:\jdk1.3
thats it
set now


Suresh S SCJP 1.4 SCWCD 1.5 SCBCD 1.5*)<br /> <br />"His ad with Microsoft was literally inviting homosexuals everywhere to suck his fat cock. Or try microsoft, whichever you prefer. - Steve Ballmer"
Sat Nar
Ranch Hand

Joined: Oct 22, 2004
Posts: 83
Hi suresh,
that what i have done.

CATALINA_HOME = D:\tomcat\tomcat
JAVA_HOME = D:\jdk1.3\

I have installed my jdk and tomcat under D:

Regards,
Sathya
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12806
    
    5
1. Which version of Tomcat?
2. Which operating system?

If you execute startup.bat from a command prompt window and another window opens and closes immediately, do the following:

In the last executable line of startup.bat, change "start" to "run" - this will continue to run in the same window instead of opening a new one that closes after the error. You should then see error message(s) that will lead to solving your problem.
Bill
Sat Nar
Ranch Hand

Joined: Oct 22, 2004
Posts: 83
Now iam getting the below errors.


D:\tomcat\tomcat\bin>startup.sh

D:\tomcat\tomcat\bin>startup

D:\tomcat\tomcat\bin>#@echo off
'#@echo' is not recognized as an internal or external command,
operable program or batch file.

D:\tomcat\tomcat\bin>if "Windows_NT" == "Windows_NT" setlocal

D:\tomcat\tomcat\bin>rem -------------------------------------------------------
--------------------

D:\tomcat\tomcat\bin>rem Start script for the CATALINA Server

D:\tomcat\tomcat\bin>rem

D:\tomcat\tomcat\bin>rem $Id: startup.bat,v 1.4 2002/01/15 02:55:38 patrickl Exp
$

D:\tomcat\tomcat\bin>rem -------------------------------------------------------
--------------------

D:\tomcat\tomcat\bin>rem Guess CATALINA_HOME if not defined

D:\tomcat\tomcat\bin>if not "D:\tomcat\tomcat" == "" goto gotHome

D:\tomcat\tomcat\bin>if exist "D:\tomcat\tomcat\bin\catalina.bat" goto okHome

D:\tomcat\tomcat\bin>set EXECUTABLE=D:\tomcat\tomcat\bin\catalina.bat

D:\tomcat\tomcat\bin>rem Check that target executable exists

D:\tomcat\tomcat\bin>if exist "D:\tomcat\tomcat\bin\catalina.bat" goto okExec

D:\tomcat\tomcat\bin>rem Get remaining unshifted command line arguments and save
them in the

D:\tomcat\tomcat\bin>set CMD_LINE_ARGS=

D:\tomcat\tomcat\bin>if """" == """" goto doneSetArgs

D:\tomcat\tomcat\bin>call "D:\tomcat\tomcat\bin\catalina.bat" start
Using CATALINA_BASE: D:\tomcat\tomcat
Using CATALINA_HOME: D:\tomcat\tomcat
Using CATALINA_TMPDIR: D:\tomcat\tomcat\temp
Using JAVA_HOME: D:\jdk1.3\
D:\tomcat\tomcat\bin>startup

D:\tomcat\tomcat\bin>#@echo off
'#@echo' is not recognized as an internal or external command,
operable program or batch file.

D:\tomcat\tomcat\bin>if "Windows_NT" == "Windows_NT" setlocal

D:\tomcat\tomcat\bin>rem -------------------------------------------------------
--------------------

D:\tomcat\tomcat\bin>rem Start script for the CATALINA Server

D:\tomcat\tomcat\bin>rem

D:\tomcat\tomcat\bin>rem $Id: startup.bat,v 1.4 2002/01/15 02:55:38 patrickl Exp
$

D:\tomcat\tomcat\bin>rem -------------------------------------------------------
--------------------

D:\tomcat\tomcat\bin>rem Guess CATALINA_HOME if not defined

D:\tomcat\tomcat\bin>if not "D:\tomcat\tomcat" == "" goto gotHome

D:\tomcat\tomcat\bin>if exist "D:\tomcat\tomcat\bin\catalina.bat" goto okHome

D:\tomcat\tomcat\bin>set EXECUTABLE=D:\tomcat\tomcat\bin\catalina.bat

D:\tomcat\tomcat\bin>rem Check that target executable exists

D:\tomcat\tomcat\bin>if exist "D:\tomcat\tomcat\bin\catalina.bat" goto okExec

D:\tomcat\tomcat\bin>rem Get remaining unshifted command line arguments and save
them in the

D:\tomcat\tomcat\bin>set CMD_LINE_ARGS=

D:\tomcat\tomcat\bin>if """" == """" goto doneSetArgs

D:\tomcat\tomcat\bin>#call "D:\tomcat\tomcat\bin\catalina.bat" start
'#call' is not recognized as an internal or external command,
operable program or batch file.

D:\tomcat\tomcat\bin>call "D:\tomcat\tomcat\bin\catalina.bat" run
Using CATALINA_BASE: D:\tomcat\tomcat
Using CATALINA_HOME: D:\tomcat\tomcat
Using CATALINA_TMPDIR: D:\tomcat\tomcat\temp
Using JAVA_HOME: D:\jdk1.3\
[ERROR] Digester - -Begin event threw exception <java.util.MissingResourceExcept
ion: Can't find bundle for base name org.apache.coyote.tomcat4.LocalStrings, loc
ale en_US>java.util.MissingResourceException: Can't find bundle for base name or
g.apache.coyote.tomcat4.LocalStrings, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle
.java:715)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:678)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:554)
at org.apache.catalina.util.StringManager.<init>(StringManager.java:68)
at org.apache.catalina.util.StringManager.getManager(StringManager.java:
213)
at org.apache.coyote.tomcat4.CoyoteConnector.<init>(CoyoteConnector.java
:238)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.j
ava:253)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at org.apache.commons.digester.Digester.startElement(Digester.java:1273)

at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour
ce)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn
own Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.Catalina.start(Catalina.java:420)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)

Catalina.start using D:\tomcat\tomcat\conf\server.xml: java.util.MissingResource
Exception: Can't find bundle for base name org.apache.coyote.tomcat4.LocalString
s, locale en_US
java.util.MissingResourceException: Can't find bundle for base name org.apache.c
oyote.tomcat4.LocalStrings, locale en_US
at org.apache.commons.digester.Digester.createSAXException(Digester.java
:2540)
at org.apache.commons.digester.Digester.createSAXException(Digester.java
:2566)
at org.apache.commons.digester.Digester.startElement(Digester.java:1276)

at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour
ce)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn
own Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.Catalina.start(Catalina.java:420)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
D:\tomcat\tomcat\bin>


Kindly help me out.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12806
    
    5

It appears that something is missing from your Tomcat installation related to String constants for the en_US locale. One possibility is that the copy you have was intended for another locale setting.
Where did your Tomcat come from and how did you install it?
Unless I missed it somewhere you still have not said your operating system version.
Sat Nar
Ranch Hand

Joined: Oct 22, 2004
Posts: 83
Hi,
my OS in Windows XP.

I downloaded the tomcat from Apche site and unzipped the file.
Kindly help me out.

Regards,
Sathya
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

It looks to me that you've corrupted your PATH environment variable.



That variable is used by the system to find lots of things, including all of the commands that are in a ".bat" script. I can see from the output you've posted that the system can't find any of the commands.

Where are you setting these?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in starting Tomcat.