java - Running a Jython app on WebSphere Liberty -


i'm looking run jython/modjy (modjy kinda analogous mod_wsgi except bridges java web servers , applications) on ibm 8.5 liberty profile.

however when convert jython-modjy sample app .war file , put in dropins directory, websphere server struggles find path of demo_app.py (wsgi handler). here's snippet of web.xml file:

<init-param>   <param-name>python.home</param-name>   <param-value>c:/jython2.5.3</param-value> </init-param> <init-param>   <param-name>app_filename</param-name>   <param-value>demo_app.py</param-value> </init-param> 

the other app related parameters app_directory , app_callable_name default current directory , handler respectfully:

i following error when try run app:

modjy.modjy_exceptions.applicationnotfound: application filename not found: none/demo_app.py 

the way i've gotten work specifying absolute path, isn't portable

any appreciated

thanks, david

i did quick test myself , share same apprehension raised bkail. issue result of liberty's behavior of not inflating deployed web applications. therefore, applications rely on getrealpath() fail.

there 2 possible options/workarounds:

  1. in development environment, can use eclipse websphere application server liberty profile tools add dynamic web module project liberty server instance. create link between liberty , project files in workspace. servlet context's getrealpath() method work in setup.

  2. inflate war file in liberty server's dropins directory directory, called war file - including file extension .war. same approach should work specifying application in server.xml.


Comments

Popular posts from this blog

design - Custom Styling Qt Quick Controls -

Unable to remove the www from url on https using .htaccess -