struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ádamo Azambuja" <adamo...@gmail.com>
Subject Re: Struts 2 j4 and spring Error
Date Fri, 19 Oct 2007 19:05:08 GMT
Tanks for the help, i decid to stay with struts 1.x, my Oracle Application
Server is runing java 1.4.X and maybe struts 2 can have some imcompatibility
with this server application. I try to make the project work with struts 2
in separeted project to test, but not in the real project.

Tanks to help me, i go try this on the next week.

2007/10/18, Ed Knutson <EKnutson@laughlin.com>:
>
> I also have noticed some classloading issues with the j4 distro.  In my
> case, WebSphere 6.0 is not able to load a retrotranslated version of the
> sitemesh plugin.  I think in your case, the preferred method of
> integrating Spring is to put the following line in struts.properties
> (this file is searched for as a resource in the classpath, e.g.
> /WEB-INF/classes/struts.properties):
>
> struts.objectFactory=spring
>
> You should not need to put a constant element in web.xml if you do that
> instead.  I'm actually not entirely sure that is needed either, as I
> remember seeing somewhere that Spring is already the default IoC
> container for Webwork 2, and that may apply to Struts 2 as well.  If it
> is working, you should see a line in your SystemOut.log about
> "initializing Spring integration."  Hope all that helps.
>
>
> >>> "Ádamo Azambuja" <adamobas@gmail.com> 10/18/07 11:51 AM >>>
> When i use this configuration on my web.xml:
> <constant name="struts.objectFactory" value="
> org.apache.struts2.spring.StrutsSpringObjectFactory" />
> i have the struts2-spring-plugin-2.0.9.jar in my classpath.
>
> i have this error:
> 14:46:50,246  INFO XmlConfigurationProvider:140 - Parsing configuration
> file
> [struts-plugin.xml]
> StandardContext[/strutsBlank]Exception starting filter struts2
> Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory class:
> org.apache.struts2.spring.StrutsSpringObjectFactory - bean -
> jar:file:/C:/projetos/struts2-blank-2.0.9/WebContent/WEB-INF/lib/struts2-
> spring-plugin-2.0.9.jar!/struts-plugin.xml:8:132
>     at
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register
> (
> XmlConfigurationProvider.java:208)
>     at
> org.apache.struts2.config.StrutsXmlConfigurationProvider.register(
> StrutsXmlConfigurationProvider.java:101)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Ádamo B. Azambuja
JEE Developer
icq: 112102893
msn: adamobas@hotmail.com
E-Mail 1: adamobas@yahoo.com.br
E-Mail 2: adamobas@gmail.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message