From: Allan R. <agr...@ex...> - 2007-11-29 06:16:55
|
Hi Castro, Some questions: Where did you put all your .hbm? How was the resource mapped? If possible, post your dataAccessContext.xml Allan Alejandro Castro wrote: > Hello there, > > Í need to setup jetty to scan my code and redeply the app after I > change mainly JSPs so I can speed up my development process. > I haven't succeed doint it by now. > > This is what I have on my pom.xml in the plugins section > > <groupId>org.mortbay.jetty</groupId> > <artifactId>maven-jetty-plugin</artifactId> > <version>6.1.5</version> > <configuration> > <scanIntervalSeconds>3</scanIntervalSeconds> > <scanTargetPatterns> > <scanTargetPattern> > <directory>src/main/webapp/WEB-INF</directory> > </scanTargetPattern> > </scanTargetPatterns> > </configuration> > > > I have a standard maven setup, but when I change a file and it tries > to redeploy the app, it will fail since it cannot find > the hbm files to configure the Spring dataAccessContext. > > The following is the generated exception > > org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'GESCOMSF' defined in ServletContext resource > [/WEB-INF/dataAccessContext.xml]: Invocation of init method failed; > nested exception is java.io.FileNotFoundException: class path resource > [cr/go/ice/gescom/domain/Banco.hbm.xml] cannot be opened because it > does not exist > Caused by: > java.io.FileNotFoundException: class path resource > [cr/go/ice/gescom/domain/Banco.hbm.xml] cannot be opened because it > does not exist > at > org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:135) > at > org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java > :656) > at > org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods > (AbstractAutowireCapableBeanFactory.java:1198) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1167) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean > (AbstractAutowireCapableBeanFactory.java:427) > at > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249) > at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton > (DefaultSingletonBeanRegistry.java:155) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean > (AbstractBeanFactory.java:160) > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:285) > at > org.springframework.context.support.AbstractApplicationContext.refresh > (AbstractApplicationContext.java:352) > at > org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:245) > at > org.springframework.web.context.ContextLoader.initWebApplicationContext > (ContextLoader.java:188) > at > org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) > at > org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java > :530) > at > org.mortbay.jetty.servlet.Context.startContext(Context.java:135) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218) > at org.mortbay.jetty.handler.ContextHandler.doStart > (ContextHandler.java:500) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) > at org.mortbay.jetty.plugin.Jetty6PluginWebApplication.start > (Jetty6PluginWebApplication.java:144) > at > org.mortbay.jetty.plugin.AbstractJettyRunMojo$1.filesChanged(AbstractJettyRunMojo.java:423) > at org.mortbay.util.Scanner.reportBulkChanges(Scanner.java:456) > at org.mortbay.util.Scanner.reportDifferences(Scanner.java:327) > at org.mortbay.util.Scanner.scan(Scanner.java:254) > at org.mortbay.util.Scanner$1.run(Scanner.java:225) > at java.util.TimerThread.mainLoop (Timer.java:512) > at java.util.TimerThread.run(Timer.java:462) > > Can someone help me to setup this in order to be able to change files > and see changes on the fly ? > > Thank you > > alejandro > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > ------------------------------------------------------------------------ > > _______________________________________________ > Jetty-support mailing list > Jet...@li... > https://lists.sourceforge.net/lists/listinfo/jetty-support > |