I'd try running clean or looking for duplicate struts.xml files in your project.

Just to reiterate - I don't know what you're trying to do, but many of
the problems you're having have already been solved by AppFuse. Are
you trying to import the sources of AppFuse (and the subsequent
dependencies) into your project?  If so, the "appfuse:full-source"
goal in M5 will do that for you.

Matt

On 5/23/07, nmall <[EMAIL PROTECTED]> wrote:

Hi,

 I fixed this by adding struts2-spring-plugin.jar in my libraries. However,
it gives me the error below. I have xwork-2.0.0.jar in my target lib
directories. Thanks for any pointers!!


 Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the
name x
work has already been loaded by bean -
jar:file:/C:/work/build/myproject/target/
work/webapp/WEB-INF/lib/struts2-core-2.0.5.jar!/struts-default.xml:8:69 -
bean -

jar:file:/C:/work/build/myproject/target/work/webapp/WEB-INF/lib/struts2-core-2
.0.6.jar!/struts-default.xml:8:69
        at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.reg
ister(XmlConfigurationProvider.java:194)
        ... 44 more



nmall wrote:
>
> OK, I found that it is in struts.xml but what should it be set to - the
> version of spring I am using?? Thanks !!
>
> ./target/work/webapp/WEB-INF/classes/struts.xml:    <constant
> name="struts.objec
> tFactory" value="spring"/>
>
>
>
> nmall wrote:
>>
>> Thanks,  I guess this has nothing to do with the following error: Why
>> would it not  find the spring ObjectFactory . Where is the ObjectFactory
>> specified.
>>
>> Cannot locate the chosen ObjectFactory implementation: spring - [unknown
>> locatio
>> n]
>>         at
>> org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionPr
>> ovider.java:224)
>>         at
>> org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionPr
>> ovider.java:195)
>>         at
>> org.apache.struts2.config.BeanSelectionProvider.register(BeanSelectio
>> nProvider.java:155)
>>         at
>> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(Defau
>> ltConfiguration.java:130)
>>         at
>> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(
>> ConfigurationManager.java:52)
>>         at
>> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Di
>> spatcher.java:398)
>>         at
>> org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)
>>         at
>> org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.
>> java:201)
>>         at
>> org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:95)
>>         at
>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
>> 39)
>>         at
>> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.ja
>> va:544)
>>         at
>> org.mortbay.jetty.servlet.Context.startContext(Context.java:128)
>>         at
>> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.jav
>> a:1136)
>>         at
>> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
>> 420)
>>         at
>> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467
>> )
>>         at
>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
>>
>>
>>
>> mraible wrote:
>>>
>>> It is generated when running "war:inplace". If you do this, you'll
>>> want to delete struts.xml from this directory to avoid conflicts.
>>>
>>> Matt
>>>
>>> On 5/23/07, nmall <[EMAIL PROTECTED]> wrote:
>>>>
>>>> Hi,
>>>>
>>>>  How is the src/main/webapp/WEB-INF/classes directory generated. Is it
>>>> something that is provided by developer as more struts UI components
>>>> are
>>>> added. I am getting the following error after parsing struts.xml in
>>>> this
>>>> dir. Not sure what this is related to. Thanks so much for your help!!
>>>>
>>>> [testapp] DEBUG [main]
>>>> XmlConfigurationProvider.loadConfigurationFiles(748)
>>>> | Lo
>>>> ading action configurations from: struts.xml
>>>> [testapp] DEBUG [main]
>>>> XmlConfigurationProvider.loadConfigurationFiles(832)
>>>> | Lo
>>>> aded action configuration from: struts.xml
>>>> [testapp] INFO [main] XmlConfigurationProvider.register(141) | Parsing
>>>> configura
>>>> tion file [struts.xml]
>>>> [testapp] WARN [main] Settings.getLocale(143) | Settings: Could not
>>>> parse
>>>> struts
>>>> .locale setting, substituting default VM locale
>>>> 2007-05-23 15:24:04.812::WARN:  failed struts
>>>> Cannot locate the chosen ObjectFactory implementation: spring -
>>>> [unknown
>>>> locatio
>>>> n]
>>>>         at
>>>> org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionPr
>>>> ovider.java:224)
>>>>         at
>>>> org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionPr
>>>> ovider.java:195)
>>>>         at
>>>> org.apache.struts2.config.BeanSelectionProvider.register(BeanSelectio
>>>> nProvider.java:155)
>>>>         at
>>>> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(Defau
>>>> ltConfiguration.java:130)
>>>>         at
>>>> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(
>>>> ConfigurationManager.java:52)
>>>>         at
>>>> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Di
>>>> spatcher.java:398)
>>>>         at
>>>> org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)
>>>>         at
>>>> org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.
>>>> java:201)
>>>>         at
>>>> org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:95)
>>>>         at
>>>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
>>>> 39)
>>>>         at
>>>> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.ja
>>>> va:544)
>>>>         at
>>>> org.mortbay.jetty.servlet.Context.startContext(Context.java:128)
>>>>         at
>>>> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.jav
>>>> a:1136)
>>>>         at
>>>> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
>>>> 420)
>>>>         at
>>>> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467
>>>> )
>>>>         at
>>>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
>>>> 39)
>>>>         at
>>>> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection
>>>> .java:156)
>>>>         at
>>>> org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHan
>>>> dlerCollection.java:120)
>>>>         at
>>>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
>>>> 39)
>>>>         at
>>>> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection
>>>> .java:156)
>>>>         at
>>>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
>>>> $
>>>>         at
>>>> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
>>>> 119)
>>>>         at org.mortbay.jetty.Server.doStart(Server.java:221)
>>>>         at
>>>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
>>>> 39)
>>>>         at
>>>> org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.
>>>> java:134)
>>>>         at
>>>> org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMo
>>>> jo.java:327)
>>>>         at
>>>> org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.
>>>> java:272)
>>>>         at
>>>> org.mortbay.jetty.plugin.Jetty6RunWar.execute(Jetty6RunWar.java:67)
>>>>         at
>>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
>>>> nManager.java:443)
>>>>         at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>>>> ultLifecycleExecutor.java:539)
>>>>         at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
>>>> Goal(DefaultLifecycleExecutor.java:493)
>>>>         at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
>>>> ltLifecycleExecutor.java:463)
>>>>         at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
>>>> dleFailures(DefaultLifecycleExecutor.java:311)
>>>>         at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
>>>> ts(DefaultLifecycleExecutor.java:278)
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> 
http://www.nabble.com/WEB-INF-classes-struts.xml-tf3806087s2369.html#a10771321
>>>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>
>>>
>>> --
>>> http://raibledesigns.com
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>
>>
>
>

--
View this message in context: 
http://www.nabble.com/WEB-INF-classes-struts.xml-tf3806087s2369.html#a10773075
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to