[Umple Dev] Local UmpleOnline server is inconsistent with local umple.jar

6 views
Skip to first unread message

Bowei Yuan

unread,
Feb 5, 2018, 7:59:24 AM2/5/18
to umpl...@googlegroups.com
Hi Umple-Dev,

I have been working on issue#988 (https://github.com/umple/umple/issues/988) in the past week. While testing my changes to code generation template in association_GetOne_relatedSpecialization template, I found that after a full build of umple and packaging UmpleOnline, my local UmpleOnline server does not generate Java code as expected, however, the code generated by using umple.jar in the command line is correct. Has anyone encountered the same problem or is there any way to check which jar is being used by the local UmpleOnline server? Thanks!

Regards,
Bernard

Timothy Lethbridge

unread,
Feb 5, 2018, 8:18:09 AM2/5/18
to umpl...@googlegroups.com
Hi,
Good question

The umpleonline server on your local machine uses umplesync.jar in the
umpleonline/scripts directory. But this does not happen after a full build
automatically.

The new umplesync jar has to be copied to the umpleonline/scripts
directory by the following command

ant -DshouldPackageUmpleOnline=true -Dmyenv=local -f build.umple.xml packageUmpleonline

additionally the previous server has to be stopped using, in the
umpleonline/scripts directory:

php UmpleServerTest.php server -quit

There is a script in the dev-tools directory called 'pumple' that does
this: pumple

One more point: There can be permission problems that cause the command
php UmpleServerTest.php server -quit to be ignored. This sometimes happens
if you try to access that script before you have ever used UmpleOnline
itself (it has to do with the fact that UmpleOnline writes files and runs
the server using the 'www' userid, as opposed to your own userid). In such
circumstances, identify the running server process id 'ps aux | grep java'
and kill it.

Tim

Timothy C. Lethbridge, PhD, P.Eng., I.S.P., CSDP
Professor of Software Engineering and Computer Science
/ Professeur Titulaire de génie logiciel et d'informatique
Faculté de genie / Faculty of Engineering
University of Ottawa / Université d'Ottawa
Tel: 613-562-5800x6685 Fax: 613-562-5664 Mobile: 613-252-1850
http://www.eecs.uottawa.ca/~tcl
Reply all
Reply to author
Forward
0 new messages