If you're not using eclipse then you probably aren't getting the files rebuilt. Eclipse will auto build with maven each time you save a file. This makes jetty:run just ready to go. If you are editing on your own, you will need to run mvn:install (or maybe just mvn:compile) on the project(s) that you edited.
Ben On Thu, Feb 23, 2012 at 3:17 PM, Githens, Steven Wilbur <[email protected]>wrote: > Actually, my work flow has been**** > > ** ** > > **1) **mvn jetty:run**** > > **2) **edit files (jsp’s, js, and other web-ish files)**** > > **3) **eventually control-c**** > > **4) **mvn jetty:run**** > > ** ** > > I’ve only been killing jetty when I need to make a change to the java > source. I’m using emacs to edit the jsp’s and other things while jetty is > running. I am using eclipse to edit .java files.**** > > ** ** > > I do plan on checking out jrebel and stuff in a sec to hot deploy changes. > **** > > ** ** > > -steve**** > > ** ** > > ** ** > > *From:* [email protected] [mailto:[email protected]] *On Behalf Of *Ben Wolfe > *Sent:* Thursday, February 23, 2012 8:44 AM > *To:* [email protected] > *Subject:* Re: [OPENMRS-DEV] Hello and Restarting Issues**** > > ** ** > > This is strange. I don't know why those would be "lost". Those are maven > variables and maven is supposed to fill those in during the building > process. > > So your workflow is this: > 1) mvn jetty:run > 2) control-c > 3) ...edit files... > 4) mvn jetty:run > > or do you edit without killing jetty? (which should trigger an auto > reload of jetty) > > What editor are you using to edit? Is it set to do the maven installs > after each edit? > > Ben**** > > On Wed, Feb 22, 2012 at 1:32 PM, Githens, Steven Wilbur < > [email protected]> wrote:**** > > Hello OpenMRS Dev!**** > > **** > > My name is Steve, and I’m starting to work on OpenMRS after joining the > Biostats department at the IU School of Medicine this week. I’ll be doing > some project specific work, and also doing some amount of work on OpenMRS > core. Looking forward to working on this open source project!**** > > **** > > I have a question about our jetty:run task. Occasionally, after I’ve > started things up and shut them down, on subsequent start ups I sometimes > see the trace below. It appears like the task has lost the version number > of the project or something. **** > > **** > > However, if I go back to the top level, and ‘mvn clean install’ the entire > project, it works again.**** > > **** > > Any ideas?**** > > **** > > Cheers, > Steve**** > > **** > > **** > > sgithens@sgithens-VirtualBox:~/code/openmrs-trunk/webapp$ mvn jetty:run*** > * > > [INFO] Scanning for projects...**** > > [INFO] > **** > > [INFO] > ------------------------------------------------------------------------** > ** > > [INFO] Building openmrs-webapp 1.10.0-SNAPSHOT**** > > [INFO] > ------------------------------------------------------------------------** > ** > > [INFO] **** > > [INFO] >>> maven-jetty-plugin:6.1.10:run (default-cli) @ openmrs-webapp >>> > **** > > [INFO] **** > > [INFO] --- buildnumber-maven-plugin:1.0:create (default) @ openmrs-webapp > ---**** > > [INFO] Change the default 'svn' provider implementation to 'javasvn'.**** > > [INFO] Checking for local modifications: skipped.**** > > [INFO] Updating project files from SCM: skipped.**** > > [INFO] Storing buildNumber: 26006 at timestamp: 1329934742765**** > > [INFO] Storing buildScmBranch: trunk**** > > [INFO] **** > > [INFO] --- build-helper-maven-plugin:1.5:parse-version (parse-version) @ > openmrs-webapp ---**** > > [INFO] **** > > [INFO] --- maven-resources-plugin:2.4:resources (default-resources) @ > openmrs-webapp ---**** > > [INFO] Using 'UTF-8' encoding to copy filtered resources.**** > > [INFO] Copying 7 resources**** > > [INFO] Copying 1 resource to ../jetty**** > > [INFO] **** > > [INFO] --- maven-antrun-plugin:1.4:run (default) @ openmrs-webapp ---**** > > project.artifactId**** > > [INFO] Executing tasks**** > > [unzip] Expanding: > /home/sgithens/code/openmrs-trunk/webapp/src/main/resources/liquibase-demo-data.zip > into /home/sgithens/code/openmrs-trunk/webapp/target/classes**** > > [INFO] Executed tasks**** > > [INFO] **** > > [INFO] --- maven-compiler-plugin:2.1:compile (default-compile) @ > openmrs-webapp ---**** > > [INFO] No sources to compile**** > > [INFO] **** > > [INFO] --- maven-resources-plugin:2.4:testResources > (default-testResources) @ openmrs-webapp ---**** > > [INFO] Using 'UTF-8' encoding to copy filtered resources.**** > > [INFO] Copying 1 resource**** > > [INFO] **** > > [INFO] --- maven-compiler-plugin:2.1:testCompile (default-testCompile) @ > openmrs-webapp ---**** > > [INFO] No sources to compile**** > > [INFO] **** > > [INFO] <<< maven-jetty-plugin:6.1.10:run (default-cli) @ openmrs-webapp <<< > **** > > [INFO] **** > > [INFO] --- maven-jetty-plugin:6.1.10:run (default-cli) @ openmrs-webapp --- > **** > > [INFO] Configuring Jetty for project: openmrs-webapp**** > > [INFO] Webapp source directory = > /home/sgithens/code/openmrs-trunk/webapp/src/main/webapp**** > > [INFO] web.xml file = > /home/sgithens/code/openmrs-trunk/webapp/target/jetty/WEB-INF/web.xml**** > > [INFO] Classes = /home/sgithens/code/openmrs-trunk/webapp/target/classes** > ** > > [INFO] Added extra scan > target:/home/sgithens/code/openmrs-trunk/api/target/classes**** > > [INFO] Added extra scan > target:/home/sgithens/code/openmrs-trunk/web/target/classes**** > > 2012-02-22 13:19:06.932::INFO: Logging to STDERR via > org.mortbay.log.StdErrLog**** > > [INFO] Context path = /openmrs**** > > [INFO] Tmp directory = determined at runtime**** > > [INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml**** > > [INFO] Web overrides = src/test/resources/override-web.xml**** > > [INFO] Webapp directory = > /home/sgithens/code/openmrs-trunk/webapp/src/main/webapp**** > > [INFO] Starting jetty 6.1.10 ...**** > > 2012-02-22 13:19:06.017::INFO: jetty-6.1.10**** > > 2012-02-22 13:19:07.136::INFO: No Transaction manager found - if your > webapp requires one, please configure one.**** > > WARN - OpenmrsUtil.getRuntimePropertiesFilePathName(2438) |2012-02-22 > 13:19:08,589| Unable to find a runtime properties file at > /home/sgithens/code/openmrs-trunk/webapp/openmrs-runtime.properties**** > > INFO 2/22/12 1:19 PM:liquibase: Reading from `liquibasechangelog`**** > > WARNING 2/22/12 1:19 PM:liquibase: modifyDataType will lose primary > key/autoincrement/not null settings for mysql. Use <sql> and re-specify > all configuration if this is the case**** > > 2012-02-22 13:19:13.414:/openmrs:INFO: Initializing Spring root > WebApplicationContext**** > > INFO - LocalSessionFactoryBean.buildSessionFactory(777) |2012-02-22 > 13:19:20,089| Building new Hibernate SessionFactory**** > > WARN - OpenmrsUtil.getRuntimePropertiesFilePathName(2438) |2012-02-22 > 13:19:27,653| Unable to find a runtime properties file at > /home/sgithens/code/openmrs-trunk/webapp/openmrs-runtime.properties**** > > INFO 2/22/12 1:19 PM:liquibase: Reading from `liquibasechangelog`**** > > WARNING 2/22/12 1:19 PM:liquibase: modifyDataType will lose primary > key/autoincrement/not null settings for mysql. Use <sql> and re-specify > all configuration if this is the case**** > > WARN - ModuleFactory.startModuleInternal(603) |2012-02-22 13:19:30,561| > Error while trying to start module: logic**** > > org.openmrs.module.ModuleException: Module requires at least version > 1.7.2.17710, Current code version is only > ${parsedVersion.majorVersion}.${parsedVersion.m**** > > at > org.openmrs.module.ModuleUtil.checkRequiredVersion(ModuleUtil.java:329)*** > * > > at > org.openmrs.module.ModuleFactory.startModuleInternal(ModuleFactory.java:487) > **** > > at org.openmrs.api.context.Daemon$1.run(Daemon.java:57)*** > * > > INFO - LoggingAdvice.invoke(117) |2012-02-22 13:19:30,845| In method > AlertService.saveAlert. Arguments: Alert=Alert: #null, **** > > INFO - LoggingAdvice.invoke(142) |2012-02-22 13:19:30,909| Exiting method > saveAlert**** > > WARN - ModuleFactory.stopModule(829) |2012-02-22 13:19:30,978| Unable to > call module's Activator.willStop() method**** > > org.openmrs.module.ModuleException: The classloader is null Module: logic* > *** > > at > org.openmrs.module.Module.getModuleActivator(Module.java:181)**** > > at > org.openmrs.module.ModuleFactory.stopModule(ModuleFactory.java:825)**** > > at > org.openmrs.module.ModuleFactory.startModuleInternal(ModuleFactory.java:614) > **** > > at org.openmrs.api.context.Daemon$1.run(Daemon.java:57)*** > * > > INFO - LoggingAdvice.invoke(117) |2012-02-22 13:19:31,048| In method > AdministrationService.saveGlobalProperty. Arguments: > GlobalProperty=property: logic.started value: false, **** > > INFO - LoggingAdvice.invoke(142) |2012-02-22 13:19:31,059| Exiting method > saveGlobalProperty**** > > WARN - ModuleFactory.stopModule(926) |2012-02-22 13:19:31,076| Unable to > call module's Activator.shutdown() method**** > > org.openmrs.module.ModuleException: The classloader is null Module: logic* > *** > > at > org.openmrs.module.Module.getModuleActivator(Module.java:181)**** > > at > org.openmrs.module.ModuleFactory.stopModule(ModuleFactory.java:920)**** > > at > org.openmrs.module.ModuleFactory.startModuleInternal(ModuleFactory.java:614) > **** > > at org.openmrs.api.context.Daemon$1.run(Daemon.java:57)*** > * > > ERROR - Listener.contextInitialized(154) |2012-02-22 13:19:31,099| Got > exception while starting up: **** > > org.openmrs.module.ModuleException: Unable to start openmrs as Daemon**** > > at > org.openmrs.web.WebDaemon.startOpenmrs(WebDaemon.java:66)**** > > at > org.openmrs.web.Listener.contextInitialized(Listener.java:148)**** > > at > org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:540) > **** > > at > org.mortbay.jetty.servlet.Context.startContext(Context.java:135)**** > > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220) > **** > > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:510)* > *** > > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)**** > > at > org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:110) > **** > > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)** > ** > > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > **** > > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > **** > > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)** > ** > > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > **** > > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)** > ** > > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)* > *** > > at org.mortbay.jetty.Server.doStart(Server.java:222)**** > > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)** > ** > > at > org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132) > **** > > at > org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:371) > **** > > at > org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:307) > **** > > at > org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:203) > **** > > at > org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)**** > > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) > **** > > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) > **** > > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > **** > > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > **** > > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) > **** > > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) > **** > > at > org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) > **** > > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) > **** > > at > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)**** > > at > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)**** > > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) > **** > > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) > **** > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)** > ** > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method)**** > > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > **** > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > **** > > at java.lang.reflect.Method.invoke(Method.java:616)**** > > at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) > **** > > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) > **** > > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) > **** > > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)* > *** > > Caused by: org.openmrs.module.OpenmrsCoreModuleException: The following > modules are marked as 'core' by OpenMRS but were unable to start: logic > v0.5, **** > > at > org.openmrs.module.ModuleUtil.checkOpenmrsCoreModulesStarted(ModuleUtil.java:871) > **** > > at > org.openmrs.module.ModuleUtil.startup(ModuleUtil.java:137)**** > > at > org.openmrs.api.context.Context.startup(Context.java:798)**** > > at org.openmrs.web.Listener.startOpenmrs(Listener.java:194) > **** > > at org.openmrs.web.WebDaemon$1.run(WebDaemon.java:44)**** > > WARN - OpenmrsUtil.getRuntimePropertiesFilePathName(2438) |2012-02-22 > 13:19:31,328| Unable to find a runtime properties file at > /home/sgithens/code/openmrs-trunk/webapp/openmrs-runtime.properties**** > > INFO 2/22/12 1:19 PM:liquibase: Reading from `liquibasechangelog`**** > > WARNING 2/22/12 1:19 PM:liquibase: modifyDataType will lose primary > key/autoincrement/not null settings for mysql. Use <sql> and re-specify > all configuration if this is the case**** > > INFO 2/22/12 1:19 PM:liquibase: Reading from `liquibasechangelog`**** > > WARNING 2/22/12 1:19 PM:liquibase: modifyDataType will lose primary > key/autoincrement/not null settings for mysql. Use <sql> and re-specify > all configuration if this is the case**** > > 2012-02-22 13:19:36.696::INFO: Started > [email protected]:8080**** > > [INFO] Started Jetty Server**** > > [INFO] Starting scanner at interval of 10 seconds.**** > ------------------------------ > > Click here to > unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from > OpenMRS Developers' mailing list > **** > > ** ** > ------------------------------ > > Click here to > unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from > OpenMRS Developers' mailing list > **** > ------------------------------ > Click here to > unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from > OpenMRS Developers' mailing list > _________________________________________ To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to [email protected] with "SIGNOFF openmrs-devel-l" in the body (not the subject) of your e-mail. [mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]

