You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Wendy Smoak <ws...@gmail.com> on 2006/11/15 21:24:09 UTC

Plugins and zero-config initializing twice?

The Spring integration plugin seems to initialize twice.

After application startup, before visiting a page:

2006-11-15 13:11:34,692  INFO
(org.apache.struts2.spring.StrutsSpringObjectFactory:62) -
Initializing Struts-Spring integration...
2006-11-15 13:11:34,692  INFO
(com.opensymphony.xwork2.spring.SpringObjectFactory:71) - Setting
autowire strategy to name
2006-11-15 13:11:34,707  INFO
(org.apache.struts2.spring.StrutsSpringObjectFactory:94) - ...
initialized Struts-Spring integration successfully
2006-11-15 13:11:35,192  INFO
(com.opensymphony.xwork2.util.ResolverUtil:282) - Scanning for classes
in [/path/to/ssr-s2jt/WEB-INF/classes/edu/asu/vpia/ssr/actions/]
matching criteria:
org.apache.struts2.config.ClasspathConfigurationProvider$1@1bdc9d8
2006-11-15 13:11:35,192 DEBUG
(org.apache.struts2.config.ClasspathConfigurationProvider:163) -
Processing class edu.asu.vpia.ssr.actions.FindAlumniAction

After visiting a page:

2006-11-15 13:12:46,523  INFO
(org.apache.struts2.spring.StrutsSpringObjectFactory:62) -
Initializing Struts-Spring integration...
2006-11-15 13:12:46,523  INFO
(com.opensymphony.xwork2.spring.SpringObjectFactory:71) - Setting
autowire strategy to name
2006-11-15 13:12:46,523  INFO
(org.apache.struts2.spring.StrutsSpringObjectFactory:94) - ...
initialized Struts-Spring integration successfully
2006-11-15 13:12:46,601  INFO
(com.opensymphony.xwork2.util.ResolverUtil:282) - Scanning for classes
in [/path/to/ssr-s2jt/WEB-INF/classes/edu/asu/vpia/ssr/actions/]
matching criteria:
org.apache.struts2.config.ClasspathConfigurationProvider$1@77eaf8
2006-11-15 13:12:46,601 DEBUG
(org.apache.struts2.config.ClasspathConfigurationProvider:163) -
Processing class edu.asu.vpia.ssr.actions.FindAlumniAction

Visiting more pages does not cause them to initialize again.

(And ClasspathConfigurationProvider needs a better toString method. :) )

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Plugins and zero-config initializing twice?

Posted by Wendy Smoak <ws...@gmail.com>.
On 11/15/06, Don Brown <mr...@twdata.org> wrote:
> Yeah, I noticed that too...it seems it thinks struts-default.xml has
> changed...there could be either a reset of the FileManager somewhere or
> it isn't properly marked when first loaded.  Open up a ticket and I'll
> look at it soon.

Done. http://issues.apache.org/struts/browse/WW-1507

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Plugins and zero-config initializing twice?

Posted by Don Brown <mr...@twdata.org>.
Yeah, I noticed that too...it seems it thinks struts-default.xml has 
changed...there could be either a reset of the FileManager somewhere or 
it isn't properly marked when first loaded.  Open up a ticket and I'll 
look at it soon.

Don

Wendy Smoak wrote:
> The Spring integration plugin seems to initialize twice.
>
> After application startup, before visiting a page:
>
> 2006-11-15 13:11:34,692  INFO
> (org.apache.struts2.spring.StrutsSpringObjectFactory:62) -
> Initializing Struts-Spring integration...
> 2006-11-15 13:11:34,692  INFO
> (com.opensymphony.xwork2.spring.SpringObjectFactory:71) - Setting
> autowire strategy to name
> 2006-11-15 13:11:34,707  INFO
> (org.apache.struts2.spring.StrutsSpringObjectFactory:94) - ...
> initialized Struts-Spring integration successfully
> 2006-11-15 13:11:35,192  INFO
> (com.opensymphony.xwork2.util.ResolverUtil:282) - Scanning for classes
> in [/path/to/ssr-s2jt/WEB-INF/classes/edu/asu/vpia/ssr/actions/]
> matching criteria:
> org.apache.struts2.config.ClasspathConfigurationProvider$1@1bdc9d8
> 2006-11-15 13:11:35,192 DEBUG
> (org.apache.struts2.config.ClasspathConfigurationProvider:163) -
> Processing class edu.asu.vpia.ssr.actions.FindAlumniAction
>
> After visiting a page:
>
> 2006-11-15 13:12:46,523  INFO
> (org.apache.struts2.spring.StrutsSpringObjectFactory:62) -
> Initializing Struts-Spring integration...
> 2006-11-15 13:12:46,523  INFO
> (com.opensymphony.xwork2.spring.SpringObjectFactory:71) - Setting
> autowire strategy to name
> 2006-11-15 13:12:46,523  INFO
> (org.apache.struts2.spring.StrutsSpringObjectFactory:94) - ...
> initialized Struts-Spring integration successfully
> 2006-11-15 13:12:46,601  INFO
> (com.opensymphony.xwork2.util.ResolverUtil:282) - Scanning for classes
> in [/path/to/ssr-s2jt/WEB-INF/classes/edu/asu/vpia/ssr/actions/]
> matching criteria:
> org.apache.struts2.config.ClasspathConfigurationProvider$1@77eaf8
> 2006-11-15 13:12:46,601 DEBUG
> (org.apache.struts2.config.ClasspathConfigurationProvider:163) -
> Processing class edu.asu.vpia.ssr.actions.FindAlumniAction
>
> Visiting more pages does not cause them to initialize again.
>
> (And ClasspathConfigurationProvider needs a better toString method. :) )
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org