Try using maven and the pom.xml file to build/run instead of the ant build.xml file.
In the webapp folder, type "mvn jetty:run". Or right click on the webapp project and choose run as --> maven build... --> jetty:run as the goal. (I've never actually done this though) Ben On Tue, Mar 20, 2012 at 12:50 AM, Saptarshi Purkayastha <[email protected]>wrote: > I've seen this before - http://jira.codehaus.org/browse/MANTTASKS-209 > Incompatibility between ant-tasks and maven compiler plugins. > > --- > Saptarshi > Sent from my phone > > > > On 20 March 2012 01:51, Dr. Barry Levine <[email protected]> wrote: > >> Any help is appreciated with this startup issue: >> >> Previously, I was able to get OpenMRS running and used it without issues >> until: >> I successfully installed the basic module plugin using jetty. >> Then, I ran it with tomcat 6.0.32 successfully, >> I installed/removed basic module several times. Then, when >> I attempted to stop basic module (not remove) the system crashed. >> Since the crash I have not been able to start OpenMRS either using >> tomcat or jetty. >> Following is the series of steps I just tried with results: >> >> >> IDE: Netbeans 7,1 >> OpenMRS version: 1.8.4-SNAPSHOT >> >> I did clean/build - no issues >> Project properties: <no server selected> J2EE 1.4 >> Right click on OpenMRS/build.xml, select jetty-run >> >> jetty-run window gets: >> >> [ERROR] FATAL ERROR >> [INFO] ------------------------------**------------------------------** >> ------------ >> [INFO] Lorg/apache/maven/toolchain/**ToolchainManager; >> org.apache.maven.toolchain.**ToolchainManager >> [INFO] ------------------------------**------------------------------** >> ------------ >> [INFO] Trace >> java.lang.**NoClassDefFoundError: Lorg/apache/maven/toolchain/** >> ToolchainManager; >> at java.lang.Class.**getDeclaredFields0(Native Method) >> at java.lang.Class.**privateGetDeclaredFields(**Class.java:2291) >> at java.lang.Class.**getDeclaredField(Class.java:**1880) >> at org.codehaus.plexus.util.**ReflectionUtils.** >> getFieldByNameIncludingSupercl**asses(ReflectionUtils.java:31) >> >> Then I see: >> >> ERROR - Listener.contextInitialized(**154) |2012-03-19 16:39:17,147| Got >> exception while starting up: >> java.lang.RuntimeException: Error occurred while trying to get the >> updates needed for the database. Unable to get a connection to the >> database. Please check your openmrs runtime properties file and make sure >> you have the correct connection.username and connection.password set >> at org.openmrs.util.**DatabaseUpdater.**getUnrunDatabaseChanges(** >> DatabaseUpdater.java:578) >> at org.openmrs.util.**DatabaseUpdater.**updatesRequired(** >> DatabaseUpdater.java:257) >> >> > ------------------------------ > 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]

