• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Can't start Tomcat 4.1.12 on win2000

 
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just doanloaded Tomcat 4.1.12 to Win2000. I added JAVA_HOME to catalina.bat script and ran startup.bat. Numerous FINE log messages scrolls down in the dos window like crazy and never stop. Any ideas?
I have Tomcat 3.x and 4.0.1 on the same PC and they can run OK.
Thanks.
These are some of the messages:
FINE: Fire end() for SetNextRule[methodName=addAttribute, paramType=org.apac
.commons.modeler.AttributeInfo]
Nov 27, 2002 2:49:10 PM org.apache.commons.digester.SetNextRule end
FINE: [SetNextRule]{mbeans-descriptors/mbean/attribute} Call org.apache.common
modeler.ManagedBean.addAttribute(AttributeInfo[name=algorithm, description=The
essage digest algorithm to be used when generating ses
on identifiers, type=java.lang.String])
Nov 27, 2002 2:49:10 PM org.apache.commons.digester.Digester endElement
FINE: Fire end() for SetPropertiesRule[]
Nov 27, 2002 2:49:10 PM org.apache.commons.digester.Digester endElement
FINE: Fire end() for ObjectCreateRule[className=org.apache.commons.modeler.A
ributeInfo, attributeName=null]
Nov 27, 2002 2:49:10 PM org.apache.commons.digester.ObjectCreateRule end
FINE: [ObjectCreateRule]{mbeans-descriptors/mbean/attribute} Pop org.apache.co
ons.modeler.AttributeInfo
Nov 27, 2002 2:49:10 PM org.apache.commons.digester.Digester ignorableWhitespa
FINE: ignorableWhitespace(
)
Nov 27, 2002 2:49:10 PM org.apache.commons.digester.Digester startElement
FINE: startElement(,,attribute)
Nov 27, 2002 2:49:10 PM org.apache.commons.digester.Digester startElement
FINE: Pushing body text ''
[ November 27, 2002: Message edited by: Bruce Jin ]
 
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Couple of things to check
1. Setting of your CATALINA_HOME env. variable.
2. Checking whether you are reffering to the correct verions of commons-digester and the correct version of the xerces parser (Refer to the docs to find out which version works).
 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply.
I set CATALINA_HOME env. variable too. Same thing happens.
How to check #2? Everything come with the download. I tried jakarta-tomcat-4.1.12-LE-jdk14 too and the exactly same thing happens.
 
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simplify your procedures:
1) Delete CLASSPATH from your environmental vars, if you have any. Microsoft might set something weird for you. If you afraid to do so, temporarily rename it to CLASSPATH_OLD if that makes you feel more comfortable.
2) Set your JAVA_HOME to your jdk directory; make sure it is not your jre directory.
3) Set CATALINA_HOME to your tomcat directory
4) add %JAVA_HOME%/bin;%CATALINA_HOME%/bin to your user path.
You should be all set. Start a new! dos window. Type catalina start
Use http://localhost:8080 to see the beautiful tomcat.
If it still does not work, uninstall the tomcat, and then reinstall it, that should be sufficient!!! Or you even can download the .tar.gz or .zip version, do not install, just unzip/untar it in the same place, it will work too. Since tomcat is a pure Java application, it is platform independent.
I just setup tomcat-4.1.12 on all four platforms we support without any tomcat related difficulties. We had some problems run our products. However, they are all set now.
Good luck and happy Thanksgiving!
Roseanne
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't get the sense of one from your post Bruce, but is there an actual ERROR? (Do you get tired of the 'endless' scrolling and X the whole thing down?)

By default, your Tomcat should only produce WARN messages, FINE is far to well... 'Fine'.

If you reset this back to 'WARN', does Tomcat start up ?
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Bruce Jin:
Just doanloaded Tomcat 4.1.12 to Win2000. I added JAVA_HOME to catalina.bat script and ran startup.bat.


Just noticed this, You don't need make any changes on script to make tomcat-4.1.12 to work. Another thing is temp-ignore all the messages. Focus on whether tomcat started or not.
 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you all for the reply.
1. If I did not add JAVA_HOME to the script it did not start at all.
2. After adding it, Tomcat prints FINE message like crazy and never start the server.
I am at home now and will play with it again Monday when I am back to the office.
Have a wondeful Thanksgiving day!
 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just tried the same thing (installing Tomcat1.1.12 from zip file) here at home on my Window95 and Wingdow XP. Both work fine. The only thing I had to do in each case is to add JAVA_HOME=C:\jdk1.4 to the cataline.bat file.
I wonder what�s wrong with my Window 2000 at office. I will find out Monday when I go back to work.
 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Still can't start Tomcat4.1.12 on my Win2000. As soon as I run startup.bat I see all these messages:
Dec 2, 2002 8:03:59 AM org.apache.commons.digester.Digester addRuleSet
FINE: addRuleSet() with no namespace URI
Dec 2, 2002 8:03:59 AM org.apache.commons.digester.Digester addRuleSet
FINE: addRuleSet() with no namespace URI
Dec 2, 2002 8:03:59 AM org.apache.commons.digester.Digester addRuleSet
FINE: addRuleSet() with no namespace URI
Dec 2, 2002 8:03:59 AM org.apache.commons.digester.Digester addRuleSet
FINE: addRuleSet() with no namespace URI
Dec 2, 2002 8:03:59 AM org.apache.commons.digester.Digester addRuleSet
FINE: addRuleSet() with no namespace URI
Dec 2, 2002 8:03:59 AM org.apache.commons.digester.Digester addRuleSet
FINE: addRuleSet() with no namespace URI
Dec 2, 2002 8:03:59 AM org.apache.commons.digester.Digester addRuleSet
FINE: addRuleSet() with no namespace URI
Dec 2, 2002 8:03:59 AM org.apache.commons.digester.Digester addRuleSet
FINE: addRuleSet() with no namespace URI
Dec 2, 2002 8:03:59 AM org.apache.commons.digester.Digester addRuleSet
FINE: addRuleSet() with no namespace URI
Dec 2, 2002 8:03:59 AM org.apache.commons.digester.Digester setDocumentLocat
FINE: setDocumentLocator(org.apache.xerces.parsers.AbstractSAXParser$Locator
y@cec0c5)
Dec 2, 2002 8:03:59 AM org.apache.commons.digester.Digester startDocument
FINE: startDocument()
Dec 2, 2002 8:03:59 AM org.apache.commons.digester.Digester startElement
FINE: startElement(,,Server)
Dec 2, 2002 8:03:59 AM org.apache.commons.digester.Digester startElement
FINE: Pushing body text ''
Dec 2, 2002 8:03:59 AM org.apache.commons.digester.Digester startElement
FINE: New match='Server'
Dec 2, 2002 8:03:59 AM org.apache.commons.digester.Digester startElement
FINE: Fire begin() for ObjectCreateRule[className=org.apache.catalina.core
ndardServer, attributeName=className]
Dec 2, 2002 8:03:59 AM org.apache.commons.digester.ObjectCreateRule begin
FINE: [ObjectCreateRule]{Server}New org.apache.catalina.core.StandardServer
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester startElement
FINE: Fire begin() for SetPropertiesRule[]
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.SetPropertiesRule begin
FINE: [SetPropertiesRule]{Server} Setting property 'port' to '8005'
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.SetPropertiesRule begin
FINE: [SetPropertiesRule]{Server} Setting property 'shutdown' to 'SHUTDOWN'
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.SetPropertiesRule begin
FINE: [SetPropertiesRule]{Server} Setting property 'debug' to '0'
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.SetPropertiesRule begin
FINE: [SetPropertiesRule]{Server} Set org.apache.catalina.core.StandardServe
operties
Dec 2, 2002 8:04:28 AM org.apache.commons.beanutils.BeanUtils populate
FINE: BeanUtils.populate(StandardServer[8005], {shutdown=SHUTDOWN, debug=0,
=8005})
Dec 2, 2002 8:04:28 AM org.apache.commons.beanutils.ConvertUtils convert
FINE: Convert string 'SHUTDOWN' to class 'java.lang.String'
Dec 2, 2002 8:04:28 AM org.apache.commons.beanutils.ConvertUtils convert
FINE: Convert string '0' to class 'int'
Dec 2, 2002 8:04:28 AM org.apache.commons.beanutils.ConvertUtils convert
FINE: Convert string '8005' to class 'int'
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester startElement
FINE: Fire begin() for SetNextRule[methodName=setServer, paramType=org.apa
catalina.Server]
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester characters
FINE: characters(

)
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester characters
FINE: characters(
)
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester startElement
FINE: startElement(,,Listener)
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester startElement
FINE: Pushing body text '
'
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester startElement
FINE: New match='Server/Listener'
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester startElement
FINE: Fire begin() for ObjectCreateRule[className=null, attributeName=clas
e]
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.ObjectCreateRule begin
FINE: [ObjectCreateRule]{Server/Listener}New org.apache.catalina.mbeans.Serv
fecycleListener
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester startElement
FINE: Fire begin() for SetPropertiesRule[]
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.SetPropertiesRule begin
FINE: [SetPropertiesRule]{Server/Listener} Setting property 'className' to '
apache.catalina.mbeans.ServerLifecycleListener'
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.SetPropertiesRule begin
FINE: [SetPropertiesRule]{Server/Listener} Setting property 'debug' to '0'
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.SetPropertiesRule begin
FINE: [SetPropertiesRule]{Server/Listener} Set org.apache.catalina.mbeans.Se
LifecycleListener properties
Dec 2, 2002 8:04:28 AM org.apache.commons.beanutils.BeanUtils populate
FINE: BeanUtils.populate(org.apache.catalina.mbeans.ServerLifecycleListener@
e7, {debug=0, className=org.apache.catalina.mbeans.ServerLifecycleListener})
Dec 2, 2002 8:04:28 AM org.apache.commons.beanutils.ConvertUtils convert
FINE: Convert string '0' to class 'int'
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester startElement
FINE: Fire begin() for SetNextRule[methodName=addLifecycleListener, paramT
org.apache.catalina.LifecycleListener]
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester endElement
FINE: endElement(,,Listener)
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester endElement
FINE: match='Server/Listener'
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester endElement
FINE: bodyText=''
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester endElement
FINE: Fire body() for ObjectCreateRule[className=null, attributeName=class
]
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester endElement
FINE: Fire body() for SetPropertiesRule[]
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester endElement
FINE: Fire body() for SetNextRule[methodName=addLifecycleListener, paramTy
rg.apache.catalina.LifecycleListener]
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester endElement
FINE: Popping body text '
'
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester endElement
FINE: Fire end() for SetNextRule[methodName=addLifecycleListener, paramTyp
g.apache.catalina.LifecycleListener]
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.SetNextRule end
FINE: [SetNextRule]{Server/Listener} Call org.apache.catalina.core.StandardS
r.addLifecycleListener(org.apache.catalina.mbeans.ServerLifecycleListener@60
)
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester endElement
FINE: Fire end() for SetPropertiesRule[]
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester endElement
FINE: Fire end() for ObjectCreateRule[className=null, attributeName=classN
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.ObjectCreateRule end
FINE: [ObjectCreateRule]{Server/Listener} Pop org.apache.catalina.mbeans.Ser
ifecycleListener
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester characters
FINE: characters(
)
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester startElement
FINE: startElement(,,Listener)
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester startElement
FINE: Pushing body text '

'
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester startElement
FINE: New match='Server/Listener'
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester startElement
FINE: Fire begin() for ObjectCreateRule[className=null, attributeName=clas
e]
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.ObjectCreateRule begin
FINE: [ObjectCreateRule]{Server/Listener}New org.apache.catalina.mbeans.Glob
sourcesLifecycleListener
Dec 2, 2002 8:04:28 AM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Dec 2, 2002 8:04:28 AM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester register
FINE: register('-//Apache Software Foundation//DTD Model MBeans Configuratio
le', 'jar:file:C:/jakarta-tomcat-4.1.12/server/lib/commons-modeler.jar!/org/
he/commons/modeler/mbeans-descriptors.dtd'
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester setDocumentLocat
FINE: setDocumentLocator(org.apache.xerces.parsers.AbstractSAXParser$Locator
y@a33d48)
Dec 2, 2002 8:04:28 AM org.apache.commons.digester.Digester startDocument
FINE: startDocument()
======================================
cut here to prevent crash JavaRanch.com
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using log4j or jdk1.4's logging API in any applications? Either hosted on the instance of Tomcat, or elsewhere on your computer ?

Try to temporarily remove the log4j jar file or the application.

It looks like Tomcat is not using the default of 'error' for its own logging, instead defaulting to a much more verbose level. Perhaps it (the JVM) is reading a log4j config file from somewhere else.
 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mike for the clue.
This time I waited 15 minutes and Tomcat started after printing a millions messages. I check my logging.properties file in my jsdk1.4 installation and the level was set to FINE. Reset it to level INFO took care of everything.
BTW I also deployed the same Tomcat copy to an AS/400 (also called iSeries) box and it works.
 
She'll be back. I'm just gonna wait here. With this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic