Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Tomcat startup message

  1. #1
    Junior Member
    Join Date
    May 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Tomcat startup message

    Hi all,

    I'm new to Tomcat server... when I start it, I have the following message:

    sing CATALINA_BASE: /Applications/Servers/apache-tomcat-6.0.26
    Using CATALINA_HOME: /Applications/Servers/apache-tomcat-6.0.26
    Using CATALINA_TMPDIR: /Applications/Servers/apache-tomcat-6.0.26/temp
    Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
    Using CLASSPATH: /Applications/Servers/apache-tomcat-6.0.26/bin/bootstrap.jar

    Till now I'm doing small exercises, and everything is working. I'm just wondering why I don't have a "usual" message like the one here:

    Java Tips - Introduction to Java Servlets with Eclipse

    For instance, when I deploy a WAR, I don't see tomcat reacting on the terminal. In addition, the System.out.println in a servlet doesn't show anything on the tomcat console...

    I'm just wondering why!? Remark: I didn't set yet a JAVA_HOME variable... still, tomcat is working and the servlet as well.

    Thanks a lot!


  2. #2
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: Tomcat startup message

    The reason it works without you having set the JAVA_HOME which is the development variable you should set is that its using the default JRE_HOME that gets set automatically when you install Java.

    Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
    I'm not sure why you're not seeing any log output in your console though, I take it you are running Windows, how do you start your Tomcat server?

    // Json

  3. #3
    Junior Member
    Join Date
    May 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Tomcat startup message

    Hey Json, thanks for your answer.

    Actually I'm using mac osx leopard.

    I saw a lot of stuff on the web about the classpath, the path, java_home, etc... I feel that these are specific to windows environment. Indeed I run a "hello world" without setting any environment variable.

    Regarding the log that doesn't appear... I'm still trying to understand. I guess it's not related to the java_home story...

    To answer your question, I run tomcat with the command ./startup.sh in the bin directory.

    Hope that you have an idea... if I find something I will post it here.

    Lotfi

  4. #4
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: Tomcat startup message

    I've never used Tomcat with mac osx before and I don't have access to one either so unfortunately this issue might be something you need to look elsewhere for a solution to.

    I have never come across the issue where tomcat does not log out to the console, but something that crosses my mind is that either the logging isn't set up properly hence the logging aint coming out in the console or there could be classpath issues but you'd have thought tomcat would spew some sort of error at you anyways then.

    Have you checked your logs/catalina.out file, does it contain the same information you already have?

    // Json

Similar Threads

  1. Swing Components Invisible as Startup
    By SpiceProgrammer in forum AWT / Java Swing
    Replies: 5
    Last Post: January 23rd, 2011, 02:26 PM
  2. Problem running Apache tomcat 6.0 using i.p. address
    By nakul in forum JavaServer Pages: JSP & JSTL
    Replies: 3
    Last Post: April 8th, 2010, 07:58 AM
  3. Replies: 2
    Last Post: August 4th, 2009, 11:25 PM
  4. Replies: 1
    Last Post: April 29th, 2009, 06:26 AM
  5. Issues with Tomcat 6.0
    By sanyog24681 in forum Java Servlet
    Replies: 0
    Last Post: October 21st, 2008, 07:55 AM