• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

Tomcat Not Starting with startup.bat

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
i have downloaded Tomcat server ver: apache-tomcat-6.0.14

but when i try to run the startup.bat batch file it giving the message:



I set My System environment variable as follows:

variables & values
----------------------------------------------
variable: CLASSPATH
value : c:\Program Files\Java\jdk1.6.0\jre\lib\rt.jar;

variable: JAVA_HOME
value : C:\Program Files\Java\jdk1.6.0;

variable: PATH
value : C:\Program Files\Java\jre1.6.0;C:\Program Files\Java\jdk1.6.0\bin;C:\Program Files\Java\jre1.6.0\bin;C:\apache-tomcat-6.0.14\bin;

variable: JRE_HOME
value : C:\Program Files\Java\jre1.6.0;


these are my environment variables

please help me resolve my mistake that i have done
if it starts here i need to link it to the eclipse with SysduoTomcat Plugin
in the eclipse

thanks in advance

with regards
Shiva
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

You can start the tomcat server using tomcat.exe. In tomcat old version there is file called start.bat. But in this latest version there is no such file. I think they had modified start.bat into tomcat.exe
Just try it.
 
Shiva Kumar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
thank you for reply

Tomcat available as different types as a zip file in windows, linux..etc
and also as installation in windows i have both of the versions and its working from .exe if i use installaton from .exe file only but its not working
from eclipse plugin, and it worked well some days before with plugin also
and even with extracted ziparchive(i.e with out installation as win service)
and also it worked well with startup.bat
after few days i tried it to start again to learn servelet's but now it giving
that error message from command line startup.bat and

classLoaderException when tried to start from eclipse plugin


so please help me start tomcat with eclipse plugin
Thank you very much
Shiva
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think if you add tomcat-plugin to your eclipse, then you open eclipse,go to Window->Preferences, and you will see Tomcat in the left and click it,set the correct version of tomcat and select the location of Tomcat Home. I think if these are set correctly,your problem will be solved.Hope this helps you.
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JAVA_HOME and JRE_HOME should not have a semi-colon on the end

eg
JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.03
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"ShivaKumar Learner",
Welcome to the JavaRanch.

We're a friendly group, but we do require members to have valid display names.

Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with invalid display names get deleted.
 
Shiva Kumar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by YI-Feng Jiang:
I think if you add tomcat-plugin to your eclipse, then you open eclipse,go to Window->Preferences, and you will see Tomcat in the left and click it,set the correct version of tomcat and select the location of Tomcat Home. I think if these are set correctly,your problem will be solved.Hope this helps you.



i added plugin correctly and i enabled it and set the correct ver Tomcat 6.0
appeared at right on tomcat tab at windows-->prefer-->Tomcat it's (ver 6.0) is the last radio buttton it work well before
problem occured few das before and it even not starting with startup.bat also

Thank you for reply
Shiva
 
Shiva Kumar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by David O'Meara:
"ShivaKumar Learner",
Welcome to the JavaRanch.

We're a friendly group, but we do require members to have valid display names.

Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with invalid display names get deleted.





sorry
i don't mean to use fictitious name but i did it when i have no choice
i need an account and some other account already exist with my first and last name so i used this name
i am sorry
i will change my name to as near as possible to my real name as this site allows

thank you
with regards

Shiva
 
Shiva Kumar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by David O'Meara:
JAVA_HOME and JRE_HOME should not have a semi-colon on the end

eg
JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.03



hi
thank you very much for reply
your solution not only solved my problem, it also realized me
from an assumption that it's necessary to use ; at end of each & every value
of the Env variable

thanks again for solving my problem

now my Tomcat is running well with startup.bat

with regards
Shiva
 
Shiva Kumar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by David O'Meara:
JAVA_HOME and JRE_HOME should not have a semi-colon on the end

eg
JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.03



sorry to ask again

now my eclipse plugin giving the error with classNotFoundException
stack trace:


also if carefully observed startup.bat also giving an error message even it starts well as:


should i need to any library to the build path to run tomcat properly
 
Shiva Kumar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi

my problem solved just by adding rt.jar to the,

windows-->preferences-->Tomcat-->JVM settings
and
then adding
boot classpath "rt.jar" from one of jre's lib directory

now my Tomcat server is running from eclipse IDE with
Sysdeo Tomcat plugin.

So Please Don't waste time on my question
and i am posting my solution for reference to other people

thank you
with regards
Shiva
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sohils shah,
Your post was moved to a new topic.
 
Normally trees don't drive trucks. Does this tiny ad have a license?
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic