You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Daniel Felix <da...@mc1.com.br> on 2007/03/22 22:16:49 UTC

Struts 2.0.6 and Spring

Hi, people

 

I'm working with Struts 2.0.1, theme ajax and  s:div, but the performace is
very slow. 

The div load an action in 10 seconds with list of 20 tuples.

 

After it, I'm migrating from Struts 2.0.1 to Struts 2.0.6 to improve my web
application, but when I start, it occurs an error and stop the server.

 

I have two problems, firstly  I need to improve performace my web
application and second , I want to migrate to 2.0.6.It runs my web
application on release version, because there are some fix bugs.

 

AnyBody Can help ? Any tips ?

 

 

The message error : 

 

2007-03-22 18:13:50,793  INFO
(com.opensymphony.xwork2.config.providers.XmlConfigurationProvider:141) -
Parsing configuration file [struts-default.xml]

2007-03-22 18:13:52,386  INFO
(com.opensymphony.xwork2.config.providers.XmlConfigurationProvider:141) -
Parsing configuration file [struts-plugin.xml]

WebModule[/acnsf-war]PWC1270: Exception starting filter struts

Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory
class:org.apache.struts2.spring.StrutsSpringObjectFactory - bean -
jar:file:/C:/Sun/glassfish/domains/domain1/applications/j2ee-apps/acnsf/acns
f-war_war/WEB-INF/lib/struts2-spring-plugin-2.0.6.jar!/struts-plugin.xml:8:1
32

        at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(X
mlConfigurationProvider.java:209)

        at
org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlC
onfigurationProvider.java:101)

        at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfi
guration.java:131)

        at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(Configu
rationManager.java:52)

        at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatche
r.java:398)

        at
org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)

        at
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:20
1)

        at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter
Config.java:239)

        at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil
terConfig.java:333)

        at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterCon
fig.java:89)

        at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:43
49)

        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:5138)

        at com.sun.enterprise.web.WebModule.start(WebModule.java:307)

        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:9
60)

        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:944)

        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:671)

        at
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1572)

        at
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1217)

        at
com.sun.enterprise.web.WebContainer.loadJ2EEApplicationWebModules(WebContain
er.java:1142)

        at
com.sun.enterprise.server.TomcatApplicationLoader.doLoad(TomcatApplicationLo
ader.java:128)

        at
com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:226)

        at
com.sun.enterprise.server.ApplicationManager.applicationDeployed(Application
Manager.java:323)

        at
com.sun.enterprise.server.ApplicationManager.applicationDeployed(Application
Manager.java:197)

        at
com.sun.enterprise.server.ApplicationManager.applicationDeployed(Application
Manager.java:632)

        at
com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeploy
EventListener(AdminEventMulticaster.java:905)

        at
com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeploy
Event(AdminEventMulticaster.java:889)

        at
com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEvent
Multicaster.java:445)

        at
com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEve
ntMulticaster.java:160)

        at
com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastE
vent(DeploymentNotificationHelper.java:295)

        at
com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(
DeploymentServiceUtils.java:210)

        at
com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(
ServerDeploymentTarget.java:285)

        at
com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(Applica
tionStartPhase.java:119)

        at
com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(Deploymen
tPhase.java:95)

        at
com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDe
ploymentService.java:892)

        at
com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymen
tService.java:263)

        at
com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymen
tService.java:281)

        at
com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsC
onfigMBean.java:542)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)

        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

        at java.lang.reflect.Method.invoke(Method.java:585)

        at
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:
353)

        at
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:
336)

        at
com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:
448)

        at
com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:
213)

        at
com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)

        at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanSer
verInterceptor.java:815)

        at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)

        at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)

        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

        at java.lang.reflect.Method.invoke(Method.java:585)

        at
com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77)

        at $Proxy1.invoke(Unknown Source)

        at
com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInte
rceptor.java:297)

        at
com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymentServic
e(AutoDeployer.java:508)

        at
com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployJavaEEArchive(Au
toDeployer.java:489)

        at
com.sun.enterprise.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.ja
va:436)

        at
com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer
.java:253)

        at
com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$AutoDeploy
Task.run(AutoDeployControllerImpl.java:361)

        at java.util.TimerThread.mainLoop(Timer.java:512)

        at java.util.TimerThread.run(Timer.java:462)

Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the
name spring has already been loaded by bean -
jar:file:/C:/Sun/glassfish/domains/domain1/applications/j2ee-apps/acnsf/stru
ts2-spring-plugin-2.0.6.jar!/struts-plugin.xml:8:132 - bean -
jar:file:/C:/Sun/glassfish/domains/domain1/applications/j2ee-apps/acnsf/acns
f-war_war/WEB-INF/lib/struts2-spring-plugin-2.0.6.jar!/struts-plugin.xml:8:1
32

        at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(X
mlConfigurationProvider.java:194)

        ... 60 more

PWC1306: Context startup failed due to previous errors

2007-03-22 18:13:52,402  INFO (org.apache.tiles.access.TilesAccess:58) -
Removing TilesContext for context:
org.apache.catalina.core.ApplicationContextFacade

PWC1412: WebModule[/acnsf-war] ServletContext.log():Closing Spring root
WebApplicationContext

2007-03-22 18:13:52,402  INFO
(org.springframework.web.context.support.XmlWebApplicationContext:599) -
Closing application context [Root WebApplicationContext]

2007-03-22 18:13:52,402  INFO
(org.springframework.beans.factory.support.DefaultListableBeanFactory:272) -
Destroying singletons in
{org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans
[userManager,entityManager,domainManager,actionManager,profileManager,subdom
ainManager,bankManager,agencyManager,iniciativeManager,naturalPersonManager,
legalEntityManager,businessEntityManager,phoneManager,emailManager,unitManag
er,domicileManager,addressManager,frontManager,paperManager,blockManager,rel
ationManager,channelManager]; root of BeanFactory hierarchy}

[AutoDeploy] Successfully autodeployed :
C:\Sun\glassfish\domains\domain1\autodeploy\acnsf.ear.

 

 


http://www.mc1.com.br/images/assinatura_nova_r1_c1.gif


http://www.mc1.com.br/images/assinatura_nova_r2_c1.gif

Daniel Ferreira Felix 
Tecnologia
Fone    : 11 6011-1300 - ramal 1352
Fax      : 11 3141-1200

http://www.mc1.com.br/images/assinatura_nova_r2_c3.gif


http://www.mc1.com.br/images/assinatura_nova_r3_c1.gif

 

 


Re: Struts 2.0.6 and Spring

Posted by Felipe Rodrigues <fe...@yahoo.com.br>.
I almost forgot.
The 2.0.7 version is getting GA. Maybe it can be a good idea wait this
version to migrate your app. More bugs fixed.

Felipe


Felipe Rodrigues wrote:
> 
> Daniel,
> 
> About the error:
> Make sure your app has no error. Some kind of errors can throw a Filter
> Start Error, and it is what your stack trace seems.
> Try also remove all struts related lib's and add the final version again.
> 
> About the performance:
> Copy the template dir under the struts2-core...jar to your context root.
> It will improve so much the performance.
> 
> Felipe
> 
> 
> Daniel Felix wrote:
>> 
>> Hi, people
>> 
>>  
>> 
>> I'm working with Struts 2.0.1, theme ajax and  s:div, but the performace
>> is
>> very slow. 
>> 
>> The div load an action in 10 seconds with list of 20 tuples.
>> 
>>  
>> 
>> After it, I'm migrating from Struts 2.0.1 to Struts 2.0.6 to improve my
>> web
>> application, but when I start, it occurs an error and stop the server.
>> 
>>  
>> 
>> I have two problems, firstly  I need to improve performace my web
>> application and second , I want to migrate to 2.0.6.It runs my web
>> application on release version, because there are some fix bugs.
>> 
>>  
>> 
>> AnyBody Can help ? Any tips ?
>> 
>>  
>> 
>>  
>> 
>> The message error : 
>> 
>>  
>> 
>> 2007-03-22 18:13:50,793  INFO
>> (com.opensymphony.xwork2.config.providers.XmlConfigurationProvider:141) -
>> Parsing configuration file [struts-default.xml]
>> 
>> 2007-03-22 18:13:52,386  INFO
>> (com.opensymphony.xwork2.config.providers.XmlConfigurationProvider:141) -
>> Parsing configuration file [struts-plugin.xml]
>> 
>> WebModule[/acnsf-war]PWC1270: Exception starting filter struts
>> 
>> Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory
>> class:org.apache.struts2.spring.StrutsSpringObjectFactory - bean -
>> jar:file:/C:/Sun/glassfish/domains/domain1/applications/j2ee-apps/acnsf/acns
>> f-war_war/WEB-INF/lib/struts2-spring-plugin-2.0.6.jar!/struts-plugin.xml:8:1
>> 32
>> 
>>         at
>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(X
>> mlConfigurationProvider.java:209)
>> 
>>         at
>> org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlC
>> onfigurationProvider.java:101)
>> 
>>         at
>> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfi
>> guration.java:131)
>> 
>>         at
>> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(Configu
>> rationManager.java:52)
>> 
>>         at
>> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatche
>> r.java:398)
>> 
>>         at
>> org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)
>> 
>>         at
>> org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:20
>> 1)
>> 
>>         at
>> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter
>> Config.java:239)
>> 
>>         at
>> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil
>> terConfig.java:333)
>> 
>>         at
>> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterCon
>> fig.java:89)
>> 
>>         at
>> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:43
>> 49)
>> 
>>         at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:5138)
>> 
>>         at com.sun.enterprise.web.WebModule.start(WebModule.java:307)
>> 
>>         at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:9
>> 60)
>> 
>>         at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:944)
>> 
>>         at
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:671)
>> 
>>         at
>> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1572)
>> 
>>         at
>> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1217)
>> 
>>         at
>> com.sun.enterprise.web.WebContainer.loadJ2EEApplicationWebModules(WebContain
>> er.java:1142)
>> 
>>         at
>> com.sun.enterprise.server.TomcatApplicationLoader.doLoad(TomcatApplicationLo
>> ader.java:128)
>> 
>>         at
>> com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:226)
>> 
>>         at
>> com.sun.enterprise.server.ApplicationManager.applicationDeployed(Application
>> Manager.java:323)
>> 
>>         at
>> com.sun.enterprise.server.ApplicationManager.applicationDeployed(Application
>> Manager.java:197)
>> 
>>         at
>> com.sun.enterprise.server.ApplicationManager.applicationDeployed(Application
>> Manager.java:632)
>> 
>>         at
>> com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeploy
>> EventListener(AdminEventMulticaster.java:905)
>> 
>>         at
>> com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeploy
>> Event(AdminEventMulticaster.java:889)
>> 
>>         at
>> com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEvent
>> Multicaster.java:445)
>> 
>>         at
>> com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEve
>> ntMulticaster.java:160)
>> 
>>         at
>> com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastE
>> vent(DeploymentNotificationHelper.java:295)
>> 
>>         at
>> com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(
>> DeploymentServiceUtils.java:210)
>> 
>>         at
>> com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(
>> ServerDeploymentTarget.java:285)
>> 
>>         at
>> com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(Applica
>> tionStartPhase.java:119)
>> 
>>         at
>> com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(Deploymen
>> tPhase.java:95)
>> 
>>         at
>> com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDe
>> ploymentService.java:892)
>> 
>>         at
>> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymen
>> tService.java:263)
>> 
>>         at
>> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymen
>> tService.java:281)
>> 
>>         at
>> com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsC
>> onfigMBean.java:542)
>> 
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> 
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
>> )
>> 
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
>> .java:25)
>> 
>>         at java.lang.reflect.Method.invoke(Method.java:585)
>> 
>>         at
>> com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:
>> 353)
>> 
>>         at
>> com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:
>> 336)
>> 
>>         at
>> com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:
>> 448)
>> 
>>         at
>> com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:
>> 213)
>> 
>>         at
>> com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
>> 
>>         at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanSer
>> verInterceptor.java:815)
>> 
>>         at
>> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
>> 
>>         at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
>> 
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
>> .java:25)
>> 
>>         at java.lang.reflect.Method.invoke(Method.java:585)
>> 
>>         at
>> com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77)
>> 
>>         at $Proxy1.invoke(Unknown Source)
>> 
>>         at
>> com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInte
>> rceptor.java:297)
>> 
>>         at
>> com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymentServic
>> e(AutoDeployer.java:508)
>> 
>>         at
>> com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployJavaEEArchive(Au
>> toDeployer.java:489)
>> 
>>         at
>> com.sun.enterprise.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.ja
>> va:436)
>> 
>>         at
>> com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer
>> .java:253)
>> 
>>         at
>> com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$AutoDeploy
>> Task.run(AutoDeployControllerImpl.java:361)
>> 
>>         at java.util.TimerThread.mainLoop(Timer.java:512)
>> 
>>         at java.util.TimerThread.run(Timer.java:462)
>> 
>> Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the
>> name spring has already been loaded by bean -
>> jar:file:/C:/Sun/glassfish/domains/domain1/applications/j2ee-apps/acnsf/stru
>> ts2-spring-plugin-2.0.6.jar!/struts-plugin.xml:8:132 - bean -
>> jar:file:/C:/Sun/glassfish/domains/domain1/applications/j2ee-apps/acnsf/acns
>> f-war_war/WEB-INF/lib/struts2-spring-plugin-2.0.6.jar!/struts-plugin.xml:8:1
>> 32
>> 
>>         at
>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(X
>> mlConfigurationProvider.java:194)
>> 
>>         ... 60 more
>> 
>> PWC1306: Context startup failed due to previous errors
>> 
>> 2007-03-22 18:13:52,402  INFO (org.apache.tiles.access.TilesAccess:58) -
>> Removing TilesContext for context:
>> org.apache.catalina.core.ApplicationContextFacade
>> 
>> PWC1412: WebModule[/acnsf-war] ServletContext.log():Closing Spring root
>> WebApplicationContext
>> 
>> 2007-03-22 18:13:52,402  INFO
>> (org.springframework.web.context.support.XmlWebApplicationContext:599) -
>> Closing application context [Root WebApplicationContext]
>> 
>> 2007-03-22 18:13:52,402  INFO
>> (org.springframework.beans.factory.support.DefaultListableBeanFactory:272)
>> -
>> Destroying singletons in
>> {org.springframework.beans.factory.support.DefaultListableBeanFactory
>> defining beans
>> [userManager,entityManager,domainManager,actionManager,profileManager,subdom
>> ainManager,bankManager,agencyManager,iniciativeManager,naturalPersonManager,
>> legalEntityManager,businessEntityManager,phoneManager,emailManager,unitManag
>> er,domicileManager,addressManager,frontManager,paperManager,blockManager,rel
>> ationManager,channelManager]; root of BeanFactory hierarchy}
>> 
>> [AutoDeploy] Successfully autodeployed :
>> C:\Sun\glassfish\domains\domain1\autodeploy\acnsf.ear.
>> 
>>  
>> 
>>  
>> 
>> 
>> http://www.mc1.com.br/images/assinatura_nova_r1_c1.gif
>> 
>> 
>> http://www.mc1.com.br/images/assinatura_nova_r2_c1.gif
>> 
>> Daniel Ferreira Felix 
>> Tecnologia
>> Fone    : 11 6011-1300 - ramal 1352
>> Fax      : 11 3141-1200
>> 
>> http://www.mc1.com.br/images/assinatura_nova_r2_c3.gif
>> 
>> 
>> http://www.mc1.com.br/images/assinatura_nova_r3_c1.gif
>> 
>>  
>> 
>>  
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Struts-2.0.6-and-Spring-tf3450443.html#a9626143
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: Struts 2.0.6 and Spring

Posted by Felipe Rodrigues <fe...@yahoo.com.br>.
Daniel,

About the error:
Make sure your app has no error. Some kind of errors can throw a Filter
Start Error, and it is what your stack trace seems.
Try also remove all struts related lib's and add the final version again.

About the performance:
Copy the template dir under the struts2-core...jar to your context root. It
will improve so much the performance.

Felipe


Daniel Felix wrote:
> 
> Hi, people
> 
>  
> 
> I'm working with Struts 2.0.1, theme ajax and  s:div, but the performace
> is
> very slow. 
> 
> The div load an action in 10 seconds with list of 20 tuples.
> 
>  
> 
> After it, I'm migrating from Struts 2.0.1 to Struts 2.0.6 to improve my
> web
> application, but when I start, it occurs an error and stop the server.
> 
>  
> 
> I have two problems, firstly  I need to improve performace my web
> application and second , I want to migrate to 2.0.6.It runs my web
> application on release version, because there are some fix bugs.
> 
>  
> 
> AnyBody Can help ? Any tips ?
> 
>  
> 
>  
> 
> The message error : 
> 
>  
> 
> 2007-03-22 18:13:50,793  INFO
> (com.opensymphony.xwork2.config.providers.XmlConfigurationProvider:141) -
> Parsing configuration file [struts-default.xml]
> 
> 2007-03-22 18:13:52,386  INFO
> (com.opensymphony.xwork2.config.providers.XmlConfigurationProvider:141) -
> Parsing configuration file [struts-plugin.xml]
> 
> WebModule[/acnsf-war]PWC1270: Exception starting filter struts
> 
> Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory
> class:org.apache.struts2.spring.StrutsSpringObjectFactory - bean -
> jar:file:/C:/Sun/glassfish/domains/domain1/applications/j2ee-apps/acnsf/acns
> f-war_war/WEB-INF/lib/struts2-spring-plugin-2.0.6.jar!/struts-plugin.xml:8:1
> 32
> 
>         at
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(X
> mlConfigurationProvider.java:209)
> 
>         at
> org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlC
> onfigurationProvider.java:101)
> 
>         at
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfi
> guration.java:131)
> 
>         at
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(Configu
> rationManager.java:52)
> 
>         at
> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatche
> r.java:398)
> 
>         at
> org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)
> 
>         at
> org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:20
> 1)
> 
>         at
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter
> Config.java:239)
> 
>         at
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil
> terConfig.java:333)
> 
>         at
> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterCon
> fig.java:89)
> 
>         at
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:43
> 49)
> 
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:5138)
> 
>         at com.sun.enterprise.web.WebModule.start(WebModule.java:307)
> 
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:9
> 60)
> 
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:944)
> 
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:671)
> 
>         at
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1572)
> 
>         at
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1217)
> 
>         at
> com.sun.enterprise.web.WebContainer.loadJ2EEApplicationWebModules(WebContain
> er.java:1142)
> 
>         at
> com.sun.enterprise.server.TomcatApplicationLoader.doLoad(TomcatApplicationLo
> ader.java:128)
> 
>         at
> com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:226)
> 
>         at
> com.sun.enterprise.server.ApplicationManager.applicationDeployed(Application
> Manager.java:323)
> 
>         at
> com.sun.enterprise.server.ApplicationManager.applicationDeployed(Application
> Manager.java:197)
> 
>         at
> com.sun.enterprise.server.ApplicationManager.applicationDeployed(Application
> Manager.java:632)
> 
>         at
> com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeploy
> EventListener(AdminEventMulticaster.java:905)
> 
>         at
> com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeploy
> Event(AdminEventMulticaster.java:889)
> 
>         at
> com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEvent
> Multicaster.java:445)
> 
>         at
> com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEve
> ntMulticaster.java:160)
> 
>         at
> com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastE
> vent(DeploymentNotificationHelper.java:295)
> 
>         at
> com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(
> DeploymentServiceUtils.java:210)
> 
>         at
> com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(
> ServerDeploymentTarget.java:285)
> 
>         at
> com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(Applica
> tionStartPhase.java:119)
> 
>         at
> com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(Deploymen
> tPhase.java:95)
> 
>         at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDe
> ploymentService.java:892)
> 
>         at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymen
> tService.java:263)
> 
>         at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymen
> tService.java:281)
> 
>         at
> com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsC
> onfigMBean.java:542)
> 
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> 
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
> 
>         at java.lang.reflect.Method.invoke(Method.java:585)
> 
>         at
> com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:
> 353)
> 
>         at
> com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:
> 336)
> 
>         at
> com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:
> 448)
> 
>         at
> com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:
> 213)
> 
>         at
> com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
> 
>         at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanSer
> verInterceptor.java:815)
> 
>         at
> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
> 
>         at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
> 
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
> 
>         at java.lang.reflect.Method.invoke(Method.java:585)
> 
>         at
> com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77)
> 
>         at $Proxy1.invoke(Unknown Source)
> 
>         at
> com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInte
> rceptor.java:297)
> 
>         at
> com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymentServic
> e(AutoDeployer.java:508)
> 
>         at
> com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployJavaEEArchive(Au
> toDeployer.java:489)
> 
>         at
> com.sun.enterprise.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.ja
> va:436)
> 
>         at
> com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer
> .java:253)
> 
>         at
> com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$AutoDeploy
> Task.run(AutoDeployControllerImpl.java:361)
> 
>         at java.util.TimerThread.mainLoop(Timer.java:512)
> 
>         at java.util.TimerThread.run(Timer.java:462)
> 
> Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the
> name spring has already been loaded by bean -
> jar:file:/C:/Sun/glassfish/domains/domain1/applications/j2ee-apps/acnsf/stru
> ts2-spring-plugin-2.0.6.jar!/struts-plugin.xml:8:132 - bean -
> jar:file:/C:/Sun/glassfish/domains/domain1/applications/j2ee-apps/acnsf/acns
> f-war_war/WEB-INF/lib/struts2-spring-plugin-2.0.6.jar!/struts-plugin.xml:8:1
> 32
> 
>         at
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(X
> mlConfigurationProvider.java:194)
> 
>         ... 60 more
> 
> PWC1306: Context startup failed due to previous errors
> 
> 2007-03-22 18:13:52,402  INFO (org.apache.tiles.access.TilesAccess:58) -
> Removing TilesContext for context:
> org.apache.catalina.core.ApplicationContextFacade
> 
> PWC1412: WebModule[/acnsf-war] ServletContext.log():Closing Spring root
> WebApplicationContext
> 
> 2007-03-22 18:13:52,402  INFO
> (org.springframework.web.context.support.XmlWebApplicationContext:599) -
> Closing application context [Root WebApplicationContext]
> 
> 2007-03-22 18:13:52,402  INFO
> (org.springframework.beans.factory.support.DefaultListableBeanFactory:272)
> -
> Destroying singletons in
> {org.springframework.beans.factory.support.DefaultListableBeanFactory
> defining beans
> [userManager,entityManager,domainManager,actionManager,profileManager,subdom
> ainManager,bankManager,agencyManager,iniciativeManager,naturalPersonManager,
> legalEntityManager,businessEntityManager,phoneManager,emailManager,unitManag
> er,domicileManager,addressManager,frontManager,paperManager,blockManager,rel
> ationManager,channelManager]; root of BeanFactory hierarchy}
> 
> [AutoDeploy] Successfully autodeployed :
> C:\Sun\glassfish\domains\domain1\autodeploy\acnsf.ear.
> 
>  
> 
>  
> 
> 
> http://www.mc1.com.br/images/assinatura_nova_r1_c1.gif
> 
> 
> http://www.mc1.com.br/images/assinatura_nova_r2_c1.gif
> 
> Daniel Ferreira Felix 
> Tecnologia
> Fone    : 11 6011-1300 - ramal 1352
> Fax      : 11 3141-1200
> 
> http://www.mc1.com.br/images/assinatura_nova_r2_c3.gif
> 
> 
> http://www.mc1.com.br/images/assinatura_nova_r3_c1.gif
> 
>  
> 
>  
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Struts-2.0.6-and-Spring-tf3450443.html#a9626120
Sent from the Struts - User mailing list archive at Nabble.com.


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


RES: Struts 2.0.6 and Spring

Posted by Daniel Felix <da...@mc1.com.br>.
I cleaned before run to deploy.
I already saw the same problem on net with others people.

Any idea ?


-----Mensagem original-----
De: Dave Newton [mailto:newton.dave@yahoo.com] 
Enviada em: quinta-feira, 22 de março de 2007 18:57
Para: Struts Users Mailing List
Assunto: Re: Struts 2.0.6 and Spring 

--- Daniel Felix <da...@mc1.com.br> wrote:
> After it, I'm migrating from Struts 2.0.1 to Struts
> 2.0.6 to improve my web application, but when I 
> start, it occurs an error and stop the server.

I would first check and make sure everything is
cleaned up from the old 2.0.1 version deployment; I'm
not sure what else could cause that kind of error but
I haven't used Glassfish, either.

d.



 
____________________________________________________________________________
________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121

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


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


Re: Struts 2.0.6 and Spring

Posted by Dave Newton <ne...@yahoo.com>.
Well, if it's cleanly deployed, something is funky:

--- Daniel Felix <da...@mc1.com.br> wrote:
>
jar:file:/C:/Sun/glassfish/domains/domain1/applications/j2ee-apps/acnsf/struts2-spring-plugin-2.0.6.jar!/struts-plugin.xml:8:132
>
jar:file:/C:/Sun/glassfish/domains/domain1/applications/j2ee-apps/acnsf/acnsf-war_war/WEB-INF/lib/struts2-spring-plugin-2.0.6.jar!/struts-plugin.xml:8:132

Again, I don't know Glassfish (yet :) but it looks
like both the WAR and... the project (or EAR?) have a
Spring plugin.

d.



 
____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121

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


RES: Struts 2.0.6 and Spring

Posted by Daniel Felix <da...@mc1.com.br>.
Hi, 

Do you know what I can do to resolve this problem ?

I already clean the project and I saw my classpath, but it doesn´t work yet.

Any idea ? 


-----Mensagem original-----
De: Don Brown [mailto:donald.brown@gmail.com] 
Enviada em: quinta-feira, 22 de março de 2007 19:36
Para: Struts Users Mailing List
Assunto: Re: Struts 2.0.6 and Spring

Just glancing at the error, looks like you have two copies of the
plugin in the classpath:

jar:file:/C:/Sun/glassfish/domains/domain1/applications/j2ee-apps/acnsf/stru
ts2-spring-plugin-2.0.6.jar!/struts-plugin.xml:8:132
jar:file:/C:/Sun/glassfish/domains/domain1/applications/j2ee-apps/acnsf/acns
f-war_war/WEB-INF/lib/struts2-spring-plugin-2.0.6.jar!/struts-plugin.xml:8:1
32

Don

On 3/22/07, Daniel Felix <da...@mc1.com.br> wrote:
> I cleaned before run to deploy.
> I already saw the same problem on net with others people.
>
> Any idea ?
>
>
> -----Mensagem original-----
> De: Dave Newton [mailto:newton.dave@yahoo.com]
> Enviada em: quinta-feira, 22 de março de 2007 18:57
> Para: Struts Users Mailing List
> Assunto: Re: Struts 2.0.6 and Spring
>
> --- Daniel Felix <da...@mc1.com.br> wrote:
> > After it, I'm migrating from Struts 2.0.1 to Struts
> > 2.0.6 to improve my web application, but when I
> > start, it occurs an error and stop the server.
>
> I would first check and make sure everything is
> cleaned up from the old 2.0.1 version deployment; I'm
> not sure what else could cause that kind of error but
> I haven't used Glassfish, either.
>
> d.
>
>
>
>
>
____________________________________________________________________________
> ________
> Be a PS3 game guru.
> Get your game face on with the latest PS3 news and previews at Yahoo!
Games.
> http://videogames.yahoo.com/platform?platform=120121
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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


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


Re: Struts 2.0.6 and Spring

Posted by Don Brown <do...@gmail.com>.
Just glancing at the error, looks like you have two copies of the
plugin in the classpath:

jar:file:/C:/Sun/glassfish/domains/domain1/applications/j2ee-apps/acnsf/struts2-spring-plugin-2.0.6.jar!/struts-plugin.xml:8:132
jar:file:/C:/Sun/glassfish/domains/domain1/applications/j2ee-apps/acnsf/acnsf-war_war/WEB-INF/lib/struts2-spring-plugin-2.0.6.jar!/struts-plugin.xml:8:132

Don

On 3/22/07, Daniel Felix <da...@mc1.com.br> wrote:
> I cleaned before run to deploy.
> I already saw the same problem on net with others people.
>
> Any idea ?
>
>
> -----Mensagem original-----
> De: Dave Newton [mailto:newton.dave@yahoo.com]
> Enviada em: quinta-feira, 22 de março de 2007 18:57
> Para: Struts Users Mailing List
> Assunto: Re: Struts 2.0.6 and Spring
>
> --- Daniel Felix <da...@mc1.com.br> wrote:
> > After it, I'm migrating from Struts 2.0.1 to Struts
> > 2.0.6 to improve my web application, but when I
> > start, it occurs an error and stop the server.
>
> I would first check and make sure everything is
> cleaned up from the old 2.0.1 version deployment; I'm
> not sure what else could cause that kind of error but
> I haven't used Glassfish, either.
>
> d.
>
>
>
>
> ____________________________________________________________________________
> ________
> Be a PS3 game guru.
> Get your game face on with the latest PS3 news and previews at Yahoo! Games.
> http://videogames.yahoo.com/platform?platform=120121
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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


Re: Struts 2.0.6 and Spring

Posted by Dave Newton <ne...@yahoo.com>.
--- Daniel Felix <da...@mc1.com.br> wrote:
> After it, I'm migrating from Struts 2.0.1 to Struts
> 2.0.6 to improve my web application, but when I 
> start, it occurs an error and stop the server.

I would first check and make sure everything is
cleaned up from the old 2.0.1 version deployment; I'm
not sure what else could cause that kind of error but
I haven't used Glassfish, either.

d.



 
____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121

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