Last modified: 2014-05-09 14:14:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T56845, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54845 - Add support for Java Servlets on Tool Labs
Add support for Java Servlets on Tool Labs
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
tools (Other open bugs)
unspecified
All All
: High enhancement
: ---
Assigned To: Marc A. Pelletier
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-01 20:53 UTC by Robin Krahl
Modified: 2014-05-09 14:14 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Robin Krahl 2013-10-01 20:53:09 UTC
Please consider adding support for Java Servlets on Tool Labs.  I need it to transfer the ISBN tool [0] written by ° (gradzeichen) from the toolserver to Labs.  Thanks!

[0] https://toolserver.org/~isbn/
Comment 1 Silke Meyer (WMDE) 2013-12-02 18:31:17 UTC
Hi! What's the status on this? Could we get an update please? Or an estimation how much work this requires?
Comment 2 Marc A. Pelletier 2013-12-02 18:37:04 UTC
In theory, this should be quite doable with the new web service scheme:

https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/Help/NewWeb

This provides a (configurable) lighttpd for tools that should do the trick.

Robin, feel free to contact me on IRC if you need help setting it up.
Comment 3 Peter Schlömer (dapete) 2013-12-05 15:29:01 UTC
I'm also interested in running Java Servlets. I tried to circumvent this by turning my Java tool into a daemon and have a simple Perl CGI script communicate with that via Redis. It works, but is a bit cumbersome.

(In reply to comment #2)
> In theory, this should be quite doable with the new web service scheme:
> https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/Help/NewWeb

The only possibility I found was to use lighttpd as a proxy in front of Tomcat - but I don't think this is really better than my current solution, and I'm not even sure how you would get that to work on Tool Labs.

Marc, did you have anything specific in mind I'm overlooking?
Comment 4 Marc A. Pelletier 2013-12-05 15:37:35 UTC
Yes, I wasn't being very clear; I meant using the same scheme but with a tomcat rather than an lighttpd started per-tool.  It's a bit expensive in resources, but given how poorly tomcat otherwise handles multi-tenancy and the (relatively) low number of Java tools, this should work.
Comment 5 Robin Krahl 2014-04-10 13:53:04 UTC
Hi Coren, could you please give a short update on this issue?  Thanks!
Comment 6 Marc A. Pelletier 2014-04-16 14:11:14 UTC
I should be able to get to this within a week or so, if we have no surprises.

Most of the infrastructure is now in place, I just need to write and test the tomcat-in-a-bottle start-up script.
Comment 7 Silke Meyer (WMDE) 2014-04-24 08:58:52 UTC
Hi Marc-André, any news on this? Robin can't migrate his MMP without this feature.
Comment 8 Marc A. Pelletier 2014-04-24 12:48:13 UTC
It's working, but currently requires a lot of manual work to get it running.  I'm hoping I can have a script that makes it similar to the lighttpd setup.
Comment 9 Silke Meyer (WMDE) 2014-04-28 09:22:44 UTC
Is the manual work needed currently documented? Or do you have an E.T.A. for your script?
Comment 10 Gerrit Notification Bot 2014-04-29 19:25:02 UTC
Change 130429 had a related patch set uploaded by coren:
Front-end support for tomcat webservices.

https://gerrit.wikimedia.org/r/130429
Comment 11 Gerrit Notification Bot 2014-04-29 19:27:03 UTC
Change 130429 merged by coren:
Front-end support for tomcat webservices.

https://gerrit.wikimedia.org/r/130429
Comment 12 Marc A. Pelletier 2014-04-29 19:28:22 UTC
This provides, from a tool account:

setup-tomcat

to create a tool-local instance of tomcat and

webservice -tomcat (start|stop|restart)

To manipulate it.
Comment 13 Robin Krahl 2014-04-29 23:08:44 UTC
Thanks Coren.  Tomcat seems to be working for me.  See [0] for a short summary of the WAR deployment.

[0]  https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/Help#Java_webservice_.28Tomcat.29

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links