After running "war:inplace", make sure and run:

rm -r src/main/webapp/WEB-INF/lib
rm src/main/webapp/WEB-INF/classes/struts.xml

HTH,

Matt

On 4/9/07, nmall <[EMAIL PROTECTED]> wrote:

Hi Matt and other Appfuse Gurus

   I am trying to get change the database table names and some columns in
User.java and role.java. I added the dependency and exclusions in pom.xml in
core ( as I am using modular). Now did mvn war:inplace and it worked.
However, when I do mvn -e jetty:run, I get the following error. Any help
would be greatly appreciated!  The only way we can use Appfuse in our app is
to integrate our user tables with Appfuse. Please let me know if this is
possible. They are quite similar so all I had to do was rename some columns
and add some setters/getter (attached is changed User.java).
   LogAbandoned: false
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 60
2007-04-09 14:51:13.718:/:INFO:  org.tuckey.web.filters.urlrewrite.utils.Log
ERR
OR: logLevelConf: log4j
2007-04-09 14:51:14.015::WARN:  failed struts
2007-04-09 14:51:14.015::WARN:  failed
[EMAIL PROTECTED]/,file:/C:/work/my
app/web/src/main/webapp/}
2007-04-09 14:51:14.015::WARN:  failed [EMAIL PROTECTED]
2007-04-09 14:51:14.015::WARN:  failed [EMAIL PROTECTED]
2007-04-09 14:51:14.062::INFO:  Started SelectChannelConnector @
0.0.0.0:8080
2007-04-09 14:51:14.062::WARN:  failed [EMAIL PROTECTED]
[INFO] Jetty server exiting.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failure

Embedded error: Unable to load bean: type:
class:com.opensymphony.xwork2.ObjectF
actory
Bean type class com.opensymphony.xwork2.ObjectFactory with the name xwork
has al
ready been loaded by bean -
jar:file:/C:/work/myapp/web/src/main/webapp/WEB-INF/
lib/struts2-core-2.0.6.jar!/struts-default.xml:8:69
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Failure
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:564)
        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)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failure
        at
org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMo
jo.java:340)
        at
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.
java:272)
        at
org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRu
nMojo.java:177)
        at
org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:183
)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:443)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
        ... 16 more
Caused by: Unable to load bean: type:
class:com.opensymphony.xwork2.ObjectFactor
y - bean -
jar:file:/C:/Documents%20and%20Settings/niru%20mallavarupu/.m2/reposi
tory/org/apache/struts/struts2-core/2.0.6/struts2-core-2.0.6.jar!/struts-default
.xml:8:69
        at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.reg
ister(XmlConfigurationProvider.java:209)
        at
org.apache.struts2.config.StrutsXmlConfigurationProvider.register(Str
utsXmlConfigurationProvider.java:101)
        at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(Defau
ltConfiguration.java:131)
        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:
38)
        at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.ja
va:545)
        at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.jav
a:1137)
        at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
420)
        at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:461
)
        at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
38)
        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:
38)
        at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection
.java:156)
        at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
38)
        at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
119)
        at org.mortbay.jetty.Server.doStart(Server.java:210)
        at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
38)
        at
org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.
java:134)
        at
org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMo
jo.java:327)
        ... 21 more
Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the
name x
work has already been loaded by bean -
jar:file:/C:/work/myapp/web/src/main/weba
pp/WEB-INF/lib/struts2-core-2.0.6.jar!/struts-default.xml:8:69 - bean -
jar:file
:/C:/Documents%20and%20Settings/niru%20mallavarupu/.m2/repository/org/apache/str
uts/struts2-core/2.0.6/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
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 18 seconds
[INFO] Finished at: Mon Apr 09 14:51:14 EDT 2007
[INFO] Final Memory: 22M/40M
[INFO]
------------------------------------------------------------------------
2007-04-09 14:51:14.375::INFO:  Shutdown hook executing
2007-04-09 14:51:14.375::INFO:  Shutdown hook complete







  http://www.nabble.com/file/7772/User.java User.java
http://www.nabble.com/file/7773/Role.java Role.java
--
View this message in context: 
http://www.nabble.com/Build-error-tf3549016s2369.html#a9907748
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