Results 1 to 2 of 2

Thread: stepbystep tutorial - logging and SpringappController.java

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Posts
    1

    Default stepbystep tutorial - logging and SpringappController.java

    Hi all,

    I'm working through the step-by-step mvc tutorial, and I've run into some problems -

    at step 11, after I have created and modified log4j.properties, I have run ant deploy, ant stop and ant start. I expected to see a logfile show up where I specified (in this case, in my tomcat logs directory). However, this logfile never appeared.

    I initially didn't worry too much about this and moved on to step 12 - however, clicking the link http://localhost:8080/hello.htm does not work - tomcat cannot find the resource.

    I tried putting System.out.println statements directly into the SpringappController class, and it does not appear that this class is getting called at all.

    How is the SpringappController class supposed to be called, and how does tomcat know to call it?

    I've tried this on two different machines with no luck on either - any help would be appreciated.

    -Graeme

  2. #2
    Join Date
    Aug 2004
    Location
    London, UK
    Posts
    339

    Default Re: stepbystep tutorial - logging and SpringappController.ja

    Quote Originally Posted by graemeo
    however, clicking the link http://localhost:8080/hello.htm does not work - tomcat cannot find the resource.
    The tutorial is based upon a context root of springapp. You are trying to access the resource in the tomcat root application - are you sure this is how you configured the application? Try http://localhost:8080/springapp/hello.htm instead.

    Regards,
    Darren Davison.
    Public Key: 0xE855B3EA

Similar Threads

  1. Replies: 7
    Last Post: Nov 24th, 2008, 04:59 AM
  2. Step By Step Tutorial and NetBeans
    By spamblot in forum Web
    Replies: 3
    Last Post: Apr 4th, 2007, 11:07 AM
  3. Setting logging level to Debug in Spring
    By fineman in forum Container
    Replies: 2
    Last Post: Jul 8th, 2005, 09:31 AM
  4. How is Logging configured
    By RAPHEAD in forum Container
    Replies: 6
    Last Post: Jun 1st, 2005, 03:03 PM
  5. Logging best practices?
    By dekker in forum Container
    Replies: 1
    Last Post: Dec 6th, 2004, 09:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •