Topic
  • No replies
davidshepard
davidshepard
1 Post

Pinned topic WebSphere Liberty and jython apps

‏2013-08-28T23:45:52Z |

Hi, I'm looking to run a jython/modjy (modjy is kinda analogous to mod_wsgi except it bridges java web servers and applications) on my IBM WAS 8.5 Liberty Profile. However when I convert the jython-modjy sample app into a .WAR file and put it in the dropins directory, the WebSphere server really struggles to find the path of the demo_app.py (WSGI handler). Here's a snippet of my 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 only other app related parameters are app_directory and app_callable_name which default to the current directory and handler respectfully:

I get the following error when I try to run the app:

modjy.modjy_exceptions.ApplicationNotFound: Application filename noot found: None\demo_app.py

the only way I've gotten it to work is by specifying an absolute path, which really isn't too portable

Any help would be greatly appreciated, David