Announcement Announcement Module
Collapse
No announcement yet.
stepbystep tutorial - logging and SpringappController.java Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Re: stepbystep tutorial - logging and SpringappController.ja

    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,

    Comment

    Working...
    X