• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts2 interceptors. glassfish VS Tomcat

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello, im truing this example

http://www.vaannila.com/struts-2/struts-2-example/struts-2-interceptors-example-1.html

i import the example in netbeans. it works great, but there is a difference..

if i use Glassfish i get:


INFO: Starting execution stack for action //TestLogger
INFO: Inside Action
INFO: Finishing execution stack for action //TestLogger



and if i use Tomcat i get


INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/Struts2_Interceptors1] has already been started
Inside Action
Apr 7, 2011 12:11:13 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Starting execution stack for action //TestLogger
Apr 7, 2011 12:11:13 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Finishing execution stack for action //TestLogger



so isnt the output of Tomcat wrong?? i mean if there is a stack of interceptors the text inside action must appear in the middle, like with glassfish..

im really confused... can you help me? thanks
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't think Log4J guarantees that log messages are printed out in the order that they are logged.
 
reply
    Bookmark Topic Watch Topic
  • New Topic