00:09:15
|
*** czakian has joined #openmrs
|
00:35:53
|
*** czakian has left #openmrs
|
01:02:27
|
*** mccallumg has joined #openmrs
|
01:02:27
|
*** ChanServ sets mode: +v mccallumg
|
01:34:06
|
*** mccallumg has quit IRC
|
01:44:39
|
<OpenMRSBot> Recent updates in the world of openmrs: On Twitter: OpenMRS: RT @michaelhowden: Any #OpenSource #Software can be used as #Humanitarian #OpenSource #HFOSS #GSoC #MentorSummit <http://twitter.com/OpenMRS/statuses/127919549495521280>
|
01:51:25
|
*** chopin has joined #openmrs
|
01:51:25
|
*** ChanServ sets mode: +v chopin
|
02:59:35
|
*** chopin has quit IRC
|
03:36:37
|
*** rafa has joined #openmrs
|
03:36:37
|
*** ChanServ sets mode: +v rafa
|
03:36:37
|
*** rafa has quit IRC
|
04:03:21
|
*** bwolfe has quit IRC
|
04:19:27
|
*** rafa has joined #openmrs
|
04:19:27
|
*** ChanServ sets mode: +v rafa
|
04:34:52
|
<OpenMRSBot> Recent updates in the world of openmrs: Developer ML: Installation stopping at 90 % and not continuing <https://listserv.iupui.edu/cgi-bin/wa-iupui.exe?A2=ind1110&L=openmrs-devel-l&P=124368>
|
04:41:24
|
*** rafa has quit IRC
|
05:23:37
|
*** kishoreyekkanti has joined #openmrs
|
07:43:01
|
*** bryq has joined #openmrs
|
07:43:01
|
*** ChanServ sets mode: +v bryq
|
07:55:01
|
*** dkayiwa has joined #openmrs
|
08:11:27
|
*** dkayiwa has quit IRC
|
08:43:38
|
*** dkayiwa has joined #openmrs
|
08:45:33
|
*** magicaltrout has quit IRC
|
08:46:40
|
*** pstoellberger has quit IRC
|
10:38:05
|
*** kishoreyekkanti has quit IRC
|
11:19:55
|
*** dkayiwa has quit IRC
|
12:04:27
|
*** jafaeldon has joined #openmrs
|
12:53:30
|
*** bwolfe has joined #openmrs
|
12:53:30
|
*** ChanServ sets mode: +o bwolfe
|
13:31:19
|
*** dkayiwa has joined #openmrs
|
13:46:13
|
*** bwolfe has quit IRC
|
15:41:45
|
*** dkayiwa has quit IRC
|
16:02:03
|
*** dkayiwa has joined #openmrs
|
16:57:51
|
*** rafa has joined #openmrs
|
16:57:51
|
*** ChanServ sets mode: +v rafa
|
16:58:13
|
*** dkayiwa has quit IRC
|
16:58:16
|
*** rafa has quit IRC
|
17:25:12
|
*** bwolfe has joined #openmrs
|
17:25:12
|
*** ChanServ sets mode: +o bwolfe
|
17:40:03
|
*** Mkop has joined #openmrs
|
17:40:03
|
*** ChanServ sets mode: +v Mkop
|
17:44:11
|
*** dkayiwa has joined #openmrs
|
18:00:41
|
*** redhawk has joined #openmrs
|
18:03:36
|
*** bwolfe has quit IRC
|
18:09:13
|
<redhawk> hello, I am new to OpenMRS development and was having some trouble creating my first module.
|
18:10:29
|
<redhawk> would anyone be able to help me?
|
18:14:21
|
*** kishoreyekkanti has joined #openmrs
|
18:30:33
|
<dkayiwa> hi redhawk
|
18:34:41
|
<redhawk> hey
|
18:35:05
|
<dkayiwa> redhawk: what problem are you facing?
|
18:35:17
|
<dkayiwa> have you read the wiki instructions
|
18:35:24
|
<redhawk> I was trying to create my first module and was following the manual instruction to create the module
|
18:35:49
|
<redhawk> I went and changed all the names from basic module to my first like the instructions said
|
18:36:09
|
<redhawk> I went to test my module and was able to get it to run
|
18:36:50
|
<redhawk> The module added a link to the admin page but when I click on it, it gives me an error
|
18:37:16
|
<dkayiwa> which error
|
18:38:19
|
<redhawk> Also, the module title is still names basicmodule.title and the link is still called masicmodule.replace.this.link even though I changed them in the AdminList.java file
|
18:38:26
|
<redhawk> this is the error The page "/openmrs/WEB-INF/view/module/myfirst/myfirstForm.jsp" cannot be found. Check the link and try again.
|
18:39:03
|
<redhawk> its a 404 error
|
18:39:36
|
<dkayiwa> do you have a controller for that jsp?
|
18:40:09
|
<redhawk> yes
|
18:40:45
|
<dkayiwa> are you using spring annotated controller?
|
18:44:00
|
<redhawk> I am not sure. The controller is the same one given to me from the basic module. I have not altered it except to change the names of the module
|
18:44:43
|
<dkayiwa> ok can you put your controller at pastebin.org and i have a look at it?
|
18:47:22
|
<redhawk> http://pastebin.com/4Zxpzzrf
|
18:48:04
|
<dkayiwa> do you have the myfirstForm.jsp file?
|
18:48:05
|
*** rafa has joined #openmrs
|
18:48:05
|
*** ChanServ sets mode: +v rafa
|
18:49:38
|
<redhawk> yes
|
18:49:46
|
<dkayiwa> did you intend to annotate the controller with myfirstLink.form or myfirstForm?
|
18:50:40
|
<dkayiwa> change myfirstLink to myfirstForm
|
18:51:24
|
*** rafa_ has joined #openmrs
|
18:51:24
|
*** ChanServ sets mode: +v rafa_
|
18:52:32
|
*** rafa has quit IRC
|
18:52:40
|
*** mccallumg has joined #openmrs
|
18:52:40
|
*** ChanServ sets mode: +v mccallumg
|
18:52:41
|
<redhawk> ok
|
18:56:36
|
<redhawk> I uploaded it again and now I am getting this error: The page "/openmrs/module/myfirst/myfirstLink.form" cannot be found. Check the link and try again.
|
18:56:43
|
*** mccallumg_ has joined #openmrs
|
18:56:43
|
*** ChanServ sets mode: +v mccallumg_
|
18:57:02
|
*** mccallumg has quit IRC
|
18:57:02
|
*** mccallumg_ is now known as mccallumg
|
18:57:28
|
<dkayiwa> now send (on pastebin.org) the java adminExtention class that has your links
|
18:59:31
|
<redhawk> this is my adminList.java file: http://pastebin.com/5HK4K97t
|
19:00:52
|
<dkayiwa> was that the same link that you originally clicked to get the error?
|
19:01:14
|
<dkayiwa> error The page "/openmrs/WEB-INF/view/module/myfirst/myfirstForm.jsp" cannot be found
|
19:02:16
|
<dkayiwa> change map.put("module/myfirst/myfirstLink.form", "myfirst");
|
19:02:25
|
<dkayiwa> to map.put("module/myfirst/myfirstForm.form", "myfirst");
|
19:02:29
|
*** mccallumg has quit IRC
|
19:03:59
|
<redhawk> before, that file had the title called basicmodule.title. I changed it to myfirst.title. Also, the getLinks() method had the link name basicmodule.replace.this.link and I changed it to myfirst. When I add the module to OpenMRS, the old link names are displayed despite me changing this
|
19:04:12
|
<redhawk> ok
|
19:09:18
|
*** rafa_ has quit IRC
|
19:11:43
|
<redhawk> I got a java.lang.OutOfMemoryError: Java heap space when trying to delete the old module. Is there a way to prevent that from happening? I had gotten it before
|
19:13:06
|
<redhawk> I still go the same error
|
19:13:19
|
<redhawk> The page "/openmrs/module/myfirst/myfirstLink.form" cannot be found. Check the link and try again.
|
19:13:41
|
<dkayiwa> i think you did not compile and install the module after the changes
|
19:13:55
|
<dkayiwa> because we replaced myformLink with myformForm
|
19:15:17
|
<redhawk> I just tried recompiling and reinstalling and still getting the error
|
19:15:41
|
<dkayiwa> that means you are not installing the changed module
|
19:15:59
|
<dkayiwa> can you use eclipse to search for myfirstLink.form in all your files?
|
19:16:07
|
<dkayiwa> to make sure no file is referencing it?
|
19:17:13
|
<redhawk> one thing I noticed is that all my files and folders that are good have a blue + by them except for the AdminLink.java file. It has a black asterisk
|
19:17:31
|
<redhawk> It is almost like the AdminList.java file is not getting updated but the other files are not
|
19:17:44
|
<dkayiwa> ok
|
19:17:55
|
*** rafa has joined #openmrs
|
19:17:55
|
*** ChanServ sets mode: +v rafa
|
19:18:17
|
<redhawk> Because all my changes to AdminList.java have not shown up
|
19:18:37
|
<dkayiwa> try close eclipse and open it again
|
19:18:50
|
*** rafa has quit IRC
|
19:20:54
|
<redhawk> ok I did that
|
19:21:25
|
<dkayiwa> ok do change again
|
19:21:46
|
<dkayiwa> make sure you are changing java files in the api project
|
19:24:24
|
<redhawk> The AdminList.java file is under the api folder
|
19:24:31
|
<dkayiwa> yes
|
19:26:47
|
*** mccallumg has joined #openmrs
|
19:26:47
|
*** ChanServ sets mode: +v mccallumg
|
19:28:35
|
*** mccallumg has quit IRC
|
19:28:40
|
<redhawk> When I had first downloaded the basic module, it came with three projects: basicmodule, basicmodule-parent, and basicmodule-api. When I was changing around the names of the file names and stuff and compiled, the basicmodule and basicmodule-api projects went away and I was left with just the basicmodule-parent project. There is an api folder within the masicmodule-parent (now called myfirst-parent). Is that the "api project"? or did
|
19:29:25
|
<dkayiwa> api is where the java file are that you should change
|
19:29:53
|
<redhawk> I am still getting the same error
|
19:30:18
|
<dkayiwa> which one?
|
19:30:42
|
<redhawk> The page "/openmrs/module/myfirst/myfirstLink.form" cannot be found. Check the link and try again.
|
19:31:03
|
<dkayiwa> search for myfirstLink.form in all your files
|
19:34:45
|
<redhawk> when trying to search for files, it has given me an error saying the file in OpenMRS 'visitFormController.java' had been skipped because it was not in sync with the file system
|
19:35:12
|
<dkayiwa> refresh projects\
|
19:35:24
|
<redhawk> is it a problem if I compile the project with some files out of sync?
|
19:35:56
|
<dkayiwa> refresh them first
|
19:39:50
|
<redhawk> Every once and a while I get a java PermGen memory out of space error and I have to stop running the program but the 8080 port is still active
|
19:40:06
|
<redhawk> How do I free up the port 8080?
|
19:40:18
|
<redhawk> nevermind
|
19:41:59
|
<redhawk> I tried searching for the file but it just pulled up the reference in AdminList.java
|
19:42:02
|
<dkayiwa> http://archive.openmrs.org/wiki/Out_Of_Memory_Errors
|
19:42:09
|
<OpenMRSBot> <http://ln-s.net/9FAw> (at archive.openmrs.org)
|
19:43:37
|
<OpenMRSBot> Recent updates in the world of openmrs: On Twitter: OpenMRS: @StuffByMatt won't be at that event, but happy to answer OpenMRS questions... <http://twitter.com/OpenMRS/statuses/128172729135398912>
|
19:43:59
|
*** kishoreyekkanti has quit IRC
|
19:44:33
|
<redhawk> ok thasnks! will try that.
|
19:48:04
|
<redhawk> correction. It did not find any matches
|
19:49:07
|
<dkayiwa> ok change link text to something like yo name and compile
|
19:49:32
|
<dkayiwa> that will ensure u are using new version
|
19:51:20
|
*** czakian has joined #openmrs
|
19:55:24
|
<redhawk> I tried changing the title to "Redhawk.title" and the link to "Redhawk". The title still displays as "basicmodule" and the link still displays as "basicmodule.replace.this.link.name"
|
19:55:34
|
<redhawk> when I click on the link, the same error show up
|
19:56:50
|
<redhawk> is there any way the AdminList.java file could be out of sync or something and it is grabbing an older version of the file?
|
19:57:21
|
<redhawk> is version control set up?
|
19:57:22
|
<dkayiwa> how do u compile
|
19:58:45
|
<redhawk> I right-click on the project name and select run as -> maven build... Then under goals I type in "clean install" and hit run
|
20:02:06
|
<dkayiwa> and after that
|
20:02:13
|
<dkayiwa> what do u do
|
20:04:23
|
<redhawk> I go to the OpenMRS website and sign in. I then click on administration and go to manage modules. I then add the module. After the module is added and I see that it is running, I check the admin page to see if the link is there
|
20:05:02
|
<dkayiwa> where do you get the compiled module from
|
20:06:59
|
<redhawk> I get it from myfirst-parent -> omod -> target -> myfirst-0.1-SNAPSHOT.omod
|
20:09:41
|
<redhawk> that is the only .omod file that shows up even after repeated changes and compiles. I know in the steps for creating your first module, it says to select the LATEST .omod. Am I suppose to have a different .omod for each compile? or do I only have one because the version number is 0.1 and I never change it between compiles?
|
20:14:11
|
*** redhawk_ has joined #openmrs
|
20:14:41
|
<redhawk_> sorry, my browser for some reason reloaded the page and I got kicked off
|
20:15:34
|
<dkayiwa> change version and see
|
20:16:34
|
*** redhawk has quit IRC
|
20:16:48
|
<redhawk_> change version? how do I do that
|
20:17:15
|
<dkayiwa> in config.xml
|
20:19:37
|
<redhawk_> ok
|
20:21:55
|
<redhawk_> I changed the version in the config.xml and it did not produce a different .omod file. Do I need to change the version in the pom.xml file?
|
20:23:17
|
<dkayiwa> try
|
20:26:38
|
<redhawk_> I tried that and I got this error upon compiling: Failed to execute goal on project myfirst: Could not resolve dependencies for project org.openmrs.module:myfirst:jar:0.2-SNAPSHOT: Failure to find org.openmrs.module:basicmodule-api:jar:0.2-SNAPSHOT in http://mavenrepo.openmrs.org/nexus/content/repositories/public was cached in the local repository, resolution will not be reattempted until the update interval of openmrs-repo has ela
|
20:26:39
|
<OpenMRSBot> <http://ln-s.net/8-2X> (at mavenrepo.openmrs.org)
|
20:30:19
|
<redhawk_> It said My first ----- passed, My First API ----- passed, my first OMOD ----- failed
|
20:39:04
|
*** rafa has joined #openmrs
|
20:39:04
|
*** ChanServ sets mode: +v rafa
|
20:42:18
|
*** rafa has quit IRC
|
20:44:20
|
<redhawk_> I did notice that the OMOD pom file had some properties but the API pom file did not. Are the pom files suppose to have properties?
|
20:45:18
|
*** chopin has joined #openmrs
|
20:45:28
|
*** ChanServ sets mode: +v chopin
|
20:53:41
|
*** czakian has quit IRC
|
20:53:54
|
<redhawk_> I did notice that when I am compiling the module and it gets to the line "[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ myfirst-omod ---" in compiling myfirst-omod, it is followed by a bunch of copy statements. The other two sections, myfirst-api and myfirst-parent, did not copy anything during this step
|
20:54:50
|
<redhawk_> these are the lines outputted in reference to copying:
|
20:54:51
|
<redhawk_> [INFO] Copying 6 resources [INFO] Copying 1 resource to web/module [INFO] Copying 0 resource to web/module [INFO] Copying 1 resource to web/module
|
20:56:10
|
<dkayiwa> try send an email on the dev list and some one else has probably experienced yo problem before
|
21:10:07
|
*** rafa has joined #openmrs
|
21:10:07
|
*** ChanServ sets mode: +v rafa
|
21:25:42
|
*** redhawk_ has quit IRC
|
21:26:05
|
*** redhawk has joined #openmrs
|
21:27:46
|
<redhawk> hey, one last thing. I noticed that my pom.xml file for OMOD had its artifact id as myfirst instead of myfirst-omod. I tried changing it to myfirst-omod and I got a bunch of errors when trying to run the module on OpenMRS related to the AdminList file
|
21:28:22
|
*** mccallumg has joined #openmrs
|
21:28:22
|
*** ChanServ sets mode: +v mccallumg
|
21:28:30
|
<redhawk> is it's artifact id suppose to be myfirst or myfirst-omod?
|
21:32:09
|
*** rafa has quit IRC
|
21:33:44
|
*** mccallumg has quit IRC
|
21:34:42
|
*** dkayiwa has quit IRC
|
21:35:07
|
*** batkinson has joined #openmrs
|
21:35:53
|
<redhawk> hello, I am having problems with getting my first module working correctly. Can anyone help me?
|
21:39:45
|
*** rafa has joined #openmrs
|
21:39:45
|
*** ChanServ sets mode: +v rafa
|
21:41:01
|
*** rafa has quit IRC
|
21:47:05
|
*** rafa has joined #openmrs
|
21:47:05
|
*** ChanServ sets mode: +v rafa
|
21:49:55
|
*** rafa has quit IRC
|
21:55:20
|
*** rafa has joined #openmrs
|
21:55:29
|
*** ChanServ sets mode: +v rafa
|
22:04:47
|
*** bryq has quit IRC
|
22:12:48
|
*** rafa has quit IRC
|
22:13:39
|
*** rafa has joined #openmrs
|
22:13:39
|
*** ChanServ sets mode: +v rafa
|
22:25:34
|
*** rafa has quit IRC
|
22:26:40
|
*** rafa has joined #openmrs
|
22:26:40
|
*** ChanServ sets mode: +v rafa
|
22:26:56
|
*** rafa has quit IRC
|
22:28:17
|
*** rafa has joined #openmrs
|
22:28:17
|
*** ChanServ sets mode: +v rafa
|
23:23:30
|
*** rafa_ has joined #openmrs
|
23:23:30
|
*** ChanServ sets mode: +v rafa_
|
23:24:54
|
*** rafa has quit IRC
|
23:32:06
|
*** r0bby has joined #openmrs
|
23:32:06
|
*** ChanServ sets mode: +v r0bby
|
23:34:01
|
*** robbyoconnor has quit IRC
|
23:34:07
|
*** r0bby is now known as robbyoconnor
|
23:37:17
|
*** lh has joined #openmrs
|
23:42:54
|
*** chopin has quit IRC
|
23:59:47
|
*** rafa_ has quit IRC
|