aspose file tools*
The moose likes Struts and the fly likes Struts2 interceptors. glassfish VS Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 interceptors. glassfish VS Tomcat" Watch "Struts2 interceptors. glassfish VS Tomcat" New topic
Author

Struts2 interceptors. glassfish VS Tomcat

Emi Garcia
Greenhorn

Joined: Nov 02, 2010
Posts: 16
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

Joined: Oct 29, 2001
Posts: 8867
    
    8

I don't think Log4J guarantees that log messages are printed out in the order that they are logged.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
Don't get me started about those stupid light bulbs.
 
subject: Struts2 interceptors. glassfish VS Tomcat