IRC Chat : 2011-01-26 - OpenMRS

00:01:01 *** lh has quit IRC
00:02:53 *** gbastien has joined #openmrs
00:51:02 *** estebanpv has joined #openmrs
01:24:50 *** gbastien has quit IRC
01:29:15 *** estebanpv has quit IRC
03:23:27 *** bwolfe has quit IRC
03:28:22 *** gbastien has joined #openmrs
03:34:50 *** gbastien has quit IRC
05:52:28 *** muthah has joined #openmrs
06:33:52 *** robota has joined #openmrs
07:00:17 *** goutham has joined #openmrs
07:15:04 *** muthah has quit IRC
07:44:15 *** mayanks43 has joined #openmrs
07:55:40 *** goutham has quit IRC
08:25:27 *** mayanks43 has quit IRC
08:32:10 *** robota has quit IRC
08:33:04 *** robota has joined #openmrs
08:41:09 *** robota has quit IRC
08:41:47 *** robota has joined #openmrs
09:38:56 *** rafa has joined #openmrs
11:03:12 *** robota has quit IRC
12:26:44 *** robota has joined #openmrs
12:30:59 *** dkayiwa has joined #openmrs
12:32:15 *** gbastien has joined #openmrs
12:34:22 *** robota has quit IRC
12:46:48 *** gbastien has quit IRC
12:52:54 *** dkayiwa has quit IRC
13:00:19 *** robota has joined #openmrs
13:04:24 *** rafa_ has joined #openmrs
13:06:05 *** rafa has quit IRC
13:32:09 *** dkayiwa has joined #openmrs
13:35:08 *** robota has quit IRC
13:35:33 *** robota has joined #openmrs
13:38:55 *** gbastien has joined #openmrs
13:40:22 *** dkayiwa has quit IRC
13:58:55 *** upul` has joined #openmrs
13:58:55 *** ChanServ sets mode: +v upul`
14:05:28 *** gbastien has quit IRC
14:11:05 *** bwolfe has joined #openmrs
14:11:05 *** ChanServ sets mode: +o bwolfe
14:51:46 *** gbastien has joined #openmrs
14:58:20 <OpenMRSBot> Recent updates in the world of openmrs: On Twitter: OpenMRS: Happy birthday to #OpenMRS core developer Wyclif Luyima! <http://twitter.com/OpenMRS/statuses/30268061533605888>
15:02:52 *** robota has quit IRC
15:29:50 *** robbyoconnor has quit IRC
15:31:08 *** bwolfe has quit IRC
15:33:51 *** gbastien has quit IRC
15:39:51 *** upul` has quit IRC
15:41:09 *** umashanthi has joined #openmrs
15:41:09 *** ChanServ sets mode: +v umashanthi
15:43:21 *** bwolfe has joined #openmrs
15:43:21 *** ChanServ sets mode: +o bwolfe
16:02:31 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: problem on adding modules to the openmrs <http://forum.openmrs.org/viewtopic.php?f=8&t=716#p2810>
16:05:47 *** aja has joined #openmrs
16:26:33 *** mblanchette has joined #openmrs
16:29:02 *** gbastien has joined #openmrs
16:32:43 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: problem on adding modules to the openmrs <http://forum.openmrs.org/viewtopic.php?f=8&t=716#p2811>
16:51:28 *** gbastien has quit IRC
16:52:07 *** Hazamonzo has joined #openmrs
16:53:28 *** umashanthi has quit IRC
17:04:26 *** gbastien has joined #openmrs
17:04:37 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: problem on adding modules to the openmrs <http://forum.openmrs.org/viewtopic.php?f=8&t=716#p2812>
17:06:49 *** lh has joined #openmrs
17:08:38 *** umashanthi has joined #openmrs
17:08:38 *** ChanServ sets mode: +v umashanthi
17:18:01 *** rafa_ has quit IRC
17:25:15 *** umashanthi has left #openmrs
17:25:31 *** aja has quit IRC
17:51:05 *** gbastien has quit IRC
18:17:38 *** buddhika has joined #openmrs
18:19:09 *** buddhika has quit IRC
18:26:29 *** suho has joined #openmrs
18:27:41 *** rafa has joined #openmrs
18:30:15 *** rafa has quit IRC
18:40:58 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: problem on adding modules to the openmrs <http://forum.openmrs.org/viewtopic.php?f=8&t=716#p2813>
19:11:12 <OpenMRSBot> Recent updates in the world of openmrs: New Changeset: OpenMRS trunk #17849: [Ben Wolfe] DataIntegrityViolationException when trying to delete a patient - TRUNK-1986 <http://feedproxy.google.com/~r/OMRStrunk/~3/Xyl6uG_L1TU/> || New Changeset: OpenMRS trunk #17848: [Ben Wolfe] Fixing DataIntegrityViolationException exception when trying to delete a form - TRUNK-1985 <http://feedproxy.google.com/~r/OMRStrunk/~3/bkHzaWV2GjA/>
19:11:12 *** Echidna has quit IRC
19:14:09 *** vidh has joined #openmrs
19:14:17 <vidh> hello world!
19:14:32 <vidh> i am a newbie to OPENMRS :)
19:15:18 <vidh> i am using ubuntu 8.04 and using this link http://archive.openmrs.org/wiki/Linux_guide to configure openmrs in my system
19:15:44 <vidh> $ANT_HOME/bin/ant install
19:15:47 <vidh> i am facing problems in this step of the installation
19:15:57 <vidh> the build file shows an error! :(
19:17:01 <vidh> can someone direct me to the right place or help me here?
19:17:52 *** Echidna has joined #openmrs
19:17:52 *** ChanServ sets mode: +v Echidna
19:24:59 <bwolfe> hi vidh, welcome!
19:25:19 <bwolfe> vidh: thats an old install guide, any reason you're using that one?
19:25:38 <vidh> thanks for yur reply
19:26:21 <vidh> i first read the documentation part and found illustration for installation only in windows
19:27:01 <vidh> the link is http://wiki.openmrs.org/display/docs/Installing+OpenMRS
19:27:02 <OpenMRSBot> <http://ln-s.net/7Y3F> (at wiki.openmrs.org)
19:27:41 <vidh> then i googled to find that archive link for linux
19:30:43 <bwolfe> vidh: that should be a cross platform installation procedure
19:33:18 <vidh> oh one second let me seee!!!
19:33:51 <vidh> http://wiki.openmrs.org/display/docs/Step+2+-+Install+Java
19:33:56 <OpenMRSBot> <http://ln-s.net/8QUh> (at wiki.openmrs.org)
19:33:58 <vidh> this looks like windows!
19:36:48 <bwolfe> vidh: true it does...but do you really need to install java on linux??
19:36:50 <bwolfe> it should be there
19:37:09 <bwolfe> or type "sudo apt-get install openjdk" if its not :-)
19:37:16 <bwolfe> or maybe sunjdk
19:37:22 <bwolfe> or maybe just "java" would even work!
19:37:24 <vidh> sorry man! pls dont mind if my questions are silly!
19:37:34 <vidh> i just showed that page for a sample
19:37:56 <vidh> which made me navigate away thinking its for windows
19:38:48 <vidh> bwolfe: can u tell me how I can proceed from this point? am lost totally!
19:40:11 * bwolfe goes to the wiki page you first linked to to see how far you are...
19:40:29 <bwolfe> vidh: are you going to be developing or just using openmrs ?
19:40:36 <vidh> bwolfe: i have installed tomcat,sun java,mysql,ant,lcab,cabextract,eclipse and subversion from that archive link
19:40:57 <bwolfe> ok
19:40:59 <vidh> bwolfe: i want to involve myself in development
19:41:07 <bwolfe> ah, very cool, ok
19:41:39 <bwolfe> openmrs doens't use ant anymore, we are using maven
19:42:12 <bwolfe> so install of "ant install" you can do "mvn jetty:run" (IN THE WEBAPP FOLDER, not the root folder)
19:42:21 <vidh> yea i am reading that coincidentally from http://ln-s.net/7ikj
19:42:42 <bwolfe> brb
19:42:57 <vidh> yea sure i ll be here
19:43:05 *** bwolfe_ has joined #openmrs
19:43:05 *** ChanServ sets mode: +o bwolfe_
19:43:09 *** bwolfe has quit IRC
19:43:11 *** bwolfe_ is now known as bwolfe
19:43:51 <bwolfe> vidh: ha! that page doesn't seem to have the instructions on running openmrs..
19:44:01 <bwolfe> oh, I guess its over on that maven page...
19:44:49 <vidh> bwolfe: i want to first know if i have done any unwanted irreversible step so far
19:45:07 <bwolfe> vidh: all good so far
19:45:12 * vidh is installing maven2
19:45:27 <vidh> bwolfe: oh gud then
19:46:24 <bwolfe> brb again
19:46:48 * vidh has completed maven installation
19:52:33 * vidh is running mvn jetty:run
20:01:21 <bwolfe> ok, so its going well then vidh ?
20:04:16 <vidh> bwolfe: ya its going.. looks like it ll take a long time
20:04:30 <bwolfe> vidh: the first compilation/run it downloads all the jars
20:13:29 <OpenMRSBot> Recent updates in the world of openmrs: New Changeset: OpenMRS trunk #17851: [Ben Wolfe] Make error more descriptive: ModuleException: A servlet mapping with name complexObsServlet already exists - TRUNK-1987 <http://feedproxy.google.com/~r/OMRStrunk/~3/mNYFuJv2Atc/>
20:13:58 <vidh> bwolfe: there seems to be a problem :(
20:14:26 <vidh> Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/api/openmrs-api/1.9.0-SNAPSHOT/openmrs-api-1.9.0-SNAPSHOT.jar Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/web/openmrs-web/1.9.0-SNAPSHOT/openmrs-web-1.9.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------
20:14:39 <vidh> i found this !! :(
20:15:28 <bwolfe> vidh: I think you need to do a "mvn install" first maybe
20:16:23 * vidh is doing "mvn install"
20:16:50 <vidh> bwolfe: so what happens to the previous step? any probs because of that?
20:17:41 <vidh> bwolfe: i get the same problem in this step also
20:20:49 <bwolfe> hmm
20:21:05 <bwolfe> mvn install should be done at the root level, not in the webapp folder
20:21:19 <vidh> hmm sorry! ll do it
20:21:34 <bwolfe> "mvn install" means: "compile and INSTALL the openmrs api jar file into my local maven repository"
20:21:57 <bwolfe> your local maven repo is where maven caches jar files it downloads for ALL projects on your computer to use
20:22:15 <bwolfe> so if you use maven to build another project htat uses the same version of jar fiels that openmrs uses, then it will not have to redownload
20:22:27 <vidh> oh gr8
20:22:34 <bwolfe> but openmrs.jar is not in the public repos to download to your maven repo. it is built and compiled and put in there by you
20:22:57 <vidh> oh mm
20:30:38 *** dkayiwa has joined #openmrs
20:33:20 *** mbayang has joined #openmrs
20:33:32 *** mbayang has quit IRC
20:36:40 <vidh> bwolfe: will u be here tomo ?
20:39:44 <bwolfe> vidh: yep, I'm here every day. :-)
20:39:58 <vidh> now testruns happening
20:40:22 <bwolfe> I'm online during the workday in the US. so 9am to 6pm or so EST
20:40:32 <bwolfe> vidh: cool, tests take about 5 mins to run
20:40:43 <vidh> its 2am here :p
20:40:55 <bwolfe> you can skip them next time by doing "mvn -DskipTests install"
20:41:23 <vidh> oh ok
20:41:28 <vidh> ll note that down
20:41:50 <vidh> can i leave it as such now and continue installation tomo?
20:42:24 * vidh is building openmrs web
20:46:51 <bwolfe> vidh: yeah, are you leaving the computer on?
20:47:24 <bwolfe> dkayiwa: about your standalone project: have you thought about an upgrade path? How does something upgrade to the next version of openmrs?
20:47:48 <vidh> bwolfe: yea man.. let that step get over... so tht i can proceed further tomo
20:48:13 <vidh> bwolfe: it got completed
20:48:22 <vidh> i get BUILD SUCCESSFUL
20:49:02 <bwolfe> vidh:
20:49:03 <bwolfe> ok
20:49:09 <bwolfe> now in the webapp folder again
20:49:14 <bwolfe> you can do mvn jetty:run
20:49:19 <vidh> so can we continue tomo?
20:49:41 <bwolfe> yeah
20:50:05 <vidh> ok man! will do bit of study on mvn when i get back tomo :)
20:50:08 <vidh> bye for now
20:50:49 *** vidh has quit IRC
20:51:41 <dkayiwa> bwolfe: Not yet thought about the upgrade process, but for now, it would require one to manually delete the tomcat/webapps/openmrs folder and dump the new war file into the tomcat/webapps folder.
20:53:56 <bwolfe> so tomcat gets exploded out next to the wherever the .jar is executed from?
20:54:03 <bwolfe> where does the runtime properties file end up?
20:54:34 <dkayiwa> as for now, it is in the root folder of the standalone download
20:55:13 <bwolfe> ok, thats perfect I think
20:55:19 <dkayiwa> yes to the earlier question
20:55:27 <bwolfe> the application data dir is there as well?
20:55:51 <dkayiwa> yes it is
20:56:13 <dkayiwa> but can be changed to any other location using the runtime properties file
20:56:26 <dkayiwa> to be precise, its in the connection string
20:56:53 <bwolfe> which connection string?
20:57:23 <dkayiwa> the database connection string
20:57:24 <dkayiwa> jdbc:mysql:mxj://localhost:3316/openmrs?autoReconnect=true&sessionVariables=storage_engine=InnoDB&useUnicode=true&characterEncoding=UTF-8&connectionCollation=utf8_general_ci&server.initialize-user=true&createDatabaseIfNotExist=true&server.basedir=database&server.datadir=database/data&server.collation-server=utf8_general_ci&server.character-set-server=utf8
20:57:46 <dkayiwa> thats the default that i use for now
21:00:13 <bwolfe> dkayiwa: ok, I don't think thats what I meant. thats where the tables are stored for mysql, right? what I meant by applicationdatadir is where the modules folder is, etc. its usually ~userrunningtomcat/.OpenMRS (or on windows c:/docs and settings/userrunningtomcat/Application data/OpenMRS)
21:00:54 <dkayiwa> oh i see
21:02:14 <dkayiwa> what i answered is where tables are stored for mysql. right.
21:02:29 <bwolfe> dkayiwa: you can specify that location of the appdatadir in the runtime properties file.
21:03:14 <dkayiwa> As for the application data directory, i think its wise to specify a special one in run time properties file as you suggest
21:03:27 <dkayiwa> whats the name of the key in the properties file?
21:04:31 <dkayiwa> if one is not specified in the properties file, it will end up using the default location
21:05:09 <bwolfe> dkayiwa: yeah, default location is not ideal. because then you can only have one install per computer. if the appdatadir is in the same folder, then you can have many openmrs' per machine without a sweat! :-)
21:05:48 <bwolfe> http://wiki.openmrs.org/display/docs/Overriding+OpenMRS+Default+Properties has it as "application_data_directory"
21:05:52 <OpenMRSBot> <http://ln-s.net/8QWS> (at wiki.openmrs.org)
21:06:20 <dkayiwa> i think i experienced that situation where my embedded version shared modules with the non embedded earlier embedded one (something we may not want because we could have different versions of the embedded openmrs all running at the same time
21:06:44 <dkayiwa> so i completely agree with you
21:07:19 <dkayiwa> so let me add the property to the run time properties file
21:08:14 <dkayiwa> one other thing i noticed, our order of search for the runtime properties file complicates things
21:08:41 <dkayiwa> It would be perfect if it started from the webapps/openmrs folder
21:08:58 <dkayiwa> then embedded would be happy
21:09:21 <dkayiwa> not so sure of the implications of that to the non embedded one
21:10:34 <dkayiwa> if i have a run time properties file in my user/.OpenMRS folder, the embedded's war file picks that up instead of the one in its root folder
21:11:17 <dkayiwa> so in that case we cant have different versions all running at the same time
21:17:19 <bwolfe> dkayiwa: the app dir property should override all, is it not doing that?
21:18:33 <dkayiwa> app dir is a property in the runtime properties file
21:19:44 <dkayiwa> the problem i have is that OpenMRS looks for the properties file from user/.OpenMRS before it looks in the standalone folder
21:21:52 <dkayiwa> if for instance i want to run openmrs 1.6, 1.7, & 1.7, as different standalones, they will all load the same properties file in user/.OpenMRS
21:21:59 <dkayiwa> which i do not want
21:22:21 <dkayiwa> because i have a different properties file for each in the standalone folder
21:23:08 <dkayiwa> each properties file contains a different database connection string because i do not share the same database for all the three versions
21:23:20 <bwolfe> right
21:23:21 <bwolfe> hmm
21:23:31 <bwolfe> looking in local folder first makes sense
21:23:36 <dkayiwa> yes
21:23:51 <bwolfe> I worry about it breaking someone's installation though.
21:24:32 <dkayiwa> how?
21:24:44 <bwolfe> I'm sure there aren't many (if any) people htat have 2 runtime properties files, one in the user/.Openmrs and one in local folder. but if they did, then when they upgraded suddenly the one in local folder would be used instead
21:26:06 <dkayiwa> oh i see
21:29:31 <bwolfe> but thats probably a limited use case
21:29:40 <dkayiwa> sure
21:29:58 <bwolfe> go ahead and make a ticket for that and a patch
21:30:10 <dkayiwa> cool
21:31:01 <dkayiwa> patch for searching for the properties file starting from the local folder?
21:32:25 <mblanchette> dkayiwa: if you use a different context for each version of openmrs, each will use a different runtime properties file, correct?
21:33:13 <dkayiwa> how would i use a different context?
21:34:03 <bwolfe> mblanchette: context == folder?
21:34:32 <mblanchette> For example, if the name of the war was different for each instead of openmrs.war, or if you were using jetty to deploy from the build: http://tickets.openmrs.org/browse/TRUNK-1726
21:35:02 <mblanchette> but yea that ends up being a different folder name in the webapps
21:35:15 <bwolfe> mblanchette: daniel is working on this ticket to make a single standalone openmrs+tomcat+mysql http://tickets.openmrs.org/browse/TRUNK-1798
21:37:07 <dkayiwa> mblanchette: basing on the current order of openmrs's loading of properties file, even if i used a different context, the would all load the same properties file
21:37:35 <dkayiwa> oh sorry, i could be wrong
21:37:51 <dkayiwa> if the properties file name has a context name, then you are right
21:38:41 <mblanchette> yea we've had deployments that used a different context, so the runtime properties name was based on the context
21:39:45 <mblanchette> so it would be <context-name>-runtime.properties
21:40:15 <dkayiwa> then that would solve my problem without changing openmrs
21:40:29 <dkayiwa> i just have to rename the war file
21:41:41 <dkayiwa> bwolfe: what do you think of that?
21:42:50 <bwolfe> dkayiwa: so if you want more than one you just have to be sure to use different context names? that sounds like an ok solution to give to people
21:43:05 <dkayiwa> sure
21:44:02 *** gbastien has joined #openmrs
21:44:38 <dkayiwa> i like it because of not having to change the way (order) openmrs is loading properties files, which could bring unforeseen bugs.
21:45:41 <dkayiwa> Thanks mblanchette for giving us a simpler alternative
21:46:09 <mblanchette> no problem
21:51:07 *** mblanchette has quit IRC
21:52:02 <bwolfe> dkayiwa: after you commit, be sure to write up a wiki page on A) how to use the project (for devs that will be making this thing) and B) for an impl trying to use it
21:52:43 <bwolfe> dkayiwa: there should be a readme in the root of your project too. it should be simpler than the wiki page but a quick 'what is this' and 'how to build a new one'. then link to the wiki page
21:53:37 <dkayiwa> infact i already had the readme in the root folder :)
21:53:55 <dkayiwa> but it was mostly a developer readme
21:54:10 <dkayiwa> sure will create the wiki immediately
21:55:43 <dkayiwa> bwolfe: Another problem i have is that if i have a properties file, openmrs assumes that i already have a database and so it will never create one.
21:56:18 <bwolfe> dkayiwa: I thought you were including the db already...
21:56:29 <dkayiwa> oh yes
21:58:24 <dkayiwa> Any way, no big deal, only wanted it for the developer who wants to create a standalone for some openmrs version
21:59:13 <dkayiwa> the only way i create that database, to ship with the standalone, is by making sure openmrs fails to find the runtimes properties file
21:59:59 <dkayiwa> It is then that openmrs takes me through setup
22:02:33 <bwolfe> dkayiwa: so then you ahve to move the file back into place after it creates it somewhere?
22:04:42 <dkayiwa> yes
22:18:09 *** robbyoconnor has joined #openmrs
22:18:09 *** ChanServ sets mode: +v robbyoconnor
22:50:02 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: SOAPConnectionFactory error <http://forum.openmrs.org/viewtopic.php?f=8&t=739#p2814> || OpenMRS Forum: Re: problem on adding modules to the openmrs <http://forum.openmrs.org/viewtopic.php?f=8&t=716#p2813> || OpenMRS Forum: Re: problem on adding modules to the openmrs <http://forum.openmrs.org/viewtopic.php?f=8&t=716#p2812> || OpenMRS Forum: Re: problem on adding modules to the openmrs <http://forum.openmrs.org/viewtopic.php?f=8&t=716#p2811> || OpenMRS Forum: Re: problem on adding modules to the openmrs <http://forum.openmrs.org/viewtopic.php?f=8&t=716#p2810> || OpenMRS Forum: SOAPConnectionFactory error <http://forum.openmrs.org/viewtopic.php?f=8&t=739#p2809> || OpenMRS Forum: Re: DWR Problems <http://forum.openmrs.org/viewtopic.php?f=8&t=737#p2808> || OpenMRS Forum: Re: How to link a Servlet Controller with a JSP? <http://forum.openmrs.org/viewtopic.php?f=8&t=730#p2807> || OpenMRS Forum: Re: How to link a Servlet Controller with a JSP? <http://forum.openmrs.org/viewtopic.php?f=8&t=730#p2806> || OpenMRS Forum: Re: How to link a Servlet Controller with a JSP? <http://forum.openmrs.org/viewtopic.php?f=8&t=730#p2805>
23:03:41 *** bwolfe has quit IRC
23:10:28 *** dkayiwa has quit IRC
23:22:46 *** suho has quit IRC
23:41:33 *** lh has quit IRC