Tuesday, January 26, 2010

Re: jetty+django+jython

Today I recieved an email querying me about the missing servlet.py in my jetty+django+jython post, and upon looking for it, i was suprised I could not find it. I linked to it, and I assume I would have copy+pasted the link from a browser's address bar, but it does not show in the commit history in github, or on my old work repository. I assume I've done something bizzare with the repository and overwritten it with a different one after moving the code around and forgot about it.


Either way, I noticed a comment in the post from a few months ago (amongst all the spam!) so i figured i'd make an update post for others who stumble apon this.

Before I start, disclaimer time: this work is 2 years old, and as I am no longer working on the project I used this for I don't have the time/desire to check if it's still valid work or even if it still works. Jython and Django have both progressed a long way since I built this and i've not been keeping tabs on either community so it may be worth doing some searching to see if there's a more recent alternative to this (I seem to remember some similar work to this involving GlassFish).

Since I don't have time to put together detailed examples, what I will do is link to parts of the project I used this on and a breif explaination of what you "should" find in them.

http://www.hpc.jcu.edu.au/projects/kepler/wiki/Hydrant My dev page, nothing important here. Link to demo is dead as my demo server has been shut down since I no longer work there.

http://www.hpc.jcu.edu.au/projects/kepler/wiki/HydrantInstallInstructions Install instructions, which you don't want to follow (unless you like wasting your own time, or have particular interest in running kepler workflows [www.kepler-project.org] in a web environment) but what you do want to get from here is the details on how to modify the web.xml and pom.xml that i will link below. There are also some notes about the settings.py that may be of value. Notice that for my jython/django requirements I link to specific versions of each one. These were the versions that I had running when I did this work, It is most likely broken on newer versions.



http://www.hpc.jcu.edu.au/git/?p=jc124742/hydrant.git;a=blob;f=src/main/webapp/WEB-INF/web.xml;h=e3b336db94521628e5599add46e8578aa5094ef5;hb=master a more up-to-date web.xml (similar to the one on github, but pointing to a "django.handler" local to this project.

and this brings us to the missing servlet.py i moved this to jython/middleware, but it seems it never occured to me to move it into django-servlet project. my bad! http://www.hpc.jcu.edu.au/git/?p=jc124742/hydrant.git;a=tree;f=src/main/jython/middleware;h=3a448871c8a97a97078aa298b89687f2ce1cf302;hb=master.

This should give you enough to get things up and running (assuming things haven't changed too much in django/jython in the past 2 years). The only thing left to say is "Good Luck!".

.Tristan

44 comments:

Leo Soto M. said...

For people interested on Django+Jython, this documentation should be useful too:

http://packages.python.org/django-jython/

米色大衣 said...

Since it is the early worm that gets eaten by the bird, sleep late.............................................

消炎 said...

Never put both feet in your mouth at the same time, because then you will not have a leg to stand on.............................................

踢人 said...

閒暇為所有財富中最美好的財富........................................

愛控 said...

thank you for you to make me learn more,thank you∩0∩

怡如 said...

弱者等待時機,強者製造時機~~gogogo ....................................................

孟倫 said...

生、死、窮、達,不易其操。 ..................................................

逸凡逸凡 said...

蛛絲馬跡皆學問、落花水面皆文章......................................................

1202NathanV_Woodell said...

I do like ur article~!!!...................................................

嘉容嘉容 said...

Well done!........................................

元維青慈 said...

Happy New Year~..................................................

玄雨 said...

好的開始並不代表會成功,壞的開始並不代表是失敗...............................................................

said...

Just do it!.......................................................

LudivinaLe88787 said...

北台灣視訊 情色視訊小站 拓網aio交友愛情館 情色視訊天堂 視訊聊天交友1799 壞朋友論壇一夜情視訊 0509電話視訊聊天 視訊影音聊天fm358 sex免費成人影片 sex美女視訊 彩虹頻道免費影片卡通aa片 淫蕩女孩自拍 情色文學999成人性站 免費性感影片 成人漫畫-a片天堂 免費性影片 18成人space 豆豆出租情人視訊美女 QQ美女視訊秀 kk121視訊俱樂部 gogo辣妹視訊 2sex999情人輔助品a片線上試看 1111我姊是惡魔 真愛視訊聊天室 視訊網愛聊天室網路援交168論壇 北台灣視訊交友 米克綜合論壇 aio性感辣妹34c甜心寶貝貼片 交友網 sexy girl比基尼美女 免費聊天交友mm17i sex女優王國avdvd無碼 18x us 38girl 影音視訊聊天fm358 做愛視訊聊天室 性愛教學,色情 影片 免費視訊聊天aqaq 彩虹avdvd 色咪咪貼影片 avdvd免費影片 無碼avdvd無碼卡通情色 sex movie 亞洲東洋影片sexy girl,dvd 桃園視訊t 6成人網頁 無碼影片,情色交友 後宮0204movie免費影片 嘟嘟情人色網免費線上成人影片 av片-性愛 情色影片免費觀賞0204貼圖區

熙辰 said...

Variety is the very spice of life. ............................................................

恭嘉恭嘉 said...

很喜歡你的部落格風格,期待你的更新!........................................

hernande said...

勤勉是幸運的右手,節儉是幸運的左手。..................................................

韻枝 said...

幸福不是一切,人還有責任。..................................................

SadeRa盈君iford0412 said...

向著星球長驅直進的人,反比踟躕在峽路上的人,更容易達到目的。..................................................................

9GD5H415F_禹玄禹玄 said...

very nice blog~~......................................................................

胤綸胤綸 said...

在莫非定律中有項笨蛋定律:「一個組織中的笨蛋,恆大於等於三分之二。」......................................................................

韋以韋以 said...

知識可以傳授,智慧卻不行。每個人必須成為他自己。.................................................................

育財育財育財 said...

人不能像動物一樣活著,而應該追求知識和美德............................................................

陳韋夏陳韋夏益東富益東富 said...

向著星球長驅直進的人,反比踟躕在峽路上的人,更容易達到目的。............................................................

佳皓佳皓 said...

希望我的支持可以帶給你快樂--加油...................................................

原秋原秋 said...

來幫忙你衝人氣~順便留言支持你 ..................................................................

穎翰翁穎翰 said...

這個部落格好好好~棒棒棒~~~..................................................................

婉婷 said...

河水永遠是相同的,可是每一剎那又都是新的。..................................................

KyungBivo中如 said...

世界上沒有本來就應該的事,因為老天爺也沒有劇本.......................................................

魏江伶魏江伶 said...

let us be happey everyday!!............................................................

陳璇竹陳璇竹 said...

好中意你的BLOG阿~加油!.................................................................

DaniloM_W志竹olff0615 said...

Thank you very much for such useful informaion ● 3●............................................................

吳許芝蓮佩儒 said...

一個人的價值,應該看他貢獻了什麼,而不是他取得了什麼....................................................

張v李佳羽嘉旺 said...

文章雖然普通,但意義卻很大~~^^~~ ..................................................................

凱v胡倫 said...

做好事,不需要給人知道,雖然只是一件微不足道的事,但我相信,這會帶給我快樂。..................................................

鄭王麗娟美玉 said...

堅持是為著某種目的或目標,而持續不斷朝向既定方向努力的一種意念。..................................................

偉曹琬 said...

我新來的~大家可交個朋友嗎(・ˍ・)............................................................

陳倩江陳倩江陳倩江 said...

Never put off till tomorrow what may be done today.......................................................................

國林林林林維 said...

來打聲招呼-大家好!!!............................................................

淑芳 said...

融會貫通的智慧,永遠不會被遺忘。..................................................

于庭吳 said...

心中醒,口中說,紙上作,不從身上習過,皆無用也。..................................................

佳張張張張燕張張張張張 said...

人生有些波折,才能有些成長,所以不論順逆,凡是成長、成功的助緣,都應該心存感激。.................................................

黃英吳思潔吳思潔邦 said...

來給你加油打氣!!!保重!!!............................................................

fdsaf said...

用心經營blog,人氣百分百~^^ 加油 .................................................................