You should either remove the .vm file references from menu.jsp and decorators/default.jsp - or you should copy them into your src/main/resources directory. You'll also probably want to change the references in menu.jsp and default.jsp to remove WEB-INF/classes. That's what we did in M5.
http://issues.appfuse.org/browse/APF-742 Matt On 5/23/07, nmall <[EMAIL PROTECTED]> wrote:
Hi Matt Yes, that's what I have been trying to do. I don't want to use the same tables you have or Hibernate Annotations. I need this just to build the front end for a web application. And I have to integrate it with a backend that is almost done. I would need to modify M5 too for what I want. Now for my question - i removed target and built it. When I try to access http://localhost:8080/test-1.0-SNAPSHOT/login.jsp, I get the following error. I find that the css*.vm files etc are usually located in WEB-INF/classes directory. However, I don't have one. I did a war:inplace but this created the classes dierctory without the *.vm files. What are .vm files. Thanks so much for your help!!! javax.servlet.jsp.JspException: javax.servlet.jsp.JspException: Error initializing Velocity: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'WEB-INF/classes/cssHorizontalMenu.vm' at net.sf.navigator.taglib.DisplayMenuTag.doStartTag(DisplayMenuTag.java:105) at net.sf.navigator.taglib.el.DisplayMenuTag.doStartTag(DisplayMenuTag.java:45) at org.apache.jsp.common.menu_jsp._jspx_meth_menu_005fdisplayMenu_005f0(menu_jsp.java:270) at org.apache.jsp.common.menu_jsp._jspx_meth_menu_005fuseMenuDisplayer_005f0(menu_jsp.java:156) at org.apache.jsp.common.menu_jsp._jspService(menu_jsp.java:96) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968) at org.apache.jsp.decorators.default_jsp._jspService(default_jsp.java:248) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) mraible wrote: > > 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] > > > -- View this message in context: http://www.nabble.com/WEB-INF-classes-struts.xml-tf3806087s2369.html#a10776757 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]
