Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2 interceptors. glassfish VS Tomcat

 
Emi Garcia
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • 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
 
Joe Ess
Bartender
Posts: 9280
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think Log4J guarantees that log messages are printed out in the order that they are logged.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic