• 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
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Tomcat 4.0.1startup problem on Windows ME

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have tried running Tomcat by initiating the startup.bat in the /bin directory. I get the following result: -

Using CATALINA_BASE: C:\jakarta-tomcat-4.0.1
Using CATALINA_HOME: C:\jakarta-tomcat-4.0.1
Using CLASSPATH: C:\jakarta-tomcat-4.0.1\bin\bootstrap.jar;C:\jdk1.3.1_02\lib\tools.jar
Using JAVA_HOME C:\jdk1.3.1_02
Bad command or filename

I think the startup.bat is initiating the catalina.bat (4.0.1's version of tomcat.bat). I also think there is something in the batch file that Windows ME or my system doesn't like. As you can tell I am a newbie and wonder if anyone else has had a similar problem or has any solutions?
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In the catalina.bat file, starting at line 58

rem ----- Prepare Appropriate Java Execution Commands ---------------
if not "%OS%" == "Windows_NT" goto noTitle
set _STARTJAVA=start "Catalina" "%JAVA_HOME%\bin\java"
set _RUNJAVA="%JAVA_HOME%\bin\java"
goto gotTitle
:noTitle
set _STARTJAVA=start "%JAVA_HOME%\bin\java"
set _RUNJAVA="%JAVA_HOME%\bin\java"
:gotTitle

You need to remove the "start" command, and/or the 'start "Catalina" ' (and since I'm not sure, just do both) from each of the "set _STARTJAVA " commands.

start (i'm pretty sure) is not recognized by ME.
[ January 16, 2002: Message edited by: Mike Curwen ]
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Mike you are an absolute star. You got it in one. Suggested mods made to Catalina.bat and services started first time. Thank you, you have given me the faith to continue with this fascinating subject.
I presume that not many people run Tomcat on Windows ME, as this problem doesn't seem to be documented anywhere?
In fact, I'm so impresssed that I'm going to rush out, buy a new hard drive and install Windows 2000, which I believe is probably a better platform for Tomcat/Apache development.
But first I must email Roseanne Zhang (JavaChina)and thank her for recommending this forum to me!
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Glad you had a positive experience from the Ranch.

I only knew this, because I helped a friend of mine from Singapore diagnose this same problem when ME first came out. He had ME, but I only did Tomcat stuff at work, and I used NT there, and Win98 at home. So I couldn't duplicate his error on either system.

And then I remembered that ME was supposed to "really, honestly, " do away with DOS. So then it struck me that "Bad Command or File Name" was really 'DOS' speaking to me!. So then it was a simple matter of finding out which command ME no longer recognized.

And yes, I'm now running 2000 both at work and home, and it is beautiful.

And just to inject a sad note... your name is not 100% compliant with the Ranch's naming policy. Sadly, you're the first person I've enforced it with, and I don't even know the link. But the short version is: use two (real) names.
[ January 17, 2002: Message edited by: Mike Curwen ]
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Mike, I will be more than happy to change my publicly displayed name, but I thought your policy stated that only your user name must be two (real)names, which it is i.e. Clive Raw. It is only the publicly displayed name that does not comply. I have now read the conditions again and see that they apply to the publicly displayed name as well, my apologies. However, I am unable to change it im my profile and therefore ask that you make this change for me, I'd hate to appear ungrateful or rebellious!
[ January 18, 2002: Message edited by: Clivro ]
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Alas, we can't change your display name after registration. So all you'd need to do is re-register.

Sorry for the fuss.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm afraid this is becoming a saga, I can't re-register using my correct details, as I did use my real name in the user ID and it is now reserved to me, so the system won't allow me to register again!
I think you'll have to delete me so I can start again!
I'm sorry about the fuss as well!
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm working on it..
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Clive - I've deleted your account so that you can now re-register. Sorry for the confusion - the whole user name / display name thing is new to us since our recent upgrade, and you likely registered while the instructions were still out-of-date. Thanks for being adaptable...
 
Jim Yingst
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
...hmmm. An interesting side effect of deleting the account is that now the system has no "display name" to show for you, but it remembers the login name you used, so your old posts now show as "Clive Raw", unregistered. Strange. Anyway, when you register anew the your new posts should look like normal.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Success! I'm registered properly now. Proved to be more problematic than the Tomcat problem (tee hee)!
Thanks for your patience.
I'll behave from now on.......
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello. I had the exact same problem with Tomcat 4.1 running under Windows ME. Your solution worked exactly as you said. I just wanted to let you know that I appreciate it. Thanks, Kathy Brown
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ALL,
i m running tomcat 4.1.30 and using jdk1.3. After running tomcat i m getting the error
java.util.MissingResourceException: Can't find bundle for base n
ame org.apache.coyote.tomcat4.LocalStrings, locale en_US

Can someone help me in this regard?

C:\jakarta-tomcat-4.1.30\bin>catalina run
Using CATALINA_BASE: C:\jakarta-tomcat-4.1.30
Using CATALINA_HOME: C:\jakarta-tomcat-4.1.30
Using CATALINA_TMPDIR: C:\jakarta-tomcat-4.1.30\temp
Using JAVA_HOME: C:\jdk1.3
[ERROR] Digester - -Begin event threw exception <java.util.MissingResourceException: Can't find bundle for base name
org.apache.coyote.tomcat4.LocalStrings, locale en_US>java.util.MissingResourceException: Can't find bundle for base n
ame org.apache.coyote.tomcat4.LocalStrings, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:707)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:670)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:546)
at org.apache.catalina.util.StringManager.<init>(StringManager.java:115)
at org.apache.catalina.util.StringManager.getManager(StringManager.java:260)
at org.apache.coyote.tomcat4.CoyoteConnector.<init>(CoyoteConnector.java:274)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java: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 Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 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:449)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Catalina.start: java.util.MissingResourceException: Can't find bundle for base name org.apache.coyote.tomcat4.LocalSt
rings, locale en_US
java.util.MissingResourceException: Can't find bundle for base name org.apache.coyote.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 Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 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:449)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Thanks,
jayant
 
Story like this gets better after being told a few times. Or maybe it's just a tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic