I have an Axis2 WEB-INF that is in the correct Axis2 repo structure (conf,
modules, services, etc). With a Java project, I'm able to successfully to
engage modules using "stub._getServiceClient().engageModule("addressing")"
with the following steps:
1. Create a new Java project in Eclipse
2. Throw the WEB-INF directory into the project
3. Add WEB-INF/lib and WEB-INF/services to the build path
With Jython, however, I am unable to get this working with:
1. Add WEB-INF/lib and WEB-INF/services to sys.path
Instead I get "unable to engage module: addressing".
One way I can get it working is by having Java call the Jython interpreter like
so:
1. java -classpath <jython.jar>:<WEB-INF paths> org.python.util.jython
-Dpython.path=<WEB-INF paths> myscript.py
This works, but is horribly efficient and not to mention slow as molasses. It
seems the problem is most likely related to class paths and/or how Axis2 loads
it modules but I can't seem to figure out what's wrong. Things I've tried
already after googling for answers:
1. System.setProperty(AXIS2_REPO, "/path/to/my/repo")
2. Making a single directory repo containing axis2.xml, modules, and libs
and adding it to the classpath
3. Countless other wizardry
I'm hoping someone here has had experience getting Axis2 working from Jython or
sees something wrong in the way I'm constructing my code. Any help is
appreciated!
Thank you,
Ryan