IRC Chat : 2013-08-17 - OpenMRS

00:09:45 *** breeze has quit IRC
00:15:43 *** mccallumg has quit IRC
00:31:03 *** NameFILIP has joined #openmrs
00:31:03 *** ChanServ sets mode: +v NameFILIP
00:35:48 *** NameFILIP has quit IRC
00:41:32 *** jordank has quit IRC
00:46:21 *** harsz89 has quit IRC
00:57:39 *** harsz89 has joined #openmrs
00:57:39 *** ChanServ sets mode: +v harsz89
01:18:43 *** dmulindwa has joined #openmrs
01:37:07 *** dmulindwa has quit IRC
02:01:45 *** djazayeri has quit IRC
02:12:44 *** jordank has joined #openmrs
02:43:21 *** djazayeri has joined #openmrs
02:43:21 *** ChanServ sets mode: +o djazayeri
02:54:07 *** harsz89 has quit IRC
03:06:04 *** harsz89 has joined #openmrs
03:06:04 *** ChanServ sets mode: +v harsz89
03:07:31 *** rday has joined #openmrs
03:07:59 *** djazayeri has quit IRC
03:08:12 *** djazayeri has joined #openmrs
03:08:13 *** ChanServ sets mode: +o djazayeri
03:19:52 *** mccallumg has joined #openmrs
03:19:52 *** ChanServ sets mode: +v mccallumg
04:03:52 *** mccallumg has quit IRC
04:09:46 *** harshadura has joined #openmrs
04:18:29 *** wyclif has quit IRC
04:37:03 *** djazayeri has quit IRC
04:41:15 *** harsz89 has quit IRC
04:42:09 *** harsz89 has joined #openmrs
04:42:09 *** ChanServ sets mode: +v harsz89
04:44:46 *** GitHub180 has joined #openmrs
04:44:46 <GitHub180> [openmrs-core] surangak synchronize pull request #386: Trunk 4011 (master...TRUNK-4011) http://git.io/ntPzrg
04:44:46 *** GitHub180 has left #openmrs
05:13:22 *** jordank has quit IRC
06:00:25 *** rday has quit IRC
06:12:28 *** davidpardz has left #openmrs
06:35:14 *** LeeBreisacher has quit IRC
07:24:21 *** rday has joined #openmrs
08:00:37 *** harshadura has quit IRC
08:01:09 *** Tinashe has joined #openmrs
08:01:20 <Tinashe> Hi Guys...
08:02:45 <Tinashe> I want to ask something regarding declaring an interface (service) in the xml config of a web application...anyone...
08:03:10 <Tinashe> as a bean...I know you guys work on modules over web services...
08:08:45 *** NameFILIP has joined #openmrs
08:08:45 *** ChanServ sets mode: +v NameFILIP
08:12:13 *** Tinashe is now known as tinashe
08:23:58 <harsz89> hi tinashe
08:24:05 <harsz89> yeas i can help you
08:36:20 <tinashe> harsz89, see http://pastebin.com/UxjZzr4C
08:40:15 <harsz89> tinashe, did you define a sessionFactory bean in the config
08:40:57 <tinashe> harsz89: not sure how...
08:41:14 <harsz89> tinashe, you wroking on a your own application?
08:41:23 <harsz89> tinashe, or some module
08:42:03 <tinashe> harsz89: used to work on modules, got fired, but now trying to build my own web application...
08:42:26 <harsz89> pastebin your config
08:42:30 <harsz89> and let me see it
08:42:57 <harsz89> <bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"></bean>
08:44:33 <tinashe> harsz89: see http://pastebin.com/wBHKKb5e
08:47:13 <harsz89> tinashe, seems like you missing some dependency
08:47:15 <harsz89> <dependency>
08:47:15 <harsz89> <groupId>org.springframework</groupId>
08:47:15 <harsz89> <artifactId>spring-orm</artifactId>
08:47:15 <harsz89> <version>3.1.1.RELEASE</version>
08:47:15 <harsz89> </dependency>
08:47:36 <harsz89> add this to ur pom file and build and test it agiain
08:58:49 <tinashe> harsz89, do not have a po file, using a spring-servlet.xml file...
08:59:14 <harsz89> add this libabry to ur class path
08:59:14 <tinashe> harsz89, ps: pom file...
08:59:33 <harsz89> seems like libabry is missing
08:59:45 <tinashe> name of the library...
09:01:56 <tinashe> rather, onto which file to add the dependency declaration...
09:05:37 <OpenMRSBot> Recent updates in the world of openmrsci: REFAPP-OMODDISTRO-960 has FAILED (1 tests failed) : Dependant of RDD-RDD-18 <https://ci-stg.openmrs.org/browse/REFAPP-OMODDISTRO-960> || REFAPP-OMODDISTRO-959 has FAILED (1 tests failed) : Dependant of AF-AF-47 <https://ci-stg.openmrs.org/browse/REFAPP-OMODDISTRO-959> || REFAPP-OMODDISTRO-958 has FAILED (1 tests failed) : Dependant of RA-RA-106 <https://ci-stg.openmrs.org/browse/REFAPP-OMODDISTRO-958> || REFAPP-OMODDISTRO-957 has FAILED (1 tests failed) : Dependant of REP-REP-26 <https://ci-stg.openmrs.org/browse/REFAPP-OMODDISTRO-957> || RA-RA-105 has FAILED : Manual build by Wyclif Luyima <https://ci-stg.openmrs.org/browse/RA-RA-105> || RA-RA-104 has FAILED : Updated by Wyclif Luyima <https://ci-stg.openmrs.org/browse/RA-RA-104> || REFAPP-OMODDISTRO-956 has FAILED (2 tests failed) : Dependant of CA-CA-142 <https://ci-stg.openmrs.org/browse/REFAPP-OMODDISTRO-956> || REFAPP-OMODDISTRO-955 has FAILED (1 tests failed) : Dependant of RA-RA-103 <https://ci-stg.openmrs.org/browse/REFAPP-OMODDISTRO-955> || REFAPP-OMODDISTRO-954 has FAILED (1 tests failed) : Dependant of RA-RA-102 <https://ci-stg.openmrs.org/browse/REFAPP-OMODDISTRO-954> || REFAPP-OMODDISTRO-953 has FAILED (1 tests failed) : Rebuilt by Rafal Korytkowski <https://ci-stg.openmrs.org/browse/REFAPP-OMODDISTRO-953> || REFAPP-OMODDISTRO-952 has FAILED (1 tests failed) : Manual build by Chris Briesemeister <https://ci-stg.openmrs.org/browse/REFAPP-OMODDISTRO-952> || REFAPP-OMODDISTRO-951 has FAILED (1 tests failed) : Manual build by Chris Briesemeister <https://ci-stg.openmrs.org/browse/REFAPP-OMODDISTRO-951> || REFAPP-OMODDISTRO-950 has FAILED (1 tests failed) : Dependant of CA-CA-141 <https://ci-stg.openmrs.org/browse/REFAPP-OMODDISTRO-950> || REFAPP-OMODDISTRO-949 has FAILED (1 tests failed) : Dependant of CA-CA-139 <https://ci-stg.openmrs.org/browse/REFAPP-OMODDISTRO-949> || REFAPP-OMODDISTRO-948 has FAILED (1 tests failed) : Manual build by Chris Briesemeister <https://ci-stg.openmrs.org/browse/REFAPP-OMODDISTRO-948> || REFAPP-OMODDISTRO-947 has FAILED (1 tests failed) : Dependant of TRUNK-LATEST-79 <https://ci-stg.openmrs.org/browse/REFAPP-OMODDISTRO-947> || TRUNK-MASTER-126 has FAILED (1 tests failed) : Updated by Wyclif Luyima <https://ci-stg.openmrs.org/browse/TRUNK-MASTER-126> || REFAPP-OMODDISTRO-946 has FAILED (1 tests failed) : Dependant of IDGEN-IDGEN-18 <https://ci-stg.openmrs.org/browse/REFAPP-OMODDISTRO-946> || REFAPP-OMODDISTRO-945 has FAILED (1 tests failed) : Dependant of EMRAPI-EMRAPI-112 <https://ci-stg.openmrs.org/browse/REFAPP-OMODDISTRO-945> || REFAPP-OMODDISTRO-944 has FAILED (1 tests failed) : Updated by Lee Breisacher <https://ci-stg.openmrs.org/browse/REFAPP-OMODDISTRO-944> || REFAPP-OMODDISTRO-943 has FAILED (1 tests failed) : Manual build by Wyclif Luyima <https://ci-stg.openmrs.org/browse/REFAPP-OMODDISTRO-943> || REFAPP-OMODDISTRO-942 has FAILED : Dependant of RDD-RDD-17 <https://ci-stg.openmrs.org/browse/REFAPP-OMODDISTRO-942> || RDD-RDD-16 has FAILED (1 tests failed) : Updated by Wyclif Luyima <https://ci-stg.openmrs.org/browse/RDD-RDD-16> || REFAPP-OMODDISTRO-941 has FAILED (2 tests failed) : Dependant of HTML-HTML-28 <https://ci-stg.openmrs.org/browse/REFAPP-OMODDISTRO-941> || RDD-RDD-15 has FAILED (1 tests failed) : Updated by Wyclif Luyima <https://ci-stg.openmrs.org/browse/RDD-RDD-15> || REFAPP-OMODDISTRO-940 has FAILED (1 tests failed) : Dependant of RA-RA-99 <https://ci-stg.openmrs.org/browse/REFAPP-OMODDISTRO-940> || REFAPP-OMODDISTRO-939 has FAILED (1 tests failed) : Dependant of RA-RA-98 <https://ci-stg.openmrs.org/browse/REFAPP-OMODDISTRO-939> || REFMETA-REFMETA-19 has FAILED (1 tests failed) : Updated by Wyclif Luyima <https://ci-stg.openmrs.org/browse/REFMETA-REFMETA-19> || REFAPP-OMODDISTRO-938 has FAILED (2 tests failed) : Manual build by Wyclif Luyima <https://ci-stg.openmrs.org/browse/REFAPP-OMODDISTRO-938> || REFAPP-OMODDISTRO-937 has FAILED (1 tests failed) : Rebuilt 1 times <https://ci-stg.openmrs.org/browse/REFAPP-OMODDISTRO-937>
09:08:32 <harsz89> ypu have to add spring libabries
09:08:43 <harsz89> in ur web application
09:09:30 <harsz89> or ur application check whether required libaries
09:09:35 <harsz89> there :)
09:17:36 <tinashe> ok let me try that...
09:31:15 *** tinashe has quit IRC
09:31:41 *** tinashe has joined #openmrs
09:39:26 <tinashe> harsz89: have added and removed the jar file j2ee-1.4 for the class not found <bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"></bean>
09:39:58 <tinashe> harsz89: ps: java.lang.ClassNotFoundException: javax.transaction.TransactionManager
09:40:18 <harsz89> there are set of libarirs need to be added
09:40:24 <harsz89> spring
09:40:37 <tinashe> harsz89: sure...
09:40:59 <tinashe> harsz89: not finding jar file for java.lang.ClassNotFoundException: javax.transaction.TransactionManager on the web...
09:41:40 <harsz89> tinashe, yeap search a bit
09:41:49 <tinashe> harsz89: also, who points to jar config in a web app...maybe missing something if scanning for clasess.
09:41:51 <harsz89> tinashe, you will find the solution
09:42:09 <harsz89> jar files located in
09:42:13 <harsz89> web-inf
09:42:16 <harsz89> lib
09:42:24 <tinashe> in lib...
09:42:46 <harsz89> application builder mves this jars to app
09:42:58 <harsz89> just in case
09:43:11 <harsz89> check whther required jar in the web app also
09:43:21 <tinashe> ok and where is the web-inf file, is it the auto-built project file...
09:43:38 <harsz89> you have war file right
09:43:39 <harsz89> ?
09:43:48 <harsz89> WEB-INF directory
09:43:53 <harsz89> there in web appp
09:44:17 <tinashe> ok...but running on eclipse tomcat server, not exporting the war file to tomcat...
09:45:43 <harsz89> mhh
09:45:51 <harsz89> um not familiar with it much
09:45:55 <harsz89> google it bit
09:46:22 <tinashe> harsz89: am on it...
09:53:34 <tinashe> harsz89: found the javax.transaction jar file...but now finding this error...
09:53:38 <tinashe> harsz89: org.hibernate.HibernateException: Hibernate Dialect must be explicitly set
09:54:41 <harsz89> mhh just try to find in google
09:54:54 <harsz89> tinashe, you will find the answer
09:54:59 <tinashe> harsz89: sure...
10:10:56 *** tinashe has quit IRC
10:11:48 *** Tinashe has joined #openmrs
10:12:11 <Tinashe> harsz89: found, <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property> but not sure in which bean to place that...
10:12:53 <Tinashe> harsz89: and do i need the hibernate.cfg file...
10:13:45 <harsz89> bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
10:13:45 <harsz89> <property name="dataSource" ref="dataSourceBean"/>
10:13:46 <harsz89> <property name="mappingResources">
10:13:46 <harsz89> <list>
10:13:46 <harsz89> <value>customer.hbm.xml</value>
10:13:46 <harsz89> </list>
10:13:48 <harsz89> </property>
10:13:50 <harsz89> <property name="hibernateProperties">
10:13:52 <harsz89> <value>hibernate.dialect=org.hibernate.dialect.MySQLDialect
10:13:54 <harsz89> hibernate.hbm2ddl.auto=update
10:13:56 <harsz89> hibernate.show_sql=true
10:13:58 <harsz89> </value>
10:14:00 <harsz89> </property>
10:14:02 <harsz89> </bean>
10:14:06 <harsz89> define like these in your application context xml
10:14:08 <harsz89> spirng
10:19:57 *** Tinashe has quit IRC
10:20:27 *** Tinashe has joined #openmrs
10:20:57 <Tinashe> harsz89: have done so...what do i do with this session factory definition <bean id="sessionFactory"
10:20:58 <Tinashe> class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
10:20:58 <Tinashe> </bean>
10:21:35 <harsz89> this need if you access database through your web application
10:21:45 <harsz89> if you no need of hibernate
10:21:50 <harsz89> remove them
10:22:13 <harsz89> and make sure you added hibernate jar in ur application
10:27:19 <Tinashe> harsz89: ok...just adding a few jars working with the dialect issue...
10:36:09 *** Tinashe has quit IRC
11:32:12 *** harsz89 has quit IRC
11:55:33 *** evmw has quit IRC
11:57:20 *** evmw has joined #openmrs
11:57:20 *** ChanServ sets mode: +v evmw
12:26:30 *** jordank has joined #openmrs
12:30:31 *** jordank has quit IRC
13:10:31 *** jordank has joined #openmrs
13:21:23 *** evmw has quit IRC
13:29:40 *** LeeBreisacher1 has joined #openmrs
13:47:43 *** kavuri has joined #openmrs
13:51:31 *** evmw has joined #openmrs
13:51:32 *** ChanServ sets mode: +v evmw
13:55:52 *** mareias has joined #openmrs
14:03:54 *** kavuri has left #openmrs
14:05:24 *** mareias has quit IRC
14:12:35 *** evmw has quit IRC
14:22:33 *** evmw has joined #openmrs
14:22:33 *** ChanServ sets mode: +v evmw
14:23:12 *** jordank has quit IRC
14:36:03 *** evmw has quit IRC
14:45:47 *** evmw has joined #openmrs
14:45:47 *** ChanServ sets mode: +v evmw
14:48:35 *** evmw has quit IRC
16:11:19 *** rday has quit IRC
16:38:02 *** GitHub133 has joined #openmrs
16:38:02 <GitHub133> [openmrs-core] surangak opened pull request #389: Trunk 4044 (master...TRUNK-4044) http://git.io/6Z1tlg
16:38:02 *** GitHub133 has left #openmrs
16:49:10 *** evmw has joined #openmrs
16:49:10 *** ChanServ sets mode: +v evmw
16:50:59 *** evmw has quit IRC
16:52:42 *** achint has joined #openmrs
16:55:08 *** k-joseph has joined #openmrs
17:03:38 *** evmw has joined #openmrs
17:03:38 *** ChanServ sets mode: +v evmw
17:07:09 *** djazayeri has joined #openmrs
17:07:09 *** ChanServ sets mode: +o djazayeri
17:09:17 *** k-joseph has quit IRC
17:09:29 *** k-joseph has joined #openmrs
17:12:27 *** davidpardz has joined #openmrs
17:12:27 *** ChanServ sets mode: +v davidpardz
17:13:11 *** achint has quit IRC
17:14:23 *** evmw has quit IRC
17:17:03 *** djazayeri has quit IRC
17:17:55 *** k-joseph has quit IRC
17:19:36 *** jordank has joined #openmrs
17:30:06 *** harsz89 has joined #openmrs
17:30:07 *** ChanServ sets mode: +v harsz89
17:33:02 *** k-joseph has joined #openmrs
17:35:48 *** NameFILIP has quit IRC
18:07:52 *** k-joseph has quit IRC
18:08:34 *** NameFILIP has joined #openmrs
18:08:35 *** ChanServ sets mode: +v NameFILIP
18:18:48 *** jordank has quit IRC
18:21:39 *** djazayeri has joined #openmrs
18:21:39 *** ChanServ sets mode: +o djazayeri
18:36:07 *** djazayeri has quit IRC
18:39:08 *** jordank has joined #openmrs
18:51:40 *** evmw has joined #openmrs
18:51:40 *** ChanServ sets mode: +v evmw
18:53:34 *** evmw has quit IRC
18:57:08 *** k-joseph has joined #openmrs
19:02:20 *** djazayeri has joined #openmrs
19:02:21 *** ChanServ sets mode: +o djazayeri
19:10:25 *** djazayeri has quit IRC
19:12:46 *** wyclif has joined #openmrs
19:17:45 *** dkayiwa has joined #openmrs
19:56:18 *** djazayeri has joined #openmrs
19:56:19 *** ChanServ sets mode: +o djazayeri
20:06:28 *** jordank has quit IRC
20:09:09 *** djazayeri has quit IRC
20:10:49 *** harsz89 has quit IRC
20:23:56 *** davidpardz has quit IRC
20:30:07 *** davidpardz has joined #openmrs
20:30:23 <k-joseph> dkayiwa: hi
20:30:29 <dkayiwa> k-joseph: hi
20:31:16 *** davidpardz has quit IRC
20:31:26 *** davidpardz has joined #openmrs
20:32:53 <k-joseph> dkayiwa: after going through your comments on the ticket page, you included that i needed to edit PatientService file, is this where you expected me to add the checkIfLocked() method, i was planning to add this in EncounterService file, perhaps i can hear from you what you wanted to be included in the PersonService file?
20:33:38 <dkayiwa> k-joseph: just follow the pattern used in the commit for the other ticket
20:35:12 <k-joseph> dkayiwa: ok
20:38:35 *** k-joseph has quit IRC
20:40:04 *** k-joseph has joined #openmrs
20:40:33 *** davidpardz has quit IRC
20:51:52 *** davidpardz has joined #openmrs
20:51:52 *** ChanServ sets mode: +v davidpardz
20:55:35 *** davidpardz has quit IRC
21:03:00 *** k-joseph has quit IRC
21:05:47 *** dkayiwa has quit IRC
21:09:47 *** evmw has joined #openmrs
21:09:47 *** ChanServ sets mode: +v evmw
21:27:17 *** evmw has quit IRC
21:30:10 *** k-joseph has joined #openmrs
21:41:40 *** evmw has joined #openmrs
21:41:40 *** ChanServ sets mode: +v evmw
21:43:44 *** evmw has quit IRC
21:51:39 *** evmw has joined #openmrs
21:51:39 *** ChanServ sets mode: +v evmw
21:52:09 *** wyclif has quit IRC
21:53:29 *** evmw has quit IRC
21:54:21 *** evmw has joined #openmrs
21:54:21 *** ChanServ sets mode: +v evmw
21:55:40 *** evmw has quit IRC
21:59:07 *** evmw has joined #openmrs
21:59:07 *** ChanServ sets mode: +v evmw
22:03:26 *** evmw has quit IRC
22:13:48 *** lh_ has joined #openmrs
22:14:05 *** evmw has joined #openmrs
22:14:13 *** lh_ has quit IRC
22:14:15 *** ChanServ sets mode: +v evmw
22:24:08 *** evmw has quit IRC
22:26:47 *** lh has quit IRC
22:26:59 *** lh has joined #openmrs
22:26:59 *** lh has joined #openmrs
22:33:41 *** lh has quit IRC
22:33:57 *** lh has joined #openmrs
22:34:05 *** lh has joined #openmrs
22:55:15 *** evmw has joined #openmrs
22:55:15 *** ChanServ sets mode: +v evmw
22:58:24 *** NameFILIP has quit IRC
23:10:24 *** k-joseph has quit IRC
23:13:11 *** evmw has quit IRC
23:14:11 *** wyclif has joined #openmrs
23:24:14 *** davidpardz has joined #openmrs
23:24:14 *** ChanServ sets mode: +v davidpardz
23:31:42 *** evmw has joined #openmrs
23:31:42 *** ChanServ sets mode: +v evmw
23:36:49 *** evmw has quit IRC
23:40:22 *** evmw has joined #openmrs
23:40:22 *** ChanServ sets mode: +v evmw
23:44:11 *** evmw has quit IRC
23:59:06 *** NameFILIP has joined #openmrs
23:59:07 *** ChanServ sets mode: +v NameFILIP